Skip to Content
Integrations

API access

Give a bot or script an API key, see whether it is in use, and disable, regenerate or delete it.

An API key lets a bot, a script or your own service reach site data through the REST API. This screen is where you hand out keys, see which of them are in use, and close access when a key leaks or is no longer needed.

Only the site owner can open it (the admin.boss permission). A game server needs no key: it connects with the GameLink token from its server card.

AdminAPI access

At the top is the "Create API key" button, with the "Keys" list below it. The list header carries a summary such as "3 total · 2 in use · 1 never used". Further down, "How to call the API" shows the /api/v1 base address and a ready curl request, and at the very bottom the "API playground" lets you paste a key and send a request straight from the browser.

The Keys list with its summary, the Key is active toggle and the buttons on each key

Issue a key

Click "Create API key", fill in "Name" (for example "Discord bot") and pick "What the key may do": "Read only", "Full access" or "Custom". Per-resource access and the first request are covered in the REST API reference.

After saving, a "Copy the API key now" card appears above the list. The key is shown once: the site stores only its hash, and afterwards the key can only be regenerated.

The Copy the API key now card with the key and a copy button

A key acts on behalf of whoever created it. Its changes are recorded under that account, and the key has that account's rank, so it can't touch roles and players above you (see rank).

What a key row shows

Each key shows its name, a masked tag like 3f9a1c••••b07e, the creation date and the date of the last request. The tag is built from the hash, so it won't match the start of your key. "never used" means nobody has called the API with that key yet. The last-request time is updated at most once a minute.

To the right sits "REST: 4", the number of resources the key can reach, or "REST closed" when it has no REST API access. A "legacy API: N" tag appears on keys that were given "Rights for old integrations".

Click a row to open "Edit API key", where you change the name and access. The key itself stays the same.

Disable, regenerate, delete

ActionWhat happens
the "Key is active" togglethe key stops passing at once, its access and history stay. Turn it back on when needed
"Regenerate"a new key is issued and the old one stops working at once. Access stays the same
"Delete"the key is gone for good. Select rows to delete several keys at once

If a key leaks, click "Regenerate" and put the new key wherever the old one was used. Disabling fits an integration you don't need for a while.

Regenerating hands the key over to you: from then on it acts on your behalf and keeps only the access you can grant yourself.

This action needs a password or 2FA. Set a password or enable 2FA in your profile.

Regenerating, editing and re-enabling a key ask you to confirm it's you. If you only sign in with Steam or Discord, your account has no password. Set one or enable 2FA in your profile, then try again.

Keys don't expire: a key works until you disable, regenerate or delete it.

Troubleshooting

For any other message, use the error lookup.

"An API key with this name already exists." means key names must be unique, so pick another one.

A request answering 401 invalid_token means the key is disabled, regenerated or wasn't copied in full. Check that the key shows "Key is active". A 403 insufficient_scope answer means the key lacks access to that resource: open the key and add it.

Reference

Next

On this page