Get an embedding (chunk) by ID.
GET/api/documents/:docId/embedding/:embeddingId
Retrieves a specific embedding by its document ID and embedding ID. The response includes the chunk text (sysembed_text), the vector (sysembed_vector), the embedding type (sysembed_type), and the location within the source document (sysembed_location — page/paragraph for text, bounding box for images, row/column for spreadsheets, timestamps for video). This is the same data returned by vector search (POST /api/query/embeddings) but for a single known embedding.
Request
Responses
- 200
- 401
- 403
- 404
- 406
Returns the embedding
Not Authorized
Returned by the gateway (HTML body) for malformed embedding IDs such as ../... A caller without access to the document receives 404, not 403.
Document or embedding not found, or the caller has no access to the document.
No representation matches the Accept header. This API carries its version in the media type, so asking for a version it no longer serves — for example application/vnd.hxcs.v0+json — is answered here.