Documentation
Start a server integration or build a Margonem add-on with Lootlog.
Start with your integration
A server application uses a personal API key. A Margonem add-on uses the installed Lootlog game client. Choose the guide for where your code runs.
Server application
Create a key, configure your environment, and send your first HTTP request.
Margonem add-on
Use the player's existing Lootlog client from a userscript, without a server API key.
Connect a server application
- Create an API key. Sign in with Discord and select the Organizations your integration needs.
- Send your first request. Configure your environment and read Organization data.
- Explore the API reference. Find operations, request parameters, and response schemas for each service.
A key is limited by its selected scope and your current permissions. Read keys and permissions before adding write operations or rotating a key.
Continue building
- TypeScript SDK: typed HTTP clients and realtime tools for server applications.
- Realtime: WebSocket authentication, subscriptions, and reconnect behavior.
- Errors and limits: handle rejected requests and service limits.
- Changelog: changes to the developer platform.
Keep server API keys in a secret store. Never put them in userscripts, frontend code, or public repositories.
Choose your environment
Create separate keys for each environment. Test your integration in development before using production data.
| Environment | Developer portal | Main API |
|---|---|---|
| Development | dev-developer.lootlog.pl | dev-api.lootlog.pl |
| Production | developer.lootlog.pl | api.lootlog.pl |
The HTTP guide lists the service hosts. Use the realtime guide for gateway addresses.