The Users API covers every operation related to Artemis accounts: reading the current user’s identity, fetching public profile data, creating new accounts, authenticating with the password grant, managing preferences, and maintaining friend relationships. Most endpoints underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/artemis-development-group/artemis/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1/me require an OAuth2 bearer token with the appropriate scope.
GET /api/v1/me
Returns the identity of the currently authenticated user. Requires theidentity OAuth2 scope.
Bearer token obtained from the OAuth2 token endpoint.
The account’s username.
The account’s base-36 ID.
Total karma accumulated from link (post) submissions.
Total karma accumulated from comments.
Number of unread messages in the account’s inbox.
Whether the user moderates at least one branch.
Whether the account has an active gold membership.
Whether the account’s email address has been verified.
Whether the user has ever subscribed to a branch.
GET /user/:username/about.json
Returns the public profile information for any account. No authentication is required for public profiles.The account username to look up.
GET /user/:username/:where
Returns a paginated listing of a user’s content. Replace:where with one of the listing types below.
The account username.
The listing type. One of
overview, submitted, comments, saved, hidden, upvoted, or downvoted.Fullname of the item to use as the starting cursor for forward pagination.
Fullname of the item to use as the starting cursor for backward pagination.
Maximum number of items to return. Accepted range is 1–100.
Pass
given with upvoted or downvoted to expose votes on other users’ content (requires authentication and privacy settings to allow it).The
saved, hidden, upvoted, and downvoted listings are private and require the authenticated user to match :username, or require an admin session.POST /api/register
Creates a new Artemis account.The desired username. Must pass Artemis username validation rules.
The desired password.
Password confirmation. Must match
passwd.Email address for the account (optional, but required for password recovery).
When
true, sets a long-lived session cookie rather than a session-scoped one.Subscribe the email address to the site newsletter. Requires a valid
email.POST /api/login
Logs into an existing account and returns a session cookie. For programmatic access, prefer the OAuth2 password grant viaPOST /api/v1/access_token.
The account username.
The account password.
When
true, issues a persistent cookie that survives browser restarts.POST /api/v1/access_token (password grant)
Obtains an OAuth2 access token using thepassword grant type. Only permitted for apps of type script.
- Request
- Response
User preferences
- GET /api/v1/me/prefs
- PATCH /api/v1/me/prefs
Returns the preference settings of the currently authenticated user. Requires the
identity scope.Comma-separated list of preference keys to return. When omitted, all preferences are returned.
Friend relationships
The/api/v1/me/friends/:username endpoints manage the current user’s friend list. All three require the subscribe scope.
- GET — get friend
- PUT — add or update friend
- DELETE — remove friend
Returns information about a specific friend, such as any note attached to the relationship.
The username of the friend to retrieve.
GET /api/v1/me/karma
Returns a per-branch breakdown of the authenticated user’s karma. Requires themybranches scope.