Set a single webhook listener URL and secret. Each call overwrites the previous configuration.
Request
Add parameter in header x-signature
Example:x-signature: ********************
or
Body Params application/json
{
"url": "http://example.com",
"secret": "string"
}
Request Code Samples
curl --location '/api/v1/webhook/config' \
--header 'x-app-id;' \
--header 'x-timestamp: 0' \
--header 'x-nonce;' \
--header 'x-request-id;' \
--header 'x-lang;' \
--header 'x-signature: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"url": "http://example.com",
"secret": "string"
}'
Responses
Webhook configured successfully
{
"success": true,
"requestId": "string",
"timestamp": "2019-08-24T14:15:22.123Z",
"data": {
"url": "http://example.com",
"secretLast4": "string",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
}
Modified at 2025-09-26 03:46:34