API Keys
Create a v1 API key with the scopes your server needs, rotate it without downtime, and revoke it.
An API key lets your own server call the Fungies API for this workspace. Open
Developers → API keys. The tab lists the keys of the mode you are in. A key made in test
mode works in test mode only, and its prefix says so: fgs_test, or fgs_live in live mode.
Use this tab when you connect a server or an integration, when a key may have leaked, or when you change who or what may call the API.
Keep every key on your server. Never put one in a browser, in an app you ship, or in a URL.
The list
API v1 keys shows each key with its name, its scopes, a short form of the key (for example
fgs_test_…7Q4M), when it was created, when it was last used and, once it is being replaced,
when it stops working. A key an agent may use over MCP carries an MCP badge. Search the list
by name, short form or scope.
Each mode holds at most 5 v1 keys. Older keys, from API v0, are listed under API v0 keys: you can read and revoke them here, but every new key is a v1 key.
Create a key
- Click Create v1 key.
- Name the key (up to 64 characters), for example after the server that will use it.
- Choose the scopes:
- Read only: the key reads everything and changes nothing.
- Full access: the key reads and changes everything.
- Custom: tick Read, Write or both for each resource (Catalogue, Orders, Customers, Subscriptions, Charges and schedules, Usage, Webhooks). Write does not include read: tick both when the key needs both.
- Tick Allow MCP only if an AI agent should connect with this key over MCP. It is off unless you tick it.
- Click Create key. If you have not signed in with your authenticator app recently, the dashboard asks for a code first.
- Click Copy key, store the key on your server, then click I have saved it.
This is the only time the whole key is shown. Once you close the dialog it cannot be shown again; if you lose it, create a new key.
Rotate a key
Rotating gives you a new key with the same name and scopes. The old key keeps working long enough for your servers to switch.
- Open the ⋯ menu in the key's row and click Rotate.
- Choose how long The old key keeps working: Not at all: it stops now, For 1 hour, For 24 hours (the default) or For 7 days.
- Click Rotate key, enter your authenticator code if asked, then copy the new key.
The dialog tells you when the old key stops. A key that is already being replaced can only be revoked, not rotated again.
Revoke a key
Open the ⋯ menu in the key's row, click Revoke, then Revoke key. The key stops working within 60 seconds: a call made in that minute may still pass; every call after it is refused. There is no undo. Revoking asks for no authenticator code, so you can stop a leaked key in one click.
Allow or stop MCP on a key
Open the ⋯ menu in the key's row and click Allow MCP or Stop MCP. Under the list, the MCP endpoint card shows the address to paste into your MCP client, with Copy address; the client sends the key as its bearer token. An agent connected this way stays inside the key's scopes, and every change it plans waits for you under Agent approvals.
Example: a key for an order-sync server
You run a small server that copies new orders into your accounting tool.
-
In test mode, click Create v1 key, name it
accounting-sync, choose Custom and tick Orders: Read and Customers: Read only. -
Copy the key into the server's secret store and check that it works:
curl https://api.fungies.io/v1/whoami \ -H "Authorization: Bearer $FUNGIES_API_KEY" -
Try a call that changes an order: it is refused with
KEY_SCOPE_MISSING, because the key can only read. -
Months later, rotate the key with For 24 hours, deploy the new key, and the old one stops by itself the next day.
When something is refused
| Message | What to do |
|---|---|
| The limit of keys is reached | Each mode holds 5 v1 keys. Revoke one you no longer use. |
| Keys are locked | API keys are locked for this workspace. Contact support. |
| Live keys are not available | Live v1 keys are not open for your workspace yet. Use a test key. |
| Your role does not cover API keys | Ask a workspace owner to create the key or to change your role. |
Next steps
Last updated