FoPost LogoFoPost Docs

Webhooks API

API endpoints for managing webhook subscriptions.

Webhooks API

List webhook endpoints

GET /v1/webhooks

Create a webhook endpoint

POST /v1/webhooks

Request body:

{
  "url": "https://example.com/webhooks/owlstack",
  "events": ["post.published", "post.failed", "batch.completed"]
}

Response:

{
  "data": {
    "id": "wh_abc123",
    "url": "https://example.com/webhooks/owlstack",
    "events": ["post.published", "post.failed", "batch.completed"],
    "signing_secret": "whsec_a1b2c3d4...",
    "active": true
  }
}

Update a webhook

PATCH /v1/webhooks/{id}

Delete a webhook

DELETE /v1/webhooks/{id}

Test a webhook

POST /v1/webhooks/{id}/test

Sends a test payload to verify your endpoint is receiving and processing webhooks correctly.

On this page