/developers
Developer docsAtom Files ↗
← API referenceFile intelligence · API access unavailable
API REFERENCE / FILE INTELLIGENCE

GET /v1/files/{file_id}/embeddings

Read version-pinned vector representations for authorized file segments.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
Pathfile_idstringYesStable Atom file ID.
Queryversion_idstringRecommendedPin vectors to an immutable content version.
Querymodel_idstringNoSelect a compatible embedding model.
QuerycursorstringNoOpaque pagination cursor.

Request example

Example request
GET /v1/files/file_789/embeddings?version_id=ver_012
Authorization: Bearer <embedding-scoped token>

HTTP status codes

StatusMeaning
200 OKSuccess response shown below.
400 Bad RequestInvalid version, model, or cursor.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
404 Not FoundFile or version is not visible to this caller.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
file_idstringfile_789
version_idstringver_012
itemsobject[][1 shown]
items[].idstringemb_123
items[].artifact_idstringart_123
items[].source_kindstring (extensible)page_ocr
Examples · extensiblepage_ocrcaptiondocumentframeaudio_segment
items[].page_numberinteger1
items[].model_idstringexample-only-vector-4
items[].dimensionsinteger4
items[].valuesnumber[][4 shown]
items[].created_atstring (date-time)2026-10-20T18:02:10Z
next_cursorstring | nullnull

Response example

Example response
200 OK
Content-Type: application/json

{
  "file_id": "file_789",
  "version_id": "ver_012",
  "items": [
    {
      "id": "emb_123",
      "artifact_id": "art_123",
      "source_kind": "page_ocr",
      "page_number": 1,
      "model_id": "example-only-vector-4",
      "dimensions": 4,
      "values": [
        0.12,
        -0.04,
        0.31,
        0.07
      ],
      "created_at": "2026-10-20T18:02:10Z"
    }
  ],
  "next_cursor": null
}

How it works

Raw vectors need an additional embeddings.read grant; normal file-read permission is insufficient. Results identify model, dimensions, source artifact, and page or time segment. The four-dimensional vector shown is illustrative, not a production model.