Labels
Use the following parameters to search labels.
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
(required) Username of a registered API User
Returns objects created after the entered date.
nullExample: 2020-09-12T14:15:22ZReturns objects created before the entered date.
nullExample: 2020-12-13T16:17:28ZReturns the object corresponding to the entered ID
nullFilters the list by label name.
nullExample: SPAMOrders the list of results
nullExample: descPossible values: criteria to order by
nullExample: nameDefines the page number to be fetched.
1Example: 3Defines the number of elements displayed on a page. Must be a positive number with 0 and -1 return a maximum defined in the gate
20Example: 40label search results
invalid search parameters
GET /labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
{
"edges": [
{
"cursor": 0,
"node": {
"created_by": 42,
"created_on": "2025-11-14T15:12:43.909Z",
"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
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
(required) Username of a registered API User
label's name
SPAMThe new label
Invalid label attributes
POST /labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: 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-11-14T15:12:43.909Z",
"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"
}This method returns the label that matches the entered ID.
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
(required) Username of a registered API User
The label's ID
label object
label not found
GET /labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
{
"created_by": 42,
"created_on": "2025-11-14T15:12:43.909Z",
"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
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
(required) Username of a registered API User
label's name
SPAMThe new version of the label
Invalid data
The label does not exist
PUT /labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: 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-11-14T15:12:43.909Z",
"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
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
(required) Username of a registered API User
Whether or not the Label has been successfully deleted
The label does not exist
DELETE /labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
{
"success": true
}