Skip to content

Add a webhook endpoint

POST/webhook-endpoints
Base URLhttps://api.relaypoint.example/v1

Relaypoint sends an HTTPS POST to this URL for each event you choose. The response includes the signing secret once.

Authentication

Bearer tokenbearerAuth

Create a key under Settings › API keys and send it as Authorization: Bearer YOUR_KEY.

Request bodyrequired

application/json

Responses

  • 201The new endpoint, with its signing secret.application/json
    application/json
  • 400A parameter is missing or wrong. error.field names it.application/json
POST/webhook-endpoints
curl https://api.relaypoint.example/v1/webhook-endpoints \
  --request POST \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://example.com/hooks/relaypoint",
    "events": [
      "conversation.created",
      "conversation.closed"
    ]
  }'
Response
{
  "id": "whe_7c1n4r",
  "url": "https://example.com/hooks/relaypoint",
  "events": [
    "conversation.created",
    "conversation.closed"
  ],
  "status": "active",
  "created_at": "2026-11-27T10:15:00Z",
  "signing_secret": "YOUR_SECRET"
}
Was this page helpful?