Skip to Content
Adaptyv Bio Docs
webhooks

Register a webhook for the organization.

POST
/api/v1/webhooks

Authorization

bearer_auth

Request Body

application/json
  1. body

Request to register an organization-level webhook.

Example

{  "url": "https://example.com/adaptyv/webhook",  "secret": "a-32-plus-character-shared-secret",  "headers": {"X-Tenant-Id": "acme"}}
headers?unknown

Extra HTTP headers to send with each delivery.

secret?|

HMAC signing secret. Write-only — it is never returned again, so keep your copy. Omit to inherit Adaptyv's deployment-wide secret.

Minimum 32 characters.

Length32 <= length
url*string

HTTPS URL to deliver to. Must be publicly routable.

Receives the events of every experiment in the organization that has not registered a webhook of its own; an experiment that has one delivers only there, not here as well.

Response Body

Webhook registered

application/json
  1. response

An organization-level webhook registration as returned to the customer.

created_at*string

Creation timestamp.

Formatdate-time
enabled*boolean

When false, this registration receives no deliveries.

headers*unknown

Extra HTTP headers sent with each delivery.

id*string

Registration identifier.

Formatuuid
secret_set*boolean

Whether a signing secret is configured for this registration.

The secret itself is never returned by any endpoint. false means deliveries fall back to Adaptyv's deployment-wide secret.

updated_at*string

Last-modification timestamp.

Formatdate-time
url*string

HTTPS URL deliveries are POSTed to.

Example Request
curl -X POST 'https://devs.adaptyvbio.com/api/v1/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "string"}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "enabled": true,  "headers": null,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "secret_set": true,  "updated_at": "2019-08-24T14:15:22Z",  "url": "string"}