Agiled Docs
POST
/public/v1/webhook-subscriptions

Creates an active webhook subscription. The secret is returned only once.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

description?string
events?array<>
target_url?string
Formaturi
[key: string]?any

Response Body

application/json

curl -X POST "https://loading/public/v1/webhook-subscriptions" \  -H "Content-Type: application/json" \  -d '{    "description": "Production CRM webhooks",    "events": [      "contact.created",      "invoice.paid"    ],    "target_url": "https://example.com/agiled/webhooks"  }'
{  "data": {    "description": "string",    "events": [      "contact.created"    ],    "id": "string",    "last_delivery_at": "string",    "secret": "string",    "status": "string",    "target_url": "http://example.com"  }}
Empty
Empty
Empty
Empty