All Fikäfi APIs require secure access via Bearer Token authentication.
🔑 How It Works#
Every API request must include an Authorization header with a valid Bearer token.
🛠 Obtaining a Token#
Use your Client ID and Secret Key to authenticate and receive a token.If you don’t have credentials, please contact our integration team.
📥 Token Request – Example#
🔄 Generating Token#
{
"clientId": "your-client-id",
"secretKey": "your-secret-key"
}
{
"accessToken": "abcdef1234567890",
"tokenType": "Bearer",
"expiresIn": 86400
}
📤 Using the Token#
Include the accessToken in the Authorization header for all API requests:Authorization: Bearer your_access_token
⚠️ Token Expiry#
Tokens are usually valid for 24 hours (86400 seconds)
Always check the expiresIn value in the response
Refresh the token before expiry to avoid failed requests
🔐 Security Best Practices#
Never expose your Client ID or Secret Key in frontend code
Use HTTPS for all API requests
Store credentials securely and rotate them periodically
You get separate credentials for sandbox and production
Modified at 2025-06-14 14:39:44