List a Player's Sessions

Lists the times a Roblox user joined and left your ER:LC server, newest first.

GET

/api/v1/server/player-sessions/roblox/{robloxId}

Request

curl -X GET "https://api.melonly.com/api/v1/server/player-sessions/roblox/{robloxId}" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

Success

{
  "data": [
    {
      "erlcServerId": "BuildermanRP",
      "id": "7528100000000000000",
      "joinedAt": 1794776861000,
      "leftAt": 1794784061000,
      "robloxId": "156",
      "userId": "7308965405773533184"
    }
  ],
  "page": 1,
  "pageSize": 10,
  "total": 1,
  "totalPages": 1
}

You can order by joinedAt (default) or id.

Authorization

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

Path parameters

robloxIdstringrequired

Query parameters

pageintegerdefault: 1
1-based page number. Defaults to 1.
pageSizeintegerdefault: 10
Items per page, clamped to 1-100. Defaults to 10.
orderBystring
Field to sort by. See the endpoint description for the accepted values.
sortstring
Sort direction. Defaults to desc.
Allowed values:ascdesc

Response

200 Success. Results are paged and also include page, pageSize, total and totalPages.

idstringrequired
Unique ID.
joinedAtintegerrequired
When they joined the game server.
robloxIdstringrequired
The player's Roblox ID.
erlcServerIdstring | null
The ER:LC server they were in.
leftAtinteger | null
When they left. Missing while they're still in game.
userIdstring | null
Melonly user ID, when the player has linked their Roblox account.

Errors

StatusMeaning
400Invalid request. validation_failed lists each invalid field in details.fields.
401Missing, invalid or expired token
429Rate limited. See Retry-After and details.
500Internal server error