Server
Check a key
The key’s name, scopes and server. Use it for a “test connection” button.
GET
/
v1
/
me
Check a key
curl --request GET \
--url https://api.eraus.gg/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eraus.gg/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.eraus.gg/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"key": { "id": "key_6lifpydmlj", "name": "Sonoran CAD", "scopes": ["read", "commands"], "createdAt": 1793875464 },
"server": { "id": "k3j9x0abq2mn", "name": "Sydney Metro RP", "online": true }
}
object
object
{
"key": { "id": "key_6lifpydmlj", "name": "Sonoran CAD", "scopes": ["read", "commands"], "createdAt": 1793875464 },
"server": { "id": "k3j9x0abq2mn", "name": "Sydney Metro RP", "online": true }
}
⌘I
Check a key
curl --request GET \
--url https://api.eraus.gg/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eraus.gg/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.eraus.gg/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"key": { "id": "key_6lifpydmlj", "name": "Sonoran CAD", "scopes": ["read", "commands"], "createdAt": 1793875464 },
"server": { "id": "k3j9x0abq2mn", "name": "Sydney Metro RP", "online": true }
}

