Preview an invite
GET
/v1/community-invites/{code}
const url = 'https://api.gampeon.com/v1/community-invites/example';const options = {method: 'GET'};
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/community-invites/exampleName, icon, members and rules of the community behind an invite link.
Rate limit: 60 per hour per IP.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”code
required
string
Invite code
Responses
Section titled “Responses”Invite
Media typeapplication/json
object
code
required
string
expiresAt
required
Unix time in milliseconds
integer format: int64
community
required
object
id
required
integer
name
required
string
description
required
string
icon
required
cover
required
owner
required
object
type
required
string
slug
required
string
name
required
string
joinMode
required
open: anyone who meets the minimum age can join. invite: only with an invite link
string
minAge
required
13 or 16. Communities for 18+ come only with real age verification
integer
members
required
integer
players
required
Players online right now on servers of the project (or of all projects of the studio)
integer
createdAt
required
Unix time in milliseconds
integer format: int64
rules
required
string
Example
{ "community": { "owner": { "type": "studio" }, "joinMode": "open" }}Error codes: invite_invalid
Media typeapplication/json
object
error
required
Machine-readable error code, for example not_found or rate_limited.
string
message
Human-readable detail. Only present for some errors.
string
Example generated
{ "error": "example", "message": "example"}Limit: 60 per hour per IP. Error codes: rate_limited
Media typeapplication/json
object
error
required
Machine-readable error code, for example not_found or rate_limited.
string
message
Human-readable detail. Only present for some errors.
string
Example generated
{ "error": "example", "message": "example"}