Skip to content

GET/POST · Bearer

GET/POST /api/v1/inboxes/:id/webhook-sources

Summary

List or create webhook sources for one inbox. POST body is {name, signature?}. name is 1 to 40 characters of lowercase letters, digits, underscore, or hyphen. signature.preset is stripe, github, standard, or hmac_sha256. The secret is stored encrypted and never returned. The create response includes url once. Later reads show url_hint, the last 4 characters of the token. At most 10 sources per inbox (HTTP 409 webhook_source_limit). GET requires webhook_read. POST requires webhook_write. A successful receiver POST writes webhook_source.received.

Request

{
  "name": "github",
  "signature": {
    "preset": "github",
    "secret": "replace-with-the-github-secret"
  }
}

Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

Errors

  • HTTP 409 webhook_source_limit

Idempotency

This route does not document Idempotency-Key or client_id.