Skip to Content
Webhooks

List webhook subscriptions in a project

GET
/api/projects/{projectId}/webhooks

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length

Response Body

Response for status 200

application/json
  1. response
webhooks*array<>
Example Request
curl -X GET 'https://postdot.example/api/projects/string/webhooks'
Example Response
{
  "webhooks": [
    {
      "id": "string",
      "projectId": "string",
      "url": "string",
      "events": [
        "post.created"
      ],
      "state": "active",
      "pausedReason": "string",
      "cursorSequence": 0,
      "secretVersion": 1,
      "previousSecretExpiresAt": 0,
      "createdByActorId": "string",
      "updatedByActorId": "string",
      "createdAt": 0,
      "updatedAt": 0
    }
  ]
}

Was this page helpful?