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

Authorizations

Authorization
string
header
required

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

Query Parameters

id
string
required

Body

application/json
type
enum<string>
required

An enumeration.

Available options:
action_end_conversation,
action_dtmf,
action_transfer_call
config
object

Response

200
application/json
Successful Response
id
string
required
user_id
string
required
config
object
required
type
enum<string>
default:action_transfer_call

An enumeration.

Available options:
action_end_conversation,
action_dtmf,
action_transfer_call