OAuth
OAuth is the preferred method when a person is present. The CLI uses Authorization Code with PKCE and requests these public API scopes:
A token is granted only the scopes it asks for, so an integration can request read-only access and be unable to start a run or delete a document even though the same user could. Scopes are enforced per operation: a call that needs a scope the token lacks is rejected with
403, never silently downgraded.
Which scope each operation requires is stated in the OpenAPI description under that operation’s security block, and in its page in the API reference. The scope vocabulary is also published, machine-readable, in the scopes_supported field of two discovery documents:
/api/v1 operations require an API key.
API keys
Use a dedicated, revocable API key for CI, backend services, and other unattended callers. Create API keys in your Fluent account and store them in a secret manager, never in source control. Send an API key in either supported header:FLUENT_API_KEY or accepts --api-key. An explicit API key takes precedence over a saved OAuth session.