Webhooks**
Register a Webhook Callback URL
POST /webhooks
Body
callback_url
string
URL to receive event notifications
secret_key
string
Used to sign and validate callbacks
Response
{
"status": "success",
"webhook_id": string, // Unique ID for the webhook registration
"callback_url": string,
"secret_key": string,
"event": string
}{
"status": "error",
"message": string //e.g "secret_key: Field required"
}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
}{
"status": "error",
"message": string //e.g "Invalid webhook ID"
}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
}{
"status": "error",
"message": string, //e.g "Invalid webhook ID"
}Update Webhook by ID
PUT /webhooks/{webhook_id}
Update webhook detail based on webhook ID
Body
callback_url
string
URL to receive event
secret_key
string
Used to sign and validate callbacks
Response
{
"status": "success",
"webhook_id": string, // Unique ID for the webhook registration
"callback_url": string,
"secret_key": string,
"event": string
}{
"status": "error",
"message": string //e.g "secret_key: Field required"
}Invoke Webhook
POST /webhooks/{webhook_id}/invoke
Invoke webhook
Query Parameters
request_id
string
Request ID
Body
The request body should be in json format
Response
{
"status": "success"
}{
"status": "error",
"message": string, //e.g "Unprocessable Entity"
}Last updated
Was this helpful?