πŸ“š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
get
/server

Fetch players in server

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Players in server

application/json
get
/server/players

Fetch join logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Join logs data

application/json
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
Responseinteger[]
get
/server/queue

Fetch kill logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Kill logs data

application/json
get
/server/killlogs

Fetch command logs

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Command logs data

application/json
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
get
/server/modcalls

Fetch bans

get
Authorizations
server-keystringRequired

REQUIRED ON ALL REQUESTS.

Responses
chevron-right
200

Bans data

application/json
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
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
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