Voice Agents

Create a scenario set

POST
/v1/agents/voice/simulations/sets

Authorization

personalAccessToken
AuthorizationBearer <token>

Personal Access Token of a Dynamiq user — the only credential accepted by the management API (api.*). Prefix dyn_pat_ (legacy uak_ tokens still authenticate). Send as Authorization: Bearer <token>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/agents/voice/simulations/sets" \  -H "Content-Type: application/json" \  -d '{    "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",    "name": "string",    "scenarios": [      {        "label": "string",        "instructions": "string",        "agent_expectations": "string"      }    ]  }'
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "description": "string",
    "scenario_count": 0,
    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
    "scenarios": [
      {
        "label": "string",
        "instructions": "string",
        "agent_expectations": "string",
        "tags": {
          "property1": "string",
          "property2": "string"
        },
        "userdata": {}
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "bad_request",
    "message": "Bad Request",
    "details": {
      "input": "cannot be blank"
    }
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "Unauthorized"
  }
}