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
  • REFERENCE
    • API reference
      • Accounts
        • Addresses
        • Balances
          • History
        • Currency
        • History
        • Labels
        • Nft collections
        • Nft portfolio
        • Nfts
        • Sync
        • Tokens
        • Erc20 children accounts
      • Api users
        • Register
      • Currencies
        • Tokens
      • Digests
        • History
      • Entities
        • History
        • Users
      • Groups
        • History
      • Labels
      • Messages
        • History
      • Organization
      • Pledges
      • Requests
        • Approve
        • Challenge
          • Reject
        • Governance status
        • Reject
      • Settlements
      • Transactions
        • Estimate fees
        • Fees
        • Approve
        • History
        • Labels
        • Reject
      • Users
        • History
      • Whitelists
        • History
      • Auth
        • Token
          • Refresh
      • Compliance
        • Address risk
        • Sanctions
      • Notifications
        • Configuration
    • Specification
Powered by GitBook
On this page
  1. REFERENCE
  2. API reference
  3. Notifications

Configuration

PreviousNotifications
  • GETGet notification configuration
  • PUTSet notification configuration

Get notification configuration

get

This method returns the notification configuration set for the current user.

Authorizations
Responses
200
Current user notification configuration
application/json
404
Current user doesn't have any configuration
application/json
get
GET /notifications/configuration HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "all": {
    "webhook": {
      "secret": "topsecret",
      "url": "https://vault.crypstock.com/webhook"
    }
  }
}

Set notification configuration

put

This method allows you to set the notification configuration for the current user.

Authorizations
Body
allall ofRequired

configuration for all kind of notifications

Responses
200
Current user notification configuration
application/json
put
PUT /notifications/configuration HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "all": {
    "webhook": {
      "secret": "topsecret",
      "url": "https://vault.crypstock.com/webhook"
    }
  }
}
200

Current user notification configuration

{
  "all": {
    "webhook": {
      "secret": "topsecret",
      "url": "https://vault.crypstock.com/webhook"
    }
  }
}