Skip to main content
API keys (personal access tokens) are user-scoped credentials for authenticating with the Lofty API. They are well suited for personal automation, scripts, CLI usage, and server-side integrations where the developer controls the environment.
The Lofty CLI uses API keys as LOFTY_CUSTOMER_KEY for the Client Credentials flow. API keys are a fully supported authentication method — not just for testing.

Obtain your API key

Navigate to Settings → Integrations → API in your Lofty account to view or generate your key. Each key is bound to the account that generated it. Requests authenticated with that key operate within that account’s permissions and carry a THIRD_PARTY_OPERATION scope.

Key properties

Authenticate requests

Pass your API key in the Authorization header with the token prefix:
Or use the Lofty CLI:

Security considerations

  • Do not expose keys in client-side code, public repositories, or logs.
  • Do not share keys with external vendors or third parties.
  • Keys are not subject to Lofty’s security review process — you are responsible for access control.
  • If a key is compromised, revoke it immediately in your account settings and generate a new one.
  • Monitor your key’s expiration date and rotate before it expires.

When to use each method