Skip to main content
POST
/
webhooks
Create a webhook
curl --request POST \
  --url https://api.pocketsflow.com/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "description": "<string>",
  "active": true
}
'

Authorizations

Authorization
string
header
required

Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)

Body

application/json
url
string<uri>
required

Webhook endpoint URL (must be HTTPS)

events
string[]
required

List of events to subscribe to

description
string

Optional description

active
boolean

Whether webhook is active

Response

201

Webhook created successfully