DeepFellow DOCS

Retrieve file

GET
/v1/files/{file_id}

Return information about a specific file.

Authorization

headerAuthorizationBearer <token>

Path Parameters

file_id*string

The ID of the file to use for this request.

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

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

application/json
  1. response

The File object represents a document that has been uploaded.

id*string

The file identifier, which can be referenced in the API endpoints.

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

The project identifier file belongs to.

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

The object type, which is always file.

Default"file"
Value in"file""list"
bytes?|

The size of the file, in bytes.

Default0
filename*string

The name of the file.

purpose?Purpose

The intended purpose of the file.

Default"assistants"
Value in"assistants""assistants_output""batch""batch_output""fine-tune""fine-tune-results""vision""user_data""evals"
created_at?integer

The Unix timestamp (in seconds) for when the file was created.

expires_at?integer

The Unix timestamp (in seconds) for when the file will expire.

graph_ingestion_status?|

Status of the file's most recent graph-ingestion job, or null if never ingested.

graph_ingestion_job_id?|

ID of the graph-ingestion job that last wrote graph_ingestion_status.

extracted_metadata?|

Metadata fields extracted via the metadata expansion pipeline, keyed by field name.

summary?|

Summary generated via the document summarization pipeline.

content_type?|

The file's content type, taken from the upload's Content-Type header or guessed from the filename.

summary_provenance?|

How summary was produced: model, options, job, time, and whether the document was truncated.

Example Request
curl -X GET 'https://deepfellow-server-host/v1/files/5eb7cf5a86d9755df3a6c593'
Example Response
{  "id": "5eb7cf5a86d9755df3a6c593",  "project_id": "5eb7cf5a86d9755df3a6c593",  "object": "file",  "bytes": 0,  "filename": "string",  "purpose": "assistants",  "created_at": 0,  "expires_at": 0,  "graph_ingestion_status": "pending",  "graph_ingestion_job_id": "5eb7cf5a86d9755df3a6c593",  "extracted_metadata": {    "property1": "string",    "property2": "string"  },  "summary": "string",  "content_type": "string",  "summary_provenance": {    "model": "string",    "options": {      "max_length": 200,      "style": "neutral",      "language": "string"    },    "job_id": "5eb7cf5a86d9755df3a6c593",    "created_at": 0,    "truncated": false  }}

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.