Pular para o conteúdo principal
POST
Create an integration hook

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
app_id
integer

The ID of app for which integration hook is being created

Exemplo:

1

inbox_id
integer

The inbox ID, if the hook is an inbox hook

Exemplo:

1

status
integer

The status of the integration (0 for inactive, 1 for active)

Exemplo:

1

settings
object

The settings required by the integration

Exemplo:

Resposta

Success

id
string

The ID of the integration hook

app_id
string

The ID of the integration app

inbox_id
string

Inbox ID if its an Inbox integration

account_id
string

Account ID of the integration

status
boolean

Whether the integration hook is enabled for the account

hook_type
boolean

Whether its an account or inbox integration hook

settings
object

The associated settings for the integration