---
title: "Get Document By Id"
method: GET
path: "/indexes/{index}/documents/{document_id}"
tags: ["📃 Managing documents"]
---

# Get Document By Id

`GET /indexes/{index}/documents/{document_id}`

Get a single document from the index with it's given document_id.

## Path parameters

- `index` string, required
- `document_id` integer, required

## Response `200`

A standard response from Lnx, with a simple conformation message.

- BasicResponse
  - `status` integer, required
  - `data` union, required
    - string
    - object

## Other responses

- `400` — The index does not exist or the document does not exit.
- `401` — You lack the permissions to run this operation.
- `422` — This can never happen. (This is a docs issue)

---

[API](https://skmtc.dev/lnx-search/apis/lnx-docs.md) · [All operations](https://skmtc.dev/lnx-search/apis/lnx-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lnx-search/lnx-docs/revisions/3ff2d4054379/schema)
