Skip to navigation

Get a webhook endpoint

One endpoint and its delivery health. A deleted, foreign or unknown endpoint answers the common 404 not_found. The ETag (also the revision field) changes when the configuration, the state or the signing secret changes; it does not change for last_success_at, last_failure_at or failing_since.

Authentication

AuthorizationBearer

An organisation-owned key whose secret starts ra_org_. The Owner or an Admin of an organisation that Rasen has invited makes it in the app; no API operation makes, changes, rotates or revokes a key. On a workspace operation send the workspace ID in the Rasen-Workspace header; without it the answer is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the organisation or outside the key’s workspace list is 404 not_found. An organisation that is not invited gets 403 organisation_api_not_enabled.

Path parameters

endpoint_idstringRequired1-128 characters
Endpoint identity within the authenticated workspace.

Headers

Rasen-WorkspacestringRequired

The ID of the workspace that this operation acts in. It must be a workspace of the key’s organisation and in the key’s workspace list. A missing, empty or malformed value is 400 invalid_request with details.field Rasen-Workspace; a workspace outside the organisation or the key’s workspace list is the hidden 404 not_found.

Response headers

X-Request-IdstringOptional
Safe server request correlation ID.
ETagstringOptional

Strong endpoint revision, equal to the revision field. Send it as If-Match to replace, delete or rotate. It changes with url, description, events, state and the signing secret, not with delivery results.

RateLimit-LimitintegerOptional
Requests allowed in the current window for the tightest applicable limit.
RateLimit-RemainingintegerOptional
Requests left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window resets.

Response

The endpoint.
idstring<=128 characters

Opaque endpoint identifier (prefix wep_). Do not parse it.

urlstring<=2048 characters
descriptionstring or null<=256 characters
eventslist of strings
Subscribed event types. Open response vocabulary.
statestring

enabled: receives deliveries. disabled: a person disabled it. disabled_failing: Rasen disabled it after at least 72 hours and at least 10 failed call-event attempts with no success. Both disabled states hold pending deliveries. Open response vocabulary; treat an unknown value as not enabled.

disabled_atdatetime or null
When the endpoint entered its current disabled state. Null while enabled.
secret_hintstring=4 characters
The last 4 characters of the current signing secret. Never the secret.
previous_secret_expires_atdatetime or null

End of the rotation grace period while the previous secret is still valid; null otherwise.

last_success_atdatetime or null
Time of the last 2xx attempt.
last_failure_atdatetime or null
Time of the last failed attempt.
failing_sincedatetime or null

First failed call-event attempt after the last success, creation or enable; null when the last attempt succeeded.

created_atdatetime
updated_atdatetime
deleted_atdatetime or null
Set only in the answer of deleteWebhookEndpoint and its replay. A deleted endpoint is otherwise not found.
revisionstring
The same strong value as the ETag header. Lists carry it so a client can edit without a second read.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error