Token Scopes

Grant each access token only the APIs it needs.

A scope is a permission granted to an access token, written as group:action (for example geocoding:forward). When you create or update a token on the User Dashboard, select the scopes it should have. A token can only call endpoints that match its type and selected scopes.

  • API tokens use scopes for the product APIs. Older API tokens created before scopes were introduced are unscoped and keep access to all data APIs.
  • Account tokens use scopes for account resources, such as balance:read. They cannot call data APIs.

The User Dashboard lists all scopes available for each token type. For example, a token for a website's search box only needs Forward Geocoding and Autocomplete:

The Permissions section of an access token on the User Dashboard, with only Forward Geocoding and Autocomplete selected under Geocoding.

API Token Scopes

GroupDashboard labelScope
GeocodingForward Geocodinggeocoding:forward
Reverse Geocodinggeocoding:reverse
Autocompletegeocoding:autocomplete
Nearby Placesgeocoding:nearby
Place Lookupgeocoding:lookup
Time Zonegeocoding:timezone
RoutingDirectionsrouting:directions
Distance Matrixrouting:matrix
Map Matchingrouting:matching
Nearest Roadrouting:nearest
Route Optimizationrouting:optimize
MapsVector Map Tilesmaps:tiles:vector (includes the styles, fonts and sprites needed to render them)
Raster Map Tilesmaps:tiles:raster
Static Mapsmaps:static

Account Token Scopes

GroupDashboard labelScope
BalanceRead Balancebalance:read, required by the Balance API
Token management (coming soon)Create, Update, Revoke API Tokenstokens:create, tokens:update, tokens:revoke
Reports (coming soon)Read Reportsreports:read

How Scopes Apply

  • A scope can only reduce access. Your plan, product access and balance still apply.
  • Missing scopes are rejected. A token without the scope an endpoint needs gets HTTP 403 Access restricted (see Errors), and the request doesn't count towards your usage.
  • New APIs need opting in. A scoped token only gets the APIs you selected, so add new ones by updating the token. Unscoped API tokens, created before scopes were introduced, keep access to every data API, including new ones.
  • Changes take a few minutes. Updated scopes may take up to 10 minutes to apply.

On this page