Your communities
const url = 'https://api.gampeon.com/v1/me/communities';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.gampeon.com/v1/me/communities \ --header 'Authorization: Bearer <token>'Communities you joined plus those of studios and projects you manage, oldest first, with unread and mentions over the channels you can see. manageable lists studios and projects you manage and their community ID (or null), for a create button. Poll every 30 seconds at most until real-time updates arrive.
Not available with access tokens.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Communities
object
object
object
open: anyone who meets the minimum age can join. invite: only with an invite link
13 or 16. Communities for 18+ come only with real age verification
Players online right now on servers of the project (or of all projects of the studio)
Unix time in milliseconds
Hidden by GAMPEON or the studio or project is hidden
Example
{ "communities": [ { "owner": { "type": "studio" }, "joinMode": "open" } ], "manageable": [ { "type": "studio" } ]}Error codes: unauthorized
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: token_not_allowed
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}