Nomalos Public API
Welcome to the Nomalos public API! All endpoints are available at:
https://comingsoon.com/api/
Authentication
All endpoints require authentication. To properly authenticate, include your API key in the Authorization header:
Authorization: Bearer {your_token_here}You can obtain a token by logging in via the website.
GET/api/games
Retrieve a list of all active games.
Returns:
[
{
"id": "string",
"players": ["userId1", "userId2"],
"createdAt": "ISODate",
"timing": "short" | "long",
"rated": true,
...
}
]GET/api/archive
Retrieve a list of completed (archived) games.
Returns:
[
{
"id": "string",
"players": ["userId1", "userId2"],
"winner": "userId1",
"createdAt": "ISODate",
"endedAt": "ISODate",
...
}
]GET/api/user/<username>
Retrieve public profile information for a user.
Returns:
{
"id": "string",
"username": "string",
"shortRating": 1200,
"longRating": 1200,
"createdAt": "ISODate",
...
}GET/api/user/games/<userId>
Retrieve all games (active and archived) for a specific user.
Returns:
[
{
"id": "string",
"players": ["userId1", "userId2"],
"timing": "short" | "long",
"rated": true,
"winner": "userId1" | null,
...
}
]