Skip to content

Get what a company still lacks to be operational

GET
/client-readiness/{clientId}
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/client-readiness/example \
--header 'Authorization: Bearer <token>'

Returns the company’s onboarding checklist. Nine items are derived from the company’s data (status Client, a portal contact, an active order, an order linked to a project, the service intake, the accesses received, a responsible manager, a first invoice sent, its own alert channel for the work tracker), each with where it is resolved. notification_channel is not_applicable unless the workspace has its work tracker connected and the company has a project linked to it. accesses_received is pending while an access task of a won deal’s kickoff project is open, and not_applicable when no kickoff project has one. Up to five more are set up by hand (tracker_project, discord_channel, drive_folder, bug_reporting, non_billable_order): they are added when a company that was not a client yet wins its first deal, are listed only for a company that has them, and stay pending until a person confirms each one with POST /client-readiness/{clientId}/items/{key}/confirm. Those items carry confirmable: true, the note and steps for doing it by hand, resourceUrl (where the resource already is, when it is known) and, once confirmed, confirmedBy and confirmedAt. A resourceUrl to a project or an order is given only inside the caller’s own project and order reach. Members without clients.view_all reach only their companies. Requires clients.view.

clientId
required

Company (client) identifier (CUID2).

string
>= 1 characters

Company (client) identifier (CUID2).

The company’s readiness.

Media typeapplication/json
object
data
required
object
clientId
required
string
complete
required

True when no item is pending.

boolean
items
required
Array<object>
object
confirmable

True on an item a person sets up by hand and confirms. Absent on the items derived from the company’s data, and on an older server.

boolean
confirmedAt

When the item was confirmed; null while it is pending. Absent on the derived items, and on an older server.

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))$/
confirmedBy

Who confirmed the item; null while it is pending or when that person no longer exists. Absent on the derived items, and on an older server.

Any of:
object
name
required
string
key
required
string
Allowed values: client_status portal_contact active_order linked_project service_intake accesses_received responsible first_invoice_sent notification_channel tracker_project discord_channel drive_folder bug_reporting non_billable_order
label
required
string
note

What the person is asked to do before confirming. Absent on the derived items, and on an older server.

string
resolvePath
required

Where the item is resolved, relative to the workspace (/app), with the hash of the page section.

string
resourceUrl

Where a pending item’s resource already is: a path inside the app starting with /app/, or an absolute URL; null when unknown, outside the caller’s reach, or once the item is confirmed. Absent on the derived items, and on an older server.

string | null
status
required
string
Allowed values: done pending not_applicable
steps

How the item is set up by hand, in order. Absent on the derived items, and on an older server.

Array<string>
onboarding
required

True while the company has a won deal and a pending item, derived or waiting for a person to confirm it.

boolean
wonDealId
required
string | null

Example

{
"data": {
"items": [
{
"key": "client_status",
"status": "done"
}
]
}
}

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"
}
}

Not found.

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.