ac-co.ai docs
API Referencewebhooks

Create a webhook subscription

POST
/webhooks/subscriptions
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/webhooks/subscriptions" \  -H "Content-Type: application/json" \  -d '{    "body": {      "url": "http://example.com",      "events": [        "lead.created"      ]    }  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "http://example.com",  "events": [    "lead.created"  ],  "enabled": true,  "secretPrefix": "string",  "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",  "createdAt": "string",  "updatedAt": "string",  "secret": "string"}