QamaqQamaq
GET

ファイルコンテンツを取得

/knowledge/{file_id}/content

ファイルの抽出されたテキストコンテンツを返します。

パラメーター

パスパラメーター

名前タイプ説明
file_id必須
string

The file ID

クエリパラメーター

名前タイプ説明
max_length
integer

Maximum content length to return

デフォルト: 10000

コード例

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

Plain text content

content_type:string

Content type (text, markdown, extracted_text)

truncated:boolean
total_length:integer
}