POST
/
v1
/
actions
/
create
curl --request POST \
  --url https://api.vocode.dev/v1/actions/create \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "config": {
    "phone_number": "<string>"
  },
  "type": "action_transfer_call"
}'
{
  "config": {
    "phone_number": "<string>"
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "action_transfer_call",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
  • Option 1

  • Option 2

  • Option 3

config
object
required
type
enum<string>
required
Available options:
action_transfer_call

Response

200 - application/json
  • Option 1

  • Option 2

  • Option 3

config
object
required
id
string
required
type
enum<string>
required
Available options:
action_transfer_call
user_id
string
required