Skip to content
Chatwise
Skip to Content
Developer docs

Delete a webhook endpoint

DELETE /v1/webhook-endpoints/{endpointId}. Deletes an endpoint and cancels its deliveries that weren't sent yet.

View as Markdown

DELETEhttps://api.chatwise.so/v1/webhook-endpoints/{endpointId}

Deletes an endpoint and cancels its deliveries that weren't sent yet. Its delivery log can no longer be read.

The API key needs the webhooks:write scope. See authentication and scopes.

Example

curl -X DELETE 'https://api.chatwise.so/v1/webhook-endpoints/we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"

Path parameters

NameTypeDescription
endpointIdstringRequired. The endpoint's id (we_…).

Response

200. Deleted.

{
  "data": {
    "id": "we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C",
    "deleted": true
  }
}
FieldTypeDescription
data.idstringThe deleted endpoint's id.
data.deletedbooleanAlways true.

Errors

StatusMessageWhat it means
400Validation failedA parameter or body field is missing, unknown or malformed. errors lists each one.
401A valid Bearer API key is requiredThe Authorization header is missing or isn't Bearer <API key>.
401Invalid or revoked API keyThe key doesn't exist, was revoked, or has expired.
401Invalid API keyChatwise couldn't check the key. Try again.
403API key does not have the required scope: webhooks:writeThe key lacks the route's scope. Create a key that has it.
404Webhook endpoint not foundNo endpoint with this id in the key's workspace.
429API key rate limit exceededWait the number of seconds in the Retry-After header.
500Internal server errorSomething failed in Chatwise. Retry reads with backoff.

The body of an error is described in errors.

On this page