Skip to main content

Prerequisites

Before you start following your guide you need prepare this list in advance

  • Virtual Machine (VM) with Ubuntu Installed
  • SSH access and Public IP of that machine
  • Assigned Domain Name on that Public Ip e.g. - client-exante-proxy.company.com
  • Ports 22, 80, 443 should be open

Bearer Token to be provided (e.g. in case of Exante)



Generate Auth Token

Open a terminal window.

  1. Type this command, replacing YOUR_API_KEY and YOUR_SECRET_KEY with your real keys:
    echo -n "YOUR_API_KEY:YOUR_SECRET_KEY" | base64
  2. Press Enter.
  3. The terminal will show a long string of letters and numbers. This is your encoded token.
  4. Copy that string.
  5. When you call your API, add this header (showing your copied string in place of ENCODED_STRING):
    Authorization: Basic ENCODED_STRING
  6. If your API really needs a Bearer header instead, use:
    Authorization: Bearer ENCODED_STRING

That’s it. Now your API call will send the correct token.