TelefonAIv1
Webhooks

Issue a new signing secret

Issue a new signing secret. The new one is in the reply — the ONLY time it is handed out — and the old one stops working the same second. Queued deliveries are signed with the new one when sent. The receiver keeps its id, delivery log and queue, so you do not have to delete and recreate it.

POST/v1/webhooks/{id}/rotate-secret

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringpathrequired

The id of the resource.

Idempotency-Keystringheader

Repeat a request safely: the same key returns the first response instead of creating a second row. Kept for 24 hours.

Request

curl --request POST \
  --url "https://api.telefonai.dk/v1/webhooks/<id>/rotate-secret" \
  --header "Authorization: Bearer $API_NOEGLE" \
  --header "Content-Type: application/json" \
  --data '{}'

Response

application/json

Success.

object

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}