List webhook deliveries - Spacefast Docs

List webhook deliveries

Returns the webhook’s deliveries with their status, attempt count, last response status, and diagnostics, newest first. Page with cursor.

GET /v1/webhooks/{webhookId}/deliveries

Authorization

Authorization Bearer token · header required

Authorization: Bearer <token> with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).

or

Authorization OAuth2 access token · header required

OAuth 2.0 with Spacefast scopes. People use the authorization code flow; machines use client credentials.

Scopes: spaces:read

Path parameters

webhookId string required

Query parameters

limit integer required

cursor string

Responses

200 Response for status 200

$schema string

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

data object[] required

Array of object

Array of object

Pagination

nextCursor string | any required

hasMore boolean required


Example Response

{
  "$schema": "http://example.com",
  "data": [
    {
      "id": "string",
      "webhookId": "string",
      "eventId": "string",
      "status": "pending",
      "attempts": 9007199254740991,
      "lastAttemptAt": "2019-08-24T14:15:22Z",
      "lastResponseStatus": -9007199254740991,
      "nextRetryAt": "2019-08-24T14:15:22Z",
      "redeliveredFromId": "string",
      "diagnostics": [],
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}

Error Response

{
  "$schema": "http://example.com",
  "type": "string",
  "title": "string",
  "status": -9007199254740991,
  "detail": "string",
  "code": "string",
  "pointer": "string",
  "details": {
    "property1": null,
    "property2": null
  },
  "suggestions": [
    "string"
  ],
  "next": [
    "string"
  ],
  "requestId": "string"
}