Get chunk

View as MarkdownOpen in Claude
Retrieves one generated chunk by document and chunk IDs. Use it to inspect a known stored passage; use [List chunks](/docs/apis/rest/chunks/list-document-chunks) to discover chunk IDs or [Search documents](/docs/apis/rest/documents/search-documents) when starting from a natural-language query. #### Permissions The API token used to authenticate must have the following scope(s) enabled to make a successful request: _DataSphere_. [Learn more about API scopes](/docs/platform/your-signalwire-api-space).

Authentication

AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ```

Path parameters

documentIdstringRequiredformat: "uuid"
Unique ID of the parent Document.
chunkIdstringRequiredformat: "uuid"
Unique ID of a Chunk.

Response

The request has succeeded.
idstringformat: "uuid"
Unique ID of the chunk.
datasphere_document_idstringformat: "uuid"
Unique ID of the chunk's datasphere document.
project_idstringformat: "uuid"
Unique ID of the project.
statusenum
Status of the chunk.
tagslist of strings
The tags of the document associated with the chunk.
contentstring
Content of the chunk.
created_atdatetime
Chunk Creation Date.
updated_atdatetime
Chunk Update Date.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error