This method returns the label that matches the entered ID.
The label's ID
GET /labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"created_by": 42,
"created_on": "2025-06-20T10:11:39.635Z",
"id": 1,
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM",
"updated_by": 42,
"updated_on": "2023-02-06T02:48:59+00:00"
}
Delete a label
DELETE /labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true
}
Use the following parameters to search labels.
Returns objects created after the entered date.
null
Example: 2020-09-12T14:15:22Z
Returns objects created before the entered date.
null
Example: 2020-12-13T16:17:28Z
Returns the object corresponding to the entered ID
null
Filters the list by label name.
null
Example: SPAM
Orders the list of results
null
Example: desc
Possible values: criteria to order by
null
Example: name
Defines the page number to be fetched.
1
Example: 3
Defines the number of elements displayed on a page. Must be a positive number with 0 and -1 return a maximum defined in the gate
20
Example: 40
GET /labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"edges": [
{
"cursor": 0,
"node": {
"created_by": 42,
"created_on": "2025-06-20T10:11:39.635Z",
"id": 1,
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM",
"updated_by": 42,
"updated_on": "2023-02-06T02:48:59+00:00"
}
}
],
"page_info": {
"count": 1,
"has_next_page": false
}
}
Create a label than can be attached to Account or Transaction
label's name
SPAM
POST /labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM"
}
{
"created_by": 42,
"created_on": "2025-06-20T10:11:39.635Z",
"id": 1,
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM",
"updated_by": 42,
"updated_on": "2023-02-06T02:48:59+00:00"
}
Set the new properties to the label matching the given ID
label's name
SPAM
PUT /labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM"
}
{
"created_by": 42,
"created_on": "2025-06-20T10:11:39.635Z",
"id": 1,
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM",
"updated_by": 42,
"updated_on": "2023-02-06T02:48:59+00:00"
}