← Atlas API & Provisioning Reference

Chapter 37 of 48

TTS Messages

Schema

A TTS Message contains the text 'body' and is associated with a TTS Voice.

Type Object

Name Type Description
body String(1..4096) The text that should be read
id String(format:uuid) Desc. id
inserted_at String(format:date-time) An ISO8601 formatted timestamp
priority Integer Desc. priority
updated_at String(format:date-time) An ISO8601 formatted timestamp

Desc. id

A Universally unique identifier, which identifies the resource

Desc. priority

The order in which messages should be played back, messages with the same priority will be randomized

Example

{
  "body": "Hello, World!",
  "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
  "inserted_at": "2021-08-13T04:08:44.762841Z",
  "priority": 1,
  "updated_at": "2021-08-13T04:08:44.762841Z"
}

API

Create TTS Message

POST /api/v1/tts/message_sets/{message_set_id}/messages HTTP/1.1

Create a new TTS Message.

The same operation is also available as:

POST /api/v1/voip/tts/message_sets/{message_set_id}/messages HTTP/1.1

Path Parameters

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

Request application/json

POST /api/v1/tts/message_sets/{message_set_id}/messages HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 96
{
  "data": {
    "body": "Pre-answer Greeter",
    "priority": 1
  },
  "type": "tts_message"
}

Response 201

application/json
HTTP/1.1 201
Content-Type: application/json
Content-Length: 240
{
  "data": {
    "body": "Hello, World!",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "priority": 1,
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message"
}

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

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

Update an existing TTS Message.

The same operation is also available as:

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

Path Parameters

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

Request application/json

PATCH /api/v1/tts/message_sets/{message_set_id}/messages/{id} HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 96
{
  "data": {
    "body": "Pre-answer Greeter",
    "priority": 1
  },
  "type": "tts_message"
}

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 240
{
  "data": {
    "body": "Hello, World!",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "priority": 1,
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message"
}

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

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

Delete a TTS Message

The same operation is also available as:

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

Path Parameters

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

Request

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

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 240
{
  "data": {
    "body": "Hello, World!",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "priority": 1,
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message"
}

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 Messages from Message Set

GET /api/v1/tts/message_sets/{message_set_id}/messages HTTP/1.1

The same operation is also available as:

GET /api/v1/voip/tts/message_sets/{message_set_id}/messages HTTP/1.1

Path Parameters

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

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/{message_set_id}/messages HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 491
{
  "count": 1,
  "page_info": {
    "end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
    "has_next_page": true,
    "has_previous_page": false,
    "start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
  },
  "results": [
    {
      "data": {
        "body": "Hello, World!",
        "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
        "inserted_at": "2021-08-13T04:08:44.762841Z",
        "priority": 1,
        "updated_at": "2021-08-13T04:08:44.762841Z"
      },
      "type": "tts_message"
    }
  ]
}

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 by ID

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

Lookup a TTS Message by its ID

The same operation is also available as:

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

Path Parameters

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

Request

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

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 240
{
  "data": {
    "body": "Hello, World!",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "priority": 1,
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "tts_message"
}

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)