Skip to main content
GET
/
file
/
{uuid}
/
content
获取文件内容
curl --request GET \
  --url https://geekai.co/api/v1/file/{uuid}/content \
  --header 'Authorization: Bearer <token>'
{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending"
}
After the file is successfully uploaded, you can retrieve the file content through the file extraction interface. Note that GeekAI provides asynchronous file loading, so you need to poll the file content extraction interface to obtain the file content until it is retrieved. When polling, you can check the status field in the response data to determine the file extraction status. status=reading indicates that the file is being read, status=done indicates that the file has been read successfully, and the file content can be obtained through the content field value. If status=failed, it means that the file reading failed.

cURL Request Example

curl --location --request GET 'https://geekai.dev/api/v1/file/27f9ab4d-137b-4bb3-bcca-ea28f2f89e95/content' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}'

Authorizations

Authorization
string
header
required

API认证token

Path Parameters

uuid
string<uuid>
required

文件唯一标识符

Response

成功响应

uuid
string<uuid>
required

文件ID

status
enum<string>
required

文件处理状态

Available options:
pending,
reading,
processing,
failed,
done