TelefonAIv1
Webhooks

Change the URL, the events, or switch the receiver off

Change the URL, the events, or switch the receiver off. Use this rather than deleting and recreating: a new receiver gets a NEW signing_secret, and your server will reject every delivery until you swap the secret over. The secret is not changed here but with POST /v1/webhooks/:id/rotate-secret.

PATCH/v1/webhooks/{id}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringpathrequired

The id of the resource.

Request

curl --request PATCH \
  --url "https://api.telefonai.dk/v1/webhooks/<id>" \
  --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."
  }
}