GET
Get file content
/knowledge/{file_id}/contentReturns the extracted text content of a file.
Parameters
Path Parameters
| Name | Type | Description |
|---|---|---|
file_idrequired | string | The file ID |
Query Parameters
| Name | Type | Description |
|---|---|---|
max_length | integer | Maximum content length to return Default: |
Code Examples
curl -X GET "https://api.qamaq.io/api/v1/knowledge/{file_id}/content" \
-H "Authorization: Bearer qmq_your_api_key"Responses
200File content
Response Body
{
id:stringname:stringcontent:stringPlain text content
content_type:stringContent type (text, markdown, extracted_text)
truncated:booleantotal_length:integer}