List webhooks - Spacefast Docs

List webhooks

Returns the webhooks on the teams the caller can read, newest first. Page with cursor. A tenant-rooted credential also sees the tenant’s own subscriptions. Deleted webhooks are left out.

GET /v1/webhooks

Authorization

Authorization: Bearer <token>

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

Query parameters

Responses

200 Response for status 200

Array of object

pagination object required

Error Responses

Try it

Server

Base URL: https://api.spacefast.com


Request Example

curl -X GET "https://api.spacefast.com/v1/webhooks?limit=20" \ 
  -H "Authorization: Bearer YOUR_TOKEN"

Response Example

{
  "$schema": "http://example.com",
  "data": [
    {
      "id": "string",
      "url": "http://example.com",
      "events": [
        "string"
      ],
      "status": "active",
      "secret": "string",
      "secretPreview": "string",
      "previousSecretExpiresAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}