Skip to main content
POST
/
workflows
/
{workflow_id}
/
webhook
Create Webhook
curl --request POST \
  --url https://api.example.com/workflows/{workflow_id}/webhook \
  --header 'Content-Type: application/json' \
  --cookie fastapiusersauth= \
  --data '
{
  "status": "offline",
  "methods": [
    "POST"
  ],
  "entrypoint_ref": "<string>",
  "allowlisted_cidrs": []
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

fastapiusersauth
string
cookie
required

Path Parameters

workflow_id
required

Query Parameters

workspace_id
string<uuid>
required

Body

application/json
status
enum<string>
default:offline
Available options:
online,
offline
methods
enum<string>[]
Available options:
GET,
POST
entrypoint_ref
string | null
allowlisted_cidrs
string[]

Response

Successful Response