Authorization header. How you get that token depends on whose account you’re operating on.
Two paths, one API
Your own account
API key → Your tokenYour server uses its application API key (Authorization: Basic <API_KEY>) to mint a token scoped to your Fluz account.A customer's account
OAuth grant → Their tokenA customer authorizes your app, and Fluz returns a token scoped to their account.createVirtualCard on your token creates a card on your wallet; createVirtualCard on a customer token creates it on theirs.
Path 1 — your own account
- In the dashboard, create an application and copy its API Key, User ID, and Account ID.
- From your backend, call
generateUserAccessTokenonhttps://transactional-graph.fluzapp.com/api/v1/graphql(staging:https://transactional-graph.staging.fluzapp.com/api/v1/graphql) with the headerAuthorization: Basic <API_KEY>, passing youruserId,accountId, and the scopes you need as arguments. - Attach the returned
tokenasAuthorization: Bearer <token>on every request to the transactional graph.
Path 2 — a customer’s account
Use this when you’re building a platform — e.g. issuing cards on behalf of your users.- Redirect the customer to Fluz’s OAuth authorize URL with your
clientId, requested scopes, andredirect_uri. - The customer signs in and grants your scopes.
- Fluz redirects back with a short-lived authorization
code. - Your server exchanges the code for a customer-scoped access token at the OAuth token exchange endpoint — see the OAuth grant flow.
- Refresh customer-scoped tokens via the OAuth token refresh endpoint without re-prompting the customer.
Scopes
Tokens carry an explicit set of scopes. Common ones by capability:
Request the minimum you need. Mint a new token when you need broader access.
Token lifetime
- Access tokens: short-lived JWTs (minutes, not hours). Mint a new one when it expires — see Replace an expired access token.
- OAuth customer tokens: refreshable via the OAuth token refresh endpoint.
- Application API key: valid until rotated in the dashboard.
Next steps
Get your API credentials
Path 1 in practice — mint a token for your own account and make a call.
Build a platform
Path 2 in practice — connect customer accounts with the OAuth grant flow.