GET
Dateiinhalt abrufen
/knowledge/{file_id}/contentGibt den extrahierten Textinhalt einer Datei zurück.
Parameter
Pfadparameter
| Name | Typ | Beschreibung |
|---|---|---|
file_iderforderlich | string | The file ID |
Abfrageparameter
| Name | Typ | Beschreibung |
|---|---|---|
max_length | integer | Maximum content length to return Standard: |
Code-Beispiele
curl -X GET "https://api.qamaq.io/api/v1/knowledge/{file_id}/content" \
-H "Authorization: Bearer qmq_your_api_key"Antworten
200File content
Response Body
{
id:stringname:stringcontent:stringPlain text content
content_type:stringContent type (text, markdown, extracted_text)
truncated:booleantotal_length:integer}