Skip to main content
POST
Create a mission test case

Authorizations

Authorization
string
header
required

API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, billing:write, settings:write, platform:read, platform:write, routine_approvals:read, routine_approvals:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.

Path Parameters

id
string<uuid>
required

Mission ID.

Body

application/json

A new test case. A case from a call or a failed run is anonymized: no raw phone numbers or email addresses are stored.

title
string

Required unless source is call or failure.

Required string length: 1 - 120
source
enum<string>
default:manual
Available options:
manual,
owner_answer,
call,
failure
call_id
string<uuid>

Call to build the case from (source call).

run_id
string<uuid>

Failed or paused Mission run to build the case from (source failure).

trigger_payload
object

The sample trigger event ({event, timestamp, data}) or only its data. Defaults to the sample of the Mission's trigger.

expectations
object

Deterministic checks. They run before any judge.

judge_rubric
string | null
Maximum string length: 2000
held_out
boolean

Owner view only. Default: about 30% of cases are held out.

Response

The created case.

data
object
required