Hoppa till innehållet

Delete a signing secret

DELETE/v1/webhooks/{id}/secrets/{secretId}

TypeScript sendora.webhooks.deleteSecret(webhookId, secretId)

Python sendora.webhooks.delete_secret(webhook_id, secret_id)

PHP $sendora->webhooks->deleteSecret($webhookId, $secretId)

Java sendora.webhooks().deleteSecret(webhookId, secretId)

Key sk_… a server key

Deliveries are no longer signed with it from the next one on. The last live secret of a webhook cannot be deleted, so its deliveries always carry a signature.

Parameters

  • idin pathstring (uuid)required

    The webhook id.

  • secretIdin pathstring (uuid)required

    The secret id.

Responses

Errors

Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.

CodeStatusMeaning
unauthorized401The key is missing, malformed or revoked.
wrong_token_kind403The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes.
not_for_connections403A connected app called an operation that no tool of the MCP server calls. An API key can.
read_only_connection403A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting.
test_server_only403A connected app may create a secret, or do what cannot be undone, on a test server only.
not_found404No such webhook or secret of this server.
last_secret409The only live secret of a webhook cannot be deleted; create another first.
  • WWW-Authenticateheader on 401"Bearer"

    Always Bearer: send the key as Authorization: Bearer <key>.