Skip to main content
The Platform API uses OAuth 2.0 client credentials for authentication. This guide walks you through obtaining and using access tokens.

Prerequisites

You must have access to Product Portal in the Fiskil Console to generate API keys.

Generate API credentials

1

Navigate to API Keys

In the Fiskil Console, navigate to API Keys in the sidebar.
2

Select permissions

Generate credentials with the appropriate product management scopes:
Public API endpoints are visible globally and do not require read permissions.
3

Store credentials securely

After generating, the Console displays a Client ID and Client Secret pair. Store these securely - you’ll need them to obtain access tokens.
The client secret is only shown once. Store it in a secure location such as secrets manager.

Obtain an access token

Exchange your client credentials for a short-lived access token:

Response fields

string
required
The access token to use in the Authorization header for subsequent API requests.
integer
required
Token validity period in seconds. Default is 900 seconds (15 minutes).

Make authenticated requests

Include the access token in the Authorization header using the Bearer scheme:
Tokens expire after 15 minutes. Implement token refresh logic in your application to obtain new tokens before expiry.

Error responses

Solution: Verify your client ID and secret are correct and haven’t been revoked.
Solution: Generate new API credentials with the required scopes.

Security best practices

  • Never expose credentials in client-side code or version control
  • Rotate secrets regularly and revoke unused credentials
  • Use environment variables or a secrets manager for credential storage
  • Implement token caching to reduce authentication requests
  • Monitor API usage through the Console for unusual activity