Skip to content

Delete a webhook endpoint

On this page
DELETE/v1/webhook-endpoints/{endpoint_id}delete_webhook_endpoint
Riskwrite
AuthenticationAPI key or OAuth access token
Scopeswebhooks:write
Idempotencynatural: repeating the call gives the same result
Dry runyes: add dry_run=true to the query
Success status200
Response typeapplication/json

What it does#

  • Use when: You no longer want deliveries to an address.
  • Do not use when: you only want to stop deliveries for a while (call update_webhook_endpoint with status paused).
  • Side effects: Deletes the endpoint and its delivery history.
  • Reversible: No.
  • Required scope: webhooks:write.
  • Idempotency: safe to repeat (same result).
  • Typical next step: call create_webhook_endpoint if you need a new one.

Scopes#

  • webhooks:write: Create, change and delete webhook endpoints.

Side effects#

  • Deletes the endpoint and its delivery history

Request#

Path parameters#

FieldTypeDescription
endpoint_idstring

Query parameters#

None.

Every mutation also accepts dry_run=true: it runs every check and returns {"dry_run": true, "would": {...}} without writing anything.

Response#

FieldTypeRequiredDescription
deletedexactly trueyes
idstringyes

Examples#

deleted#

Request:

curl -X DELETE 'https://api.seemly.com/v1/webhook-endpoints/whe_4d8x2p0q7r3m9k1v5t6w8y0z' \
  -H "Authorization: Bearer $SEEMLY_API_KEY"

Response: 200:

JSON
{
  "deleted": true,
  "id": "whe_4d8x2p0q7r3m9k1v5t6w8y0z"
}

Errors#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.