Player API
Premium Only
We provide an API for the creation, deletion and listing of players associated with a game.
Create New Player
To create a new player, you must send a POST
request to https://api.planetaryprocessing.io/api/players
with a JSON body containing the username and password of the new player.
Your request must also have your game's personal API Key in the X-API-KEY
header.
This will return the Player ID in a JSON response:
cURL Example
Delete Player
To delete a player, you must send a DELETE
request to https://api.planetaryprocessing.io/api/players
with a JSON body containing the UUID of the player,.
Your request must also have your game's personal API Key in the X-API-KEY
header.
cURL Example
List Players
To list players, simply call GET
on the https://api.planetaryprocessing.io/api/players/
endpoint with your API key in the X-API-KEY
header. It will return a JSON array of players like so:
cURL Example
Last updated