Appearance
List templates
GET /api/v1/templates
100 at a time, newest first. Needs the read permission.
| Permission | read |
| MCP tool | list_templates |
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | No | The next_cursor of the previous page. |
Responses
| Status | Meaning |
|---|---|
200 | A page of templates, and the workspace they are in. |
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. |
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 |
|---|---|---|
templates | array of objects | — |
templates[].id | string (uuid) | — |
templates[].title | string | — |
templates[].kind | written or pdf | — |
templates[].draft_revision | integer | — |
templates[].team_access | string | — |
templates[].updated_at | string (date-time) or null | — |
next_cursor | string or null | — |
workspace | object | — |
workspace.id | string (uuid) | — |
workspace.name | string | — |
Example
json
{
"templates": [
{
"id": "5d0f8c3a-6b1e-4f2a-9c7d-3e8b1a2f4c6d",
"title": "Mutual NDA",
"kind": "written",
"draft_revision": 4,
"team_access": "view",
"updated_at": "2026-10-28T09:12:44.000Z"
}
],
"next_cursor": null,
"workspace": {
"id": "f1a3c5e7-9b2d-4c4f-a6e8-1b3d5f7a9c2e",
"name": "Northwind"
}
}Examples
bash
curl https://tryjustdocs.com/api/v1/templates \
-H "Authorization: Bearer $JUSTDOCS_API_KEY"js
const response = await fetch("https://tryjustdocs.com/api/v1/templates", {
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/templates",
headers={"Authorization": f"Bearer {os.environ['JUSTDOCS_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
result = response.json()