key query parameter:
Getting a token
1
Create an account
Sign up at baato.io/signup and log in.
2
Open My Tokens in your dashboard
Go to baato.io/account and open the My Tokens section.
Baato creates a token named
_default for you automatically, so you can start making
requests immediately.3
Create additional tokens (optional)
Use Create New Access Token to add up to three more tokens beyond
_default. Separate
tokens per environment — one for local development, one for staging, one for
production — make usage metrics far easier to read.Protecting your token
Restrict a token to specific domains
Restrict a token to specific domains
When you create or edit a token, list your domains in the allowed origins field as a
comma-separated string:Requests carrying that token from any other origin are rejected. This is the right
control for browser-based applications, where the token cannot be kept secret.
Keep server-side tokens out of source control
Keep server-side tokens out of source control
Rotate a compromised token
Rotate a compromised token
Delete the affected token in the dashboard and create a replacement. Requests using the
deleted token start failing immediately, so deploy the new token first where you can.
When authentication fails
Full details are in the error reference.
Next steps
Quickstart
Make your first request and render a map.
API reference
Every endpoint, with an interactive playground.