POST
/
v1
/
voice
/
agents
/
{agent}
/
prompts
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/voice/agents/{agent}/prompts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "welcome_message": "<string>",
  "prompt": "<string>",
  "voice_id": "<string>",
  "voice_name": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "agent_id": "<string>",
    "welcome_message": "<string>",
    "prompt": "<string>",
    "voice_id": "<string>",
    "voice_name": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent
string<uuid>
required

The agent ID

Body

application/json

Response

201
application/json

AgentPromptResource

The response is of type object.