Skip to content

Authentication

To access the Tilebox API, you must authenticate your requests. This guide explains how authentication works, focusing on API keys used as bearer tokens.

Creating an API key

To create an API key, log into the Tilebox Console. Navigate to Settings → API Keys and click the “Create API Key” button.

Tilebox Console

Set up environment variable

Set TILEBOX_API_KEY in your shell environment (optional but recommended). That way, the CLI and SDK clients automatically pick it up.

The following commands persist the variable for future terminal sessions and also make it available in the current session.

Open a new terminal after setting the variable to confirm your shell loads it automatically.

Manual SDK authentication

In case you didn’t configure your shell environment, you can also pass your API key as the token parameter when creating an instance of the SDK clients.

Type to search…