Agent Document AccessList document tag source chunksget

List document tag source chunks

Returns the extracted source text chunks associated with the latest answer for a document tag, including page and offset metadata for agent citations.

curl -X GET "https://public-api.textmine.com/v3/documents/123/tags/123/chunks" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)"
{
  "document_id": 123,
  "tag_id": 123,
  "answer": "example_string",
  "chunks": [
    {
      "text": "example_string",
      "page_number": 25,
      "start_offset": 42,
      "end_offset": 42,
      "score": 3.14,
      "validated": true
    }
  ]
}
GET
/v3/documents/{documentId}/tags/{tagId}/chunks
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (TextMine tm_ API key)
Bearer Tokenstring
Required

Bearer token (TextMine tm_ API key) - just enter the token, "Bearer" prefix will be added automatically

path
documentIdinteger
Required

Document ID

Format: int64
path
tagIdinteger
Required

Tag ID

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (TextMine tm_ API key). Authentication token required.

Path Parameters

Responses

document_idinteger
tag_idinteger
answerstring
chunksarray