← Atlas API & Provisioning Reference

Chapter 36 of 48

TTS Message Sets

Schema

A TTS Message Set contains multiple messages which can be recited to the caller based on their priority.

Type Object

Name Type Description
id String(format:uuid) Desc. id
inserted_at String(format:date-time) An ISO8601 formatted timestamp
name String(1..255) Name of the Message Set
updated_at String(format:date-time) An ISO8601 formatted timestamp

Desc. id

A Universally unique identifier, which identifies the resource

Example

{
  "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
  "inserted_at": "2021-08-13T04:08:44.762841Z",
  "name": "Pre-answer Greeter",
  "updated_at": "2021-08-13T04:08:44.762841Z"
}

API

Create TTS Message Set

POST /api/v1/tts/message_sets HTTP/1.1

Create a new TTS Message Set.

Message Sets are used for configuring the voice and text that a TTS destination will replay.

The same operation is also available as:

POST /api/v1/voip/tts/message_sets HTTP/1.1

Request application/json

POST /api/v1/tts/message_sets HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 81
{
  "data": {
    "name": "Pre-answer Greeter"
  },
  "type": "tts_message_set"
}

Response 201

application/json
HTTP/1.1 201
Content-Type: application/json
Content-Length: 230
{
  "data": {
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "name": "Pre-answer Greeter",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message_set"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Update TTS Message Set

PATCH /api/v1/tts/message_sets/{id} HTTP/1.1

Update an existing Message Set

The same operation is also available as:

PATCH /api/v1/voip/tts/message_sets/{id} HTTP/1.1
PUT /api/v1/tts/message_sets/{id} HTTP/1.1
PUT /api/v1/voip/tts/message_sets/{id} HTTP/1.1

Path Parameters

Name Type Description
id String(format:uuid)! ID

Request application/json

PATCH /api/v1/tts/message_sets/{id} HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 81
{
  "data": {
    "name": "Pre-answer Greeter"
  },
  "type": "tts_message_set"
}

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 230
{
  "data": {
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "name": "Pre-answer Greeter",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message_set"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Delete TTS Message Set

DELETE /api/v1/tts/message_sets/{id} HTTP/1.1

Delete an Message Set.

Note that an Message Set cannot be deleted if it is still associated with any switches or destinations.

The same operation is also available as:

DELETE /api/v1/voip/tts/message_sets/{id} HTTP/1.1

Path Parameters

Name Type Description
id String(format:uuid)! ID

Request

DELETE /api/v1/tts/message_sets/{id} HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 230
{
  "data": {
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "name": "Pre-answer Greeter",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message_set"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

List TTS Message Sets

GET /api/v1/tts/message_sets HTTP/1.1

The same operation is also available as:

GET /api/v1/voip/tts/message_sets HTTP/1.1

Query Parameters

Name Type Description
first Integer Query Desc. first
last Integer Query Desc. last
after String Query Desc. after
before String Query Desc. before

Query Desc. first

The number of items to return starting from the 'after' cursor

Query Desc. last

The number of items to return behind the 'before' cursor

Query Desc. after

The cursor representing the starting point of a 'first' based paging

Query Desc. before

The cursor representing the starting point of a 'last' based paging

Request

GET /api/v1/tts/message_sets HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 477
{
  "count": 1,
  "page_info": {
    "end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
    "has_next_page": true,
    "has_previous_page": false,
    "start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
  },
  "results": [
    {
      "data": {
        "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
        "inserted_at": "2021-08-13T04:08:44.762841Z",
        "name": "Pre-answer Greeter",
        "updated_at": "2021-08-13T04:08:44.762841Z"
      },
      "type": "tts_message_set"
    }
  ]
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Retrieve TTS Message Set by ID

GET /api/v1/tts/message_sets/{id} HTTP/1.1

Lookup a Message Set by ID

The same operation is also available as:

GET /api/v1/voip/tts/message_sets/{id} HTTP/1.1

Path Parameters

Name Type Description
id String(format:uuid)! ID

Request

GET /api/v1/tts/message_sets/{id} HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 230
{
  "data": {
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "name": "Pre-answer Greeter",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message_set"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Reference updated 2026-11-30 · Reconciled with OpenAPI 2026.11.23-p02 · View this chapter as Markdown (for AI assistants)