Replace webhooks
/api/account/webhooks
Replace all webhooks for the account. This overwrites existing webhooks.
Body Parameters
Returns
message: optional string
status: optional string
Replace webhooks
curl https://api.sendblue.co/api/account/webhooks \
-X PUT \
-H 'Content-Type: application/json' \
-H "sb-api-key-id: $SENDBLUE_API_API_KEY" \
-H "sb-api-secret-key: $SENDBLUE_API_API_SECRET" \
-d '{
"webhooks": {}
}'
{
"message": "Webhooks updated successfully",
"status": "OK",
"webhooks": {
"globalSecret": "whsec_global123",
"line_assigned": [
"https://example.com"
],
"line_blocked": [
"https://example.com"
],
"outbound": [
"https://example.com"
],
"receive": [
"https://example.com"
]
}
}
Returns Examples
{
"message": "Webhooks updated successfully",
"status": "OK",
"webhooks": {
"globalSecret": "whsec_global123",
"line_assigned": [
"https://example.com"
],
"line_blocked": [
"https://example.com"
],
"outbound": [
"https://example.com"
],
"receive": [
"https://example.com"
]
}
}