FleetbaseFleetbase

API Keys

Generate and manage API credentials for authenticating requests to the Fleetbase REST API.

API Keys

API keys are the credentials used to authenticate requests to the Fleetbase REST API. Each key belongs to either the Test or Live environment and can be scoped to a specific expiry window. Navigate to Developers → API Keys to manage them.

API Keys list — Name, Public Key, Secret Key, Environment badge, Expiry, Last Used columns

Test Mode Toggle

The header contains a Test mode toggle. When active, the table switches to show only test keys and the console enters sandbox mode — no changes affect production data. When test mode is on you can also select a specific test key from the dropdown next to the toggle; this controls which test key is sent as the active credential when making requests from the console.

Creating an API Key

Click New to create a key. The environment is set automatically based on whether test mode is currently on or off.

API Key form — Name field, Expiration dropdown, and Test/Live environment badge

FieldDescription
NameA descriptive label for the key (e.g. Mobile App, ERP Integration)
ExpirationWhen the key expires — choose from never, immediately, in 1 hour, in 24 hours, in 3 days, or in 7 days
EnvironmentSet automatically — test when test mode is on, live when off

Click Save to generate the key. The public key and secret are shown in the table immediately after creation.

Key Fields

ColumnDescription
NameThe label you gave the key — click to edit
Public KeyThe flb_test_… or flb_live_… token — click to copy
Secret KeyThe corresponding secret — click to reveal, then copy
Environmenttest or live
ExpiryWhen the key becomes invalid, or blank if it never expires
Last UsedTimestamp of the most recent authenticated request

Using a Key

Include the public key as a Bearer token in every API request:

Authorization: Bearer flb_live_your_public_key_here

Example with cURL:

curl -X GET "https://api.fleetbase.io/v1/orders" \
  -H "Authorization: Bearer flb_live_your_public_key_here" \
  -H "Content-Type: application/json"

Key Actions

Right-click or use the menu on any row to access key actions:

ActionDescription
EditUpdate the key name or expiration
RenameQuickly rename the key without opening the full form
RollGenerate a new public/secret pair — requires your account password. Use this to rotate credentials after a suspected leak without deleting the key record
View Request LogsJump directly to Request Logs pre-filtered to this key
DeletePermanently remove the key — any integrations using it will stop authenticating immediately

Bulk Actions

Select multiple keys and use the Bulk Action dropdown to delete them in one operation.

Exporting Keys

Click Export to download the API key list in your chosen format (CSV, XLSX, XLS, HTML, PDF). The export includes key names, environments, and expiry dates — not the secret values.

Security

  • Never commit keys to version control or embed them in client-side code
  • Rotate keys periodically using the Roll action
  • Use descriptive names so you know which system each key belongs to and can revoke the right one quickly
  • Monitor usage in Request Logs to detect unexpected activity
API Keys | Fleetbase