POST
/
apps
/
{app_id}
/
webhooks
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/webhooks \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "events": [
    "record.created"
  ]
}'
{
  "id": "<string>",
  "url": "<string>",
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25",
  "events": [
    "record.created"
  ]
}

Path Parameters

app_id
string
required

Body

url
string
required
events
enum<string>[]
required
Available options:
record.created,
record.running,
record.completed,
record.failed

Response

200 - application/json
id
string
required
url
string
required
created_at
string | null
required
updated_at
string | null
required
events
enum<string>[]
required
Available options:
record.created,
record.running,
record.completed,
record.failed