Pular para o conteúdo principal
POST
Add a webhook

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

Corpo

application/json
url
string

The url where the events should be sent

Exemplo:

"https://example.com/webhook"

name
string

The name of the webhook

subscriptions
enum<string>[]

The events you want to subscribe to.

Opções disponíveis:
conversation_created,
conversation_status_changed,
conversation_updated,
message_created,
message_updated,
contact_created,
contact_updated,
webwidget_triggered
Exemplo:

Resposta

Success

id
number

The ID of the webhook

url
string

The url to which the events will be send

name
string

The name of the webhook

subscriptions
enum<string>[]

The list of subscribed events

Opções disponíveis:
conversation_created,
conversation_status_changed,
conversation_updated,
contact_created,
contact_updated,
message_created,
message_updated,
webwidget_triggered
account_id
number

The id of the account which the webhook object belongs to