Skip to main content
POST
Archive a webhook

Authorizations

X-API-Key
string
header
required

User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.

Headers

The legal entity to act on. Required on every request except GET /v2/legal-entities, which lists the ids a user API key can send here: those of every legal entity its user has access to.

Pattern: ^le_[a-zA-Z0-9]+$

Path Parameters

webhookId
string
required

Webhook id with the public_webhook_endpoint_ prefix.

Response

The archived webhook.

id
string
required

Webhook id with the public_webhook_endpoint_ prefix.

Example:

"public_webhook_endpoint_2rj4l7hmrrrcv"

name
string
required
Example:

"Production"

url
string
required

The URL Slash sends events to.

Example:

"https://example.com/webhooks/slash"

status
enum<string>
required

active webhooks receive events. A paused webhook holds new events and sends them once it is unpaused. Slash sets backing_off after failed deliveries and retries at backingOffUntil, and disabled after repeated failures; unpausing either makes it active and sends the events it held. archived webhooks get no new events.

Available options:
active,
paused,
backing_off,
disabled,
archived
createdAt
string<date-time>
required
enabledEvents
string[]

The event types this webhook receives. Omitted when it receives every event.

Example:
pausedAt
string<date-time>

When the webhook was paused.

backingOffUntil
string<date-time>

When Slash retries delivery to a backing_off webhook.

disabledAt
string<date-time>

When Slash disabled the webhook after repeated failed deliveries.

archivedAt
string<date-time>