---
updatedAt: 2026-03-25T19:41:56.000Z
---

# Get transcripts for an interaction

Retrieves transcript messages for a given interaction or workflow session by its ID.

The `{interactionId}` parameter accepts either an **interactionId** or a **workflow session ID**.

Returns a sanitized subset of message fields appropriate for transcript display. Internal and sensitive fields are excluded from the response.

**Note on the `message` field:** In the GET response, `message` is an array of content objects (e.g. `[{"type":"text","text":"Hello","isTextOnlyEmojis":false}]`). This differs from the POST request body where `message` is a plain string. Be aware of this type difference when building integrations.

**Note on `createdAt` format:** The `createdAt` field in responses uses the format `2026-02-26 16:27:05.124000` (space separator, no `T`, no timezone), rather than standard ISO 8601. Parse accordingly.

**Known issue:** If the `{interactionId}` does not exist, the API currently returns a `500 Internal Server Error` (with `{"message":"Internal Server Error","errors":[]}`) rather than a `404`. This is a known behavior pending a server-side fix — treat a `500` response on this endpoint as a potential "not found" condition.

## Finding Your Customer Subdomain

Your subdomain is found in your Avaya Infinity portal URL and is required for all API calls.

**Example:** If your portal URL is:
```
https://core.avaya1234.ec.avayacloud.com/app/core-config-ui/
```
Your subdomain is: **`avaya1234`**

**To use this API:**
1. **Find your subdomain** from your Infinity portal URL (as shown above)
2. **Get your Bearer token** using your provisioned client credential (see Authentication below)
3. **In the API explorer on the right:**
   - Click on `{customerId}` in the URL field and replace it with your actual subdomain
   - Paste your Bearer token in the Credentials section
   - Provide the `interactionId` path parameter

## Authentication

This endpoint requires a valid OAuth 2.0 Bearer token. To get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `TRANSCRIPT` scope.

Once you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request.

## Working with Interaction IDs and Pagination

The `{interactionId}` path parameter accepts:
- An **interactionId** for standard voice or digital interactions (format: `004d01...`)
- A **workflow session ID** for `WORKFLOW_SESSION` type sessions

Use the `before` and `after` query parameters with a `paginationId` or timestamp value to page through large transcript histories. The `limit` parameter controls how many messages are returned per page.

## Important Notes

- Transcript messages are returned in the order they were created.
- The `message` field in each returned message is an array of content objects, not a plain string.
- The `createdAt` field format is `2026-02-26 16:27:05.124000` — not standard ISO 8601. Parse using a space separator.
- For customer authors, a root-level `displayName` field may be present on the author object in addition to the `details.displayName`.
- Messages posted via the Send Transcript Batch endpoint will have `subType: "transcription"`.
- **Known issue:** A non-existent `interactionId` returns `500` instead of `404`. This is pending a server-side fix.

## DOS Protection & Rate Limiting
- Implement retry logic with exponential backoff for transient errors.
- Use pagination parameters (`limit`, `before`, `after`) to retrieve large transcripts in manageable pages rather than fetching all messages in one call.

## Security Implementation Guidelines
- Never expose your `client_secret` or Bearer token to client-side applications.
- Implement proper error handling — avoid surfacing internal error details to end users.

# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Transcripts API",
    "description": "The Transcripts API enables you to send and retrieve transcript messages associated with interactions or workflow sessions in the Avaya Infinity contact center platform.\n\n## Endpoints\n\n### Send Transcript Batch\n`POST /api/transcripts/v1/transcripts/{id}`\nSubmit a batch of transcript messages for a specific interaction or workflow session.\n[View API Reference →](https://developers.avayacloud.com/avaya-infinity/reference/transcripts-sendBatch)\n\n### Get Transcripts\n`GET /api/transcripts/v1/transcripts/{interactionId}`\nRetrieve all transcript messages for a given interaction or workflow session.\n[View API Reference →](https://developers.avayacloud.com/avaya-infinity/reference/transcripts-get)\n\n## Getting Started\n\n### Find Your Customer Subdomain\n\nYour subdomain is found in your Avaya Infinity portal URL and is required for all API calls.\n\n**Example:** If your portal URL is:\n```\nhttps://core.avaya1234.ec.avayacloud.com/app/core-config-ui/\n```\nYour subdomain is: **`avaya1234`**\n\n### Authentication\n\nTo get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `TRANSCRIPT` scope.\n\nOnce you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request.\n\n### Working with Interactions and Sessions\n\nBoth endpoints accept either an **interactionId** (for standard voice or digital interactions) or a **workflow session ID** (for `WORKFLOW_SESSION` type sessions). Use whichever ID corresponds to the context you are working with.\n\n### Important Notes\n\n- The POST endpoint processes messages sequentially. Partial success is possible — inspect `failed` and `errors` in the response.\n- The `message` field has different types in POST vs GET: a plain string in the request, and an array of content objects in the response.\n- The `createdAt` field in GET responses uses the format `2026-02-26 16:27:05.124000` (space separator, no `T`, no timezone) rather than standard ISO 8601.\n- If the `{interactionId}` provided to the GET endpoint does not exist, the API currently returns a `500` error. This is a known issue pending a server-side fix.",
    "contact": {
      "name": "Avaya Developer Support",
      "url": "https://developers.avayacloud.com/avaya-infinity/"
    },
    "license": {
      "name": "Avaya Software Development Kit (SDK) Software License Terms",
      "url": "http://support.avaya.com/css/P8/documents/101038288"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://core.{customerId}.ec.avayacloud.com/api/transcripts/v1",
      "description": "Production",
      "variables": {
        "customerId": {
          "description": "Your organization subdomain identifier (e.g., avaya1234)",
          "default": "avaya1234"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Transcripts",
      "description": "Endpoints for creating and retrieving transcript messages"
    }
  ],
  "paths": {
    "/transcripts/{interactionId}": {
      "get": {
        "tags": [
          "Transcripts"
        ],
        "summary": "Get transcripts for an interaction",
        "operationId": "transcripts.get",
        "security": [
          {
            "Bearer": []
          }
        ],
        "description": "Retrieves transcript messages for a given interaction or workflow session by its ID.\n\nThe `{interactionId}` parameter accepts either an **interactionId** or a **workflow session ID**.\n\nReturns a sanitized subset of message fields appropriate for transcript display. Internal and sensitive fields are excluded from the response.\n\n**Note on the `message` field:** In the GET response, `message` is an array of content objects (e.g. `[{\"type\":\"text\",\"text\":\"Hello\",\"isTextOnlyEmojis\":false}]`). This differs from the POST request body where `message` is a plain string. Be aware of this type difference when building integrations.\n\n**Note on `createdAt` format:** The `createdAt` field in responses uses the format `2026-02-26 16:27:05.124000` (space separator, no `T`, no timezone), rather than standard ISO 8601. Parse accordingly.\n\n**Known issue:** If the `{interactionId}` does not exist, the API currently returns a `500 Internal Server Error` (with `{\"message\":\"Internal Server Error\",\"errors\":[]}`) rather than a `404`. This is a known behavior pending a server-side fix — treat a `500` response on this endpoint as a potential \"not found\" condition.\n\n## Finding Your Customer Subdomain\n\nYour subdomain is found in your Avaya Infinity portal URL and is required for all API calls.\n\n**Example:** If your portal URL is:\n```\nhttps://core.avaya1234.ec.avayacloud.com/app/core-config-ui/\n```\nYour subdomain is: **`avaya1234`**\n\n**To use this API:**\n1. **Find your subdomain** from your Infinity portal URL (as shown above)\n2. **Get your Bearer token** using your provisioned client credential (see Authentication below)\n3. **In the API explorer on the right:**\n   - Click on `{customerId}` in the URL field and replace it with your actual subdomain\n   - Paste your Bearer token in the Credentials section\n   - Provide the `interactionId` path parameter\n\n## Authentication\n\nThis endpoint requires a valid OAuth 2.0 Bearer token. To get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `TRANSCRIPT` scope.\n\nOnce you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request.\n\n## Working with Interaction IDs and Pagination\n\nThe `{interactionId}` path parameter accepts:\n- An **interactionId** for standard voice or digital interactions (format: `004d01...`)\n- A **workflow session ID** for `WORKFLOW_SESSION` type sessions\n\nUse the `before` and `after` query parameters with a `paginationId` or timestamp value to page through large transcript histories. The `limit` parameter controls how many messages are returned per page.\n\n## Important Notes\n\n- Transcript messages are returned in the order they were created.\n- The `message` field in each returned message is an array of content objects, not a plain string.\n- The `createdAt` field format is `2026-02-26 16:27:05.124000` — not standard ISO 8601. Parse using a space separator.\n- For customer authors, a root-level `displayName` field may be present on the author object in addition to the `details.displayName`.\n- Messages posted via the Send Transcript Batch endpoint will have `subType: \"transcription\"`.\n- **Known issue:** A non-existent `interactionId` returns `500` instead of `404`. This is pending a server-side fix.\n\n## DOS Protection & Rate Limiting\n- Implement retry logic with exponential backoff for transient errors.\n- Use pagination parameters (`limit`, `before`, `after`) to retrieve large transcripts in manageable pages rather than fetching all messages in one call.\n\n## Security Implementation Guidelines\n- Never expose your `client_secret` or Bearer token to client-side applications.\n- Implement proper error handling — avoid surfacing internal error details to end users.",
        "parameters": [
          {
            "name": "interactionId",
            "in": "path",
            "description": "The interaction ID or workflow session ID whose transcripts should be retrieved. Accepts both interaction IDs and `WORKFLOW_SESSION` IDs.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "004d01000069d6b91753dcd4c0"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of messages to return per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            }
          },
          {
            "name": "before",
            "in": "query",
            "description": "Return messages created before this pagination cursor (`paginationId` or timestamp). Used for backward pagination through results.",
            "required": false,
            "schema": {
              "type": "string",
              "example": "pag-001"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Return messages created after this pagination cursor (`paginationId` or timestamp). Used for forward pagination through results.",
            "required": false,
            "schema": {
              "type": "string",
              "example": "pag-001"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Filter messages by message type (e.g. `message`, `event`).",
            "required": false,
            "schema": {
              "type": "string",
              "example": "message"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK — returns transcript messages for the interaction.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTranscriptsResponse"
                },
                "examples": {
                  "withMessages": {
                    "summary": "Interaction with messages",
                    "value": {
                      "messages": [
                        {
                          "id": "049d011029452f5a95fa42e9a7",
                          "channel": "004d01000069d6b91753dcd4c0",
                          "direction": "out",
                          "type": "message",
                          "subType": null,
                          "paginationId": "pag-001",
                          "author": {
                            "type": "user",
                            "details": {
                              "id": "0020005ca02e4654dfde78",
                              "displayName": "Agent Smith",
                              "email": "agent@example.com",
                              "title": "Support Agent"
                            }
                          },
                          "message": [
                            {
                              "type": "text",
                              "text": "Hello, how can I help you today?",
                              "isTextOnlyEmojis": false
                            }
                          ],
                          "languageCode": "en-US",
                          "createdAt": "2026-02-26 10:30:00.000000"
                        },
                        {
                          "id": "049d0110290930ad042dc96ef6",
                          "channel": "004d01000069d6b91753dcd4c0",
                          "direction": "in",
                          "type": "message",
                          "subType": "transcription",
                          "paginationId": "pag-002",
                          "author": {
                            "type": "customer",
                            "displayName": "John Doe",
                            "details": {
                              "id": "cust-12345",
                              "displayName": "John Doe",
                              "email": null,
                              "title": null
                            }
                          },
                          "message": [
                            {
                              "type": "text",
                              "text": "I need help with my account.",
                              "isTextOnlyEmojis": false
                            }
                          ],
                          "languageCode": "en-US",
                          "createdAt": "2026-02-26 10:30:15.000000"
                        }
                      ]
                    }
                  },
                  "emptyTranscript": {
                    "summary": "No messages found",
                    "value": {
                      "messages": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — missing or invalid Bearer token. Note: At the gateway level, missing authentication may produce a `302` redirect rather than a JSON `401` response. If your client receives an unexpected redirect, check that your `Authorization` header is present and correctly formatted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "message": "Unauthorized"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error. **Known issue:** When the `{interactionId}` does not exist, the API currently returns `500` with `{\"message\":\"Internal Server Error\",\"errors\":[]}` rather than a `404`. Treat this response as a potential \"not found\" condition when the interaction ID has not been verified to exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "message": "Internal Server Error",
                  "errors": []
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "To use this API, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `TRANSCRIPT` scope.\n\nOnce you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request."
      }
    },
    "schemas": {
      "MessageContentItem": {
        "title": "MessageContentItem",
        "type": "object",
        "description": "A single content component within a message as returned by the GET endpoint.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The content type of this component (e.g. `text`).",
            "example": "text"
          },
          "text": {
            "type": "string",
            "description": "The text content of this component.",
            "example": "Hello, how can I help you today?"
          },
          "isTextOnlyEmojis": {
            "type": "boolean",
            "description": "Indicates whether the text content consists entirely of emoji characters.",
            "example": false
          }
        }
      },
      "TranscriptMessageAuthorDetails": {
        "title": "TranscriptMessageAuthorDetails",
        "type": "object",
        "description": "Detailed information about the message author, as returned in the GET response.",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "description": "The author's unique identifier.",
            "example": "0020005ca02e4654dfde78"
          },
          "displayName": {
            "type": "string",
            "nullable": true,
            "description": "The author's display name.",
            "example": "Agent Smith"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "description": "The author's email address.",
            "example": "agent@example.com"
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "The author's title or role.",
            "example": "Support Agent"
          }
        }
      },
      "TranscriptMessageAuthor": {
        "title": "TranscriptMessageAuthor",
        "type": "object",
        "description": "Author information attached to a retrieved transcript message in the GET response.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The role of the author. In GET responses, this may include `email` or `phoneNumber` in addition to `user` and `customer`.",
            "enum": [
              "user",
              "customer",
              "email",
              "phoneNumber"
            ],
            "example": "user"
          },
          "displayName": {
            "type": "string",
            "nullable": true,
            "description": "Root-level display name of the author. Present on customer author objects — may appear outside the `details` object.",
            "example": "John Doe"
          },
          "details": {
            "$ref": "#/components/schemas/TranscriptMessageAuthorDetails"
          }
        }
      },
      "TranscriptMessage": {
        "title": "TranscriptMessage",
        "type": "object",
        "description": "A transcript message returned by the GET endpoint. Contains a sanitized subset of channel message fields — internal and sensitive fields are excluded.\n\nNote that the `message` field here is an array of content objects, not a plain string. This differs from the POST request body where `message` is a string.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the channel message.",
            "example": "049d011029452f5a95fa42e9a7"
          },
          "channel": {
            "type": "string",
            "description": "The channel (interaction) ID this message belongs to.",
            "example": "004d01000069d6b91753dcd4c0"
          },
          "author": {
            "$ref": "#/components/schemas/TranscriptMessageAuthor"
          },
          "type": {
            "type": "string",
            "description": "The message type (e.g. `message`, `event`).",
            "example": "message"
          },
          "subType": {
            "type": "string",
            "nullable": true,
            "description": "Optional sub-type of the message. Messages posted via the Send Transcript Batch endpoint will have `subType` set to `\"transcription\"`.",
            "example": "transcription"
          },
          "direction": {
            "type": "string",
            "description": "Message direction — `in` (inbound from customer) or `out` (outbound from agent or bot).",
            "enum": [
              "in",
              "out"
            ],
            "example": "out"
          },
          "paginationId": {
            "type": "string",
            "description": "Opaque cursor value used to paginate through messages using the `before` or `after` query parameters.",
            "example": "pag-001"
          },
          "message": {
            "type": "array",
            "description": "The message content represented as an array of content components. Each item contains a `type`, `text`, and `isTextOnlyEmojis` field.",
            "items": {
              "$ref": "#/components/schemas/MessageContentItem"
            }
          },
          "languageCode": {
            "type": "string",
            "description": "BCP-47 language code of the message.",
            "example": "en-US"
          },
          "createdAt": {
            "type": "string",
            "description": "Timestamp of when the message was created. **Note:** The format returned is `2026-02-26 16:27:05.124000` (space separator, no `T`, no timezone) rather than standard ISO 8601. Parse using a space as the date-time separator.",
            "example": "2026-02-26 16:27:05.124000"
          }
        }
      },
      "GetTranscriptsResponse": {
        "title": "GetTranscriptsResponse",
        "type": "object",
        "description": "Response containing transcript messages for an interaction.",
        "properties": {
          "messages": {
            "type": "array",
            "description": "Array of transcript messages for the interaction. Returns an empty array if no messages exist.",
            "items": {
              "$ref": "#/components/schemas/TranscriptMessage"
            }
          }
        }
      },
      "ErrorResponse": {
        "title": "ErrorResponse",
        "type": "object",
        "description": "Standard error response.",
        "properties": {
          "message": {
            "type": "string",
            "description": "Human-readable error message.",
            "example": "Not found"
          },
          "error": {
            "type": "string",
            "description": "Error identifier or short description.",
            "example": "id parameter is required (interactionId or workflow session id)"
          },
          "errors": {
            "type": "array",
            "description": "Additional error detail array. May be empty.",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}
````