Skip to content

Update notification settings

PATCH/v1/workspaces/{workspace_uid}/notifications

Sets or removes the workspace's alert webhook. When set, workspace alerts (for example an app that keeps crashing) are also sent as an HTTP POST to this URL, in addition to email. You can use a Discord webhook URL or any HTTPS endpoint.

  • Send a URL to set or replace the webhook.
  • Send "" to remove it.
  • Omit webhook_url (or send null) to leave it unchanged.

Requires the owner or admin role.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

workspace_uidstringRequired

The workspace's uid. When the route also takes X-Workspace-Slug, both must name the same workspace.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Request body

webhook_urlstring | null

HTTPS URL to post alerts to. Leading and trailing spaces are trimmed. Must use https and include a host. Send "" to remove the webhook.

max length 2048

Response

200

The settings were saved.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
webhook_configuredbooleanRequired

Whether an alert webhook is set. The URL itself is never returned.

Errors

StatusMeaning
400Validation failed: invalid request (malformed JSON), webhook URL must be 2048 characters or less, webhook URL is not valid, or webhook URL must use https.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.