How to generate Mapbox access tokens

Overview

Mapbox access tokens are essential to access Mapbox’s API endpoints and use Mapbox tools and services.

To create the token, we need to log in or sign up to our Mapbox account. On the top navigation bar, we’ll click the “Tokens” button.

Go to the "Tokens" tab
Go to the "Tokens" tab

We’ll click on the “Create a token” button.

Click on "Create a token" button
Click on "Create a token" button

This will direct us to a new page where we’ll provide the token name. There are no restrictions on naming a token, so we can name it however we like.

Name the token
Name the token

Here, we have to select our token’s public and private scopes. We can also specify any URLs to restrict the use of our access token. Once all specifications are complete, we’ll click the “Create token” button.

Specify scopes and URLs
Specify scopes and URLs

We’ve now created a Mapbox access token. This token is visible in our account dashboard. We can use this token to access Mapbox APIs.

Access token from account
Access token from account
Copyright ©2024 Educative, Inc. All rights reserved