Agents
Enable/Disable Agent Integration
This endpoint allows controlling the webhook status for different service providers associated with an agent.
For the instagram
type, enabling/disabling the webhook also controls the answerDms
and answerComments
settings
PATCH
/
agents
/
{id}
/
webhook
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
id
string
requiredID of the agent to which the service provider belongs.
Query Parameters
type
enum<string>
requiredType of the service provider for which the webhook status will be changed.
Available options:
whatsapp
, telegram
, zapi
, instagram
enabled
boolean
requiredDefines the new webhook status. true
to enable, false
to disable.
Response
200 - application/json
The response is of type string
.
Was this page helpful?