younifyd
Menu

Get Webhook Attempt

Get a webhook attempt by ID

GET/hooks/projects/{projectId}/attempts/{attemptId}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Get Webhook Attempt action (under Webhooks).
  3. Fill in the fields below, then reference the result from later steps as {{getWebhookAttempt.response.data}}.

Request

Path parameters

projectIdstringrequired
attemptIdstringrequired

ID of the attempt

Response

Returns 200 with an object. Read it in later steps with {{getWebhookAttempt.response.data.<field>}}.

idstring

Unique identifier for the webhook attempt

projectIdstring

ID of the Sanity project

inProgressboolean

Whether the webhook attempt is currently in progress

resultBodystring | null

Response body from the webhook endpoint

durationinteger

Duration of the webhook attempt in milliseconds

isFailureboolean

Whether the webhook attempt failed

failureReasonstring | null

Reason for failure if the webhook attempt failed. Document webhooks always report `other` for failed attempts.

One oftimeoutnetworkhttpothernull

resultCodeinteger | null

HTTP status code from the webhook endpoint, or `null` if no response was received

createdAtstring (date-time)

Timestamp when the webhook attempt was created

updatedAtstring (date-time)

Timestamp when the webhook attempt was last updated

deletedAtstring | null

Timestamp when the webhook attempt was deleted, if applicable

messageIdstring

Unique identifier for the message that triggered the webhook

hookIdstring

ID of the webhook that was triggered

json
{
  "id": "string",
  "projectId": "string",
  "inProgress": false,
  "resultBody": "string",
  "duration": 0,
  "isFailure": false,
  "failureReason": "timeout",
  "resultCode": 0,
  "createdAt": "2025-01-01T00:00:00Z",
  "updatedAt": "2025-01-01T00:00:00Z",
  "deletedAt": "2025-01-01T00:00:00Z",
  "messageId": "string"
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.

Get Webhook Attempt — Sanity — Documentation