Webhooks**

Register a Webhook Callback URL

POST /webhooks

Body

Name
Type
Description

callback_url

string

URL to receive event notifications

secret_key

string

Used to sign and validate callbacks

event

string (enum)

See supported events

Response

{
  "status": "success",
  "webhook_id": string,  // Unique ID for the webhook registration
  "callback_url": string,
  "secret_key": string,
  "event": string
}

Delete a Webhook Callback URL

DELETE /webhooks/{webhook_id}

Delete webhook based on webhook ID

Body

The request body should be empty

Response

{
  "status": "success",
  "webhook_id": string  // Unique ID for the deleted webhook
}

List Webhooks

GET /webhooks/

Returns a list of all registered webhooks

Body

The request body should be empty

Response

{
    "status": "success",
    "webhooks": [
        {
            "webhook_id": string,
            "callback_url": url,
            "secret_key": string,
            "event": string
        },
        ...
    ],
    "next_token": string
}

Get Webhook Detail by ID

GET /webhooks/{webhook_id}

Return webhook detail based on webhook ID

Body

The request body should be empty

Response

{
    "status": "success",
    "webhook_id": string,
    "callback_url": url,
    "secret_key": string,
    "event": string
}

Update Webhook by ID

PUT /webhooks/{webhook_id}

Update webhook detail based on webhook ID

Body

Name
Type
Description

callback_url

string

URL to receive event

secret_key

string

Used to sign and validate callbacks

event

string(enum)

See supported events

Response

{
  "status": "success",
  "webhook_id": string,  // Unique ID for the webhook registration
  "callback_url": string,
  "secret_key": string,
  "event": string
}

Invoke Webhook

POST /webhooks/{webhook_id}/invoke

Invoke webhook

Query Parameters

Name
Type
Description

request_id

string

Request ID

Body

The request body should be in json format

Response

{
    "status": "success"
}

Last updated

Was this helpful?