QamaqQamaq
GET

Get file content

/knowledge/{file_id}/content

Returns the extracted text content of a file.

Parameters

Path Parameters

NameTypeDescription
file_idrequired
string

The file ID

Query Parameters

NameTypeDescription
max_length
integer

Maximum content length to return

Default: 10000

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:string
name:string
content:string

Plain text content

content_type:string

Content type (text, markdown, extracted_text)

truncated:boolean
total_length:integer
}