AgentBots
Inbox API
Conversations API
Contact Labels
CSAT Survey Page
Account AgentBots
Agents
Canned Responses
Canned Response
Custom Attributes
Contacts
Automation Rule
Help Center
Conversations
Conversation Assignment
Conversation Labels
Inboxes
Integrations
Profile
Teams
Custom Filters
Webhooks
Add a webhook
Webhooks
Add a webhook
Add a webhook subscription to the account
POST
/
api
/
v1
/
accounts
/
{account_id}
/
webhooks
curl --request POST \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/webhooks \
--header 'Content-Type: application/json' \
--data '{
"url": "<string>",
"subscriptions": [
"conversation_created"
]
}'
{
"id": 123,
"url": "<string>",
"subscriptions": [
"conversation_created"
],
"account_id": 123
}
Path Parameters
The numeric ID of the account
Body
application/json
Response
200
application/json
Success
The response is of type object
.
curl --request POST \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/webhooks \
--header 'Content-Type: application/json' \
--data '{
"url": "<string>",
"subscriptions": [
"conversation_created"
]
}'
{
"id": 123,
"url": "<string>",
"subscriptions": [
"conversation_created"
],
"account_id": 123
}