cURL
curl -X GET 'https://miyaip.com/api/SysLogin/GetUserInfo' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>'const url = 'https://miyaip.com/api/SysLogin/GetUserInfo';
const response = await fetch(url, {
method: 'GET',
headers: {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
},
});
const result = await response.text();
console.log(result);import requests
url = "https://miyaip.com/api/SysLogin/GetUserInfo"
headers = {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
}
response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()
print(response.text){
"code": 200,
"message": "Success",
"body": {
"buttons": null,
"roles": null,
"userId": 1,
"userName": "Example user",
"userInfo": {
"passWord": "<PASSWORD_HASH>",
"name": "Example user",
"tel": "132****6796",
"email": "user@example.com",
"remark": "Example note",
"usdtBalance": 2826.95,
"status": 1,
"isVerify": false,
"idCard": null,
"realName": null,
"mainKey": "<MAIN_KEY>",
"mobileMainKey": "<MOBILE_MAIN_KEY>",
"inviteCode": "<INVITE_CODE>",
"beInviteCode": null,
"invitedClickCount": 1,
"shortNums": 240,
"crawlerTotalCalls": 1634,
"crawlerConcurrency": 2,
"passwordSetupRequired": false
},
"needsAccountSetup": false,
"canSetEmail": false,
"needsPasswordSetup": false
}
}{
"code": 500,
"message": "Invalid request",
"body": null
}Account and usage
MiyaIP user information API: account and product credentials
Read the authenticated MiyaIP user’s account details, balance, product keys, and account capabilities with the GetUserInfo API and a Bearer token.
cURL
curl -X GET 'https://miyaip.com/api/SysLogin/GetUserInfo' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>'const url = 'https://miyaip.com/api/SysLogin/GetUserInfo';
const response = await fetch(url, {
method: 'GET',
headers: {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
},
});
const result = await response.text();
console.log(result);import requests
url = "https://miyaip.com/api/SysLogin/GetUserInfo"
headers = {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
}
response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()
print(response.text){
"code": 200,
"message": "Success",
"body": {
"buttons": null,
"roles": null,
"userId": 1,
"userName": "Example user",
"userInfo": {
"passWord": "<PASSWORD_HASH>",
"name": "Example user",
"tel": "132****6796",
"email": "user@example.com",
"remark": "Example note",
"usdtBalance": 2826.95,
"status": 1,
"isVerify": false,
"idCard": null,
"realName": null,
"mainKey": "<MAIN_KEY>",
"mobileMainKey": "<MOBILE_MAIN_KEY>",
"inviteCode": "<INVITE_CODE>",
"beInviteCode": null,
"invitedClickCount": 1,
"shortNums": 240,
"crawlerTotalCalls": 1634,
"crawlerConcurrency": 2,
"passwordSetupRequired": false
},
"needsAccountSetup": false,
"canSetEmail": false,
"needsPasswordSetup": false
}
}{
"code": 500,
"message": "Invalid request",
"body": null
}Read information for the user identified by your Bearer token, including the account fields, balance, product credentials, and capabilities shown in the response example.
Read your account
- Obtain a token from Log in and enter it on this page.
- Send the request without a JSON body.
- Check the HTTP and business results, then inspect the returned account fields.
mainKey and mobileMainKey. Treat these values as credentials when using dynamic generation. The example does not include unlimitedKey; obtain unlimited product credentials from the dashboard instead of assuming this response contains them.
Sensitive fields are masked by default in online debugging. Reveal values only when you need to use them, and do not include them in shared screenshots or diagnostics. See the API overview for credential handling.