Audio prompts

Audio prompts represent a menu of an Interactive Voice Response (IVR).

Fields

class AudioPrompt
created_at: datetime

The audio prompt’s creation date and time.

description: string

The audio prompt’s description.

id: integer

The audio prompt’s unique ID.

name: string

The audio prompt’s name.

team: integer

The audio prompt’s team.

API

GET /j/audio_prompts

Retrieves the list of audio prompts.

Example request:

GET /j/audio_prompts HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

[
   {
      "created_at": "2016-11-04T19:11:34.985Z",
      "description": "Some description",
      "id": 1,
      "name": "First audio prompt",
      "team": 1
   },
   {
      "created_at": "2016-11-04T19:13:46.246Z",
      "description": "Other description",
      "id": 2,
      "name": "Second audio prompt",
      "team": 1
   }
]
Request Headers:
Query Parameters:
  • team (integer) – An optional team ID.

Response JSON Array of Objects:
  • created_at (datetime) – The audio prompt’s creation date and time.

  • description (string) – The audio prompt’s description.

  • id (integer) – The audio prompt’s unique ID.

  • name (string) – The audio prompt’s name.

  • team (integer) – The audio prompt’s team.

Status Codes:
  • 200 OK – no error

  • 400 Bad Request – for instance a required field is missing

  • 403 Forbidden – you tried to access a forbidden resource, check you provided a valid OAuth token