How to get your ER:LC API key (server key) and keep it safe
What the ER:LC server key is, how to get it from your private server settings, what tools can do with it, and how to keep it safe or reset it if it leaks.
Dispatcher team · · 2 min read
The ER:LC Private Server API lets tools read your server's live data and send in-game commands for you. It's what powers Discord logging bots, web moderator panels and automations. To use any of them, you need your server key.
What you need
- To be the private server's owner
- The ERLC API server pack for that private server
How to find your server key
- Join your private server in ER:LC
- Open the private server settings
- Find the ER:LC API section (it appears once the API pack is active)
- Copy the server key
Paste the key only into tools you trust. Anyone who has it can read your server's data and run commands in it.
What tools can do with the key
According to the official ER:LC API documentation, the API can return:
- Server information: name, player count, maximum players and join code
- Players in the server, with their team, callsign, permission level and location
- Your staff list (admins, moderators and helpers)
- Join logs, kill logs, command logs and moderator calls
- Emergency calls, the queue and spawned vehicles
- Bans
Tools can also run commands in game, as if your server's management had typed them. A command only runs when at least one player is in the server.
Rate limits
The API limits how often tools can call it. Commands are limited to one every 5 seconds at the time of writing. Tools that ignore the limits get blocked for a while, so a well-built tool caches data and waits when it's told to.
Approving apps that send commands
Some public apps need you to approve them once before they can send commands to your server. They'll give you an authorization link that opens on the ER:LC API site. Reading data doesn't need this.
Keeping your key safe
- Never post it in Discord, even in a staff channel
- Only give it to tools that keep it on their servers, not in your browser
- Check each tool's privacy policy and terms before you paste it in
- Reset it if you stop using a tool or think it has leaked
How to reset your key
Open the private server settings, find the ER:LC API section and reset the key. The old key stops working straight away, so paste the new one into every tool you still use.
Frequently asked questions
- Is the ER:LC API free?
- The API needs the ERLC API server pack for your private server. Once you have it, you get your server key from the private server settings.
- Where is my ER:LC server key?
- In your private server settings in game, under the ER:LC API section. It only appears for the server owner once the API pack is active.
- What happens if someone gets my server key?
- They can read your server's data and run commands in it. Reset the key in your private server settings straight away and update the tools you trust with the new one.
Run your ER:LC server with Dispatcher
A moderator panel, staff roles, shifts, Discord logging, sessions and automations in one place. Free for up to three servers.
Related articles
- How to connect your ER:LC server to DispatcherA step-by-step walkthrough of finding your ER:LC server key and linking it to your Dispatcher dashboard for live data, player tracking and moderation logs.
- ER:LC private server commands list, with examplesThe ER:LC private server commands staff use, grouped by what they're for, with the exact way to type each one and tips for using them well.
- Understanding ER:LC command logs and what they tell youWhat ER:LC records in its command log, how to read it, and how to use it to catch problems like off-duty staff, dangerous mass commands and leaked server keys.