> For the complete documentation index, see [llms.txt](https://docs.concurrence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concurrence.com/api-reference/readme/platform/runs.md).

# Runs

## List runs (framework + conversation)

> Paginated, newest-first list of runs for the workspace behind the unified \`\`Run\`\` contract. Combines framework runs and conversation runs at read time. Filter by \`\`kind\`\` (conversation / framework), \`\`channel\`\` (voice/sms/whatsapp/email/web/imessage — conversation runs only), \`\`status\`\` (\`\`live\`\` expands to running + paused), \`\`service\_id\`\` (service UUIDs), \`\`source\_conversation\_id\`\` (the conversation a run came from), \`\`entity\_id\`\`, \`\`tag\`\` (\`\`key:value\`\` or \`\`key:\*\`\`), \`\`source\`\` (test / playground / production) and \`\`search\`\` (entity name, caller ID or phone number). Repeated filter values are ORed within each axis; axes combine with AND. Service filtering applies to conversation and live voice runs before pagination. Historical framework runs have no stored service attribution and are excluded when service\_id is set; \`\`tag\`\` and \`\`source\`\` exclude them too. \`\`continuation\_token\`\` is an opaque page cursor.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SearchString":{"type":"string","maxLength":200,"minLength":1},"RunsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Run"},"type":"array","title":"Items"},"has_more":{"type":"boolean","title":"Has More"},"continuation_token":{"title":"Continuation Token"}},"type":"object","required":["items","has_more"],"title":"RunsResponse"},"Run":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"kind":{"type":"string","enum":["conversation","framework"],"title":"Kind"},"status":{"type":"string","enum":["running","paused","dormant","completed","failed","timed_out"],"title":"Status"},"channel":{"anyOf":[{"type":"string","enum":["voice","sms","whatsapp","email","web","imessage"]},{"type":"null"}],"title":"Channel"},"framework":{"anyOf":[{"type":"string","enum":["claude-agent-sdk","openai-agents"]},{"type":"null"}],"title":"Framework"},"entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entity Id"},"service_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Service Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"service_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Name"},"caller_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"turn_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Count"},"completion_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Reason"},"final_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final State"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider","description":"The voice runtime that handled the run, as its session recorded it at start: ``concurrence``\n(also every text run) or ``gpt_realtime``. Null on a run recorded before the platform kept\nit, on a text conversation before its first session starts, and on a framework run. A live\nin-house call reports it before its row exists."},"manifest":{"anyOf":[{"$ref":"#/components/schemas/RunManifest"},{"type":"null"}],"description":"What the run executed with, as its session recorded it at start, or as it last stood after\na mid-call change. Null on a run recorded before the platform kept it, on a text conversation\nbefore its first session starts, on a framework run, and on a live in-house call until it ends."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"What started the run's conversation: ``test`` when a test key or the ``test`` marker did, ``playground``\nwhen the developer console Playground did. Null on an ordinary conversation, on a call (its row carries no\nsource), and on a framework run."},"tags":{"items":{"$ref":"#/components/schemas/RunTag"},"type":"array","title":"Tags","description":"The labels an app put on the run's conversation, ordered by key. Empty on a conversation with none,\non a framework run, and on a live call before its row exists."},"source_call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Call Sid"},"source_conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Conversation Id"},"source_framework_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Framework Run Id"},"takeover":{"$ref":"#/components/schemas/TakeoverEligibility","description":"Channel-neutral takeover eligibility, derived from this run's own fields.\n\nA computed field (not a stored one) so eligibility is derived in ONE place and\ncan never drift across the reader's per-source builders — every ``Run``, however\nconstructed, exposes a consistent ``takeover`` on the wire + in OpenAPI.","readOnly":true}},"type":"object","required":["run_id","workspace_id","kind","status","started_at","takeover"],"title":"Run","description":"One item in the canonical unified Runs read model.\n\n``run_id`` is a dedicated UUID (not an overloaded ``call_sid`` / ``conversation_id``);\nthe originating subsystem's ids are kept as ``source_*`` provenance fields so a\nrun can always be traced back to its channel/framework origin. Conversation runs\ncarry a ``channel`` and no ``framework``; framework runs carry a ``framework`` and\nno ``channel`` — enforced below."},"RunManifest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version","description":"The agent version number the session loaded."},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id"},"context_graph_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version","description":"The context graph version number the session loaded. Null, with ``context_graph_id``, on a run of a direct\nprogram, which loads no graph."},"program_kind":{"anyOf":[{"type":"string","enum":["workflow","direct"]},{"type":"null"}],"title":"Program Kind","description":"What the session ran: ``workflow``, its service's context graph, or ``direct``, its agent version's own\nprompt and tools. Null on a run recorded before programs and on one whose engine failed to load."},"program_digest":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the canonical JSON of the direct program the session ran: its authored prompt as saved and\nits tool specs. Null on a workflow run, which its graph version identifies."},"version_set":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The service version set the session resolved its versions and models through, e.g. ``release``."},"platform_config_fingerprint":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the agent and graph version ids, the LLM model and, when the service pins dynamic\nbehaviors, each pinned set's id and version: one value per config generation."},"service_config_digest":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the canonical JSON (keys sorted, no whitespace, non-ASCII escaped) of the whole service\nconfig the session received: the service, its agent and graph versions and the behaviors its version set\npins. Any edit to that config moves it, where the fingerprint follows only the versions, the model and the\npins, so two runs that record the same digest received the same config. Null when the session loaded none."},"image_sha":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The build the session ran on: the commit the agent-engine image was built from."},"runtime_release_id":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The runtime release of the pod the session ran on."},"llm_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The model that wrote the agent's replies: the engage model, or the realtime model on gpt_realtime."},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature","description":"The sampling temperature the reply requests set. Null where they set none and the model's own\ndefault applies: every voice call, and a text run on a model family that takes none. On a\nreasoning model it rides only the requests that carry tools."},"engage_prompt_template_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the templates the reply prompt renders from. Null on gpt_realtime, whose\ninstructions aren't rendered from them."},"rendered_prompt_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"SHA256 of the opening rendered instructions, without normalization."},"prompt_renderer":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"Renderer that produced the recorded instructions."},"prompt_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"Model identifier submitted with these instructions; aliases are not resolved snapshots."},"navigation_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The model that chose each context-graph transition. Null on gpt_realtime, which doesn't navigate."},"navigation_prompt_template_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the templates each navigation decision renders from. Null on gpt_realtime."},"dynamic_behavior_prompt_template_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the template and fixed text each dynamic behavior decision renders from. Null on\ngpt_realtime, which runs no dynamic behavior, and when the service pins no enabled one."},"decider_kind":{"anyOf":[{"$ref":"#/components/schemas/DeciderKind"},{"type":"null"}],"description":"How the session's region decides: ``decisions``, OpenAI Decisions through the region's gateway.\nNavigation and the reply checks both decide through it."},"stt_provider":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The speech-to-text vendor the call ran on: the one it opened with, or the one it failed over\nto. Null on a text run."},"stt_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"tts_provider":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The vendor that voiced the call's replies. Null on a text run."},"tts_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"tts_language":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The language the call's voice spoke: the one it opened in, or the caller's language once an\nin-house call switched to it. ``multilingual`` on a gpt_realtime call left to answer in the\ncaller's language. Null on a text run."},"emergency_floor_enforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emergency Floor Enforced","description":"Whether the medical-emergency floor acted on what it caught, rather than only counting it."},"effect_shadow":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Effect Shadow","description":"Whether an in-house call also recorded each turn as effects, in shadow. Null off in-house voice."},"cooperative_stop":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cooperative Stop","description":"Whether an in-house call's teardown let its session stop on its own before cancelling it.\nNull off in-house voice."}},"type":"object","title":"RunManifest","description":"The configuration a run executed with: as its session started, and as it stood after\nany change the run made mid-way.\n\nA field is null when the session had nothing to record for it: a text run has no\nspeech models, and a gpt_realtime call whose engine failed to load has no agent or\ngraph version. Nothing here is read back from the service's current configuration."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"DeciderKind":{"type":"string","const":"decisions"},"RunTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"RunTag","description":"One of an app's own labels on a conversation: a key and an optional value (null for a bare label)."},"TakeoverEligibility":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"mode_options":{"items":{"type":"string","enum":["listen","takeover"]},"type":"array","title":"Mode Options","default":[]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"held_by":{"anyOf":[{"$ref":"#/components/schemas/RunHold"},{"type":"null"}],"description":"The operator who holds the run, since when and until when. Left out of the response while no operator does."}},"type":"object","required":["eligible"],"title":"TakeoverEligibility","description":"Whether an operator can take a run over, and how — the channel-neutral signal the\nconsole keys on instead of a per-channel heuristic.\n\n``eligible`` = an operator may take this run over right now. ``mode_options`` = the\ntakeover modes valid for the run's channel (voice exposes ``listen`` + ``takeover``;\nenumerated asynchronous channels expose authored-turn ``takeover`` only).\n``reason`` = a short, human-facing explanation when NOT eligible (e.g.\n``\"run is not live\"``, ``\"channel not yet supported\"``), so the console can\nrender an honest disabled-state tooltip rather than a bare greyed button.\nServer-computed (see ``Run.takeover``) so eligibility rules live in one place and the\nconsole never re-derives them."},"RunHold":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id","description":"The operator who holds the run."},"since":{"type":"string","format":"date-time","title":"Since","description":"When this hold began. A renewal keeps it."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"When the hold ends unless the holder renews it."}},"type":"object","required":["operator_id","since","expires_at"],"title":"RunHold","description":"Who holds a text run, since when, and until when unless it is renewed."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs":{"get":{"tags":["Runs"],"summary":"List runs (framework + conversation)","description":"Paginated, newest-first list of runs for the workspace behind the unified ``Run`` contract. Combines framework runs and conversation runs at read time. Filter by ``kind`` (conversation / framework), ``channel`` (voice/sms/whatsapp/email/web/imessage — conversation runs only), ``status`` (``live`` expands to running + paused), ``service_id`` (service UUIDs), ``source_conversation_id`` (the conversation a run came from), ``entity_id``, ``tag`` (``key:value`` or ``key:*``), ``source`` (test / playground / production) and ``search`` (entity name, caller ID or phone number). Repeated filter values are ORed within each axis; axes combine with AND. Service filtering applies to conversation and live voice runs before pagination. Historical framework runs have no stored service attribution and are excluded when service_id is set; ``tag`` and ``source`` exclude them too. ``continuation_token`` is an opaque page cursor.","operationId":"list_runs_v1__workspace_id__runs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Sort By"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"exclusiveMinimum":0,"default":50,"title":"Limit"}},{"name":"continuation_token","in":"query","required":false,"schema":{"title":"Continuation Token"}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"enum":["live","running","paused","dormant","completed","failed","timed_out"],"type":"string"},"default":[],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"type":"array","items":{"enum":["conversation","framework"],"type":"string"},"default":[],"title":"Kind"}},{"name":"channel","in":"query","required":false,"schema":{"type":"array","items":{"enum":["voice","sms","whatsapp","email","web","imessage"],"type":"string"},"default":[],"title":"Channel"}},{"name":"service_id","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"description":"Filter conversation and live voice runs by up to 100 service IDs. Historical framework runs have no stored service attribution and are excluded. Repeated values are ORed; combines with other filters using AND.","default":[],"title":"Service Id"},"description":"Filter conversation and live voice runs by up to 100 service IDs. Historical framework runs have no stored service attribution and are excluded. Repeated values are ORed; combines with other filters using AND."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SearchString"},{"type":"null"}],"description":"Case-insensitive substring match on a conversation run's entity name, caller ID or phone number, applied before pagination. Framework runs carry none of these and are excluded when search is set. Combines with other filters using AND.","title":"Search"},"description":"Case-insensitive substring match on a conversation run's entity name, caller ID or phone number, applied before pagination. Framework runs carry none of these and are excluded when search is set. Combines with other filters using AND."},{"name":"source_conversation_id","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"description":"Filter by up to 100 conversation IDs, matching each run's ``source_conversation_id``, such as the conversation a Playground session ran. A run with no source conversation (a framework run, or a live call before its conversation is recorded) is excluded. Repeated values are ORed; combines with other filters using AND.","default":[],"title":"Source Conversation Id"},"description":"Filter by up to 100 conversation IDs, matching each run's ``source_conversation_id``, such as the conversation a Playground session ran. A run with no source conversation (a framework run, or a live call before its conversation is recorded) is excluded. Repeated values are ORed; combines with other filters using AND."},{"name":"entity_id","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"description":"Filter conversation and framework runs by up to 100 entity IDs. Live voice runs carry no entity and are excluded. Repeated values are ORed; combines with other filters using AND.","default":[],"title":"Entity Id"},"description":"Filter conversation and framework runs by up to 100 entity IDs. Live voice runs carry no entity and are excluded. Repeated values are ORed; combines with other filters using AND."},{"name":"tag","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":20,"description":"Filter conversation runs by up to 20 tags of at most 321 characters, each ``key:value`` or ``key:*`` (the key at any value, a bare label included). The key ends at the first colon, so a tag whose key contains a colon cannot be filtered. Framework runs and live voice runs carry no tags and are excluded. Repeated values of one key are ORed, different keys are ANDed; combines with other filters using AND.","default":[],"title":"Tag"},"description":"Filter conversation runs by up to 20 tags of at most 321 characters, each ``key:value`` or ``key:*`` (the key at any value, a bare label included). The key ends at the first colon, so a tag whose key contains a colon cannot be filtered. Framework runs and live voice runs carry no tags and are excluded. Repeated values of one key are ORed, different keys are ANDed; combines with other filters using AND."},{"name":"source","in":"query","required":false,"schema":{"type":"array","items":{"enum":["test","playground","production"],"type":"string"},"description":"Filter conversation runs by what started them: ``test`` (a test key), ``playground`` (the developer console Playground) or ``production`` (neither). Framework runs carry no source and are excluded; a live voice run is production. Repeated values are ORed; combines with other filters using AND.","default":[],"title":"Source"},"description":"Filter conversation runs by what started them: ``test`` (a test key), ``playground`` (the developer console Playground) or ``production`` (neither). Framework runs carry no source and are excluded; a live voice run is production. Repeated values are ORed; combines with other filters using AND."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Run counts (framework + conversation)

> Aggregate counts for the workspace's runs behind the unified \`\`Run\`\` contract: \`\`total\`\`, \`\`live\`\` (running + paused), each canonical status, a full \`\`by\_status\`\` map, and \`\`by\_kind\`\` (conversation vs framework). Counts framework and conversation runs together. Optional \`\`kind\`\` / \`\`channel\`\` filters mirror the list; a \`\`channel\`\` filter restricts to conversation runs.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunsSummaryResponse":{"properties":{"total":{"type":"integer","title":"Total"},"live":{"type":"integer","title":"Live"},"running":{"type":"integer","title":"Running"},"paused":{"type":"integer","title":"Paused"},"completed":{"type":"integer","title":"Completed"},"failed":{"type":"integer","title":"Failed"},"timed_out":{"type":"integer","title":"Timed Out"},"dormant":{"type":"integer","title":"Dormant"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"by_kind":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Kind"}},"type":"object","required":["total","live","running","paused","completed","failed","timed_out","dormant","by_status","by_kind"],"title":"RunsSummaryResponse","description":"Aggregate run counts for the Runs page summary strip.\n\nHonest workspace totals the paginated list cannot derive client-side (it only\nholds the loaded page). ``by_status`` carries the full canonical breakdown\n(incl. any status beyond the named convenience fields); ``by_kind`` splits\nframework vs conversation. ``live`` = running + paused. ``dormant`` counts\nopen conversations idle past their channel threshold, which are not live."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/summary":{"get":{"tags":["Runs"],"summary":"Run counts (framework + conversation)","description":"Aggregate counts for the workspace's runs behind the unified ``Run`` contract: ``total``, ``live`` (running + paused), each canonical status, a full ``by_status`` map, and ``by_kind`` (conversation vs framework). Counts framework and conversation runs together. Optional ``kind`` / ``channel`` filters mirror the list; a ``channel`` filter restricts to conversation runs.","operationId":"runs_summary_v1__workspace_id__runs_summary_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"array","items":{"enum":["conversation","framework"],"type":"string"},"title":"Kind"}},{"name":"channel","in":"query","required":false,"schema":{"type":"array","items":{"enum":["voice","sms","whatsapp","email","web","imessage"],"type":"string"},"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get one run (framework or conversation) by run\_id

> Resolve a single run by its channel-neutral \`\`run\_id\`\` and return the canonical \`\`Run\`\` at any status (live, completed, failed, timed out). Looks across framework runs, conversation runs and live voice calls, matched by \`\`run\_id\`\` and scoped to the workspace. Use the returned \`\`kind\`\` / \`\`channel\`\` / \`\`source\_\*\`\` fields to open the channel-appropriate detail (voice call, text conversation, framework trace). 404 if the run does not exist in this workspace.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"Run":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"kind":{"type":"string","enum":["conversation","framework"],"title":"Kind"},"status":{"type":"string","enum":["running","paused","dormant","completed","failed","timed_out"],"title":"Status"},"channel":{"anyOf":[{"type":"string","enum":["voice","sms","whatsapp","email","web","imessage"]},{"type":"null"}],"title":"Channel"},"framework":{"anyOf":[{"type":"string","enum":["claude-agent-sdk","openai-agents"]},{"type":"null"}],"title":"Framework"},"entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entity Id"},"service_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Service Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"service_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Name"},"caller_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"turn_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Count"},"completion_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Reason"},"final_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final State"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider","description":"The voice runtime that handled the run, as its session recorded it at start: ``concurrence``\n(also every text run) or ``gpt_realtime``. Null on a run recorded before the platform kept\nit, on a text conversation before its first session starts, and on a framework run. A live\nin-house call reports it before its row exists."},"manifest":{"anyOf":[{"$ref":"#/components/schemas/RunManifest"},{"type":"null"}],"description":"What the run executed with, as its session recorded it at start, or as it last stood after\na mid-call change. Null on a run recorded before the platform kept it, on a text conversation\nbefore its first session starts, on a framework run, and on a live in-house call until it ends."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"What started the run's conversation: ``test`` when a test key or the ``test`` marker did, ``playground``\nwhen the developer console Playground did. Null on an ordinary conversation, on a call (its row carries no\nsource), and on a framework run."},"tags":{"items":{"$ref":"#/components/schemas/RunTag"},"type":"array","title":"Tags","description":"The labels an app put on the run's conversation, ordered by key. Empty on a conversation with none,\non a framework run, and on a live call before its row exists."},"source_call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Call Sid"},"source_conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Conversation Id"},"source_framework_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Framework Run Id"},"takeover":{"$ref":"#/components/schemas/TakeoverEligibility","description":"Channel-neutral takeover eligibility, derived from this run's own fields.\n\nA computed field (not a stored one) so eligibility is derived in ONE place and\ncan never drift across the reader's per-source builders — every ``Run``, however\nconstructed, exposes a consistent ``takeover`` on the wire + in OpenAPI.","readOnly":true}},"type":"object","required":["run_id","workspace_id","kind","status","started_at","takeover"],"title":"Run","description":"One item in the canonical unified Runs read model.\n\n``run_id`` is a dedicated UUID (not an overloaded ``call_sid`` / ``conversation_id``);\nthe originating subsystem's ids are kept as ``source_*`` provenance fields so a\nrun can always be traced back to its channel/framework origin. Conversation runs\ncarry a ``channel`` and no ``framework``; framework runs carry a ``framework`` and\nno ``channel`` — enforced below."},"RunManifest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version","description":"The agent version number the session loaded."},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id"},"context_graph_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version","description":"The context graph version number the session loaded. Null, with ``context_graph_id``, on a run of a direct\nprogram, which loads no graph."},"program_kind":{"anyOf":[{"type":"string","enum":["workflow","direct"]},{"type":"null"}],"title":"Program Kind","description":"What the session ran: ``workflow``, its service's context graph, or ``direct``, its agent version's own\nprompt and tools. Null on a run recorded before programs and on one whose engine failed to load."},"program_digest":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the canonical JSON of the direct program the session ran: its authored prompt as saved and\nits tool specs. Null on a workflow run, which its graph version identifies."},"version_set":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The service version set the session resolved its versions and models through, e.g. ``release``."},"platform_config_fingerprint":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the agent and graph version ids, the LLM model and, when the service pins dynamic\nbehaviors, each pinned set's id and version: one value per config generation."},"service_config_digest":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the canonical JSON (keys sorted, no whitespace, non-ASCII escaped) of the whole service\nconfig the session received: the service, its agent and graph versions and the behaviors its version set\npins. Any edit to that config moves it, where the fingerprint follows only the versions, the model and the\npins, so two runs that record the same digest received the same config. Null when the session loaded none."},"image_sha":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The build the session ran on: the commit the agent-engine image was built from."},"runtime_release_id":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The runtime release of the pod the session ran on."},"llm_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The model that wrote the agent's replies: the engage model, or the realtime model on gpt_realtime."},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature","description":"The sampling temperature the reply requests set. Null where they set none and the model's own\ndefault applies: every voice call, and a text run on a model family that takes none. On a\nreasoning model it rides only the requests that carry tools."},"engage_prompt_template_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the templates the reply prompt renders from. Null on gpt_realtime, whose\ninstructions aren't rendered from them."},"rendered_prompt_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"SHA256 of the opening rendered instructions, without normalization."},"prompt_renderer":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"Renderer that produced the recorded instructions."},"prompt_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"Model identifier submitted with these instructions; aliases are not resolved snapshots."},"navigation_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The model that chose each context-graph transition. Null on gpt_realtime, which doesn't navigate."},"navigation_prompt_template_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the templates each navigation decision renders from. Null on gpt_realtime."},"dynamic_behavior_prompt_template_hash":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"``sha256:`` over the template and fixed text each dynamic behavior decision renders from. Null on\ngpt_realtime, which runs no dynamic behavior, and when the service pins no enabled one."},"decider_kind":{"anyOf":[{"$ref":"#/components/schemas/DeciderKind"},{"type":"null"}],"description":"How the session's region decides: ``decisions``, OpenAI Decisions through the region's gateway.\nNavigation and the reply checks both decide through it."},"stt_provider":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The speech-to-text vendor the call ran on: the one it opened with, or the one it failed over\nto. Null on a text run."},"stt_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"tts_provider":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The vendor that voiced the call's replies. Null on a text run."},"tts_model":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"tts_language":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}],"description":"The language the call's voice spoke: the one it opened in, or the caller's language once an\nin-house call switched to it. ``multilingual`` on a gpt_realtime call left to answer in the\ncaller's language. Null on a text run."},"emergency_floor_enforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emergency Floor Enforced","description":"Whether the medical-emergency floor acted on what it caught, rather than only counting it."},"effect_shadow":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Effect Shadow","description":"Whether an in-house call also recorded each turn as effects, in shadow. Null off in-house voice."},"cooperative_stop":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cooperative Stop","description":"Whether an in-house call's teardown let its session stop on its own before cancelling it.\nNull off in-house voice."}},"type":"object","title":"RunManifest","description":"The configuration a run executed with: as its session started, and as it stood after\nany change the run made mid-way.\n\nA field is null when the session had nothing to record for it: a text run has no\nspeech models, and a gpt_realtime call whose engine failed to load has no agent or\ngraph version. Nothing here is read back from the service's current configuration."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"DeciderKind":{"type":"string","const":"decisions"},"RunTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"RunTag","description":"One of an app's own labels on a conversation: a key and an optional value (null for a bare label)."},"TakeoverEligibility":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"mode_options":{"items":{"type":"string","enum":["listen","takeover"]},"type":"array","title":"Mode Options","default":[]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"held_by":{"anyOf":[{"$ref":"#/components/schemas/RunHold"},{"type":"null"}],"description":"The operator who holds the run, since when and until when. Left out of the response while no operator does."}},"type":"object","required":["eligible"],"title":"TakeoverEligibility","description":"Whether an operator can take a run over, and how — the channel-neutral signal the\nconsole keys on instead of a per-channel heuristic.\n\n``eligible`` = an operator may take this run over right now. ``mode_options`` = the\ntakeover modes valid for the run's channel (voice exposes ``listen`` + ``takeover``;\nenumerated asynchronous channels expose authored-turn ``takeover`` only).\n``reason`` = a short, human-facing explanation when NOT eligible (e.g.\n``\"run is not live\"``, ``\"channel not yet supported\"``), so the console can\nrender an honest disabled-state tooltip rather than a bare greyed button.\nServer-computed (see ``Run.takeover``) so eligibility rules live in one place and the\nconsole never re-derives them."},"RunHold":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id","description":"The operator who holds the run."},"since":{"type":"string","format":"date-time","title":"Since","description":"When this hold began. A renewal keeps it."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"When the hold ends unless the holder renews it."}},"type":"object","required":["operator_id","since","expires_at"],"title":"RunHold","description":"Who holds a text run, since when, and until when unless it is renewed."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}":{"get":{"tags":["Runs"],"summary":"Get one run (framework or conversation) by run_id","description":"Resolve a single run by its channel-neutral ``run_id`` and return the canonical ``Run`` at any status (live, completed, failed, timed out). Looks across framework runs, conversation runs and live voice calls, matched by ``run_id`` and scoped to the workspace. Use the returned ``kind`` / ``channel`` / ``source_*`` fields to open the channel-appropriate detail (voice call, text conversation, framework trace). 404 if the run does not exist in this workspace.","operationId":"get_run_v1__workspace_id__runs__run_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get a framework run's step-by-step trajectory

> Ordered structural steps (perception / decision / tool / completion) of a FRAMEWORK run, read from the run's durable trace by its correlation id. 404 if the run does not exist in this workspace; 409 if the run is a conversation run (use \`\`/conversations/{id}\`\` for per-turn detail).

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunTrajectoryResponse":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/TrajectoryStep"},"type":"array","title":"Steps"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["steps","truncated"],"title":"RunTrajectoryResponse"},"TrajectoryStep":{"properties":{"seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seq"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"tool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name"},"tool_input_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Input Summary"},"tool_result_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Result Summary"},"tool_succeeded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tool Succeeded"},"decision_from_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision From State"},"decision_to_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision To State"},"effective_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective At"}},"type":"object","title":"TrajectoryStep","description":"One structural step of a framework run's trajectory. Fields are best-effort\n(only those the step actually carries are present), all optional, and free ``str``\nfor the same read-model resilience the ``Run`` descriptive fields use."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/trajectory":{"get":{"tags":["Runs"],"summary":"Get a framework run's step-by-step trajectory","description":"Ordered structural steps (perception / decision / tool / completion) of a FRAMEWORK run, read from the run's durable trace by its correlation id. 404 if the run does not exist in this workspace; 409 if the run is a conversation run (use ``/conversations/{id}`` for per-turn detail).","operationId":"get_run_trajectory_v1__workspace_id__runs__run_id__trajectory_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTrajectoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Send operator guidance to a live run

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Send text guidance to the agent handling a LIVE run, addressed by the channel-neutral \`\`run\_id\`\`. The agent incorporates it into its next response without the operator taking over. Requires \`\`Operator:Update\`\`, held by the \`\`operator\`\`, \`\`admin\`\` and \`\`owner\`\` roles. Bound to the caller's own operator identity (no impersonation). 404 if the run is not a live run in this workspace; 409 if its channel has no live guidance transport yet.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunGuidanceRequest":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id"},"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"}},"type":"object","required":["operator_id","message"],"title":"RunGuidanceRequest","description":"Operator guidance for a live run. `operator_id` is in the body because these routes are not under\n`/operators/{operator_id}`. It must be the caller's own operator identity: the route returns 404 when the\nworkspace has no such operator and 403 when it is someone else's."},"RunGuidanceResponse":{"properties":{"status":{"type":"string","enum":["delivered","queued_no_subscriber","deduplicated","failed","unknown"],"title":"Status","description":"Delivery status"},"run_id":{"type":"string","format":"uuid","title":"Run Id","description":"Run the guidance was sent to"}},"type":"object","required":["status","run_id"],"title":"RunGuidanceResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/guidance":{"post":{"tags":["Runs"],"summary":"Send operator guidance to a live run","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Send text guidance to the agent handling a LIVE run, addressed by the channel-neutral ``run_id``. The agent incorporates it into its next response without the operator taking over. Requires ``Operator:Update``, held by the ``operator``, ``admin`` and ``owner`` roles. Bound to the caller's own operator identity (no impersonation). 404 if the run is not a live run in this workspace; 409 if its channel has no live guidance transport yet.","operationId":"send_run_guidance_v1__workspace_id__runs__run_id__guidance_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunGuidanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunGuidanceResponse"}}}},"404":{"description":"No live run with that id in this workspace, or the ``operator_id`` is not an operator of it."},"409":{"description":"The run's channel has no live guidance yet, or the voice run has no call to guide."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The run could not be looked up, or the voice agent could not be reached."}}}}}}
```

## Take over a live run as operator

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Register the caller's operator identity on a LIVE run and (in \`\`takeover\`\` mode) suspend the agent so the human drives; \`\`listen\`\` mode monitors without driving. Addressed by the channel-neutral \`\`run\_id\`\`. Requires \`\`Operator:Update\`\`, held by the \`\`operator\`\`, \`\`admin\`\` and \`\`owner\`\` roles. Bound to the caller's own operator identity (no impersonation). A text run is held for 90 seconds (\`\`lease\_seconds\`\`) and the hold ends by itself unless the holder renews it with \`\`POST .../takeover/renew\`\` and the \`\`hold\_token\`\` this response returns. The holder taking over again keeps the hold and moves its end. 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet, if the operator has no phone number configured, or if a text conversation ended before the takeover took hold. 409 with \`\`detail.code\`\` \`\`run\_held\`\` if another operator holds a text run: \`\`detail.held\_by\`\` says who, since when and until when, and \`\`detail.operator\_name\`\` names them. \`\`held\_by\`\` is null when the hold names no operator, and a hand back clears it. For voice, Twilio dials the operator's phone and the response carries the resulting conference/participant SIDs.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunTakeoverRequest":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id"},"mode":{"type":"string","enum":["listen","takeover"],"title":"Mode","default":"takeover"}},"type":"object","required":["operator_id"],"title":"RunTakeoverRequest"},"RunTakeoverResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"mode":{"type":"string","enum":["listen","takeover"],"title":"Mode"},"participant_call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Call Sid"},"conference_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conference Sid"},"held_by":{"anyOf":[{"$ref":"#/components/schemas/RunHold"},{"type":"null"}],"description":"On a text run, the hold the caller now has: who, since when and until when unless renewed."},"hold_token":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Hold Token","description":"On a text run, the token that renews this hold. It is opaque: send it back exactly as received."},"lease_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lease Seconds","description":"On a text run, how long a hold lasts after it is taken or renewed."}},"type":"object","required":["run_id","mode"],"title":"RunTakeoverResponse"},"RunHold":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id","description":"The operator who holds the run."},"since":{"type":"string","format":"date-time","title":"Since","description":"When this hold began. A renewal keeps it."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"When the hold ends unless the holder renews it."}},"type":"object","required":["operator_id","since","expires_at"],"title":"RunHold","description":"Who holds a text run, since when, and until when unless it is renewed."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/takeover":{"post":{"tags":["Runs"],"summary":"Take over a live run as operator","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Register the caller's operator identity on a LIVE run and (in ``takeover`` mode) suspend the agent so the human drives; ``listen`` mode monitors without driving. Addressed by the channel-neutral ``run_id``. Requires ``Operator:Update``, held by the ``operator``, ``admin`` and ``owner`` roles. Bound to the caller's own operator identity (no impersonation). A text run is held for 90 seconds (``lease_seconds``) and the hold ends by itself unless the holder renews it with ``POST .../takeover/renew`` and the ``hold_token`` this response returns. The holder taking over again keeps the hold and moves its end. 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet, if the operator has no phone number configured, or if a text conversation ended before the takeover took hold. 409 with ``detail.code`` ``run_held`` if another operator holds a text run: ``detail.held_by`` says who, since when and until when, and ``detail.operator_name`` names them. ``held_by`` is null when the hold names no operator, and a hand back clears it. For voice, Twilio dials the operator's phone and the response carries the resulting conference/participant SIDs.","operationId":"take_over_run_v1__workspace_id__runs__run_id__takeover_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTakeoverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTakeoverResponse"}}}},"404":{"description":"No live run with that id in this workspace, or the ``operator_id`` is not an operator of it."},"409":{"description":"The run is not live for takeover, or another operator holds it (``detail.code`` ``run_held``)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The run could not be looked up, the hold could not be written, or the voice agent could not be reached."},"503":{"description":"The run is busy. Try again."}}}}}}
```

## Hand a taken-over run back to the agent

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Release the caller's operator from a run they took over — the agent resumes. Addressed by \`\`run\_id\`\`. Requires \`\`Operator:Update\`\`, held by the \`\`operator\`\`, \`\`admin\`\` and \`\`owner\`\` roles. Bound to the caller's own operator identity (no impersonation). On a text run, only the operator who holds the run, or a caller with \`\`Operator:Delete\`\`, held by the \`\`admin\`\` and \`\`owner\`\` roles, can hand it back; anyone else gets 403 and the hold stays. Anyone can hand back a hold that has ended, and a hand back on a run nobody holds succeeds and changes nothing. A hand back discards a reply that is still waiting to be sent. 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunHandbackRequest":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id"}},"type":"object","required":["operator_id"],"title":"RunHandbackRequest"},"RunHandbackResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"success":{"type":"boolean","title":"Success"}},"type":"object","required":["run_id","success"],"title":"RunHandbackResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/handback":{"post":{"tags":["Runs"],"summary":"Hand a taken-over run back to the agent","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Release the caller's operator from a run they took over — the agent resumes. Addressed by ``run_id``. Requires ``Operator:Update``, held by the ``operator``, ``admin`` and ``owner`` roles. Bound to the caller's own operator identity (no impersonation). On a text run, only the operator who holds the run, or a caller with ``Operator:Delete``, held by the ``admin`` and ``owner`` roles, can hand it back; anyone else gets 403 and the hold stays. Anyone can hand back a hold that has ended, and a hand back on a run nobody holds succeeds and changes nothing. A hand back discards a reply that is still waiting to be sent. 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet.","operationId":"hand_back_run_v1__workspace_id__runs__run_id__handback_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunHandbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunHandbackResponse"}}}},"403":{"description":"Another operator holds the text run, and the caller may not release it."},"404":{"description":"No live run with that id in this workspace, or the ``operator_id`` is not an operator of it."},"409":{"description":"The run has no conversation or call to hand back."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The run could not be looked up, the hold could not be released, or the voice agent could not be reached or answered without a result."},"503":{"description":"The run is busy. Try again."}}}}}}
```

## Read what became of the reply staged on a run

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Read the state of the last reply staged on a NON-voice run with \`\`POST .../authored-turn\`\`: \`\`none\`\` (nothing was staged), \`\`pending\`\` (it waits to be sent), \`\`consumed\`\` (it was taken to be sent) or \`\`expired\`\` (it ran out of time, or a hand back discarded it). A reply waits up to 2 minutes. Requires \`\`Operator:View\`\`, held by the \`\`viewer\`\`, \`\`operator\`\`, \`\`member\`\`, \`\`admin\`\` and \`\`owner\`\` roles.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunAuthoredTurnStateResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"state":{"type":"string","enum":["none","pending","consumed","expired"],"title":"State","description":"``none``: no reply was staged. ``pending``: it is waiting to be sent. ``consumed``: it was taken to be sent.\n``expired``: it ran out of time, or a hand back discarded it."},"reply_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reply Id"},"operator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Operator Id"},"staged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Staged At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["run_id","state"],"title":"RunAuthoredTurnStateResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/authored-turn":{"get":{"tags":["Runs"],"summary":"Read what became of the reply staged on a run","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Read the state of the last reply staged on a NON-voice run with ``POST .../authored-turn``: ``none`` (nothing was staged), ``pending`` (it waits to be sent), ``consumed`` (it was taken to be sent) or ``expired`` (it ran out of time, or a hand back discarded it). A reply waits up to 2 minutes. Requires ``Operator:View``, held by the ``viewer``, ``operator``, ``member``, ``admin`` and ``owner`` roles.","operationId":"get_run_authored_turn_v1__workspace_id__runs__run_id__authored_turn_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAuthoredTurnStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The state of the reply could not be read. Nothing changed, so read it again."}}}}}}
```

## Author the next turn on a non-voice run under takeover

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Stage an operator-authored reply for a NON-voice run (sms/whatsapp/email/web/imessage) the caller holds. The caller needs a live hold on the run, or the answer is 409 with \`\`detail.code\`\` \`\`no\_hold\`\`. The reply waits up to 2 minutes to be sent, and a hand back discards it. A run has one reply waiting at a time: staging another while one waits is 409 with \`\`detail.code\`\` \`\`reply\_pending\`\` and the waiting \`\`reply\_id\`\`. The reply is handed to the agent before this answers, and the agent sends it as its own message. A 200 means it was handed over, not that it was sent: read what became of it with \`\`GET .../authored-turn\`\`. On a web conversation an external user owns, no agent is started for them: the answer has \`\`waits\_for\_person\`\` true, and the reply goes out only when the person next sends a message or polls, before it expires. When it cannot be handed over the reply is discarded, so that read says \`\`expired\`\`, and the answer says why in \`\`detail.code\`\`: 409 \`\`conversation\_not\_active\`\` (the conversation has ended), \`\`reply\_expired\`\` (the reply ran out of time or the hold ended), \`\`channel\_routing\_unavailable\`\` (the patient has not written recently enough for the platform to reach them on this channel) or \`\`reply\_not\_deliverable\`\`; 502 or 503 \`\`agent\_unreachable\`\` (the reply was not sent and sending it again is safe; 503 means the last attempt never left the platform) or 502 \`\`agent\_rejected\_request\`\` (agent-engine refused the request itself; the reply was not sent and sending it again will not help). 502 \`\`delivery\_unconfirmed\`\` means the reply may have been sent, so check the conversation before sending it again. 502 \`\`conversation\_read\_failed\`\` means the conversation could not be read before anything was staged: nothing was staged or sent, and sending the reply again is safe. Addressed by the channel-neutral \`\`run\_id\`\`. Requires \`\`Operator:Update\`\`, held by the \`\`operator\`\`, \`\`admin\`\` and \`\`owner\`\` roles. Bound to the caller's own operator identity (no impersonation). 404 if the run is not live in this workspace; 409 for voice (voice takeover drives the live audio leg — use the conference, not an authored turn).

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunAuthoredTurnRequest":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id"},"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"}},"type":"object","required":["operator_id","text"],"title":"RunAuthoredTurnRequest"},"RunAuthoredTurnResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"staged":{"type":"boolean","title":"Staged"},"reply_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reply Id","description":"The staged reply. Read its fate with ``GET .../authored-turn``."},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When the staged reply stops waiting to be sent."},"waits_for_person":{"type":"boolean","title":"Waits For Person","description":"True when an external user owns the conversation. No agent is started for them, so the reply is queued and\ngoes out when the person next sends a message or polls. If they do not within ``expires_at`` it expires\nunsent: read ``GET .../authored-turn``.","default":false}},"type":"object","required":["run_id","staged"],"title":"RunAuthoredTurnResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/authored-turn":{"post":{"tags":["Runs"],"summary":"Author the next turn on a non-voice run under takeover","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Stage an operator-authored reply for a NON-voice run (sms/whatsapp/email/web/imessage) the caller holds. The caller needs a live hold on the run, or the answer is 409 with ``detail.code`` ``no_hold``. The reply waits up to 2 minutes to be sent, and a hand back discards it. A run has one reply waiting at a time: staging another while one waits is 409 with ``detail.code`` ``reply_pending`` and the waiting ``reply_id``. The reply is handed to the agent before this answers, and the agent sends it as its own message. A 200 means it was handed over, not that it was sent: read what became of it with ``GET .../authored-turn``. On a web conversation an external user owns, no agent is started for them: the answer has ``waits_for_person`` true, and the reply goes out only when the person next sends a message or polls, before it expires. When it cannot be handed over the reply is discarded, so that read says ``expired``, and the answer says why in ``detail.code``: 409 ``conversation_not_active`` (the conversation has ended), ``reply_expired`` (the reply ran out of time or the hold ended), ``channel_routing_unavailable`` (the patient has not written recently enough for the platform to reach them on this channel) or ``reply_not_deliverable``; 502 or 503 ``agent_unreachable`` (the reply was not sent and sending it again is safe; 503 means the last attempt never left the platform) or 502 ``agent_rejected_request`` (agent-engine refused the request itself; the reply was not sent and sending it again will not help). 502 ``delivery_unconfirmed`` means the reply may have been sent, so check the conversation before sending it again. 502 ``conversation_read_failed`` means the conversation could not be read before anything was staged: nothing was staged or sent, and sending the reply again is safe. Addressed by the channel-neutral ``run_id``. Requires ``Operator:Update``, held by the ``operator``, ``admin`` and ``owner`` roles. Bound to the caller's own operator identity (no impersonation). 404 if the run is not live in this workspace; 409 for voice (voice takeover drives the live audio leg — use the conference, not an authored turn).","operationId":"author_run_turn_v1__workspace_id__runs__run_id__authored_turn_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAuthoredTurnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAuthoredTurnResponse"}}}},"404":{"description":"No live run with that id in this workspace, or the ``operator_id`` is not an operator of it."},"409":{"description":"No hold, a reply already waiting, or a reply that could not be handed to the agent (``detail.code`` ``conversation_not_active``, ``reply_expired``, ``channel_routing_unavailable`` or ``reply_not_deliverable``)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The agent could not be reached (``agent_unreachable``), refused the request itself (``agent_rejected_request``), or its answer was lost (``delivery_unconfirmed``); or the conversation could not be read before anything was staged (``conversation_read_failed``)."},"503":{"description":"The run is busy, or the agent could not be reached (``agent_unreachable``). Nothing was sent, and sending the reply again is safe."}}}}}}
```

## Switch an operator between listen and takeover on a live run

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Toggle the operator between \`\`listen\`\` (monitor) and \`\`takeover\`\` (drive) on a run they have already joined, addressed by the channel-neutral \`\`run\_id\`\`. For voice this mutes/unmutes the operator's conference participant. Requires \`\`Operator:Update\`\`, held by the \`\`operator\`\`, \`\`admin\`\` and \`\`owner\`\` roles. Bound to the caller's own operator identity (no impersonation). 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunSwitchModeRequest":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id"},"participant_call_sid":{"type":"string","maxLength":64,"title":"Participant Call Sid"},"mode":{"type":"string","enum":["listen","takeover"],"title":"Mode"}},"type":"object","required":["operator_id","participant_call_sid","mode"],"title":"RunSwitchModeRequest"},"RunSwitchModeResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"mode":{"type":"string","enum":["listen","takeover"],"title":"Mode"}},"type":"object","required":["run_id","mode"],"title":"RunSwitchModeResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/switch-mode":{"post":{"tags":["Runs"],"summary":"Switch an operator between listen and takeover on a live run","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Toggle the operator between ``listen`` (monitor) and ``takeover`` (drive) on a run they have already joined, addressed by the channel-neutral ``run_id``. For voice this mutes/unmutes the operator's conference participant. Requires ``Operator:Update``, held by the ``operator``, ``admin`` and ``owner`` roles. Bound to the caller's own operator identity (no impersonation). 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet.","operationId":"switch_run_mode_v1__workspace_id__runs__run_id__switch_mode_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunSwitchModeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunSwitchModeResponse"}}}},"404":{"description":"No live run with that id in this workspace, or the ``operator_id`` is not an operator of it."},"409":{"description":"The run is not a voice run, or it has no call to switch."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The run could not be looked up, or the voice agent could not be reached or answered without the mode."}}}}}}
```

## Renew the hold on a text run

> Beta. Available to the workspaces enabled for it; other workspaces get 403. Move the end of the hold the caller took with \`\`POST .../takeover\`\` to 90 seconds from now. Send the \`\`hold\_token\`\` that takeover returned, exactly as received: the match is exact, so a token that was parsed and written back with less precision names no hold. A renewal only extends the hold it names: after a hand back, after the hold ended, or after another operator took the run, it is 409 with \`\`detail.code\`\` \`\`hold\_lost\`\` and the run stays as it is. It never takes a run, so taking over again is the only way to hold a run again. A renewal that succeeds is not written to the audit log; one refused with \`\`hold\_lost\`\` is (\`\`operator.takeover\_renewed\`\` with \`\`result\`\` \`\`failed\`\`). Requires \`\`Operator:Update\`\`, held by the \`\`operator\`\`, \`\`admin\`\` and \`\`owner\`\` roles. Bound to the caller's own operator identity (no impersonation). Addressed by the channel-neutral \`\`run\_id\`\`.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Runs"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RunRenewRequest":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id"},"hold_token":{"type":"string","maxLength":64,"title":"Hold Token","description":"The ``hold_token`` the takeover returned. It is opaque: send it back exactly as received."}},"type":"object","required":["operator_id","hold_token"],"title":"RunRenewRequest"},"RunRenewResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"held_by":{"$ref":"#/components/schemas/RunHold","description":"The hold with its new expiry."},"lease_seconds":{"type":"integer","title":"Lease Seconds","description":"How long the hold lasts from now unless renewed again."}},"type":"object","required":["run_id","held_by","lease_seconds"],"title":"RunRenewResponse"},"RunHold":{"properties":{"operator_id":{"type":"string","format":"uuid","title":"Operator Id","description":"The operator who holds the run."},"since":{"type":"string","format":"date-time","title":"Since","description":"When this hold began. A renewal keeps it."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"When the hold ends unless the holder renews it."}},"type":"object","required":["operator_id","since","expires_at"],"title":"RunHold","description":"Who holds a text run, since when, and until when unless it is renewed."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/runs/{run_id}/takeover/renew":{"post":{"tags":["Runs"],"summary":"Renew the hold on a text run","description":"Beta. Available to the workspaces enabled for it; other workspaces get 403. Move the end of the hold the caller took with ``POST .../takeover`` to 90 seconds from now. Send the ``hold_token`` that takeover returned, exactly as received: the match is exact, so a token that was parsed and written back with less precision names no hold. A renewal only extends the hold it names: after a hand back, after the hold ended, or after another operator took the run, it is 409 with ``detail.code`` ``hold_lost`` and the run stays as it is. It never takes a run, so taking over again is the only way to hold a run again. A renewal that succeeds is not written to the audit log; one refused with ``hold_lost`` is (``operator.takeover_renewed`` with ``result`` ``failed``). Requires ``Operator:Update``, held by the ``operator``, ``admin`` and ``owner`` roles. Bound to the caller's own operator identity (no impersonation). Addressed by the channel-neutral ``run_id``.","operationId":"renew_run_hold_v1__workspace_id__runs__run_id__takeover_renew_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRenewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRenewResponse"}}}},"404":{"description":"The ``operator_id`` is not an operator of this workspace."},"409":{"description":"The hold is gone (``detail.code`` ``hold_lost``)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The hold could not be renewed. Try again before it ends."},"503":{"description":"The run is busy. Try again."}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.concurrence.com/api-reference/readme/platform/runs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
