Skip to main content
POST
/
v0
/
webhook_subscriptions
Create webhook subscription
curl --request POST \
  --url https://api.tryarchitect.com/v0/webhook_subscriptions \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "events": [
    "page.version.created"
  ],
  "active": true
}'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "page.version.created"
  ],
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "signingSecret": "<string>"
}

Body

application/json
url
string<uri>
required

URL to open when action is triggered

events
enum<string>[]
required
active
boolean
default:true
required

Whether the subscription should be active

Examples:

true

Response

201 - application/json

WebhookSubscription created successfully

id
string
required

Unique subscription identifier

url
string<uri>
required

URL to open when action is triggered

events
enum<string>[] | null
required
active
boolean
required

Whether the subscription is active

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
signingSecret
string
required

The signing secret for the subscription