# Getting a Mapbox API access token

{% hint style="info" %}
For information on the **Mapbox** component, see [**this article**](/components-functions-and-connections/overview/dataviz/mapbox.md)
{% endhint %}

For the Mapbox component to work it needs to connect to your mapbox account. This is done by providing an **Access Token** in the **MAP SETTINGS** section of the property panel.

To find this token you will need an account with Mapbox - you can follow [**this link**](https://www.mapbox.com/) to set one up.

### Locating the key

1. Log in to your Mapbox account
2. The default public token is displayed on the account overview page and can be copied from here.&#x20;
3. To view all tokens click on the tokens option under the the Admin section of the console menu.&#x20;

### Required scopes

In order for the Mapbox component to work in Squirrel the token used must have the **STYLES:READ** scope.

For more information on managing tokens in Mapbox, check out [this Mapbox article](https://docs.mapbox.com/help/getting-started/access-tokens/#how-access-tokens-work) .


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.squirrel365.io/how-tos/getting-a-mapbox-api-access-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
