Skip to main content
POST
/
v1
/
webhooks
/
endpoints
/
{endpoint_id}
/
keys
Create a webhook encryption key
curl --request POST \
  --url http://127.0.0.1:8787/v1/webhooks/endpoints/{endpoint_id}/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key_id": "<string>",
  "jwk": {},
  "algorithm": "RSA-OAEP-256",
  "key_type": "RSA"
}
'
{
  "data": {
    "id": "<string>",
    "webhook_endpoint_id": "<string>",
    "key_id": "<string>",
    "algorithm": "<string>",
    "key_type": "<string>",
    "jwk": {},
    "is_active": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "disabled_at": "<string>"
  },
  "error": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.kayle.id/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

endpoint_id
string
required

The ID of the webhook endpoint to create the encryption key for (e.g. whe_...).

Body

application/json
key_id
string
required

The key identifier to use as kid in the JWE header.

jwk
object
required

The public JWK for encrypting webhook payloads.

algorithm
enum<string>
required

The JWE algorithm to use for webhook delivery.

Available options:
RSA-OAEP-256
key_type
enum<string>
required

The JWK key type for webhook delivery.

Available options:
RSA

Response

Successful operation.

data
object
required
error
object
required