πŸ“šv1 API Reference

PRC API v1 is public and outlined on this page. PRC API v2 is currently in beta testing (closed access, you cannot apply or gain access) and will replace version one soon.

API Authentication

All requests to the API must have a valid Server-Key header provided.

circle-info

Not sure where to find your server key?

Join your private server, open the settings, and search for "API key" under the ER:LC API header.

API Reference

PRC moderators and the API development team are unable to provide support with coding or integrating the API into third party solutions.

circle-exclamation

Run a command as a player named "virtual server management"

post
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Body
commandstringOptional

The command to be executed

Example: :h Hey everyone!
Responses
chevron-right
200

Command executed successfully

No content

post
/server/command

No content

Fetch server status

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Server status data

application/json
NamestringOptionalExample: API Test
OwnerIdintegerOptional
CoOwnerIdsinteger[]Optional
CurrentPlayersintegerOptional
MaxPlayersintegerOptional
JoinKeystringOptionalExample: APIServer
AccVerifiedReqstringOptionalExample: Disabled / Email / Phone/ID
TeamBalancebooleanOptional
get
/server

Fetch players in server

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Players in server

application/json
PlayerstringOptionalExample: PlayerName:Id
PermissionstringOptionalExample: Normal / Server Administrator / Server Owner / Server Moderator
Callsignstring Β· nullableOptionalExample: The player's callsign - only available if the player is on a non-civilian team
TeamstringOptionalExample: The player's team
get
/server/players

Fetch join logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Join logs data

application/json
JoinbooleanOptionalExample: true
TimestampintegerOptionalExample: 1704614400
PlayerstringOptionalExample: PlayerName:Id
get
/server/joinlogs

Fetch players in queue

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Players in queue (by Roblox id)

application/json
integer[]Optional
get
/server/queue

Fetch kill logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Kill logs data

application/json
KilledstringOptionalExample: PlayerName:Id
TimestampintegerOptionalExample: 1704614400
KillerstringOptionalExample: PlayerName:Id
get
/server/killlogs

Fetch command logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Command logs data

application/json
PlayerstringOptionalExample: PlayerName:Id
TimestampintegerOptionalExample: 1704614400
CommandstringOptionalExample: :h
get
/server/commandlogs

Fetch moderator call logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Moderator call logs data. 'Moderator' is only sent if a mod has responded to the call.

application/json
CallerstringOptionalExample: PlayerName:Id
Moderatorstring Β· nullableOptionalExample: PlayerName:Id
TimestampintegerOptionalExample: 1704614400
get
/server/modcalls

Fetch bans

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Bans data

application/json
PlayerIdstringOptionalExample: PlayerName
get
/server/bans

Fetch a list of spawned vehicles in the server

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Vehicles in the server

application/json
Texturestring Β· nullableOptionalExample: Standard
NamestringOptionalExample: 2019 Falcon Interceptor Utility
OwnerstringOptionalExample: flat_bird
get
/server/vehicles
Deprecated

Fetch a list of the server's staff (mods + admins)

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Server Staff

application/json
CoOwnersinteger[]Optional

List of Roblox user IDs who are co-owners of the server

AdminsobjectOptional

Map of Roblox user IDs to usernames for server administrators

Example: {"54249787":"Black_Hallow","77573259":"sli_ckk"}
ModsobjectOptional

Map of Roblox user IDs to usernames for server moderators

Example: {"2":"JohnDoe","3":"JaneDoe"}
get
/server/staff

^ /v1/server/staff will continue working despite deprecation, however, it will not be updated and you may experience bugs.

Resetting a global API key:

If you were issued a global API key, you can reset it by sending a POST to /v1/api-key/reset with the "authorization" header set as your API key. This will send a new key which can only be viewed once. If you lose the key, the person who requested the API key must contact PRC.

Last updated