GET/ lists/ :id/ users/
View user list
You can return all users assigned to a specific user list.
Attributes
Optional unless marked required
- id
- A unique identifier for the users' list which is given by User automatically.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/lists/:id/users/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/lists/:id/users/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/lists/:id/users/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/lists/:id/users/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
- 404 Not Found
{"count": 1,"next": null,"previous": null,"results": [{"id": 1896,"key": "g7lvoickax9e","name": "jane-doe","email": null,"gender": "unknown","status": "visitor","phone_number": null,"first_seen": null,"last_seen": null,"page_views": 0,"last_ip": null,"timezone": null,"city": null,"region": null,"country": null,"unsubscribed": true,"browser_language": null,"widget_language": null,"score": 0,"browser": null,"os_type": null,"resolution": null,"created_at": "2026-11-10T08:37:00.744193Z","updated_at": "2026-11-10T08:37:00.744201Z","companies": [],"attributes": [],"gravatar_url": null,"lists": ,1 item"tags": [],"notifications": true,"facebook_url": null,"linkedin_url": null,"twitter_url": null,"google_url": null,"last_contacted": null,"user_id": "jane-doe","web_push_subscription": false,"assigned_to": null,"most_active_time": null,"lt_opened_email": null,"lt_clicked_email": null,"email_mx_valid": null,"referrer": null,"last_heard_from": null,"spambounced": false,"softbounced": false,"hardbounced": false,"marked_email_as_spam": true,"email_opt_in": null,"email_tracking_optin": null}]}{
"detail": "No ClientUserList matches the given query."
}
Response fields
Fields returned in the 200 OK response body.
- count
- Number of results across all pages. It can lag behind recent changes; see Response pagination.
- next
- URL of the next page of results. null on the last page.
- previous
- URL of the previous page of results. null on the first page.
- results
- Results on this page.
- results[].
id - A unique identifier for the list which is given by User automatically.
- results[].
key - Contact's
user_key: a 12-character identifier assigned by User. - results[].
name - A list name.
- results[].
email - Contact's email address, or
null. - results[].
gender - A user gender (1 - unknown, 2 - male, 3 - female)
- results[].
status - Contact status:
visitor, oruseronce an email address is known. - results[].
phone_number - Contact's phone number, or
null. - results[].
first_seen - A date for user's first website visit.
- results[].
last_seen - A date of last user's website visit.
- results[].
page_views - A total number of user's page visits occurrences.
- results[].
last_ip - An address IP (identifier assigned to each device, e.g., laptop, printer, mobile etc.) from the last user visit.
- results[].
timezone - A timezone of the user's browser.
- results[].
city - City of the contact's last visit, based on their IP address.
- results[].
region - Region of the contact's last visit, based on their IP address.
- results[].
country - Country of the contact's last visit, based on their IP address.
- results[].
unsubscribed - A flag true/false informing if user is unsubscribed from emails.
- results[].
browser_language - A user's browser language
- results[].
widget_language - Language of the chat widget for this contact, or
null. - results[].
score - A number of points assinged to the user.
- results[].
browser - A name of user's browser last used to visit your website.
- results[].
os_type - An operating system of the user’s device
- results[].
resolution - A screen resolution of the device the user has visited your website.
- results[].
created_at - When the contact was created, ISO 8601.
- results[].
updated_at - When the contact was last updated, ISO 8601.
- results[].
companies - Companies the contact belongs to, each with
id,nameandmember_since. - results[].
attributes - Custom attributes that have a value, each with
id,name,name_std,value,descriptionandvalue_type. - results[].
gravatar_url - A user avatar url from gravatar.
- results[].
lists - Lists the contact is on, each with
id,nameanddescription.- results[].
lists[]. id - ID of the list.
- results[].
lists[]. name - Name of the list.
- results[].
lists[]. description - A list description.
- results[].
- results[].
tags - Tags of the contact, each with
idandname. - results[].
notifications - A flag true/false informing if your team is receiving notifications about new chat messages from this user.
- results[].
facebook_url - A URL of user's Facebook profile.
- results[].
linkedin_url - A URL of user's LinkedIn profile.
- results[].
twitter_url - A URL of user's Twitter profile.
- results[].
google_url - A URL of user's Google+ profile.
- results[].
last_contacted - A date of last contact with user - any communication (email or chat, automated or otherwise) sent from your team to the user.
- results[].
user_id - A unique identifier for the user which is given by User automatically.
- results[].
web_push_subscription - A flag true/false informing if user is unsubscribed from webpush.
- results[].
assigned_to - ID of the agent group the contact is assigned to, or
null. - results[].
most_active_time - Most Active Time is an attribute that is based on historical data determined by the hours of previous use and the most likely active use. Time in this attribute is positioned in the UTC timezone, and there's no possible way to change the timezone for the attribute.
- results[].
lt_opened_email - When the contact last opened one of your emails, ISO 8601;
nullif never. - results[].
lt_clicked_email - When the contact last clicked a link in one of your emails, ISO 8601;
nullif never. - results[].
email_mx_valid falseif the email address's domain has no mail server or an email to it hard-bounced,trueif it passed the check,nullif not checked yet.- results[].
referrer - URL of the page the contact came to your website from, or
null. - results[].
last_heard_from - When the contact last sent a message (chat or email), ISO 8601;
nullif never. - results[].
spambounced trueonce an email to the contact was rejected as spam.- results[].
softbounced trueonce an email to the contact soft-bounced.- results[].
hardbounced trueonce an email to the contact hard-bounced or was dropped; User stops sending emails to the address.- results[].
marked_email_as_spam - Legacy flag that User never updates; it keeps its default
trueor the value you set. - results[].
email_opt_in - Email marketing consent: the opposite of
unsubscribed, kept in sync with it;nullif never set. - results[].
email_tracking_optin - Whether the contact agreed to open and click tracking; used only when email tracking is set per contact,
nullif not answered.
- results[].
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.