melonly logomelonly logo
melonly logo
Dashboard
Log in

Get Your Server

Gets the server the token belongs to. A quick way to check a new token works.

GET

/api/v1/server/info

Request

curl -X GET "https://api.melonly.com/api/v1/server/info" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

Success

{
  "data": {
    "createdAt": 1689000000000,
    "discordGuildId": "1043254628961792060",
    "id": "7294057520392310784",
    "joinCode": "liberty",
    "name": "Nelly's Liberty County",
    "ownerId": "7264722635089514496",
    "premium": true,
    "roles": [
      "7314779729419046912"
    ]
  }
}

Authorization

Authorizationstringrequired
Your API token as Bearer YOUR_TOKEN. Create one in your server's dashboard settings.

Response

200 Success

createdAtintegerrequired
When it was created.
idstringrequired
Unique ID.
namestringrequired
Server name.
ownerIdstringrequired
Member ID of the server owner.
premiumbooleanrequired
Whether the server has premium.
rolesstring[]required
IDs of the server's roles.
discordGuildIdstring | null
Linked Discord server ID.
joinCodestring | null
Code members use to join.

Errors

StatusMeaning
401Missing, invalid or expired token
429Rate limited. See Retry-After and details.
500Internal server error