Register a webhook
Register a webhook endpoint and receive its signing secret. The secret is returned only on creation — store it immediately, as it cannot be retrieved again.
Authentication
x-api-keystring
Your Living Brain API key. Create one from the dashboard; keys are scoped to an organization and carry the role of the member they were issued to.
Headers
x-subject-id
Identifies the end user the request is made on behalf of. Brains are owned by a
subject, so this determines which brains the caller can see.
Request
This endpoint expects an object.
url
HTTPS endpoint to deliver events to
events
Event types to subscribe to; empty = all
secret
Signing secret to use for this subscription. When omitted a random secret is generated and returned once. Hosts that verify deliveries against a pre-configured secret (e.g. an env var) should pass it here so signatures match. Write-only: never returned on reads.
Response
id
Subscription id
tenantId
Owning tenant id
url
Delivery endpoint
events
Subscribed event types; empty = all
active
Whether the subscription is currently receiving deliveries.
createdAt
ISO 8601 timestamp of when this record was created.
updatedAt
ISO 8601 timestamp of when this record was last modified.
secret
Raw signing secret for verifying x-brain-signature on deliveries. Returned exactly once; store it now.
Errors
400
Bad Request Error
401
Unauthorized Error