Axsync API v2

Templates

Reusable note skeletons with variables such as `{{date}}` and `{{title}}`.

The template object

FieldTypeDescription
idstringUnique identifier, prefixed with tp_.
name requiredstringTemplate name.
bodystringMarkdown with variables.
created_attimestampCreation time, RFC 3339 in UTC.
updated_attimestampLast 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.

Required scope: notes:read

Query parameters

FieldTypeDescription
limitintegerPage size, 1–100. Default 25.
cursorstringCursor from the previous page.
sortstringField to sort by, prefix - for descending.
filterstringFilter 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.

Required scope: notes:write

Body parameters

FieldTypeDescription
name requiredstringTemplate name.
bodystringMarkdown 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.

Required scope: notes:read

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.

Required scope: notes:write

Body parameters

FieldTypeDescription
name requiredstringTemplate name.
bodystringMarkdown 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.

Required scope: notes:write

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.

Required scope: notes:write

Body parameters

FieldTypeDescription
name requiredstringTemplate name.
bodystringMarkdown 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"
}