Skip to main content
FastFlowPe separates your identity from your session. Your Client ID and Client Secret are permanent, you use them exclusively to obtain a session token. Your X-API-Key is that session token: short-lived, expiring after 30 minutes, and required on every API request you make. Once a key expires or a new one is generated, the old key is immediately invalidated.
Quick ReferenceRequired: client-id, client-secretReturns: x_api_key (valid for 30 minutes)Endpoint: GET https://auth.fastflowpe.com/system/generate_x_api_token_merchant
You can acquire a new X-API-Key in two ways: via the authentication API, or directly from the merchant dashboard.

Method 1: Generate via API

Use this method in production systems. Send a GET request to the FastFlowPe authentication endpoint with your client-id and client-secret as headers. The response returns a fresh X-API-Key you can use immediately. Request
Success Response
Extract the value at data.x_api_key and store it securely in your application. Include it as an x-api-key header on every subsequent API call.
Set up a cron job to call this endpoint every 29 minutes so your system always has a valid key in rotation. Since keys expire at 30 minutes, a 29-minute refresh cycle gives you a one-minute buffer and prevents 401 Unauthorized errors caused by token expiry mid-request.
When you generate a new X-API-Key, the previous key is automatically and immediately invalidated. If multiple services share the same merchant account, coordinate key rotation so one service does not invalidate another’s active key.

Method 2: Generate via Dashboard

Use this method during development, testing, or whenever you need a one-off key without writing code. Log in to the merchant dashboard, navigate to the API settings page, and click the Generate Key button to issue a new X-API-Key instantly.
1

Log In to the Merchant Dashboard

Go to https://go.fastflowpe.com/ and sign in with your registered email address and password.
2

Navigate to API Settings

From the main navigation, go to Settings → API. This page shows your Client ID, Client Secret, and currently active X-API-Key.
3

Generate a New X-API-Key

Locate the X-API Key section and click the Generate Key button (highlighted in red). A new key is generated and activated immediately.
4

Copy the New Key

Copy the newly generated X-API-Key from the dashboard and add it to your application configuration or use it directly for testing.
Clicking Generate Key immediately invalidates your existing active X-API-Key. Any running system or integration using the old key will begin receiving 401 Unauthorized errors the moment you click the button. Only generate a new key from the dashboard when you are ready to update your application configuration simultaneously.

Using Your X-API-Key in API Requests

Once you have a valid key, include it as a request header on every FastFlowPe API call:
Requests without a valid x-api-key header, or with an expired or revoked key, are rejected with a 401 Unauthorized response.