---
title: "An item’s text, as it was read out"
method: GET
path: "/workspaces/{id}/content/{itemId}/text"
tags: ["content"]
---

# An item’s text, as it was read out

`GET /workspaces/{id}/content/{itemId}/text`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces/{id}/content/{itemId}/text`
- Auth: HTTP bearer

Its current version’s, or one named. The chunks joined with nothing are the whole text; `starts` is where each begins in it, in characters as Postgres counts them (code points).

## Path parameters

- `id` string, uuid, required
- `itemId` string, uuid, required

## Query parameters

- `version` string, uuid: A version. Absent: the current one.

## Response `200`

Its text, in order.

- ContentText
  - `versionId` string, uuid, nullable, required
  - `readStatus` 'waiting' | 'reading' | 'read' | 'no_text' | 'failed' | 'not_read' | 'null', nullable, required
  - `textChars` integer, nullable, required
  - `chunks` string[], required
  - `starts` integer[], required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `404`: No such item, or no such version of it.

---

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