---
title: "Play file"
method: POST
path: "/calls/1/dialogs/{dialogId}/play"
tags: ["channels", "voice", "calls", "dialog-calls", "dialog-operations"]
---

# Play file

`POST /calls/1/dialogs/{dialogId}/play`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/calls/1/dialogs/{dialogId}/play`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`

Play an audio file on a dialog.

## Path parameters

- `dialogId` string, required

## Request body

- 14b5f31f4f292db4a32c4e61928f9a47f8ff4c0a1c06a38af2c29ef9ca05095dDialogPlayRequest
  - `loopCount` integer: Number of times the file will be played.
  - `content` 4527871876f1b326359cd9e5dcf777f0ecc3c5fde89b1e88f0c154b298b67611PublicPlayContent, required: Audio content to play. It can either be previously uploaded file or a file from a URL.
    - `type` 'FILE' | 'URL' | 'RECORDING' | 'TEXT' | 'TTY'

## Response `200`

Success

- 4527871876f1b326359cd9e5dcf777f0ecc3c5fde89b1e88f0c154b298b67611ActionResponse
  - `status` 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED': Action status.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
