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

Trigger Embedding Bulk

||View as Markdown|
POST
https://api.meshapi.ai/v1/files/embed
POST
/v1/files/embed
$curl -X POST https://api.meshapi.ai/v1/files/embed \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "file_ids": [
> "file_123abc456def7890"
> ]
>}'
1{
2 "results": [
3 {
4 "file_id": "file_123abc456def7890",
5 "embedding_status": "queued",
6 "chunk_count": 12,
7 "error": ""
8 }
9 ]
10}

Manually enqueue embedding jobs for one or more files.

Each file must have upload_status=ready and embedding_status=pending or failed. Returns a per-file result — successes are ‘queued’, failures include an error message.

Was this page helpful?
Previous

Get File Status

Next

Vector Search

Built with

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
file_idslist of stringsRequired
waitbooleanOptionalDefaults to false
metadatamap from strings to anyOptional

Response

Successful Response
resultslist of objects

Errors

422
Unprocessable Entity Error