Send test webhook payloads
Changed onThis endpoint let you try webhook configurations by sending test payloads. This currently supports only one webhook configuration per request, entries after the first one will be ignored. Payloads are created by the latest data of the specified event type, or if not available a default payload will be sent. The request is similar to a regular webhook, but also contains an additional X-Partoo-Webhook-Tryout header.
Request
- Base URLhttps://api.partoo.co/v2
- AuthAPI key in header x-APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Organization identifier, only required for PROVIDER users.
Request body
Example request
{
"items": [
{
"url": "https://example.com/webhook",
"event_type": "business_created",
"custom_headers": {
"X-My-Header": "my-value",
"X-Auth-Token": "secret-token"
}
}
]
}Response
OK
Example response
{
"items": [
{
"event_type": "business_created",
"url": "https://example.com/webhook",
"status": "success"
}
]
}Changes
- warning
added the new
email_opt_out_createdenum value to the///response property for the response status - warning
added the new
post_createdenum value to the///response property for the response status - warning
added the new
post_deletedenum value to the///response property for the response status - warning
added the new
post_updatedenum value to the///response property for the response status - warning
added the new
post_validatedenum value to the///response property for the response status - warning
added the new
review_createdenum value to the///response property for the response status - warning
added the new
review_reply_createdenum value to the///response property for the response status - warning
added the new
review_reply_deletedenum value to the///response property for the response status - warning
added the new
review_reply_updatedenum value to the///response property for the response status - warning
added the new
review_updatedenum value to the///response property for the response status - warning
added the new
scheduled_post_pushedenum value to the///response property for the response status
- warning