Skip to content

Register a webhook destination — server token only

POST
/v1/webhooks
curl --request POST \
--url http://localhost:3000/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://acme.com/dropin-hooks" }'
Media typeapplication/json
object
url
required
string format: uri
Example
https://acme.com/dropin-hooks

Destination created (Outpost returns its id + signing secret). IDEMPOTENT ON URL: posting a url that is already registered returns the EXISTING destination rather than adding a second one, because two destinations for one url mean the tenant receives every event twice. Note that the existing destination’s response will not repeat the signing secret, which Outpost returns only on first creation.

Media typeapplication/json
object
Examplegenerated
{}

Authenticated but not permitted.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: VALIDATION_FAILED UNAUTHENTICATED FORBIDDEN NOT_FOUND CONFLICT RATE_LIMITED INTERNAL CONTENT_REJECTED
message
required
string
requestId
required
string
fields

Present only for VALIDATION_FAILED.

Array<object>
object
path
string
message
string
Example
{
"error": {
"code": "VALIDATION_FAILED"
}
}