All docschevron-rightHelpchevron-rightarrow-leftFAQschevron-rightWhat is the default public access token?

What is the default public access token?

The default public token in your Mapbox account is a type of access token that is used to associate your account with your requests to Mapbox API resources. This token is automatically embedded in example code on when you're logged into your account.

The default public access token contains all public scopes, which means it has read-only access rights to styles and can be used for requests that don't involve sensitive operations. If you refresh and delete this token, another one will be automatically generated. You cannot add secret scopes or URL restrictions to your default public access token.

Note that we do not recommend using the default public token in a production environment. Instead, create a public token with the necessary sets of restrictions for each specific implementation.

You can manage your access tokens, including the default public token, on your Tokens page in your Mapbox account.

Was this page helpful?