Appearance
Get a document
GET /api/v1/documents/{id}
Needs the read permission.
| Permission | read |
| MCP tool | get_document |
Request
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | — |
Responses
| Status | Meaning |
|---|---|
200 | The document. |
401 | No key, or a key that is unknown, expired or revoked, or whose creator is no longer an owner or admin. |
403 | The key lacks the permission, or it is an API key and the workspace isn't on Teams & Platform. |
404 | Not found in the key's workspace (a key works only in the workspace it was made in; get_workspace says which). |
429 | More than 120 calls a minute through this key, more than 2000 from one network address (for IPv6, its /56 block) across all keys, or a limit on sending reached: the key's daily sends, the plan's or a recipient's daily requests, or the workspace's waiting approvals. |
Errors share one shape, { "message": "…" }: see Errors and rate limits.
200 body
| Field | Type | Description |
|---|---|---|
id | string (uuid) | — |
title | string | — |
source_type | string | — |
status | string | — |
draft_revision | integer | — |
fill_ins | array of objects | — |
fill_ins[].key | string | — |
fill_ins[].label | string | — |
fill_ins[].value | string or null | — |
team_access | string | — |
created_at | string (date-time) or null | — |
updated_at | string (date-time) or null | — |
Example
json
{
"id": "8a1f5c2e-3b4d-4e6f-9a7b-1c2d3e4f5a6b",
"title": "Mutual NDA — Acme",
"source_type": "editor",
"status": "draft",
"draft_revision": 1,
"fill_ins": [
{
"key": "client_name",
"label": "Client name",
"value": "Acme Inc."
},
{
"key": "effective_date",
"label": "Effective date",
"value": "November 3, 2026"
}
],
"team_access": "view",
"created_at": "2026-11-03T16:20:00.000Z",
"updated_at": "2026-11-03T16:20:00.000Z"
}Examples
bash
curl https://tryjustdocs.com/api/v1/documents/8a1f5c2e-3b4d-4e6f-9a7b-1c2d3e4f5a6b \
-H "Authorization: Bearer $JUSTDOCS_API_KEY"js
const response = await fetch("https://tryjustdocs.com/api/v1/documents/8a1f5c2e-3b4d-4e6f-9a7b-1c2d3e4f5a6b", {
headers: {
Authorization: `Bearer ${process.env.JUSTDOCS_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).message);
const result = await response.json();python
import os
import requests
response = requests.get(
"https://tryjustdocs.com/api/v1/documents/8a1f5c2e-3b4d-4e6f-9a7b-1c2d3e4f5a6b",
headers={"Authorization": f"Bearer {os.environ['JUSTDOCS_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
result = response.json()