Dispach
HTTP API
POST
/v1/webhooks

Authorization

bearer
headerAuthorizationBearer <token>

An operator key or the configured token.

Request Body

application/json
  1. body
url*string

Where deliveries are POSTed. Checked against every address it resolves to, at subscribe and at every send.

Length1 <= length
types*array<string>

The event types to deliver. model.chunk is not deliverable.

Items1 <= items
agents?array<string>

Narrow the subscription to these agents. It can never hear more than the creating credential reaches.

Items1 <= items

Response Body

created; secret is in this response and no other

Example Request
curl -X POST 'http://localhost:7420/v1/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "string",  "types": [    "string"  ]}'
Example Response
Empty