---
title: "Retrieve all IVRs for account"
method: GET
path: "/v2/partition/{partitionId}/account/{accountId}/ivr"
tags: ["IVR"]
---

# Retrieve all IVRs for account

`GET /v2/partition/{partitionId}/account/{accountId}/ivr`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/ivr`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/ivr/get.ts> (a function with typed inputs; its response is checked against the schema)

Use to retrieve a list of all IVRs for an account

## Path parameters

- `accountId` string, required
- `partitionId` string, required

## Response `200`

Successful operation

- IVRX[]
  - `id` string: The id of the IVR. Automatic primary key.
  - `accountId` string
  - `partitionId` string
  - `name` string, required: Choose a descriptive name for the IVR.
  - `top` string
  - `left` string
  - `fixedPosition` boolean
  - `ivrComponents` IVRComponentX[], required: The list of components that make up the IVR.
    - `id` string, required: The id of the IVR Component. Chosen by the api user but it must be distinct from other IVR components which are under the same IVR. There is no requirement for it to be distinct from unrelated IVR components.
    - `left` string
    - `top` string
    - `name` string: Choose a descriptive name for the IVR component.
    - `type` 'HANGUP' | 'MENU' | 'DIRECTORY' | 'GROUP' | 'INCOMING' | 'SCHEDULE' | 'DTMF' | 'MENU_FAILURE' | 'SCHEDULE_RULE_COMPONENT' | 'USER' | 'LINE_HUNTGROUP' | 'FORWARD', required
  - `ivrComponentMappings` IVRComponentMappingX[], required: The list of connections between IVR components.
    - `fromIvrComponentId` string, required: The id of the IVR Component that is being mapped from. Refers to <a href="#/~schema/IVRComponentX">IVRComponent.id</a><br/><br/> RARELY may also refer to <a href="#/~schema/GROUP">GROUP.timeoutComponentId</a>
    - `toIvrComponentId` string, required: The id of the IVR Component that is being mapped to. Refers to <a href="#/~schema/IVRComponentX">IVRComponent.id</a>

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `404`: Not found

---

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