直达内容

用户

GET /users/:id

通过 User Id 获取一个用户的基本信息。

API 端点 URL

 https://api.mixin.one/users/:id

授权和其他选项

授权
PROFILE:READ; 如果用户授权了 `PHONE:READ` 会返回用户的手机号。
限制No limitation

参数

id
*必须
用户的 User Id。

请求示例

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/users/$USER_ID
Response
{
"data":{
"type": "user",
"user_id": "773e5e77-4107-45c2-b648-8fc722ed77f5",
"identity_number": "7000",
"phone": "+8613801380138",
"full_name": "Team Mixin",
"biography": "",
"avatar_url": "https://images.mixin.one/E2y0BnTopFK9qey0YI-8xV3M82kudNnTaGw0U5SU065864SsewNUo6fe9kDF1HIzVYhXqzws4lBZnLj1lPsjk-0=s256",
"relationship": "STRANGER",
"mute_until": "0001-01-01T00:00:00Z",
"created_at": "2017-12-23T18:23:26.996149Z",
"is_verified": true,
"is_scam": false,
"session_id": "a34c07a9-755d-4b54-94c5-e45e9a2dd43e",
"pin_token_base64": "",
"code_id": "dabcf1c2-6a5e-4ea3-ad51-6e6641a06c7c",
"code_url": "https://mixin.one/codes/dabcf1c2-6a5e-4ea3-ad51-6e6641a06c7c",
"has_pin": true,
"device_status": "ACTIVE",
"has_emergency_contact": true,
"receive_message_source": "CONTACTS",
"accept_conversation_source": "CONTACTS",
"accept_search_source": "CONTACTS",
"fiat_currency": "USD",
"transfer_notification_threshold": 0,
"transfer_confirmation_threshold": 0,
}
}