Create Webhook
Creates a webhook. credentials optionally sets how deliveries authenticate with the receiver, as PUT /v1/webhooks/{id}/credentials does. The signing_secret that signs its deliveries is never part of the webhook: read it with GET /v1/webhooks/{id}/signing-secret.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Human-readable name of the resource.
1 <= lengthActive value for this resource.
trueThe HTTP method of a legacy webhook, POST by default. Other webhooks always use POST.
Target URL value for this resource.
uriCredentials value for this resource.
The API version deliveries are rendered in. Defaults to the latest version when events is sent; a webhook with event and without api_version is a legacy webhook.
^(legacy|\d{4}-\d{2}-\d{2})$Events value for this resource.
1 <= itemsRelated fields to include in the response.
Filters value for this resource.
Event value for this resource.
Fields value for this resource.
Deprecated: set credentials instead. Non-empty headers replace the credentials with header authentication; an empty object changes nothing.
Response Body
application/json
curl -X POST "https://api.getmateo.com/v1/webhooks" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "target_url": "http://example.com" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "target_url": "string", "event": "contact_details.updated", "method": "GET", "active": true, "authentication_type": "none", "fields": [ "string" ], "api_version": "string", "events": [ "string" ], "include": { "property1": [ "string" ], "property2": [ "string" ] }, "filters": { "property1": { "fields": [ "string" ] }, "property2": { "fields": [ "string" ] } }, "disabled_at": "2019-08-24T14:15:22Z", "disabled_reason": "gone", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}message.submitted Webhook
The channel provider accepted an outbound message for sending. Sent to webhooks subscribed to `message.submitted`. `data.object` is the ConversationEvent in the webhook's `api_version`, with the include values the webhook lists for `conversation_event`.
Delete Webhook DELETE
Deletes the specified webhook.