Skip to content

API keys

API keys authenticate your code with Metrana — most importantly for logging metrics into the portal. Your key is individual: it belongs to you rather than to a workspace, and it acts as you, so it can reach every workspace you’re a member of.

In the portal, open the user menu in the top right corner and choose Get API token to display and copy your token.

Provide the key to the Metrana client library — either as the api_key argument to metrana.init() or, more commonly, via the METRANA_API_KEY environment variable — so your training code can log to your workspaces. For the logging setup itself, see Getting your data in.