Metronome’s API uses bearer tokens to authenticate requests. This page walks through how to create and manage tokens.Documentation Index
Fetch the complete documentation index at: https://docs.metronome.com/llms.txt
Use this file to discover all available pages before exploring further.
Create a token
API tokens can be created through the Metronome app.- Click on Connections in the navigation bar.
- Click on API tokens & webhooks in the horizontal navigation bar on the resulting page.
- Click on the + Add button.
- Enter a descriptive name for the token and click Create new token.
- Copy the token string to a secure location before clicking Done.
Using tokens
When making API calls, provide the token using theAuthorization header. If using the SDK, the SDK will look for the API key under the environment variable METRONOME_BEARER_TOKEN by default. See SDK documentation for more details.
Postman Setup
If you use Postman:- Import the Metronome OpenAPI spec.
- In the collection settings, set Authorization to Bearer Token and use
{{api_token}}as the token. - Add
api_tokento your Postman environment variables.
Permissions
By default, Metronome API tokens will retain the same permissions as the user that created them. Metronome API tokens can also be limited in scope to reduce risk and follow the principle of least privilege. Metronome supports scoping by:- Access level (e.g., read-only)
- Environment (e.g., sandbox only)
- Endpoint (e.g., only getCustomers)