Skip to content

API reference

Endpoints

Requests, responses, scopes, and errors of each endpoint of the RemiliaNET public API under /api/v1.

Each path starts with https://www.remilia.net/api/v1, and each response is JSON. Each endpoint lists its scope and its token kind: none, an app-only token, or a user-delegated token. A scoped request sends Authorization: Bearer <access_token>. Website endpoints outside /api/v1 are listed in Public data without an application.

Every endpoint except the two profile reads wraps its success payload in a data envelope:

Loading preview…

Errors use the error envelope on every endpoint. Each endpoint has an Example JSON response section with a sample response. The examples use Remilia Jackson unless a label says otherwise. Other account and friend identities are anonymized, and empty fields appear as returned. Relative image paths resolve against https://www.remilia.net, not against the origin of your app.

Profiles

Both calls return the same profile structure. The token's user identity determines which fields contain data.

PropertySomeone else's profileYour own profile
RequestGET /users/{username}GET /me
TokenOptional. A user token adds viewer-specific detailsThe user token of that account required
user.property, user.stats, user.aggregateScoresnull, even with another user's tokennull on GET /me. Use GET /me/stats
isOwnProfilefalsetrue
viewerContextMutual friends and other viewer-specific details when logged inNo other user to compare against. Mutual lists are empty
user.connectionsLinked accounts, if anySame field. Not an owner-only addition

For more information about the presentation of the name, the handle, the preferred color, and the profile picture (PFP), see Remilia profiles in your app.

Displayed friends and trophies

user.friendsDisplayed is the user's pinned display list, in the order they chose. It is not a ranking of their closest or most active friends.

user.trophyShelves describes three shelves of five slots. Indexes 0 to 4 are the first shelf, 5 to 9 the second, and 10 to 14 the third. A zero marks an empty slot. Preserve the positions and gaps when you render it. Use user.allTrophies for trophy details.

Get a profile by handle

GET /users/{username}

Returns the public profile of any user, by {username}. The handle picks the profile. The token, if any, picks the viewer.

Scope: none. No token required.

RequestViewerResponse
No token, or an app-only tokenAnonymousThe public profile. Viewer fields are empty.
User token, another user's usernameThe logged-in userThe public profile, compared with the logged-in user: viewerContext (friendship, mutual friends, pokes), achievementContext, and twitterMutuals
User token, your own usernameYouYour own profile with isOwnProfile: true, the same as GET /me. Owner statistics are null; they come from GET /me/stats.

The comparison is always between the logged-in user and {username}. The endpoint cannot compare two other users. The profile of another user never includes their property, statistics, or aggregate scores, even with a user token.

The server validates a token even on this public endpoint. An expired or malformed token returns 401 invalid_token.

curl https://www.remilia.net/api/v1/users/remilia_jackson

The profile object is returned directly (no data wrapper).

Example JSON response: without a token

Remilia Jackson's public profile. Friend names, IDs, and avatars are anonymized.

Loading preview…
Example JSON response: with a user token

The same profile viewed by another logged-in user. Mutual friends and achievement details are populated. Friend names, IDs, and avatars are anonymized.

Loading preview…

Without a user token, achievementContext, mutualFriends, and twitterMutuals are empty and owner statistics are null. A user token adds viewer-specific details. Your own profile includes owner statistics. twitterMutuals can still be empty for a logged-in viewer.

An unknown username returns 404 with the error envelope:

Loading preview…

Get your own profile

GET /me

Returns the profile of the account that authorized your application.

isOwnProfile is true. user.property, user.stats, and user.aggregateScores are null, as on every profile response. The remaining profile fields use the same structure. Account statistics are available through GET /me/stats, which requires the remilia:stats.read scope.

Calling GET /users/{username} with your own username and your own user token returns the same response. /me needs no username.

Scope: none. Requires a user's token. openid is sufficient.

curl https://www.remilia.net/api/v1/me \
  -H "Authorization: Bearer $ACCESS_TOKEN"

The response returns the profile object directly, without a data wrapper. An app-only token returns 403 requires_user.

Example JSON response

Remilia Jackson's own profile. Each achievementContext key is an achievement ID. viewerOwns indicates whether the viewer owns it. Friend names, IDs, and avatars are anonymized.

Loading preview…
Account connections example

An account with linked services can have populated user.connections. This shows the connection field from another account's /me response. Linked usernames and external account IDs are anonymized.

Loading preview…

Shared profile fields

FieldMeaning
user.trophyShelvesFifteen trophy-case slots, read left to right across three shelves of five. 0 is an empty slot. Other values are trophy IDs matching entries in user.allTrophies.
user.allTrophiesThe account's trophy collection, including each trophy's ID, name and images. The shelf list selects which trophies to display and where.
user.connectionsLinked account entries. [] means the response has none for this account. A login does not create connections.

Get your account statistics

GET /me/stats

Returns per-platform statistics and aggregate scores for the token's user.

Scope: remilia:stats.read · user-delegated token required

curl https://www.remilia.net/api/v1/me/stats \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Example JSON response: Remilia Jackson

All platforms and aggregate scores are included, even when they are zero. The response has no wallet, token, or collection data.

Loading preview…

Notifications

List your notifications

GET /me/notifications

Scope: remilia:notifications.read · user-delegated token required

Query parameterMeaning
limitPage size. Default 10. Values outside [1, 50] fall back to the default.
page1-based page number. Default 1.
curl "https://www.remilia.net/api/v1/me/notifications?limit=3&page=1" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Example JSON response
Loading preview…

count, from, guild_name, and message appear only on notification types that carry them.

Beetle

Get your Beetle state

GET /me/beetle

Returns your Beetle game state in data: experience points (XP), level, inventory, hammer durability, and cooldowns.

Scope: remilia:beetle.read · user-delegated token required

The example shows Remilia Jackson's Beetle state after catching a beetle.

Example JSON response
Loading preview…

Inventory keys are item codenames. Cooldown values are milliseconds remaining. The response can omit a cooldown with no time remaining.

Optional Beetle fields

Illustrative values for fields omitted when no hammer, streak risk, or active cooldown is present. These fields belong inside data alongside the fields in the response above.

Loading preview…

List your discovered Beetle cards

GET /me/beetle/cards

Returns the caller's discovered cards keyed by card codename, wrapped in data. The example shows three entries from Remilia Jackson's collection.

Scope: remilia:beetle.read · user-delegated token required

Example JSON response
Loading preview…

The object is keyed by discovered card codename. A user with no discovered cards receives an empty data object.

Get your Beetle cooldowns

GET /me/beetle/cooldowns

Returns the time left before each Beetle action is available again, in milliseconds, wrapped in data. The response has no inventory or other game state.

Scope: remilia:beetle.read · user-delegated token required

curl https://www.remilia.net/api/v1/me/beetle/cooldowns \
  -H "Authorization: Bearer $ACCESS_TOKEN"
FieldAction
catchBeetleCatch a beetle
claimUBCClaim cheese
beetleHuntHunt
junkFaucetClaim from the junk faucet

A field is absent when its action is available now. When every action is available, data is an empty object.

Example JSON response

Illustrative response, with catch and hunt on cooldown:

Loading preview…

Ball

Grand Remilia Ball endpoints exist only while the Ball is open.

Get the Ball countdown

GET /ball

Returns the Ball schedule in data. Times are Unix milliseconds.

Scope: none · no token required

curl https://www.remilia.net/api/v1/ball
FieldMeaning
ball_starts_atWhen answers lock and the Ball begins
ball_ends_atWhen the Ball ends
days_remainingWhole days until ball_starts_at, rounded up. 0 once the Ball is underway.
is_underwaytrue from ball_starts_at until ball_ends_at
next_delivery_atWhen the next daily card delivery reaches mailboxes. null after the last delivery.
Example JSON response
Loading preview…

Get a user's roses tier

GET /ball/users/{handle}

Returns the roses tier of a person in data. The tier is a bucket of the number of roses the person has received.

Scope: none · no token required

curl https://www.remilia.net/api/v1/ball/users/remilia_jackson

roses_tier is one of none, 1-2, 3-4, 5-9, 10-24, or 25+. A disabled account has the tier none. An unknown handle returns 404 not_found.

Example JSON response
Loading preview…

Get your Ball status

GET /ball/me

Returns the Ball status of the authenticated user in data.

Scope: remilia:ball.read · user-delegated token required

curl https://www.remilia.net/api/v1/ball/me \
  -H "Authorization: Bearer $ACCESS_TOKEN"
FieldMeaning
mail.unread_countNumber of unread messages in the Ball mailbox of the user.
mail.mailbox_urlLink to the Ball mailbox on RemiliaNET, where the user can read messages.
date.statussingle or engaged
date.partnerHandle of the date of the user. null when the user is single.
gallery.foundNumber of distinct collectables that the user has found
gallery.totalNumber of collectables in the gallery
Example JSON response

Illustrative response:

Loading preview…

After the Ball ends

The Ball ends at 10:00 PM PST on 9 December 2026. From then on, every /ball endpoint returns 410 ball_ended:

Loading preview…

When your app receives this response, or when ball_ends_at passes, delete stored Ball data: unread counts, date status, partner handles, gallery progress, and roses tiers.

Pokes

Poke a user

POST /users/{handle}/poke

Sends a poke to {handle}, attributed to the authenticated user.

Scope: remilia:pokes.write · user-delegated token required

curl -X POST https://www.remilia.net/api/v1/users/remilia_jackson/poke \
  -H "Authorization: Bearer $ACCESS_TOKEN"

A successful response returns data.target_handle and data.poked_at (a Unix timestamp in milliseconds). A user cannot poke their own account. The example pokes Remilia Jackson with the token of another user.

A second poke to the same user within 24 hours returns 429 poke_cooldown. The error includes next_allowed_at, the next time that user can send a poke.

Example JSON response

Illustrative successful poke:

Loading preview…
Cooldown error

Illustrative repeat poke:

Loading preview…

Get the poke cooldown

GET /users/{handle}/poke/cooldown

Returns whether the authenticated user can poke {handle} now, wrapped in data. Check it before you show a poke control.

Scope: remilia:pokes.write · user-delegated token required

curl https://www.remilia.net/api/v1/users/remilia_jackson/poke/cooldown \
  -H "Authorization: Bearer $ACCESS_TOKEN"
FieldMeaning
can_poketrue when a poke is available now
cooldown_msMilliseconds until the next poke. Absent when can_poke is true.
next_allowed_atUnix timestamp in milliseconds of the next poke. Absent when can_poke is true.

An unknown handle returns 404 user_not_found.

Example JSON response

Illustrative response, on cooldown:

Loading preview…

Friends

List mutual friends

GET /users/{username}/mutual-friends

Returns the friends that the authenticated user and {username} have in common, wrapped in data. count is the total. mutuals holds up to five of them, as public directory identities.

Scope: remilia:social.read · user-delegated token required

curl https://www.remilia.net/api/v1/users/remilia_jackson/mutual-friends \
  -H "Authorization: Bearer $ACCESS_TOKEN"

An unknown username returns 404 not_found.

Example JSON response

Illustrative response:

Loading preview…

Send a friend request

POST /friendship/request

Sends a friend request from the authenticated user to username. RemiliaNET notifies the other user.

Scope: remilia:social.write · user-delegated token required

curl -X POST https://www.remilia.net/api/v1/friendship/request \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "remilia_jackson"}'

A successful request returns {"success": true}. A request to a user who is already a friend, or who has a pending request with the authenticated user, returns 400.

Accept a friend request

POST /friendship/accept

Accepts the pending friend request that username sent to the authenticated user. The body is the same as for Send a friend request.

Scope: remilia:social.write · user-delegated token required

A successful request returns {"success": true}. Accepting a request that is already accepted also succeeds. Without a pending request from username, the request returns 400.

Reject a friend request

POST /friendship/reject

Rejects the pending friend request that username sent to the authenticated user. The body is the same as for Send a friend request.

Scope: remilia:social.write · user-delegated token required

A successful request returns {"success": true}, and RemiliaNET notifies username that the request was declined. Without a pending request from username, the request returns 400.

Plain-text errors

The friendship endpoints return most 400 errors as plain text, not as the error envelope. An unknown username, your own username, and a request in the wrong state return plain text. Only a body that is not valid JSON returns the envelope.

Global chat

List global chat messages

GET /global-chat/messages

Returns global chat messages, oldest first. The example shows the sample message sent by Remilia Jackson in the next section. Its ID selects that message with before. Use IDs from your own responses when you page.

Scope: remilia:chat.read · user-delegated or app-only token

An app with a server can use an app-only token. A user-delegated token also applies the hidden-user and privacy rules of that user.

Query parameterMeaning
limitPage size. Default 20, capped at 100. Must be a positive integer.
beforeA message id. Returns the messages before it. Omit for the most recent page.
curl "https://www.remilia.net/api/v1/global-chat/messages?limit=1&before=58576" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Example JSON response
Loading preview…

When has_more is true, next_cursor passed as before returns the page of earlier messages. Messages may also carry reply_to_id, media (kind, url, thumbnail_url, width, height, is_animated), reactions (emoji, count), and edited_at.

Post a global chat message

POST /global-chat/messages

Posts a text message to global chat as the authenticated user.

Scope: remilia:chat.write · user-delegated token required

curl -X POST https://www.remilia.net/api/v1/global-chat/messages \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "gm from Remilia Jackson"}'

text is required, up to 8,192 bytes. reply_to_id is optional.

Returns 201 with the created message (same shape as the list) in data.

Example JSON response
Loading preview…
Reply response

Illustrative reply. reply_to_id identifies the message being answered.

Loading preview…
Statuserror.codeWhen
400invalid_requestMissing or over-long text, malformed body, or a non-numeric reply_to_id
400invalid_replyreply_to_id does not reference a real message
403forbiddenYou are muted or not permitted to post to global chat
413invalid_requestRequest body too large
429rate_limitedMore than one message every 2 seconds

Directory

Resolve directory identities

POST /directory/resolve

Returns matching public identities for up to 50 identifiers in one request. Duplicate identifiers are returned once, in first-occurrence order. Match results using query, which echoes the original identifier. identity is null when no directory-visible user matches. A null identity is a lookup result, not a login failure or a permission error.

A failed request returns an HTTP status and an error code instead of results. A 401, a 403, a network failure, or a server error is not a missing user. A user can link an account or change their handle after a lookup, so an earlier result can be out of date.

Scope: remilia:directory.read · user-delegated or app-only token

An app with a server can use an app-only token.

Identifier type is one of handle, x_handle, github, discord. Values are trimmed and lowercased. For x_handle, github, and discord, a leading @ is removed. Deduplication uses the type and normalized value. More than 50 inputs returns 400 too_many_identifiers, including duplicates.

curl -X POST https://www.remilia.net/api/v1/directory/resolve \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"identifiers": [{"type": "handle", "value": "remilia_jackson"}]}'
Example JSON response
Loading preview…

Enumerate the user directory

GET /users

Pages through all directory-visible users in a stable order, using cursor pagination.

Scope: remilia:directory.read · user-delegated or app-only token

An app with a server can use an app-only token.

Query parameterMeaning
limitPage size. Default 25, capped at 100. Must be a positive integer.
cursorOpaque continuation token from the previous page. Omit for the first page.
curl "https://www.remilia.net/api/v1/users?limit=1" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

This example requests the first page. next_cursor is an opaque value.

Example JSON response
Loading preview…

next_cursor is null on the final page. On other pages, a client passes it back verbatim as cursor to get the next page.

Errors

Errors use the envelope:

Loading preview…
Statuserror.codeWhen
400invalid_requestA malformed query parameter or request body
400too_many_identifiersMore than 50 identifiers in a directory lookup
401unauthorizedNo token on an endpoint that requires one
401invalid_tokenThe token is invalid or expired. Public endpoints also validate tokens.
403insufficient_scopeThe token lacks the scope the endpoint requires
403requires_userThe endpoint acts for a user but the token is app-only (API client)
403forbiddenThe account is disabled, or the action is not permitted
404not_foundNo such endpoint, or no such user profile
404user_not_foundThe target user of an action does not exist
405method_not_allowedWrong HTTP method for the path
410ball_endedA Ball endpoint after the Ball has ended
429rate_limited, poke_cooldownRequests arrive too fast. poke_cooldown includes next_allowed_at
500internal_errorThe server could not complete the request. Wait before you retry a read. Before you repeat a write, check its result.

Endpoint-specific codes (invalid_reply, poke_cooldown) are listed with their endpoints above.