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"
}
}
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"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The agent ID
AgentPromptResource
The response is of type object
.