POST Create Webhook Config
Create webhook configuration
Headers
- Type: stringX
- Request - I D requiredUnique request identifier
- Type: stringApplicationrequired
Application key
- Type: stringAcceptrequired
Accept header
- Type: stringA
P I -version requiredApi version
- Type: stringAuthorizationrequired
Authorization header
Body
application/json
- Type: stringsigning
_secret - Type: stringurl
Responses
- application/json
Request Example for post/webhook-configs
curl https://api-public-demo.menu.app/api/webhook-configs \
--request POST \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--header 'Application: ' \
--header 'Accept: application/json' \
--header 'API-version: 5.0.0' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data '{
"url": "http://dispatch-service.menu.app:8084",
"signing_secret": "mySup3rSecR3tSignKey123!"
}'
{
"status": "OK",
"code": 200,
"data": {
"webhook-configs": {
"id": "b9573e87-747f-411b-b227-96cf5971ecaf",
"signing_secret": "mySup3rSecR3tSignKey123",
"url": "http://dispatch-service.menu.app:8084",
"created_at": "2023-07-26T12:29:04Z",
"updated_at": "2023-07-26T12:29:04Z"
}
}
}