Skip to main content
POST
/
api
/
v1
/
webhooks
Create Webhook
curl --request POST \
  --url https://{baseurl}/api/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "triggers": [
    "responseCreated"
  ],
  "url": "<string>",
  "name": "<string>",
  "surveyIds": [
    "<string>"
  ]
}
'
{}

Headers

x-api-key
string
required

Body

application/json
triggers
enum<string>[]
required

List of events that trigger this webhook

Available options:
responseCreated,
responseUpdated,
responseFinished
url
string
required

The webhook URL to call when triggers are fired

name
string

Optional name for the webhook

surveyIds
string[]

Optional list of survey IDs to filter webhook calls

Response

200 - application/json

OK

The response is of type object.