Docs
ExtensionsWebhooks

API Reference

The webhook endpoints: manage targets, inspect deliveries, rotate secrets, and test.

All endpoints use your Kora API key (Authorization: Bearer <key>). Change the host variable in the playground to point at your own instance.

GET
/webhooks
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

In: header

Query Parameters

name?string

Response Body

application/json

curl -X GET "https://example.com/webhooks"
[  {    "name": "string",    "url": "string",    "events": [      "string"    ],    "secret": "string",    "enabled": true,    "headers": {},    "id": 0  }]
POST
/webhooks
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

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" \  -H "Content-Type: application/json" \  -d '{}'
{  "name": "string",  "url": "string",  "events": [    "string"  ],  "secret": "string",  "enabled": true,  "headers": {},  "id": 0}
PATCH
/webhooks
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/webhooks" \  -H "Content-Type: application/json" \  -d '{}'
Empty
DELETE
/webhooks
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X DELETE "https://example.com/webhooks" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
Empty
GET
/webhooks/deliveries
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

In: header

Query Parameters

webhook?string

Response Body

application/json

curl -X GET "https://example.com/webhooks/deliveries"
[  {    "webhook": "string",    "event": "string",    "status": "pending",    "attempts": 0,    "code": 0,    "error": "string"  }]
POST
/webhooks/rotate
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

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/rotate" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "name": "string",  "secret": "string"}
POST
/webhooks/test
AuthorizationBearer <token>

Your Kora API key, sent as Authorization: Bearer <key>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/webhooks/test" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
Empty