Sealio Docs
Webhooks

Register an endpoint (the response has the signing secret, once)

Register an endpoint (the response has the signing secret, once). Reference for POST /v1/webhook-endpoints in the Sealio API: parameters and response fields.

POST/webhook-endpoints

Authorization

apiKey
AuthorizationBearer <token>

sk_live_ca_… or sk_live_in_…, created in Settings → API keys.

In: header

Header Parameters

Idempotency-Key?string

Retries with the same key within 24 hours return the first response.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/webhook-endpoints" \  -H "Content-Type: application/json" \  -d '{    "url": "string",    "events": [      "client.created"    ]  }'
{  "id": "string",  "object": "webhook_endpoint",  "url": "string",  "description": "string",  "events": [    "string"  ],  "status": "enabled",  "disabled_reason": "string",  "failing_since": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "secret": "string"}