DeepFellow DOCS

Retrieve text from file without waiting for its conversion

GET
/v1/files/{file_id}/text/async

Return the text or Markdown of the specified file, or 202 while it is still being converted.

Meant to be polled: the first call for a file not converted yet starts its conversion in the background and is answered with 202 at once, as is every call while it runs. Once it is done the call returns what GET /v1/files/{file_id}/text would; if it failed, the next call fails with the conversion's error, and the call after that starts the conversion again. A conversion that has to wait because another process converts the file isn't a failure: calls keep being answered with 202.

Authorization

headerAuthorizationBearer <token>

Path Parameters

file_id*string

The ID of the file to use for this request.

Match^[0-9a-fA-F]{24}$

Query Parameters

image_mode?ImageMode

How images are represented in the output.

Default"none"
Value in"none""descriptions""embedded""referenced"
output_format?FileTextFormat

Output format: plain text or Markdown.

Default"txt"
Value in"txt""md"

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Response Body

Successful Response

response?string
Example Request
curl -X GET 'https://deepfellow-server-host/v1/files/5eb7cf5a86d9755df3a6c593/text/async'
Example Response
"string"

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.