Skip to main content
POST
Registers the endpoint HydraDB calls when ingested content reaches a terminal indexing state. One webhook is registered per organization, so calling this again replaces the current registration.
To have HydraDB create a signing secret, send generate_signing_secret: true. The signing secret comes back once, in this response, and cannot be read again. Send generate_signing_secret or signing_secret, not both. Omitting signing_secret preserves any signing secret you already have. Editing the URL or the event list never changes your signing configuration. To disable signing, call Disable Signing explicitly. See Manage the signing secret. Your endpoint must be reachable over public HTTPS. Localhost and private network addresses are rejected. See Webhooks for the payload format, retry behavior, and receiver examples.

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <your_api_key>.

Body

application/json

Webhook registration request

event_types
string[]

Event types to subscribe to (e.g. ["indexing.status_changed"]).

Example:
generate_signing_secret
boolean

Generate a signing secret in this request. It is returned once and cannot be retrieved later. Cannot be combined with signing_secret.

Example:

true

signing_secret
string

Secret, at least 16 characters, that signs deliveries: X-HydraDB-Signature: sha256=<hex> is the HMAC-SHA256 of the raw body. Omit it to keep any existing secret.

Example:

"whsec_EXAMPLE_ONLY_THIS_IS_NOT_A_REAL_SIGNING_KEY"

url
string

Endpoint URL to deliver webhook events to.

Example:

"https://docs.hydradb.com/phoenix"

Response

Created

data
WebhooksWebhookRegisterResponse · object
Example:
error
HandlerApiError · object | null

Error details on failure, or null on success.

Example:

null

meta
HandlerResponseMeta · object
Example:
success
boolean

Whether the request succeeded.

Example:

true