Skip to main content
POST
/
v1
/
call-agent-scenarios
Create A Call Agent Scenario
curl --request POST \
  --url http://api.stuut.ai/v1/call-agent-scenarios \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "response": "<string>",
  "scenario": "<string>"
}
'
{
  "object": "<string>",
  "response": "<string>",
  "scenario": "<string>",
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "modified_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.

Body

application/json
response
string
required

What the agent should say in response to the scenario.

scenario
string
required

An example scenario of what the end user would say.

Response

Successful response

object
string
required
response
string
required

What the agent should say in response to the scenario.

scenario
string
required

An example scenario of what the end user would say.

id
string
Maximum string length: 32
created_at
string<date-time>
modified_at
string<date-time> | null