Authentication

To create an API token, go to the Settings & Billing → API Keys page on the dashboard.

The key is shown to your only when it's created. If you lose it, you'll have to roll the key or create a new one.

Using your API key

When you create your API key, you will see it in the same section of your Dashboard. You can edit the key name, rotate the token, or delete the key entirely from here.

To use your API key simply provide it as part of the authorization header when you make a request. Tokens use the bearer authorization header when you make a request.

$ curl \
-s https://api.latitude.sh/user/profile \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \

API keys should be kept private

API keys allow access to your private data in Latitude.sh. They should not be shared outside of your company.

We cannot stress enough how important it is for you not to share your API keys with anyone. In case you suspect your API key has been leaked, you can rotate or delete it on the dashboard and this will revoke access to that key.