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.
| Integration | What it does | Client and scopes | Topics |
|---|---|---|---|
| Public profile card | Shows the public profile of a RemiliaNET user on your site. The user does not log in. | No client, scope, or token | Display a public profile |
| Login | Lets users connect their RemiliaNET account to your app. | Login client with openid | RemiliaNET login, GET /me |
| Directory browser | Finds directory-visible RemiliaNET accounts and resolves their linked handles. | API client or Login client with remilia:directory.read | GET /users, POST /directory/resolve |
| Beetle dashboard | Shows the Beetle state and discovered cards of a logged-in user. | Login client with remilia:beetle.read | GET /me/beetle, GET /me/beetle/cards |
| Global chat companion | Reads 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.write | GET /global-chat/messages, POST /global-chat/messages |
| Friends companion | Shows mutual friends and sends, accepts, or rejects friend requests for a logged-in user. | Login client with remilia:social.read and remilia:social.write | GET /users/{username}/mutual-friends, POST /friendship/request |
| Browser extension | Uses the login pattern in a Chromium extension and shows the connected account. | Public Login client with openid | Add 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.
| Feature | Endpoint | Facts |
|---|---|---|
| Public profiles | GET /api/v1/users/{username} | Returns the public profile of a user. For the response, see Get a profile by handle. |
| User search | Website endpoint GET /api/profile/search?q=remilia_jackson&limit=5 | Returns global and result. The default limit is 5, and the maximum is 20. |
| User display by Keycloak ID | Website 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 threads | Website endpoints GET /api/posts, GET /api/posts/search?q=remilia_jackson, GET /api/posts/{postID}, and GET /api/posts/{postID}/thread | Return posts and threads. |
| Trophy shelf images | Website endpoint GET /api/beetle/trophy/~{username}/shelf | Returns 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.
