Skip to content

List client companies

GET
/clients
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/clients?page=1&perPage=20&onboarding=true&sort=name&dir=asc' \
--header 'Authorization: Bearer <token>'

Lists client companies, filterable by search text, active state, client status catalog id, tags, whether they are still onboarding after a won deal, and a missing prefix or own rate; ordered like the companies list (sort, dir), with rate ordering and the missing rate filter needing invoices.view. The people at a client company are listed by GET /client-members. Requires the clients.view permission. Returns only the client companies the caller is assigned to (by team, role, or Direct Access) unless the caller also holds clients.view_all. List rows omit teamClients/roleClients; results are cached for up to 60 seconds. No default exclusion: omitting statusId returns every status including flag-excluded ones — unlike the staff UI’s client list, this generic endpoint never withholds rows a caller did not explicitly filter out.

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

Case-insensitive text found in the company’s name, legal name (companyName) or order prefix.

string

Case-insensitive text found in the company’s name, legal name (companyName) or order prefix.

isActive
string
statusId

Filter to a single client status catalog id. Omitted returns every status, including flag-excluded ones – this endpoint applies no default exclusion (see GET /clients description).

string

Filter to a single client status catalog id. Omitted returns every status, including flag-excluded ones – this endpoint applies no default exclusion (see GET /clients description).

tagIds

Comma-separated tag IDs to filter by, e.g. tagIds=tag1,tag2. Only clients attached to at least one of the given tags are returned. Repeated tagIds query params are NOT supported: query-string parsing collapses repeated keys to the last occurrence, so a single comma-separated value is the only supported form.

string

Comma-separated tag IDs to filter by, e.g. tagIds=tag1,tag2. Only clients attached to at least one of the given tags are returned. Repeated tagIds query params are NOT supported: query-string parsing collapses repeated keys to the last occurrence, so a single comma-separated value is the only supported form.

onboarding

When true, only client companies still onboarding: a won deal and a pending readiness item, the same rule as the companies list’s Onboarding filter. Needs the sales module; answers 404 MODULE_DISABLED without it.

string
Allowed values: true false

When true, only client companies still onboarding: a won deal and a pending readiness item, the same rule as the companies list’s Onboarding filter. Needs the sales module; answers 404 MODULE_DISABLED without it.

missingPrefix

When true, only client companies with no order code prefix.

string

When true, only client companies with no order code prefix.

missingRate

When true, only client companies with no hourly rate of their own in force today (they bill at the workspace default). Needs invoices.view; answers 403 without it.

string

When true, only client companies with no hourly rate of their own in force today (they bill at the workspace default). Needs invoices.view; answers 403 without it.

sort

Column to order by, as on the companies list: name (default), status, contacts (users), orders, projects (counts), prefix, rate (the effective rate today: the company’s own, else the workspace default; needs invoices.view) or currency. Ties and empty values sort by name.

string
Allowed values: name status contacts orders projects prefix rate currency

Column to order by, as on the companies list: name (default), status, contacts (users), orders, projects (counts), prefix, rate (the effective rate today: the company’s own, else the workspace default; needs invoices.view) or currency. Ties and empty values sort by name.

dir

Sort direction, asc by default.

string
Allowed values: asc desc

Sort direction, asc by default.

Paginated list of client companies.

Media typeapplication/json
object
data
required
Array<object>

A billable client.

object
address
required
string | null
asanaProjectIds
required
Array<string>
billingEmails
required

Addresses every invoice email and payment reminder of the company goes to besides the contact the invoice is addressed to, up to 5. Empty only matters for an invoice with no reachable contact, which then goes to the company’s Billing contact, else its primary, else its oldest active portal contact.

Array<string>
companyName
required

The client’s legal name, printed on invoices, estimates and the portal. name stays the internal working label the team files the client under and is never shown on a client-facing document. Null falls back to name – see clientLegalName.

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))$/
currency
required
string | null
directAccess

Direct Access grants – a MANAGER-level grant is the client’s responsible. Present on single-client reads; omitted from list responses.

Array<object>

A workspace member with Direct Access to a client. A MANAGER-level grant is the client’s responsible, receiving its projects’ alerts and the daily hours report.

object
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))$/
id
required
string
level
required

MANAGER is the resource’s responsible: it receives the resource’s alerts and hours report, in addition to Direct Access like any MEMBER.

string
Allowed values: MANAGER MEMBER
memberId
required
string
memberName
required
string
role
required

The person’s Role on the company: a label, no access or alerts.

Any of:
object
id
required
string
name
required
string
domains

Every email domain of the company, its first one first, then the extras in the order they were added. Present on single-client reads; omitted from list responses, and absent on a server older than this field.

Array<string>
id
required
string
isActive
required
boolean
mcpEnabled
required
boolean
name
required
string
paymentReminderSchedule
required

The payment-reminder schedule every invoice of the company follows in place of the workspace’s. Null means the company follows the workspace schedule.

Any of:
object
daysAfterDue
required

Days after an invoice’s due date, counted in the workspace timezone, before the first reminder.

integer
>= 1 <= 365
maxCount
required

Most reminders one invoice receives when they repeat. Stored as 1 while repeatEveryDays is 0.

integer
>= 1 <= 20
repeatEveryDays
required

Days between reminders while the invoice stays unpaid. 0 sends a single reminder.

integer
<= 365
paymentRemindersPaused
required

While true, none of the company’s invoices, present or future, get payment reminders.

boolean
paymentRemindersPausedAt
required

When the company’s payment reminders were paused; null while they are not.

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))$/
paymentTerms
required

The terms the company’s new invoices are due by. Null means the workspace’s payment terms (net days, see GET /invoice-settings).

Any of:
object
kind
required

NET_DAYS: due value days after the issue day (0-365). DAY_OF_MONTH: due on the next day value (1-31) strictly after the issue day; a month without that day uses its last.

string
Allowed values: NET_DAYS DAY_OF_MONTH
value
required
integer
>= -9007199254740991 <= 9007199254740991
phone
required
string | null
platform

The site platform the company runs on, a free label such as WordPress or Shopify. Null when unknown. Absent on a server older than this field.

Any of:
string
<= 60 characters
prefix
required

The company’s order code prefix: 2 to 10 letters or digits, uppercase, unique within the workspace. New order codes for the company start with it, like ACME-HOURS-6. Null until someone sets it.

string | null
roleClients

Roles reaching the whole client, then roles limited to one of its projects (projectId set). Present on single-client reads; omitted from list responses.

Array<object>

A role assigned to a client, granting inherited access to its orders and projects, or to one of its projects.

object
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))$/
id
required
string
projectId
required

The company project the role is limited to; null when it reaches the whole company.

string | null
roleId
required
string
roleName
required
string
statusId
required

The client’s status in the workspace catalog – see GET /clients/statuses. Null means unassigned.

string | null
tags
required
Array<object>

A workspace tag attached to a client.

object
id
required
string
name
required
string
taxId
required

The client company’s tax identifier (VAT, EIN, RFC…). Null when unknown.

string | null
teamClients

Present on single-client reads; omitted from list responses.

Array<object>

A team assigned to a client, granting inherited access to its orders.

object
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))$/
id
required
string
teamId
required
string
teamName
required
string
updatedAt
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))$/
weeklyHoursBalance

Whether the company’s Billing contacts get the weekly hours balance email every Monday. Absent on a server older than this field.

boolean
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": [
{
"directAccess": [
{
"level": "MANAGER"
}
],
"paymentTerms": {
"kind": "NET_DAYS"
}
}
]
}

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.