Skip to main content
GET
/
v1
/
users
/
{user_id}
curl https://portal-api.7331.org/v1/users/42 \
  -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. Public access returns basic profile data. Privileged viewers (admins and above) who can act on the target user see an enriched response with moderation actions, chats, bots, and subscription history. Session history is owner-only.
user_id
integer
required
User ID.

Response

Public (insufficient permissions)

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.

Elevated (admin+ with hierarchy access)

All public fields plus:
state
integer
required
User state. 0 = Active, 1 = Timeout, 2 = Banned.
permission_level
integer
required
Permission level. 0 = User, 2 = Admin, 3 = Owner.
subscription_expires_at
string
When subscription expires (UTC). null for lifetime or basic.
subscription_granted_by
integer
ID of who granted the subscription. May be null.
last_activity_at
string
required
When user was last active (ISO 8601).
permission_since
string
When the user was assigned their current permission level. May be null.
avatar_source
string
Avatar source key. May be null.
linked_platforms
object[]
Linked platform identities.
moderation_actions
object[]
Moderation action history (admin+ only).
chats
object[]
Chats owned by this user (admin+ only).
bots
object[]
Bots owned by this user (admin+ only).
subscription_history
object[]
Subscription tier change history (admin+ only).
permission_history
object[]
Permission level change history (admin+ only).
session_history
object[]
Past session records with IP, user agent, and geo data (owner-only).
curl https://portal-api.7331.org/v1/users/42 \
  -b "psession=YOUR_SESSION"
{
  "id": 42,
  "username": "exampleuser",
  "avatar_url": null,
  "subscription_tier": 0
}