Axsync API v2

Tags

Tags label notes across notebooks. Names are case-insensitive and unique per workspace.

The tag object

FieldTypeDescription
idstringUnique identifier, prefixed with tg_.
name requiredstringTag name, up to 50 characters, no spaces.
colorstringAccent colour as a hex value.
note_countintegerNotes carrying the tag.
created_attimestampCreation time, RFC 3339 in UTC.

Example

{
  "id": "tg_8f3k2Q9xLm",
  "name": "planning",
  "color": "#f59e0b",
  "note_count": 12,
  "created_at": "2026-09-14T08:21:07Z"
}

GET /tags

List tags. Returns a paginated list of tags.

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/tags" \
  -H "Authorization: Bearer $AXSYNC_TOKEN"
const res = await fetch('https://api.axnode.net/v2/tags', {
  method: 'GET',
  headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();
import requests

res = requests.get(
    'https://api.axnode.net/v2/tags',
    headers={'Authorization': f'Bearer {token}'},
)
data = res.json()

Response 200

{
  "data": [
    {
      "id": "tg_8f3k2Q9xLm",
      "name": "planning",
      "color": "#f59e0b",
      "note_count": 12,
      "created_at": "2026-09-14T08:21:07Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

POST /tags

Create a tag. Creates a tag.

Required scope: notes:write

Body parameters

FieldTypeDescription
name requiredstringTag name, up to 50 characters, no spaces.
colorstringAccent colour as a hex value.

Request

curl -X POST "https://api.axnode.net/v2/tags" \
  -H "Authorization: Bearer $AXSYNC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "planning"}'
const res = await fetch('https://api.axnode.net/v2/tags', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"name": "planning"})
});
const data = await res.json();
import requests

res = requests.post(
    'https://api.axnode.net/v2/tags',
    headers={'Authorization': f'Bearer {token}'}, json={"name": "planning"},
)
data = res.json()

Response 201

{
  "id": "tg_8f3k2Q9xLm",
  "name": "planning",
  "color": "#f59e0b",
  "note_count": 12,
  "created_at": "2026-09-14T08:21:07Z"
}

GET /tags/{id}

Retrieve a tag. Retrieves a tag by its identifier.

Required scope: notes:read

Request

curl -X GET "https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm" \
  -H "Authorization: Bearer $AXSYNC_TOKEN"
const res = await fetch('https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm', {
  method: 'GET',
  headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();
import requests

res = requests.get(
    'https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm',
    headers={'Authorization': f'Bearer {token}'},
)
data = res.json()

Response 200

{
  "id": "tg_8f3k2Q9xLm",
  "name": "planning",
  "color": "#f59e0b",
  "note_count": 12,
  "created_at": "2026-09-14T08:21:07Z"
}

PATCH /tags/{id}

Update a tag. Updates fields of a tag. Only supplied fields change.

Required scope: notes:write

Body parameters

FieldTypeDescription
name requiredstringTag name, up to 50 characters, no spaces.
colorstringAccent colour as a hex value.

Request

curl -X PATCH "https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm" \
  -H "Authorization: Bearer $AXSYNC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "planning"}'
const res = await fetch('https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm', {
  method: 'PATCH',
  headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"name": "planning"})
});
const data = await res.json();
import requests

res = requests.patch(
    'https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm',
    headers={'Authorization': f'Bearer {token}'}, json={"name": "planning"},
)
data = res.json()

Response 200

{
  "id": "tg_8f3k2Q9xLm",
  "name": "planning",
  "color": "#f59e0b",
  "note_count": 12,
  "created_at": "2026-09-14T08:21:07Z"
}

DELETE /tags/{id}

Delete a tag. Permanently deletes a tag. This cannot be undone.

Required scope: notes:write

Request

curl -X DELETE "https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm" \
  -H "Authorization: Bearer $AXSYNC_TOKEN"
const res = await fetch('https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();
import requests

res = requests.delete(
    'https://api.axnode.net/v2/tags/tg_8f3k2Q9xLm',
    headers={'Authorization': f'Bearer {token}'},
)
data = res.json()

Response 200

{
  "deleted": true,
  "id": "tg_8f3k2Q9xLm"
}

POST /tags/merge

Merge tags. Moves all notes from the source tags to the target tag and deletes the sources.

Required scope: notes:write

Body parameters

FieldTypeDescription
name requiredstringTag name, up to 50 characters, no spaces.
colorstringAccent colour as a hex value.

Request

curl -X POST "https://api.axnode.net/v2/tags/merge" \
  -H "Authorization: Bearer $AXSYNC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "planning"}'
const res = await fetch('https://api.axnode.net/v2/tags/merge', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"name": "planning"})
});
const data = await res.json();
import requests

res = requests.post(
    'https://api.axnode.net/v2/tags/merge',
    headers={'Authorization': f'Bearer {token}'}, json={"name": "planning"},
)
data = res.json()

Response 201

{
  "id": "tg_8f3k2Q9xLm",
  "name": "planning",
  "color": "#f59e0b",
  "note_count": 12,
  "created_at": "2026-09-14T08:21:07Z"
}