Información del usuario (API Avanzada)

Use your Account Permission Key to retrieve the current personal account's user identity, tier, base discount, and security status. You can issue an Account Permission Key in Console Settings -> Advanced API (supports 2FA and IP whitelist protection).

[!IMPORTANT]

  • Base URL: https://ai.artsmcp.com/api/open/v1
  • Auth Header (Choose One): Authorization: Bearer <your_account_key>, X-Account-Api-Key: <your_account_key>, or X-Api-Key: <your_account_key>
  • Read-Only: Endpoints on this page are read-only; timestamps use the site operating timezone

1. Get Personal User Info

Query the current user's public display UID, username, nickname, user tier and base discount, 2FA status, timezone/language preferences, and registration time.

  • Path: GET /api/open/v1/account
  • Query Parameters: None
  • Example (Curl):
curl -s "https://ai.artsmcp.com/api/open/v1/account" \
  -H "Authorization: Bearer <your_account_key>"
  • Response Example:
{
  "uid": "10086",
  "username": "alice",
  "nickname": "Alice",
  "user_group": "vip",
  "level_name": "VIP 1",
  "level_discount": 0.9,
  "is_active": 1,
  "totp_enabled": 1,
  "timezone": "Asia/Shanghai",
  "language": "en",
  "created_at": "2026-06-01 12:00:00 (UTC+8)",
  "site_name": "System API"
}
  • Response Fields:
FieldTypeDescription
uidstringPublic display UID of the user
usernamestringLogin username
nicknamestringDisplay nickname (empty string if unset)
user_groupstringUser tier group key (e.g., default, vip)
level_namestringUser tier display name (e.g., VIP 1)
level_discountnumberBase tier discount multiplier (0.9 = 10% off, 1.0 = no discount)
is_activeintegerAccount status (1 active, 0 disabled)
totp_enabledintegerTwo-factor authentication (2FA) status (1 enabled, 0 disabled)
timezonestringPreferred timezone (empty string falls back to site timezone)
languagestringPreferred UI language (e.g., zh, en)
created_atstringRegistration timestamp in site operating timezone
site_namestringCurrent site name

2. Common Advanced API Error Codes

HTTP StatusCommon Causes
401 UnauthorizedMissing or invalid Account Permission Key
403 ForbiddenAccount not authorized, 2FA unbound/paused, key disabled or expired, or source IP not whitelisted
429 Too Many RequestsRate limit or concurrency cap exceeded

Raw Markdown (.md) · llms.txt