Skip to main content
POST
/
v1
/
webhooks
/
create
cURL
curl --request POST \
  --url https://api.fluents.ai/v1/webhooks/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subscriptions": [
    "event_message",
    "event_action"
  ],
  "url": "https://example.com/webhook",
  "method": "POST",
  "label": "My Webhook",
  "description": "This is a description"
}'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "user_id": "550e8400-e29b-41d4-a716-446655440000",
  "subscriptions": [
    "event_message",
    "event_action"
  ],
  "url": "https://example.com/webhook",
  "method": "POST",
  "label": "My Webhook",
  "description": "This is a description"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
subscriptions
object[]
required
Example:
["event_message", "event_action"]
url
string
required
Example:

"https://example.com/webhook"

method
enum<string>
Available options:
GET,
POST
Example:

"POST"

label
string
Example:

"My Webhook"

description
string
Example:

"This is a description"

Response

id
string
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

user_id
string
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

subscriptions
object[]
required
Example:
["event_message", "event_action"]
url
string
required
Example:

"https://example.com/webhook"

method
enum<string>
Available options:
GET,
POST
Example:

"POST"

label
string
Example:

"My Webhook"

description
string
Example:

"This is a description"

I