Transaction Labels
This method returns the transaction's 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
The transaction's ID
Transaction object
id of the creator
42name of the tag
SPAMid of the last updater
42date on which the tag has been last updated
2023-02-06T02:48:59+00:00Transaction not found
GET /transactions/{transaction_id}/labels HTTP/1.1
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
[
{
"created_by": 42,
"created_on": "2026-01-01T00:00:00.000Z",
"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 post endpoint set the Label matching the ID passed in the payload to the Transaction matching the ID passed in the url
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 transaction's ID
ID of the label to add to the resource
42Whether or not the Label has been successfully attached
trueTransaction or Label does not exist
POST /transactions/{transaction_id}/labels HTTP/1.1
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"label_id": 42
}{
"success": true
}This post endpoint remove the Label from the transaction matching the IDs passed in url
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
The transaction's ID
Whether or not the Label has been successfully removed
trueTransaction or Label does not exist
DELETE /transactions/{transaction_id}/labels/{label_id} HTTP/1.1
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
{
"success": true
}