Updated on 2026-04-16 GMT+08:00

Querying User Information

Function

Query user information.

URI

GET /koodrive/ose/v1/user/info

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

phone

No

String

Query by mobile number.

userId

No

String

Query by user ID. If UserId has been specified, ignore the phone number and query information by user ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Authorization

Yes

String

Definition:

Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. Format: AT+{access_token}

Constraints:

N/A

Range:

N/A

Default Value:

N/A

X-Traceid

No

String

Definition:

Service trace ID, which contains 58 bits.

Constraints:

N/A

Range:

The value contains 58 bits.

Default Value:

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

String

Error Codes

msg

String

Error description.

data

UserInfo object

User information.

Table 4 UserInfo

Parameter

Type

Description

userId

String

User ID.

firstname

String

Name.

surname

String

Family name.

phone

String

Mobile number.

email

String

Email address.

Example Requests

GET /koodrive/ose/v1/user/info?userId=1882575898755117312

Example Responses

Status code: 200

Response to the request for querying user information.

{
  "data" : {
    "userId" : "1882575898755117312",
    "firstname" : "1",
    "surname" : "1",
    "phone" : "0027188460911",
    "email" : "18168538439@123.com"
  },
  "code" : 0,
  "msg" : "Success"
}

Status Codes

Status Code

Description

200

Response to the request for querying user information.