Register a webhook for the organization.
bearer_authapplication/json- 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?unknownExtra 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.
32 <= lengthurl*stringHTTPS 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.
Webhook registered
application/json- response
An organization-level webhook registration as returned to the customer.
created_at*stringCreation timestamp.
date-timeenabled*booleanWhen false, this registration receives no deliveries.
headers*unknownExtra HTTP headers sent with each delivery.
id*stringRegistration identifier.
uuidsecret_set*booleanWhether 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*stringLast-modification timestamp.
date-timeurl*stringHTTPS URL deliveries are POSTed to.
curl -X POST 'https://devs.adaptyvbio.com/api/v1/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "url": "string"}'{ "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"}