Ledger Enterprise
API Documentation V1
API Documentation V1
  • GETTING STARTED
    • Welcome
    • Getting Started
    • Authentication
    • Rate Limits
    • Pagination
  • tutorials
    • Register a new API User
    • First Steps as an API User
    • Generate Reporting API Keys
    • Manage Reporting API Keys
    • TradeLink Integration Guide for Liquidity Providers
  • REFERENCE
    • API reference
      • Accounts
        • Search Accounts
        • Get an Account by ID
        • Addresses
          • [Decprecated] Get Receiving Addresses of an Account
          • Get Receiving Addresses of an Account
          • [Decprecated] Get an address by index for an account
        • Balances
        • Currency
        • History
        • Labels
        • NFT Collections
        • NFT Portfolio
        • NFTs
        • Sync
        • Tokens
        • ERC20 Child Accounts
      • API users
        • Get List of API Users
        • Create an API User
        • Get an API User
        • Register
      • Currencies and Tokens
        • List Currencies
        • List Tokens
        • Get Currency by Name
        • Get a Token by Network and Address
        • Currency Name and Address Pair
      • Digests
        • Search Digests
        • Get Digests by ID
        • Digest History
      • Entities
        • Search Entity
        • Get an Entity by ID
        • Entity History
        • Get the Users of an Entity
      • Groups
        • Search Group
        • Get Group by ID
        • Group History
      • Labels
      • Messages
        • Search Message
        • Get a Message by ID
        • Message History
      • Organization
      • Pledges
        • Search Pledge
        • Get a Pledge by ID
      • Requests
        • Search Request
        • Create Request
        • Get Request by ID
        • Get Request Challenge (Approve)
        • Get Request Challenge (Reject)
        • Approve Request
        • Reject Request
        • Get the Request's Governance Status
      • Settlements
        • Search Settlements
        • Create Settlement
        • Get a Settlement by ID
      • Transactions
        • Search Transaction
        • Create a Transaction
        • Get a Transaction by ID
        • Estimate Transaction Fees
        • Estimate Transaction Fees
        • Approve Transaction
        • Reject Transaction
        • Transaction History
        • Transaction Labels
      • Users
        • Search Users
        • Search User by ID
        • User History
      • Whitelists
        • Search Whitelist
        • Get Whitelist by ID
        • Whitelist History
      • Auth
        • Get JWT Token
        • Refresh JWT Token
      • Compliance
        • Get an Address' Risk Assessment
        • Get an Address' Sanctions
      • Notifications
        • Get Notification Configuration
        • Set Notification Configuration
    • Specification
Powered by GitBook
On this page
  1. REFERENCE
  2. API reference

Labels

PreviousGroup HistoryNextMessages

Get a label by ID

get

This method returns the label that matches the entered ID.

Authorizations
Path parameters
label_idintegerRequired

The label's ID

Responses
200
label object
application/json
404
label not found
application/json
get
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

Delete a label

Authorizations
Path parameters
label_idintegerRequired
Responses
200
Whether or not the Label has been successfully deleted
application/json
404
The label does not exist
application/json
delete
DELETE /labels/{label_id} HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true
}
  • GETSearch Label
  • POSTCreate a label
  • GETGet a label by ID
  • PUTUpdate the label matching the given ID
  • DELETEDelete a label

Search Label

get

Use the following parameters to search labels.

Authorizations
Query parameters
created_afterstring · date-time | nullableOptional

Returns objects created after the entered date.

Default: nullExample: 2020-09-12T14:15:22Z
created_beforestring · date-time | nullableOptional

Returns objects created before the entered date.

Default: nullExample: 2020-12-13T16:17:28Z
idinteger | nullableOptional

Returns the object corresponding to the entered ID

Default: null
namestring | nullableOptional

Filters the list by label name.

Default: nullExample: SPAM
orderstring · enum | nullableOptional

Orders the list of results

Default: nullExample: descPossible values:
order_bystring | nullableOptional

criteria to order by

Default: nullExample: name
pageinteger | nullableOptional

Defines the page number to be fetched.

Default: 1Example: 3
page_sizeinteger | nullableOptional

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

Default: 20Example: 40
Responses
200
label search results
application/json
400
invalid search parameters
application/json
get
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

post

Create a label than can be attached to Account or Transaction

Authorizations
Body
namestringRequired

label's name

Example: SPAM
Responses
200
The new label
application/json
400
Invalid label attributes
application/json
post
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"
}

Update the label matching the given ID

put

Set the new properties to the label matching the given ID

Authorizations
Path parameters
label_idintegerRequired
Body
namestringRequired

label's name

Example: SPAM
Responses
200
The new version of the label
application/json
400
Invalid data
application/json
404
The label does not exist
application/json
put
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"
}