Skip to main content

Authentication

All API requests require authentication via an API key. Keys are scoped to your account and can be managed from your dashboard.

Creating an API Key

From the Dashboard

  1. Go to Settings → API Keys
  2. Click Create New Key
  3. Give it a name (e.g., “Production”, “Development”)
  4. Copy the key immediately — it won’t be shown again

Via API

Response:

Using Your API Key

Include your API key in the Authorization header:
Never expose your API key in client-side code. Always make API calls from your server.

Key Format

Keys follow this format:
  • gm_ — Garmint prefix
  • live_ — Environment (live for production)
  • <hex> — Unique identifier

Key Security Best Practices

Use environment variables or a secrets manager. Never commit keys to git.
Create different keys for development, staging, and production. This lets you rotate keys independently.
When creating keys, consider setting an expiration:
If a key is exposed, revoke it from the dashboard or via API:

Managing Keys

List All Keys

Revoke a Key

Error Responses

Invalid or Missing Key

Status: 401 Unauthorized

Revoked Key

Status: 401 Unauthorized

Expired Key

Status: 401 Unauthorized