Generate Access Token
Authentication
Generate Token
Generate a JWT access token for Fyatu API v3 using client credentials. POST /auth/token with appId and secretKey.
POST
Generate Access Token
Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
Getting Your Credentials: Login to FYATU Dashboard → Business Console → Select App → Settings → API Keys & Credentials
Overview
Exchange your app credentials (appId and secretKey) for a JWT access token. This token is required to authenticate all other V3 API requests.
Token Details
| Property | Value |
|---|---|
| Token Type | JWT (HS256) |
| Expiry | 24 hours (86400 seconds) |
| Refresh Window | Up to 5 minutes after expiry |
Scopes by App Type
- Collection App
- Issuing App
| Scope | Description |
|---|---|
collect:write | Create checkout sessions, process payments |
collect:read | View collection transactions |
payout:write | Send payouts |
payout:read | View payout transactions |
Using the Token
Once you have an access token, include it in theAuthorization header for all API requests:
Error Codes
| Code | Description |
|---|---|
VALIDATION_ERROR | Missing or invalid request parameters |
AUTH_INVALID_CREDENTIALS | App not found or secret key mismatch |
AUTH_APP_INACTIVE | App is suspended or archived |
Body
application/json
Your app ID (16 characters)
Minimum string length:
8Example:
"DD123FR45446CECES"
Your app secret key
Minimum string length:
16Example:
"your_secret_key_here"
OAuth grant type (must be 'client_credentials')
Available options:
client_credentials Example:
"client_credentials"

