Create and Manage API Keys
An API key is a token you create to access the Fiskl API from your own scripts, tools, and integrations. This guide explains how to create a key, scope it to exactly what it needs, and revoke it when you are done.
Before You Begin​
- You need the
api_key.createpermission to create keys for yourself. - API keys are available on paid plans. On the free plan, key creation prompts you to upgrade.
- A key can only use permissions you hold. If you cannot grant a permission, you do not have it yourself.
Create an API Key​
To create a key, go to Settings > API & Connections > My API keys and select Create key.
-
Name the key
Enter a clear name that describes where the key is used, such as "Nightly export script". A good name makes the key easy to recognise later.
-
Set an expiry (optional)
Choose an expiry such as 90 days or one year, or leave it open-ended. A key with no expiry lives until you revoke it.
-
Select scopes
Use the permission grid to select what the key can do. Select only the permissions the integration needs — for example,
invoice.readfor a key that only exports invoices. Permissions you do not hold are disabled.tipSelect the read-only option to grant every
readpermission you hold in one step. This covers the common case of a reporting or export integration. -
Copy the secret
After you select Create, Fiskl shows the full key once, starting with
fsk_. Copy it now and store it somewhere secure, such as your secret manager.warningFiskl does not store the full key and cannot show it again. If you lose it, revoke the key and create a new one.
Use the Key​
Send the key in the Authorization header of every request:
curl https://api.fiskl.com/v1/clients \
-H "Authorization: Bearer fsk_your_key_here"
For a full walkthrough of base URLs, responses, and errors, see Make Your First API Request.
Manage and Revoke Keys​
The My API keys list shows each key's name, prefix, scopes, creation date, last use, and status. The prefix (for example fsk_8fK2mQ9xL3aB) helps you identify a key without exposing the secret.
To revoke a key, select it in the list and select Revoke. Revocation is immediate — any request using that key stops working at once. Keys are never fully deleted, so you keep an audit trail of what existed.
Company administrators with the api_key.manage permission can view and revoke every key in the company, not just their own. This is the view to use during a security review.
Common Issues​
The API returns 401 with a key that looks correct
The key is revoked, expired, or was copied incompletely. Check the key's status in My API keys, and confirm you copied the entire secret including the fsk_ prefix. If in doubt, revoke it and create a new one.
The API returns 403 for a request the key should allow
The key's scopes do not include the required permission, or your own permissions changed after you created the key. Check what the key can do by calling /v1/me/permissions, then create a new key with the right scopes if needed.
Related Topics​
- Make Your First API Request — Use your key to call the API
- Connect Apps with OAuth — Let other users' apps access Fiskl instead of a personal key
- Public API Overview — How keys, OAuth, and webhooks fit together
- Roles and Permissions — How permissions control what a key can do