Webhook endpoints

Webhook endpoints receive events from Twentybaan at your HTTPS URL.

The webhook endpoint model

Endpoint secrets are never returned by the API. Manage secrets in Settings → Integrations.

Properties

  • Name
    id
    Type
    integer
    Description
    Unique identifier for the webhook endpoint.
  • Name
    url
    Type
    string
    Description
    Destination URL for webhook requests (HTTPS only).
  • Name
    events
    Type
    string[]
    Description
    Enabled webhook events for the endpoint.
  • Name
    status
    Type
    string
    Description
    Current status (for example active, disabled).

GET/v1/webhook-endpoints/

List webhook endpoints

Retrieve a paginated list of webhook endpoints for the authenticated user.

Required scope

webhooks:manage

Request

GET
/v1/webhook-endpoints/
curl -G https://api.twentybaan.com/v1/webhook-endpoints/ \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d limit=10

Response

{
  "ok": true,
  "items": [
    {
      "id": 123,
      "url": "https://example.com/webhooks/twentybaan",
      "events": ["contact_message.created", "listing.published"],
      "source": "user",
      "source_ref": null,
      "status": "active",
      "last_success_at": null,
      "last_error_at": null,
      "last_error": null,
      "created_at": "2026-01-12T08:00:00Z",
      "updated_at": "2026-01-12T08:00:00Z"
    }
  ],
  "next_before_id": null
}

GET/v1/webhook-endpoints/?id=:id

Retrieve a webhook endpoint

Fetch a single webhook endpoint by id.

Required scope

webhooks:manage

Request

GET
/v1/webhook-endpoints/?id=123
curl -G https://api.twentybaan.com/v1/webhook-endpoints/ \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d id=123
tb twentybaan

Sign in to your account

Not a member? Create an account

Or continue with email

Uncheck on shared devices.