Skip to Content
truemetrics Docs

Getting started

API keys

Which key you need for which part of truemetrics, and how to get it.

truemetrics issues API keys per customer. A key identifies your account: you only see your own devices and your own data. Each key is enabled for specific services, and one key can be enabled for several. Request keys, or another service on an existing key, at info@truemetrics.io.

You want toKeyWhere it goes
Record with the SDKSDK API keyTruemetricsSdk.init in your courier app (Android Native, Flutter)
Check a test recordingThe same SDK API key, enabled for the checkx-api-key header of /V1/testresult (Verify your integration)
Get the last meter of an addressAn API key enabled for last meterx-api-key header of /V1/lastmetervisualization (API reference)
Use the truemetrics module in your appAn API key enabled for the moduleTruemetricsNavigation.init (module)
Use the truemetrics navigation appNone in your apptruemetrics sets the app up (navigation app)
Receive the daily exportNo API keyRead access to your truemetrics bucket, or your SFTP server, set up together (Export setup)

A 403 from any endpoint means the key is missing, wrong, or not enabled for that endpoint.

Keeping keys safe

  • Keep keys in your build configuration or secrets store (a Gradle property, local.properties, CI secrets), never in source control.
  • A key in an app can be read from the installed app. That is expected for the SDK key, which only uploads data to your account. Keys that read data, such as the last meter key, belong in the apps and backends that need them, not in public samples.
  • If a key leaked, ask us for a new one; the old one is then switched off.

On this page