For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocsAPI ReferenceSDKs
DocsAPI ReferenceSDKs
  • Overview
    • API reference
  • Mesh API
      • POSTInit Upload
      • GETList Files
      • GETGet File Status
      • POSTTrigger Embedding Bulk
      • POSTVector Search
LogoLogo
Mesh APIFiles & RAG

Get File Status

||View as Markdown|
GET
https://api.meshapi.ai/v1/files/:file_id
GET
/v1/files/:file_id
$curl https://api.meshapi.ai/v1/files/file_id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "file_id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "upload_status": "completed",
4 "file_name": "project_report.pdf",
5 "file_type": "document",
6 "mime_type": "application/pdf",
7 "size_bytes": 245760,
8 "asset_url": "https://cdn.meshapi.ai/assets/a1b2c3d4-project_report.pdf",
9 "signed_url": "https://cdn.meshapi.ai/signed/a1b2c3d4-project_report.pdf?signature=abc123xyz",
10 "signed_url_expires_at": "2024-01-15T09:30:00Z",
11 "embedding_status": "processed",
12 "created_at": "2024-01-10T14:22:00Z",
13 "updated_at": "2024-01-14T16:45:00Z"
14}
Was this page helpful?
Previous

List Files

Next

Trigger Embedding Bulk

Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

file_idstringRequired

Response

Successful Response
file_idstring
upload_statusstring
file_namestring
file_typestring
mime_typestring
size_bytesinteger or null
asset_urlstring or null
signed_urlstring or null
signed_url_expires_atdatetime or null
embedding_statusstring
created_atdatetime
updated_atdatetime

Errors

422
Unprocessable Entity Error