Skip to main content
GET
/
v1
/
users
/
profile
/
{username}
curl https://portal-api.7331.org/v1/users/profile/exampleuser \
  -b "psession=YOUR_SESSION"
{
  "id": 42,
  "username": "exampleuser",
  "avatar_url": null,
  "subscription_tier": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.7331.org/llms.txt

Use this file to discover all available pages before exploring further.

Requires an active session cookie. Returns a public profile for regular users. If the viewer has sufficient permissions (can act on the target), returns an extended detail response including moderation actions, chats, bots, subscription history, and permission history. Session history is owner-only.
username
string
required
Username of the target user.

Response

Returns UserPublicResponse for regular viewers or UserDetailResponse for privileged viewers.
id
integer
required
User ID.
username
string
required
Username.
avatar_url
string
Platform avatar URL. May be null.
subscription_tier
integer
required
Current subscription level. 0 = Basic, 1 = Trial, 2 = Premium, 3 = Lifetime.
state
integer
User state. 0 = Active, 1 = Timeout, 2 = Banned. (Elevated only.)
permission_level
integer
Permission level. 0 = User, 2 = Admin, 3 = Owner. (Elevated only.)
moderation_actions
object[]
Moderation action history (admin+ only, empty array for lower tiers).
chats
object[]
Chats owned by the user (admin+ only, empty array for lower tiers).
bots
object[]
Bots owned by the user (admin+ only, empty array for lower tiers).
subscription_history
object[]
Subscription change history (admin+ only, empty array for lower tiers).
permission_history
object[]
Permission change history (admin+ only, empty array for lower tiers).
session_history
object[]
Past session records with geo data (owner-only, empty array for lower tiers).
curl https://portal-api.7331.org/v1/users/profile/exampleuser \
  -b "psession=YOUR_SESSION"
{
  "id": 42,
  "username": "exampleuser",
  "avatar_url": null,
  "subscription_tier": 0
}