POST
/
v1
/
actions
/
create
cURL
curl --request POST \
  --url https://api.fluents.ai/v1/actions/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "action_transfer_call",
  "label": "Transfer Call",
  "description": "This is a description",
  "config": {},
  "action_trigger": {}
}'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "user_id": "550e8400-e29b-41d4-a716-446655440000",
  "type": "action_transfer_call",
  "label": "Transfer Call",
  "description": "This is a description",
  "config": {},
  "action_trigger": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json
type
enum<string>
required
Available options:
action_transfer_call,
action_end_conversation,
action_dtmf,
action_add_to_conference,
action_trigger_function_call,
action_trigger_phrase_based,
action_set_hold,
action_warm_transfer,
phrase_condition_type_contains
Example:

"action_transfer_call"

config
object
required
label
string
Example:

"Transfer Call"

description
string
Example:

"This is a description"

action_trigger
object

Response

201 - application/json
id
string
required
Example:

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

user_id
string
required
Example:

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

type
enum<string>
required
Available options:
action_transfer_call,
action_end_conversation,
action_dtmf,
action_add_to_conference,
action_trigger_function_call,
action_trigger_phrase_based,
action_set_hold,
action_warm_transfer,
phrase_condition_type_contains
Example:

"action_transfer_call"

config
object
required
label
string
Example:

"Transfer Call"

description
string
Example:

"This is a description"

action_trigger
object