GET
ファイルコンテンツを取得
/knowledge/{file_id}/contentファイルの抽出されたテキストコンテンツを返します。
パラメーター
パスパラメーター
| 名前 | タイプ | 説明 |
|---|---|---|
file_id必須 | string | The file ID |
クエリパラメーター
| 名前 | タイプ | 説明 |
|---|---|---|
max_length | integer | Maximum content length to return デフォルト: |
コード例
curl -X GET "https://api.qamaq.io/api/v1/knowledge/{file_id}/content" \
-H "Authorization: Bearer qmq_your_api_key"レスポンス
200File content
Response Body
{
id:stringname:stringcontent:stringPlain text content
content_type:stringContent type (text, markdown, extracted_text)
truncated:booleantotal_length:integer}