Skip to content

Automate Mapbox

Mapbox runs on access tokens, and keeping those tokens tidy is a recurring chore: spotting public tokens with no URL restriction, finding old ones, and checking scopes. Explain the check you want to your AI assistant, confirm what it will look at, and it repeats the review for you.

Try asking

Create a ClickRuntime automation: on the 1st of every month, email me all my Mapbox access tokens and flag any public token that has no URL restriction or was created more than 90 days ago.

Paste it into your assistant. It tells you what it will send or change before it runs live.

Build your own

Build any Mapbox automation you can describe

The ideas above are ready-made starting points, not a fixed list. Describe what Mapbox should do in your own words, with your conditions, other apps or an AI step, and your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

For example, ask your assistant

Every Monday, list my Mapbox access tokens and tell me which ones have broad scopes or have not been used in 90 days.

Every day, geocode new addresses in my Google Sheets with Mapbox and fill in the coordinates.

When a new order lands in Shopify, geocode the shipping address with Mapbox, add it to my Google Sheets delivery map list, and post the delivery zone to Slack.

Beyond chat

Have Mapbox work when you're not in the chat

Connecting Mapbox to ChatGPT or Claude lets you ask about it while you chat. ClickRuntime handles the part that should happen on its own: checks on a schedule and actions on each new event, set up from the same chat and running after you close it.

Setup

Connect Mapbox

Mapbox uses access tokens from your own account. Reading your token list needs a secret token, which starts with `sk.`.

Mapbox

Maps / Location

  1. Sign in to the Mapbox console and open Access tokens.
  2. Choose Create a token and tick the scopes your automation needs, such as the secret scope tokens:read for a token audit.
  3. Create the token and copy it straight away, because secret tokens are shown once.
  4. In the ClickRuntime dashboard, save the token as a secret on Connections & secrets.

Good to know

Mapbox limits that affect automations

  • Public tokens start with pk. and secret tokens with sk.. Listing tokens and using the Uploads API need secret scopes.
  • A request fails unless the token has every scope that request uses, so add scopes before asking for new jobs.
  • Keep secret tokens out of front-end code; store them only as a secret.
  • Each Mapbox API has a free monthly allowance, then pay-as-you-go pricing.

FAQ

Questions about automating Mapbox

Which Mapbox token should I give ClickRuntime?
A secret `sk.` token with only the scopes your automation uses. A public `pk.` token cannot list your other tokens.
What does the token audit check?
It reads each token's allowed URLs and creation date, then flags public tokens with no URL restriction or older than the age you set.
Can ClickRuntime change or delete my tokens?
Only if you give the token the scopes to do so. For a read-only audit, `tokens:read` is enough.
Is AI needed for this?
No. The audit is a straight check of token fields. AI is still included with every plan, and you never need your own AI key.
Is this a Mapbox connector for ChatGPT or Claude?
Not for chatting with Mapbox data. A chat connector lets your assistant read and change Mapbox while you're in the conversation. ClickRuntime is for the work that should happen without you: you set up an automation from the chat once, and it keeps running on a schedule or on each Mapbox event.

Tell your assistant what Mapbox should do

Free plan. No credit card.