---
title: "Get Document"
method: GET
path: "/v1/graphs/{graph_id}/documents/{document_id}"
tags: ["Documents"]
---

# Get Document

`GET /v1/graphs/{graph_id}/documents/{document_id}`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/v1/graphs/{graph_id}/documents/{document_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Path parameters

- `graph_id` string, required
- `document_id` string, required

## Response `200`

Successful Response

- DocumentDetailResponse: Full document detail with raw content.
  - `id` string, required
  - `graph_id` string, required
  - `user_id` string, required
  - `title` string, required
  - `content` string, required
  - `tags` string[], nullable
  - `folder` string, nullable
  - `external_id` string, nullable
  - `source_type` string, required
  - `source_provider` string, nullable
  - `sections_indexed` integer, required
  - `file` DocumentFileInfo: The stored file behind a document, when it is one.
    - `file_name` string, required: The file's name as uploaded.
    - `content_type` string, required: The file's media type.
    - `size_bytes` integer, required: The stored file's size.
    - `sha256` string, required: Hex SHA-256 of the stored bytes, taken when the upload completed. A stored file never changes, so this identifies it.
  - `evidence_for` DocumentEvidence[]: The live events that name this document as their evidence (an invoice, a bill, a statement balance), newest first, at most 50. While any are listed, the document cannot be deleted.
    - `event_id` string, required
    - `event_type` string, required
    - `status` string, required
    - `occurred_at` string, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/robosystems/apis/robosystems-api.md) · [All operations](https://skmtc.dev/robosystems/apis/robosystems-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robosystems/apis/robosystems-api/revisions/e661e2d5ca6a?raw)
