Clients

3 operations. Paths start at your portal’s /api/v1.

List clients

GET/clients

Scope read:clientsRead only

Requires the read:clients scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • limitintegerin query

    Page size, 1 to 100 (default 25).

    Min 1. Max 100. Default 25.

  • cursorstringin query

    Opaque continuation token: pass back the nextCursor you were given. Never construct one.

  • searchstringin query

    Match on client name or domain.

  • statusstringin query

    Client status, or all.

  • includeInactivebooleanin query

    true to include inactive clients (hidden by default).

Response 200

  • dataobject[]Required

    The response payload.

  • data[].idstringRequired

    Record id (use it to link or fetch the record).

  • data[].namestringRequired

    Display name.

  • data[].domainstring or nullRequired

    Primary domain of the client, or null for an individual client (no domain).

  • data[].statusstringRequired

    Client status (e.g. ACTIVE, INACTIVE).

  • data[].clientTypestringRequired

    Client type.

  • data[].tierstringRequired

    Service tier.

  • data[].planNamestring or nullRequired

    Name of the client core plan, or null.

  • data[].industrystring or nullRequired

    Industry, or null.

  • data[].employeeCountinteger or nullRequired

    Employee count, or null.

  • data[].phonestring or nullRequired

    Main phone number, or null.

  • data[].primaryContactobjectRequired

    The primary contact (name and email, each possibly null).

  • data[].primaryContact.namestring or nullRequired

    Display name.

  • data[].primaryContact.emailstring or nullRequired

    Email address, or null.

  • data[].isCoManagedbooleanRequired

    True when the client is co-managed.

  • data[].portalEnabledbooleanRequired

    True when the client portal is enabled.

  • nextCursorstring or nullRequired

    Opaque cursor for the next page; pass it back as ?cursor=. Null on the last page.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Get one client

GET/clients/{id}

Scope read:clientsRead only

Requires the read:clients scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • idstringin pathRequired

    Client id.

Response 200

  • dataobjectRequired

    The response payload.

  • data.idstringRequired

    Record id (use it to link or fetch the record).

  • data.namestringRequired

    Display name.

  • data.domainstring or nullRequired

    Primary domain of the client, or null for an individual client (no domain).

  • data.statusstringRequired

    Client status (e.g. ACTIVE, INACTIVE).

  • data.clientTypestringRequired

    Client type.

  • data.tierstringRequired

    Service tier.

  • data.planNamestring or nullRequired

    Name of the client core plan, or null.

  • data.industrystring or nullRequired

    Industry, or null.

  • data.employeeCountinteger or nullRequired

    Employee count, or null.

  • data.phonestring or nullRequired

    Main phone number, or null.

  • data.primaryContactobjectRequired

    The primary contact (name and email, each possibly null).

  • data.primaryContact.namestring or nullRequired

    Display name.

  • data.primaryContact.emailstring or nullRequired

    Email address, or null.

  • data.isCoManagedbooleanRequired

    True when the client is co-managed.

  • data.portalEnabledbooleanRequired

    True when the client portal is enabled.

  • data.timezonestring or nullRequired

    IANA timezone, or null.

  • data.podobject or nullRequired

    The pod serving this client, or null.

  • data.pod.idstringRequired

    Record id (use it to link or fetch the record).

  • data.pod.namestringRequired

    Display name.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

List what a client is in scope for

GET/clients/{id}/scope

Scope read:clientsRead only

Requires the read:clients scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • idstringin pathRequired

    Client id.

Response 200

  • dataobject[]Required

    One row per scopable function.

  • data[].keystringRequired

    The function's key.

  • data[].labelstringRequired

    What the function is called.

  • data[].descriptionstringRequired

    What the function does.

  • data[].kindstringRequired

    Entitlement: a plan or board turns it on. Lens: a view filter.

    One of: entitlement, lens.

  • data[].inScopebooleanRequired

    Whether this client is in scope for it.

  • data[].sourcestringRequired

    Which door decided it: a plan, a board, or the default rule.

    One of: plan, board, default.

  • data[].sourceNamestring or nullRequired

    Name of the deciding plan or board; null on the default rule.

  • data[].doorPlanIdstring or nullRequired

    Id of the deciding plan, for plan-sourced rows.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

All API areas →