A Quick Note on Tokens
Mapbox makes use of public and secret tokens alike so that access can be scoped to desired resources only. You'll want to set up this pack with a secret token and you can add scopes as necessary depending on the formulas you are using. StaticImage and Map formulas cannot use this token because it will be exposed in a URL. There are three ways to address this.
1) The default behavior is to use your account's default public token and requires no action on your part (provided your secret token used to set up the pack has the token:read scope enabled).
2) Create a dedicated public token expecially for use within coda docs. The minimum scopes it will need for the Map and StaticImage formulas are styles:tiles and styles:read, recommended for Free and Pro coda users.
3) Alternatively you can by leverage temporary tokens. These tokens expire after an hour and can be refreshed accordingly. The provided GetToken formula requires your secret token to have the tokens:write scope enabled and creates a token that is valid for 15 to 60 minutes. You can connect a control like the one below to an Automation that generates a new temp token hourly, recommended for Team and Enterprise users with public facing docs.
temporary tokentk.eyJ1IjoibWFkdmliIiwiZXhwIjoxNjU3MjcwOTE2LCJpYXQiOjE2NTcyNjczMTYsInNjb3BlcyI6WyJzdHlsZXM6cmVhZCJdLCJjbGllbnQiOiJhcGkifQ.OPiAUx8Mydxs4w0gGNYkoQ