Skip to main content
POST
Typescript (SDK)

Body Parameters

Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2.4.0
required

Body

application/json
webhooks
object[]
required

The webhooks to create or update. Webhooks not listed are left alone unless skip_deletions is false.

skip_deletions
boolean
default:true

When false, webhooks is the environment's complete set: every webhook not listed is deleted, including ones made in the dashboard. Defaults true, which leaves unlisted webhooks alone.

Response

200 - application/json

OK

changes
object[]
required

What webhooks.sync would do. adopt takes over a webhook made in the dashboard with the same URL, keeping its signing secret. unmanaged webhooks exist but aren't listed, so sync leaves them alone. delete webhooks aren't listed and skip_deletions is false, so sync deletes them.

errors
object[]
required

Listed webhooks webhooks.sync would refuse, e.g. when several dashboard webhooks share the URL.