Infos utilisateur (API Avancée)
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>, orX-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:
| Field | Type | Description |
|---|---|---|
uid | string | Public display UID of the user |
username | string | Login username |
nickname | string | Display nickname (empty string if unset) |
user_group | string | User tier group key (e.g., default, vip) |
level_name | string | User tier display name (e.g., VIP 1) |
level_discount | number | Base tier discount multiplier (0.9 = 10% off, 1.0 = no discount) |
is_active | integer | Account status (1 active, 0 disabled) |
totp_enabled | integer | Two-factor authentication (2FA) status (1 enabled, 0 disabled) |
timezone | string | Preferred timezone (empty string falls back to site timezone) |
language | string | Preferred UI language (e.g., zh, en) |
created_at | string | Registration timestamp in site operating timezone |
site_name | string | Current site name |
2. Common Advanced API Error Codes
| HTTP Status | Common Causes |
|---|---|
401 Unauthorized | Missing or invalid Account Permission Key |
403 Forbidden | Account not authorized, 2FA unbound/paused, key disabled or expired, or source IP not whitelisted |
429 Too Many Requests | Rate limit or concurrency cap exceeded |