---
title: "End Demo Run"
method: POST
path: "/core/demo-runs/{run_id}/end"
tags: ["demos"]
---

# End Demo Run

`POST /core/demo-runs/{run_id}/end`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/demo-runs/{run_id}/end`
- Auth: HTTP bearer

Mark the run completed. Ending an ended run changes nothing.

## Path parameters

- `run_id` string, uuid, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Response `200`

Successful Response

- Run: A run with the ``{config, target}`` snapshot it was started from.
  - `id` string, required
  - `agent_id` string, required
  - `kind` string, required
  - `variant` 'commercial' | 'government', required
  - `status` 'created' | 'running' | 'completed' | 'failed', required
  - `started_at` string, date-time, nullable
  - `ended_at` string, date-time, nullable
  - `dialed_number` string, nullable
  - `caller_id` string, nullable
  - `ivr_status` 'idle' | 'dialing' | 'connected' | 'ended' | 'failed', required
  - `ivr_end_reason` string, nullable
  - `ivr_duration_s` integer, nullable
  - `agent_conversation_id` string, nullable
  - `chat_conversation_id` string, nullable
  - `ivr_summary` object, nullable
  - `agent_summary` object, nullable
  - `created_at` string, date-time, nullable
  - `created_by` string, nullable
  - `config_snapshot` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
