Getting your API token
Create a ServerOps API token so your server can authenticate with the API.
Getting your API token
Every request your game server makes to ServerOps needs to include a token. Think of it like a password that tells ServerOps "this request is coming from my server". This guide shows you how to create one.
Steps
1. Sign in to your dashboard
Go to serverops.gg/dashboard and sign in. If you do not have an account yet, create one - it is free.
2. Create or select your organisation
ServerOps groups your servers under an organisation. If you are setting up for the first time, create an organisation from the dashboard home screen. Give it a name that represents your community (for example, "My RP Server" or "Nexus Network").
3. Go to Tokens
In the left sidebar, click Tokens.
4. Create a new token
Click Create token and fill in:
- Name: Something descriptive like "FiveM Media Uploads" or "Main Server". This is just for your reference.
- Scopes: Select the permissions this token needs. For media uploads, select
media:write. If you want to also fetch your files, addmedia:read.
Click Create to generate the token.
5. Copy and save your token
Your token looks like this:
so_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxCopy your token now and save it somewhere safe (a password manager or a text file on your desktop). ServerOps only shows it once. If you lose it, you will need to create a new one.
What scopes do I need?
| What you want to do | Scopes to add |
|---|---|
| Upload screenshots or files | media:write |
| Download or view your files | media:read |
| Delete files | media:write |
| Ingest logs | logs:write |
| Read logs | logs:read |
When in doubt, only add the scopes you actually need. If a script is only uploading files, give it media:write and nothing else.
Next step
Now that you have your token, head to the guide for your game: