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

Init Upload

||View as Markdown|
POST
https://api.meshapi.ai/v1/files
POST
/v1/files
$curl -X POST https://api.meshapi.ai/v1/files \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "file_name": "project_proposal.pdf",
> "mime_type": "application/pdf"
>}'
1{
2 "file_id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "signed_url": "https://storage.meshapi.ai/upload/a1b2c3d4-e5f6-7890-ab12-cd34ef567890?signature=abcdef1234567890",
4 "expires_at": "2024-01-15T09:30:00Z"
5}
Was this page helpful?
Previous

Create Embeddings

Next

List Files

Built with

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
file_namestringRequired
mime_typestringRequired
embedbooleanOptionalDefaults to true
metadatamap from strings to anyOptional

Response

Successful Response
file_idstring
signed_urlstring
expires_atdatetime

Errors

422
Unprocessable Entity Error