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 aTHIRD_PARTY_OPERATION scope.
Key properties
Authenticate requests
Pass your API key in theAuthorization header with the token prefix:
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.