Authorization

Learn to authorize your requests to use the brokerage API.

Authorization

To authorize and authenticate your requests, the backend needs to know about your API key. The API key needs to be provided in the HTTP request header field Authorization following the format Bearer <Your-API-Key>. If your API key was abcd1234, you would sent the value Bearer abcd1234 as the value of the Authorization headers for each of your requests.

Authorization: Bearer <Your-API-Key>

Command Line Example:

# curl -sSH 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.[…]' 'https://dev-brokerage.lemon.markets/v1/company' | jq
{
  "id": "ten_2••••••••••••••••••••••••••••••8",
  […]
}
#