GET
Obtenir le contenu d'un fichier
/knowledge/{file_id}/contentRenvoie le contenu textuel extrait d'un fichier.
Paramètres
Paramètres de chemin
| Nom | Type | Description |
|---|---|---|
file_idrequis | string | The file ID |
Paramètres de requête
| Nom | Type | Description |
|---|---|---|
max_length | integer | Maximum content length to return Par défaut: |
Exemples de code
curl -X GET "https://api.qamaq.io/api/v1/knowledge/{file_id}/content" \
-H "Authorization: Bearer qmq_your_api_key"Réponses
200File content
Response Body
{
id:stringname:stringcontent:stringPlain text content
content_type:stringContent type (text, markdown, extracted_text)
truncated:booleantotal_length:integer}