me
const url = 'https://example.com/api/v1/auth/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/auth/me";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url https://example.com/api/v1/auth/me \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Comma-separated field groups to include: profile, preferences, quota, session.
Responses
Section titled “Responses”Current user info
统一 API 响应格式
成功: { "code": "success", "msg": "", "data": {...} }
失败: { "code": "auth.credentials_failed", "msg": "Invalid Credentials" }
object
/auth/me 响应:用户信息 + 偏好设置
object
API-facing user preference payload: built-in preferences plus custom frontend KV entries.
object
object
Normalized BCP 47 locale tag used by product preferences and plugin-facing localization contracts.
The backend validates language tags without fixing the protocol to the frontend’s currently bundled locale set. Product UI choices remain limited by the resources actually shipped by that frontend build.
object
object
用户头像来源
用户角色
用户状态
object
object
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
Connector field scope, for example connector_config or static_credential.
Example
{ "code": "success", "data": { "preferences": { "browser_open_mode": "single_click", "color_preset": "#2563eb", "language": "zh-CN", "sort_by": "name", "sort_order": "asc", "theme_mode": "system", "view_mode": "list" }, "profile": { "avatar": { "source": "none" } }, "role": "admin", "status": "active" }}Not authenticated