Templates
Reusable note skeletons with variables such as `{{date}}` and `{{title}}`.
The template object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier, prefixed with tp_. |
name required | string | Template name. |
body | string | Markdown with variables. |
created_at | timestamp | Creation time, RFC 3339 in UTC. |
updated_at | timestamp | Last modification time, RFC 3339 in UTC. |
Example
{
"id": "tp_8f3k2Q9xLm",
"name": "Meeting notes",
"body": "# {{title}}\n_{{date}}_",
"created_at": "2026-09-14T08:21:07Z",
"updated_at": "2026-10-02T17:40:55Z"
}GET /templates
List templates. Returns a paginated list of templates.
Query parameters
| Field | Type | Description |
|---|---|---|
limit | integer | Page size, 1–100. Default 25. |
cursor | string | Cursor from the previous page. |
sort | string | Field to sort by, prefix - for descending. |
filter | string | Filter expression, see Filtering and sorting. |
Request
curl -X GET "https://api.axnode.net/v2/templates" \
-H "Authorization: Bearer $AXSYNC_TOKEN"const res = await fetch('https://api.axnode.net/v2/templates', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();import requests
res = requests.get(
'https://api.axnode.net/v2/templates',
headers={'Authorization': f'Bearer {token}'},
)
data = res.json()Response 200
{
"data": [
{
"id": "tp_8f3k2Q9xLm",
"name": "Meeting notes",
"body": "# {{title}}\n_{{date}}_",
"created_at": "2026-09-14T08:21:07Z",
"updated_at": "2026-10-02T17:40:55Z"
}
],
"has_more": false,
"next_cursor": null
}POST /templates
Create a template. Creates a template.
Body parameters
| Field | Type | Description |
|---|---|---|
name required | string | Template name. |
body | string | Markdown with variables. |
Request
curl -X POST "https://api.axnode.net/v2/templates" \
-H "Authorization: Bearer $AXSYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Meeting notes"}'const res = await fetch('https://api.axnode.net/v2/templates', {
method: 'POST',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name": "Meeting notes"})
});
const data = await res.json();import requests
res = requests.post(
'https://api.axnode.net/v2/templates',
headers={'Authorization': f'Bearer {token}'}, json={"name": "Meeting notes"},
)
data = res.json()Response 201
{
"id": "tp_8f3k2Q9xLm",
"name": "Meeting notes",
"body": "# {{title}}\n_{{date}}_",
"created_at": "2026-09-14T08:21:07Z",
"updated_at": "2026-10-02T17:40:55Z"
}GET /templates/{id}
Retrieve a template. Retrieves a template by its identifier.
Request
curl -X GET "https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm" \
-H "Authorization: Bearer $AXSYNC_TOKEN"const res = await fetch('https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();import requests
res = requests.get(
'https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm',
headers={'Authorization': f'Bearer {token}'},
)
data = res.json()Response 200
{
"id": "tp_8f3k2Q9xLm",
"name": "Meeting notes",
"body": "# {{title}}\n_{{date}}_",
"created_at": "2026-09-14T08:21:07Z",
"updated_at": "2026-10-02T17:40:55Z"
}PATCH /templates/{id}
Update a template. Updates fields of a template. Only supplied fields change.
Body parameters
| Field | Type | Description |
|---|---|---|
name required | string | Template name. |
body | string | Markdown with variables. |
Request
curl -X PATCH "https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm" \
-H "Authorization: Bearer $AXSYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Meeting notes"}'const res = await fetch('https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name": "Meeting notes"})
});
const data = await res.json();import requests
res = requests.patch(
'https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm',
headers={'Authorization': f'Bearer {token}'}, json={"name": "Meeting notes"},
)
data = res.json()Response 200
{
"id": "tp_8f3k2Q9xLm",
"name": "Meeting notes",
"body": "# {{title}}\n_{{date}}_",
"created_at": "2026-09-14T08:21:07Z",
"updated_at": "2026-10-02T17:40:55Z"
}DELETE /templates/{id}
Delete a template. Permanently deletes a template. This cannot be undone.
Request
curl -X DELETE "https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm" \
-H "Authorization: Bearer $AXSYNC_TOKEN"const res = await fetch('https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();import requests
res = requests.delete(
'https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm',
headers={'Authorization': f'Bearer {token}'},
)
data = res.json()Response 200
{
"deleted": true,
"id": "tp_8f3k2Q9xLm"
}POST /templates/{id}/apply
Create a note from a template. Renders the template and creates a note.
Body parameters
| Field | Type | Description |
|---|---|---|
name required | string | Template name. |
body | string | Markdown with variables. |
Request
curl -X POST "https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm/apply" \
-H "Authorization: Bearer $AXSYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Meeting notes"}'const res = await fetch('https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm/apply', {
method: 'POST',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name": "Meeting notes"})
});
const data = await res.json();import requests
res = requests.post(
'https://api.axnode.net/v2/templates/tp_8f3k2Q9xLm/apply',
headers={'Authorization': f'Bearer {token}'}, json={"name": "Meeting notes"},
)
data = res.json()Response 200
{
"id": "tp_8f3k2Q9xLm",
"name": "Meeting notes",
"body": "# {{title}}\n_{{date}}_",
"created_at": "2026-09-14T08:21:07Z",
"updated_at": "2026-10-02T17:40:55Z"
}