---
title: "Create IVR Prompts"
method: POST
path: "/restapi/v1.0/account/{accountId}/ivr-prompts"
tags: ["IVR"]
---

# Create IVR Prompts

`POST /restapi/v1.0/account/{accountId}/ivr-prompts`

## Request

- Base URL: `https://platform.ringcentral.com`
- URL: `https://platform.ringcentral.com/restapi/v1.0/account/{accountId}/ivr-prompts`
- Auth: OAuth 2
  - Authorization code: `https://platform.ringcentral.com/restapi/oauth/authorize`
  - Token URL: `https://platform.ringcentral.com/restapi/oauth/token`
- TypeScript: <https://skmtc.dev/ringcentral/apis/ringcentral-api/docs/restapi/v1.0/account/:accountId/ivr-prompts/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates an IVR prompt.

## Path parameters

- `accountId` string, required

## Request body `multipart/form-data`

- object
  - `attachment` string, binary, required: Audio file that will be used as a prompt. Attachment cannot be empty, only audio files are supported
  - `name` string: Description of file contents.

## Response `200`

OK

- PromptInfo
  - `uri` string, uri: Internal identifier of a prompt
  - `id` string: Link to a prompt metadata
  - `contentType` string: Type of prompt media content
  - `contentUri` string, uri: Link to a prompt media content
  - `filename` string: Name of a prompt

## Other responses

- `400`: General response with **HTTP 400 "Bad request"** status.<br> Reasons: unparsable request, path, query or body parameters are invalid. The error description may contain reference to particular parameter(s) which haven't passed the validation.
- `404`: General response with **HTTP 404 "Not found"** status.<br> Reasons: the entity with given ID (typically specified in a path parameter), is not found or inaccessible
- `500`: General response with **HTTP 500 "Internal Server Error"** status.<br> Reasons: general server-side error.
- `503`: General response with **HTTP 503 "Service not available"** status.<br> Reasons: server cannot process the request because of being overloaded, misconfiguration or other issues.

---

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