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

# Start Ivr Leg

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

## 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/ivr`
- Auth: HTTP bearer

A room for the IVR leg. Joining it dispatches the worker in passthrough
mode, which dials the run's phone line into the room.

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