curl -X GET "<base_url>/usermanagement/v1/user?userName={userName}" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN"
const res = await fetch(
"<base_url>/usermanagement/v1/user?userName={userName}",
{
headers: {
"X-AccessToken": process.env.PUREWL_ACCESS_TOKEN,
},
}
);
const user = await res.json();
{
"header": {
"code": 1,
"message": "Accounts fetched successfully",
"response_code": 1
},
"body": {
"username": "string",
"uuid": "string",
"profileId": "string",
"status": 1,
"isExpired": 0,
"isDeleted": 0,
"subscriptionType": "paid",
"expiryDate": "17-07-2026",
"createdAt": "2026-06-16T10:24:00Z",
"updatedAt": "2026-06-16T10:24:00Z",
"services": [
{
"slug": "rmd",
"status": 1,
"isExpired": 0,
"subscriptionType": "paid",
"expiryDate": "17-07-2026",
"firstName": "string",
"lastName": "string",
"email": "string",
"phoneNumber": "string",
"dateOfBirth": "string",
"addressLine1": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"countryId": 1,
"countrySlug": "US"
}
]
}
}
User Management
Get User
Retrieve a user’s profile details, account status, and subscribed services by username.
GET
/
usermanagement
/
v1
/
user
curl -X GET "<base_url>/usermanagement/v1/user?userName={userName}" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN"
const res = await fetch(
"<base_url>/usermanagement/v1/user?userName={userName}",
{
headers: {
"X-AccessToken": process.env.PUREWL_ACCESS_TOKEN,
},
}
);
const user = await res.json();
{
"header": {
"code": 1,
"message": "Accounts fetched successfully",
"response_code": 1
},
"body": {
"username": "string",
"uuid": "string",
"profileId": "string",
"status": 1,
"isExpired": 0,
"isDeleted": 0,
"subscriptionType": "paid",
"expiryDate": "17-07-2026",
"createdAt": "2026-06-16T10:24:00Z",
"updatedAt": "2026-06-16T10:24:00Z",
"services": [
{
"slug": "rmd",
"status": 1,
"isExpired": 0,
"subscriptionType": "paid",
"expiryDate": "17-07-2026",
"firstName": "string",
"lastName": "string",
"email": "string",
"phoneNumber": "string",
"dateOfBirth": "string",
"addressLine1": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"countryId": 1,
"countrySlug": "US"
}
]
}
}
Send a live request to
GET /usermanagement/v1/user with Try it. See the full reference for the response fields and error codes: Get User.
Query Parameters
string
required
Unique username of the user to retrieve.
curl -X GET "<base_url>/usermanagement/v1/user?userName={userName}" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN"
const res = await fetch(
"<base_url>/usermanagement/v1/user?userName={userName}",
{
headers: {
"X-AccessToken": process.env.PUREWL_ACCESS_TOKEN,
},
}
);
const user = await res.json();
{
"header": {
"code": 1,
"message": "Accounts fetched successfully",
"response_code": 1
},
"body": {
"username": "string",
"uuid": "string",
"profileId": "string",
"status": 1,
"isExpired": 0,
"isDeleted": 0,
"subscriptionType": "paid",
"expiryDate": "17-07-2026",
"createdAt": "2026-06-16T10:24:00Z",
"updatedAt": "2026-06-16T10:24:00Z",
"services": [
{
"slug": "rmd",
"status": 1,
"isExpired": 0,
"subscriptionType": "paid",
"expiryDate": "17-07-2026",
"firstName": "string",
"lastName": "string",
"email": "string",
"phoneNumber": "string",
"dateOfBirth": "string",
"addressLine1": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"countryId": 1,
"countrySlug": "US"
}
]
}
}