Obtain user information

GET https://{{baseUrl}}/open-apis/authen/v1/user_info

Reference

  1. 接口参考 获取用户身份(身份验证)
  2. user_access_token 从1.3.1接口中获取,响应体中的access_token 字段

Success Response Sample

{
    "code": 0,
    "data": {
        "avatar_big": "https://s3-fs.pstatp.com/static-resource/v1/31d0fc66-5175-4848-98e9-6cedbc10820g~?image_size=640x640&cut_type=&quality=&format=image&sticker_format=.webp",
        "avatar_middle": "https://s1-fs.pstatp.com/static-resource/v1/31d0fc66-5175-4848-98e9-6cedbc10820g~?image_size=240x240&cut_type=&quality=&format=image&sticker_format=.webp",
        "avatar_thumb": "https://s3-fs.pstatp.com/static-resource/v1/31d0fc66-5175-4848-98e9-6cedbc10820g~?image_size=72x72&cut_type=&quality=&format=image&sticker_format=.webp",
        "avatar_url": "https://s3-fs.pstatp.com/static-resource/v1/31d0fc66-5175-4848-98e9-6cedbc10820g~?image_size=72x72&cut_type=&quality=&format=image&sticker_format=.webp",
        "email": "",
        "en_name": "敬之Lynx1",
        "mobile": "+86199998888",
        "name": "敬之Lynx1",
        "open_id": "ou_e0ddd8cfc3524b973bef3d0e83400e67",
        "tenant_key": "2cc0cbb58a8e175e",
        "union_id": "on_c9e970ebba9f25f7a711e6104e08b68f",
        "user_id": "2482944f"
    },
    "msg": "success"
}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstringuser_access_token,获取方式参考接口 1.3.1
Content-Typestring