Skip to main content
POST
Add an action

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Path Parameters

Body

application/json
type
enum<string>
required

Button and WebSearch actions are configured in the dashboard.

Available options:
Email,
Lead,
ApiCall,
Handover
name
string
required
Maximum string length: 255
Example:

"Capture leads"

description
string
required

When the agent should use this action.

Maximum string length: 2000
metadata
object

Type-specific settings, validated per type exactly as in the dashboard (e.g. Lead: which fields to collect; ApiCall: url, method, headers; Handover: help desk routing). Secret values (keys, tokens, passwords, signatures, auth) and every header value are returned as "[REDACTED]"; URLs come back without their query string and with credentials and token-like path segments masked. Send them back unchanged to keep the stored values. If you change the URL, re-enter every secret value: "[REDACTED]" is rejected with 422.

Response

id
string
required
type
enum<string>
required
Available options:
Email,
Lead,
Button,
ApiCall,
WebSearch,
Handover
name
string
required
description
string
required
isEnabled
boolean
required
metadata
object
required

Type-specific settings, validated per type exactly as in the dashboard (e.g. Lead: which fields to collect; ApiCall: url, method, headers; Handover: help desk routing). Secret values (keys, tokens, passwords, signatures, auth) and every header value are returned as "[REDACTED]"; URLs come back without their query string and with credentials and token-like path segments masked. Send them back unchanged to keep the stored values. If you change the URL, re-enter every secret value: "[REDACTED]" is rejected with 422.

createdAt
string<date-time>
required