Tags
Tags label notes across notebooks. Names are case-insensitive and unique per workspace.
The tag object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier, prefixed with tg_. |
name required | string | Tag name, up to 50 characters, no spaces. |
color | string | Accent colour as a hex value. |
note_count | integer | Notes carrying the tag. |
created_at | timestamp | Creation 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.
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/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.
Body parameters
| Field | Type | Description |
|---|---|---|
name required | string | Tag name, up to 50 characters, no spaces. |
color | string | Accent 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.
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.
Body parameters
| Field | Type | Description |
|---|---|---|
name required | string | Tag name, up to 50 characters, no spaces. |
color | string | Accent 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.
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.
Body parameters
| Field | Type | Description |
|---|---|---|
name required | string | Tag name, up to 50 characters, no spaces. |
color | string | Accent 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"
}