Skip to content

Overview

What you can build

Read public profiles with no registration, or register an application to add RemiliaNET login and call the API.

Add RemiliaNET login to your app or Chromium extension. With the required API permissions, build a directory browser, a personal Beetle dashboard for reading state and discovered cards, a global chat companion for text messages and replies, or a friends companion. A public profile card needs no registered app or login.

Each integration below names the client and scopes that it needs. Choose the closest one as your starting point.

Integration types

Each endpoint path is under /api/v1.

IntegrationWhat it doesClient and scopesTopics
Public profile cardShows the public profile of a RemiliaNET user on your site. The user does not log in.No client, scope, or tokenDisplay a public profile
LoginLets users connect their RemiliaNET account to your app.Login client with openidRemiliaNET login, GET /me
Directory browserFinds directory-visible RemiliaNET accounts and resolves their linked handles.API client or Login client with remilia:directory.readGET /users, POST /directory/resolve
Beetle dashboardShows the Beetle state and discovered cards of a logged-in user.Login client with remilia:beetle.readGET /me/beetle, GET /me/beetle/cards
Global chat companionReads global chat and sends text messages or replies for a logged-in user who is permitted to post.Login client with remilia:chat.read and remilia:chat.writeGET /global-chat/messages, POST /global-chat/messages
Friends companionShows mutual friends and sends, accepts, or rejects friend requests for a logged-in user.Login client with remilia:social.read and remilia:social.writeGET /users/{username}/mutual-friends, POST /friendship/request
Browser extensionUses the login pattern in a Chromium extension and shows the connected account.Public Login client with openidAdd login to a Chromium extension

A public profile card displays a named account. It does not verify who is using your app. Login identifies the account through its user access token and GET /me. The extension uses this same identity API through Chromium's callback and background worker.

The developer portal sets the scopes of a client. A login request sends only scope=openid. For more information, see App permissions.

Public data without an application

These endpoints need no application registration, no user login, and no access token. Endpoints outside /api/v1 are website endpoints.

FeatureEndpointFacts
Public profilesGET /api/v1/users/{username}Returns the public profile of a user. For the response, see Get a profile by handle.
User searchWebsite endpoint GET /api/profile/search?q=remilia_jackson&limit=5Returns global and result. The default limit is 5, and the maximum is 20.
User display by Keycloak IDWebsite endpoint GET /api/profile/kc/{kcid}Returns the handle, the display name, the avatar URL, and the Beetle experience points (XP). The caller must know the ID.
Posts and threadsWebsite endpoints GET /api/posts, GET /api/posts/search?q=remilia_jackson, GET /api/posts/{postID}, and GET /api/posts/{postID}/threadReturn posts and threads.
Trophy shelf imagesWebsite endpoint GET /api/beetle/trophy/~{username}/shelfReturns trophy images when the display settings of the user allow them.

A personal account edits its profile, chats, and plays Beetle on the RemiliaNET website. An application needs its own Login client to log users in or to act for them.

Features of a registered application

An API client reads the directory and global chat without a logged-in user. It cannot read the private account data of a user or send messages as a user, which need a Login client. Each feature also needs its scope on the issued token, so login alone does not enable Beetle or chat access. The scope reference lists the scope and token kind of each endpoint.

Chat posting also depends on the account status, mutes, and request rate of the user. A scope alone does not guarantee that a message can be sent. See chat posting errors.

To create a client, register an application.

Features without API endpoints

The /api/v1 API has no endpoints for these features:

  • Beetle catching, hunting, claims, the faucet, and crafting.
  • Live chat subscriptions, adding reactions, and editing or deleting messages.
  • Uploading chat attachments or sending messages with attachments.

These features are available only on the RemiliaNET website. A registered API client or Login client gets no access to them through /api/v1.

Chat reads can include existing media and reaction counts.