Skip to content

List users

GET
/client-members
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/client-members?page=1&perPage=20&status=inactive&review=PENDING' \
--header 'Authorization: Bearer <token>'

Lists the users — the people at the workspace’s client companies (client memberships), the app’s Users page — each with the companies they hold and their portal status. Requires the clients.view permission; returns only people of the client companies the caller is assigned to unless the caller also holds clients.view_all, and each person lists only those companies. A person’s status is the first that applies: inactive (membership deactivated), revoked (every company they hold revoked their access), active (can sign in), invited (a live company sent the portal invitation or, for a person with no company, a client invitation is pending), not_invited. statusId narrows to the people with a reachable company in one client status, as the Users page tabs do; filtering and pagination run in the database.

page
integer
default: 1 >= 1 <= 9007199254740991
perPage
integer
default: 20 >= 1 <= 100
q

Each whitespace-separated word must match the first name, last name or email.

string

Each whitespace-separated word must match the first name, last name or email.

clientId

Only people on this client company.

string

Only people on this client company.

status

Inactive, revoked (no live company), active (can sign in), invited, not_invited. Without clients.view_all, status counts only the client companies the caller reaches.

string
Allowed values: inactive revoked active invited not_invited

Inactive, revoked (no live company), active (can sign in), invited, not_invited. Without clients.view_all, status counts only the client companies the caller reaches.

statusId

Only people with a company the caller reaches in this client status catalog id (see GET /clients/statuses), or unassigned for people whose reachable companies hold no status and people with none. A person on several companies matches every status those companies hold; an unknown id matches nobody.

string

Only people with a company the caller reaches in this client status catalog id (see GET /clients/statuses), or unassigned for people whose reachable companies hold no status and people with none. A person on several companies matches every status those companies hold; an unknown id matches nobody.

review

Only people with this review. People marked SPAM are left out unless asked for here.

string
Allowed values: PENDING EXTERNAL_AGENCY SPAM

Only people with this review. People marked SPAM are left out unless asked for here.

noCompany

True lists only people who hold no company at all, for placing them. Needs clients.view_all: without it nobody matches.

string

True lists only people who hold no company at all, for placing them. Needs clients.view_all: without it nobody matches.

Paginated list of users.

Media typeapplication/json
object
data
required
Array<object>

A person at one or more client companies, with their portal status.

object
companies
required

The client companies the person holds that the caller reaches.

Array<object>
object
accessLevel
required

Data-scope attribute of the person on this company: OWNER, BILLING, LEAD, MEMBER or COLLABORATOR (tickets only).

string
clientId
required
string
contactId
required
string
isPrimary
required
boolean
name
required
string
portalInvitation
required

The last portal invitation or welcome email tried for this company, or null when none is recorded.

Any of:

The delivery of the last portal invitation or welcome email tried for a contact.

object
at
required

When the outcome last changed.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
outcome
required

PENDING while handed to the provider, SENT once accepted, FAILED when it never left, then DELAYED, DELIVERED, BOUNCED or COMPLAINED (marked as spam) as the provider reports.

string
Allowed values: PENDING SENT FAILED DELAYED DELIVERED BOUNCED COMPLAINED
reason
required

Why the provider refused or bounced it, when it said.

string | null
revokedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
roles
required
Array<string>
Allowed values: TICKETS BILLING HOURS
statusId
required

The company’s client status catalog id, or null when it has none.

string | null
contactEmail
required

The person’s contact email in this workspace, from their first company the caller reaches; null when they are on none.

string | null
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
email
required

The email the person signs in with. Only they change it, from their profile.

string
firstName
required
string
lastName
required
string
memberId
required

WorkspaceMember id of the client person.

string
origin

How the person came in, in plain words; Not recorded when nothing reliable says it. Absent on an older server.

string
review

The team’s review of the person, null when there is none. Absent on an older server.

Any of:
string
Allowed values: PENDING EXTERNAL_AGENCY SPAM
status
required
string
Allowed values: inactive revoked active invited not_invited
meta
required

Pagination metadata for list responses.

object
page
required
integer
>= -9007199254740991 <= 9007199254740991
perPage
required
integer
>= -9007199254740991 <= 9007199254740991
total
required
integer
>= -9007199254740991 <= 9007199254740991
totalPages
required
integer
>= -9007199254740991 <= 9007199254740991

Example

{
"data": [
{
"companies": [
{
"portalInvitation": {
"outcome": "PENDING"
},
"roles": [
"TICKETS"
]
}
],
"review": "PENDING",
"status": "inactive"
}
]
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.