Authenticate as an API user

Obtain Authentication Token

To access Ledger Enterprise Apis as an API user, you need to obtain an authentication token by making a POST request to the authentication endpoint. Use the following example:

curl --request POST \
  --url https://api.vault.ledger.com/auth/token \
  --header 'content-type: application/json' \
  --header 'x-ledger-workspace: minivault' \
  --data '{"api_key_id": "yqjrwdngm15ml12u4opscq","api_key_secret": "Hc5mFFhnpeMoj6kZsCQXOphPMawIWAGnUxE8bvw5Kv0"}'

This request returns an access_token, which you will use in subsequent authenticated requests.

Last updated