Skip to content

Create a webhook subscription

Redline APIWebhook subscriptions

POSThttps://api.redline.example/v1/webhook-subscriptions

AuthRequires authentication via bearerAuth.

Description

Creates a signed event delivery destination and returns its signing secret once.

Request body

application/jsonrequired

urlbodystring <uri>required
Public HTTPS delivery destination.
eventsbodystring[]required

Responses

201The created subscription. Store the signing secret securely because it is not shown again.application/json
401The API key is missing, malformed, expired, or revoked.application/json
errorobjectrequired
403The API key does not have permission for this action.application/json
errorobjectrequired
422One or more request fields are invalid.application/json
errorobjectrequired