---
title: "Get a document by ID (path-scoped namespace)"
method: GET
path: "/v1/namespaces/{namespace_id}/documents/{document_id}"
tags: ["BYO Documents"]
---

# Get a document by ID (path-scoped namespace)

`GET /v1/namespaces/{namespace_id}/documents/{document_id}`

Fetch a single document by document_id from a namespace named in the PATH — the mirror of POST /v1/namespaces/{namespace_id}/documents/upsert, so directly-upserted (BYO/standalone) documents can be read back on the same URL convention they were written with. Equivalent to GET /v1/documents/{document_id} with the X-Namespace header.

## Path parameters

- `namespace_id` string, required — Namespace name or ID the document lives in.
- `document_id` string, required — The document_id to fetch.

## Query parameters

- `return_vectors` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/mixpeek/apis/mixpeek-api.md) · [All operations](https://skmtc.net/mixpeek/apis/mixpeek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpeek/mixpeek-api/versions/220a3b263fda/schema)
