---
title: "Fetch document info"
method: GET
path: "/documents/{id}"
tags: ["Documents"]
---

# Fetch document info

`GET /documents/{id}`

Retrieve metadata for an uploaded document (name, MIME type, size, purpose). Document IDs are exactly 14 alphanumeric characters.

## Path parameters

- `id` string, required

## Response `200`

Document metadata.

- Document
  - `id` string — Unique document identifier. Example: doc_EsyWjHrfzb59Re. Always 14 alphanumeric characters.
  - `entity` 'document'
  - `name` string — Filename of the uploaded document.
  - `mime_type` 'image/jpg' | 'image/jpeg' | 'image/png' | 'application/pdf' — MIME type of the uploaded file.
  - `size` integer — File size in bytes.
  - `purpose` string — Upload reason. Example: dispute_evidence.
  - `created_at` integer — Unix timestamp of upload.

## Other responses

- `400` — Bad request. Invalid parameters or missing required fields.
- `401` — Authentication failed. Invalid or missing API key credentials.
- `404` — Resource not found.
- `429` — Rate limit exceeded. Implement exponential backoff with jitter before retrying.

---

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