Skip to content

Glossary · Security & access

API key vs OAuth

Also called: API key or OAuth, token vs key

An API key is a static secret that identifies the caller and grants whatever access it was created with, while OAuth issues short-lived, scoped tokens after a user approves access; OAuth is safer for user-facing connections, keys are simpler for server-to-server use.

Both get a request authenticated. They differ in who approves, what's granted and how you take it back.

API keyOAuth 2.0
Who creates itYou, in the vendor's settingsThe vendor, after you approve on its screen
ScopeOften everything, sometimes configurableSpecific scopes, shown at consent
LifetimeUntil revokedShort-lived access tokens, renewed by refresh tokens
RevokingDelete the keyDisconnect the app (or revoke the grant)
Best forServer-to-server, internal tools, vendors without OAuthConnecting a third-party app to a user's account

Using API keys safely

  • Restrict it. Prefer restricted or scoped keys (scoped API key): Stripe's restricted keys, for example, let you grant exactly the permissions an integration needs.
  • One key per integration, so revoking one doesn't break the rest.
  • Store it encrypted, never in a spreadsheet, a prompt or a log line.
  • Rotate it when people with access leave.

Many business systems (field-service, logistics and recruiting platforms among them) only offer API keys or client credentials, so you'll use both kinds. The habits above make keys nearly as safe in practice.

In Fluxo Flow

Connectors use whichever the vendor offers: OAuth for apps like HubSpot, Slack and Google; API keys or client credentials for apps like Stripe (a restricted key with listed permissions), Twilio, Housecall Pro or ServiceTitan. Keys and tokens are tested before saving, encrypted at rest, and never shown again in full. Anything else goes in the credential vault and is referenced by name from HTTP Request steps.

All 40 glossary terms

Build your first workflow today.

Build and Dry Run on the Free plan, no credit card. Run live on a paid plan, on your own AI key at cost.

Free to explore · No credit card · 30-day money-back guarantee on paid plans