---
title: "Start Agent Leg"
method: POST
path: "/core/demo-runs/{run_id}/legs/agent"
tags: ["demos"]
---

# Start Agent Leg

`POST /core/demo-runs/{run_id}/legs/agent`

## 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}/legs/agent`
- Auth: HTTP bearer

A web call to the agent's published version, tagged as this run's agent leg.

## 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

- LegOut: What the browser needs to join one leg's room.
  - `side` 'ivr' | 'agent' | 'chat', required
  - `url` string, required
  - `token` string, required
  - `room_name` string, required
  - `identity` string, required
  - `conversation_id` string, nullable

## 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)
