Skip to main content
POST
Run evaluators in text / SMS / chat mode

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

Schema for the run_scenarios_text endpoint, which runs scenarios in text mode (SMS, chat, or agent-hosted websocket).

agent_id
integer

ID of the agent to run evaluators for

assistant_id
string
write-only

Alternative to agent ID - the assistant ID to use for this scenario Example: "asst_1234567890"

name
string

Label text for result

scenarios
integer[]

List of evaluator IDs to run. Either scenarios, tags, or folder_path must be provided. Example: [11, 22, 33]

To run evaluators by tag or folder, use the tags or folder_path fields instead.

tags
string[]

List of tags to filter evaluators to run. Either evaluators or tags must be provided. Example: ["tag1", "tag2", "tag3"]

folder_path
string

Dot-separated folder path to select evaluators from (e.g. "Sales.Inbound"). Mutually exclusive with scenarios and tags. Requires project_id.

project_id
integer

Project ID. Required when using folder_path (or when passing a folder path string via scenarios). Example: 1376

frequency
integer
default:1

The number of times each evaluator will run Example: 1

Required range: x >= 1
websocket_url
string

If provided, the simulated caller connects to this websocket URL instead of using the agent's configured text/SMS gateway. Use for agents that expose a websocket endpoint for text testing. Bypasses the normal agent.can_run_as_text() check.

websocket_headers
object

Headers to send on the websocket connection for this run. Merged over the agent's configured websocket_headers — keys provided here win. System X-VOCERA-* headers cannot be overridden.

personality_ids
integer[] | null

List of personality IDs to override for this run. If not provided, uses the scenario's default personality.

test_profile_ids
integer[] | null

List of test profile IDs to override for this run. If not provided, uses the scenario's default test profile.

agent_number
string

Override the phone number from which the agent under test receives the call during outbound runs. This allows overriding the default agent contact number for testing purposes. Example: "+1234567890"

outbound_phone_number
string

Override the phone number to use for outbound calls. Example: "+1234567890"

concurrency_limit
integer

Cap on the number of evaluator runs executed in parallel. Default: unbounded (subject to your provider's rate limits). Use this to avoid hitting provider rate limits on large frequency or folder runs. Example: 5

Required range: x >= 1
mock_tool_names
string[]

Names of mock tools to activate for this run. Cekura swaps those tools' URLs to mock endpoints while the run is active and restores the originals when it finishes. Omit (or send null) to mock every tool configured on the agent; send an empty list to mock none so every tool keeps its original endpoint. Example: ["get_appointments", "cancel_booking"]

Response

id
integer

ID of the result

agent
integer

ID of the agent

status
enum<string>

Status of the result

Available options:
pending,
running,
completed,
failed
run_as_text
boolean

Whether the scenario ran as text or not

Example:

false

runs
object[]
Examples:
created_at
string<date-time>
Example:

"2025-02-25T21:00:01.990052Z"