Team members
A team member is a person’s place on your team: everyone who tracks time or expenses in the business, including people added to the team who have not joined yet. It holds their details, permission profile, roles, the people they manage, the projects they are on, and their dated billable and cost rates.
Who can use it
Section titled “Who can use it”What a token can read and change follows its person’s permission profile, as in the app’s Team section. Reading: with the permission to see team members (view-team-member), which the Admin, Manager, Member, Accounting and People Admin profiles have by default, a token reads the whole team; with only the permission to see managed team members (view-managed-team-member), which the Project Manager profile has by default, it reads its own record and the people its person manages; and anyone can read their own record at /v1/team-members/me. A field the token’s person may not see is null: phone and time zone appear only on the token’s own record or for people who may edit team members; capacity only for people who may see team capacity; the billable rate on the token’s own record or for people who may see team rates (Admin, Manager, Accounting and People Admin by default, not Member). Cost rates are the strictest: only people who may see cost rates (Admin, Accounting and People Admin by default, never Manager) see any cost rate, their own included, and reading the cost rate history also needs the permission to see team rates. Changing: inviting needs the permission to invite team members; editing details needs the permission to edit team members; archiving and restoring, and deleting, each need their own permission; changing rates needs the permission to edit team rates (and, for cost rates, to see cost rates); changing a person’s profile or per-person permissions needs the permission to edit profiles. The Admin profile has every permission, so administrators can do all of this.
Objects
Section titled “Objects”The team member object
Section titled “The team member object”A person on the team.
| Field | Type | Description |
|---|---|---|
id |
string | The team member’s id. Every other endpoint uses this id for a person, for example on time entries, approvals, expenses and project members. Read only. |
name |
string | Full name. For a person who has not joined yet, the name they were added with. Read only. |
firstName |
string | First name, or null when not known. Can be null. |
lastName |
string | Last name, or null when not known. Can be null. |
email |
string | Work email, or null when the person has none. It is the person’s sign-in, so it cannot be changed here. Read only. Can be null. |
avatarUrl |
string | Link to the person’s photo, or null when they have none. Read only. Can be null. |
hasJoined |
boolean | false for a person who was added to the team but has not accepted an invitation yet. Such a person can have time and expenses recorded for them, but cannot sign in and does not hold a seat. Read only. |
isAccountOwner |
boolean | true for the Account Owner. The Account Owner cannot be archived or deleted, and their permissions cannot be changed. Read only. |
isArchived |
boolean | true when the person has been archived. Archived people keep all their time and expenses, are left out of team totals and do not hold a seat. Read only. |
archivedAt |
datetime | When the person was archived, or null when they are not archived. Read only. Can be null. |
employeeId |
string | Employee ID, unique within the business, or null. Can be null. |
jobTitle |
string | Job title, up to 191 characters, or null. Can be null. |
employmentType |
string | employee or contractor. |
weeklyCapacityHours |
decimal | Weekly capacity in hours, 0 to 60. null means the business’s default capacity applies. null unless the token’s person has the permission to see team capacity (view-team-capacity). Can be null. |
phone |
string | Work phone, or null. null unless this is the token’s own record or the token’s person may edit team members (edit-team-member). Read only. Can be null. |
timeZone |
string | Time zone as an IANA name, such as Europe/London, or null when not set. null unless this is the token’s own record or the token’s person may edit team members (edit-team-member). Can be null. |
permissionProfile |
object | { id, name } of the permission profile that decides what this person can do. null for a person who has not joined yet. Can be null. |
roles |
array of object | The roles (descriptive labels such as Designer or QA) this person holds, each { id, name }. Roles grant no access. |
departments |
array of object | The departments this person belongs to, each { id, name }. |
isAddedToNewProjects |
boolean | When true, the person is added to every project created from now on. It never adds them to existing projects. |
billableRate |
decimal | Billable rate per hour in force today, in currency. The dated history is at /v1/team-members/:id/billable-rates. null unless this is the token’s own record or the token’s person may see team rates (view-team-rates). Read only. Can be null. |
costRate |
decimal | Cost rate per hour in force today, in currency. The dated history is at /v1/team-members/:id/cost-rates. null unless the token’s person may see cost rates (view-team-cost-rates), on the token’s own record too. Read only. Can be null. |
currency |
string | ISO currency code of both rates: the business’s currency. Read only. |
createdAt |
datetime | When the person was added to the business. Read only. |
updatedAt |
datetime | When the person’s details last changed. Changing a rate, role, department or profile does not change it. Read only. |
The invitation object
Section titled “The invitation object”A pending invitation to join the team.
| Field | Type | Description |
|---|---|---|
id |
string | The invitation’s id. Read only. |
email |
string | The address the invitation was sent to. Read only. |
permissionProfile |
object | { id, name } of the permission profile the person will have when they accept. Read only. |
employmentType |
string | employee or contractor, or null when not chosen. Read only. Can be null. |
employeeId |
string | The employee ID they will have, or null. Read only. Can be null. |
weeklyCapacityHours |
decimal | The weekly capacity they will have; null means the business’s default. null unless the token’s person may see team capacity (view-team-capacity). Read only. Can be null. |
billableRate |
decimal | Starting billable rate per hour, in currency, or null when none was set. null unless the token’s person may see team rates (view-team-rates). Read only. Can be null. |
costRate |
decimal | Starting cost rate per hour, in currency, or null when none was set. null unless the token’s person may see cost rates (view-team-cost-rates). Read only. Can be null. |
currency |
string | ISO currency code of the rates: the business’s currency. Read only. |
roles |
array of object | Roles they will hold, each { id, name }. Read only. |
departments |
array of object | Departments they will belong to, each { id, name }. Read only. |
sentAt |
datetime | When the invitation email was last sent, or null when it has not been sent. Read only. Can be null. |
createdAt |
datetime | When the invitation was created. Read only. |
updatedAt |
datetime | When the invitation last changed. Read only. |
The billable rate period object
Section titled “The billable rate period object”One period of a person’s billable rate history.
| Field | Type | Description |
|---|---|---|
id |
string | The rate period’s id. Read only. |
billableRate |
decimal | The billable rate per hour for this period, in currency. |
currency |
string | ISO currency code: the business currency. Read only. |
startDate |
date | First day of the period. null for the first period, which covers every earlier date (“All prior” in the app). Can be null. |
endDate |
date | Last day of the period: the day before the next period starts. null for the latest period. Read only. Can be null. |
isCurrent |
boolean | true for the period that covers today (marked Current in the app). Read only. |
createdAt |
datetime | When the period was added. Read only. |
updatedAt |
datetime | When the period last changed, including when a later period moved its end date. Read only. |
The cost rate period object
Section titled “The cost rate period object”One period of a person’s cost rate history.
| Field | Type | Description |
|---|---|---|
id |
string | The rate period’s id. Read only. |
costRate |
decimal | The cost rate per hour for this period, in currency. |
currency |
string | ISO currency code: the business currency. Read only. |
startDate |
date | First day of the period. null for the first period, which covers every earlier date (“All prior” in the app). Can be null. |
endDate |
date | Last day of the period: the day before the next period starts. null for the latest period. Read only. Can be null. |
isCurrent |
boolean | true for the period that covers today (marked Current in the app). Read only. |
createdAt |
datetime | When the period was added. Read only. |
updatedAt |
datetime | When the period last changed, including when a later period moved its end date. Read only. |
The managed person object
Section titled “The managed person object”A person assigned to a team member to manage.
| Field | Type | Description |
|---|---|---|
member |
object | { id, name } of the person who is managed. Read only. |
email |
string | Their work email, or null. Read only. Can be null. |
jobTitle |
string | Their job title, or null. Read only. Can be null. |
createdAt |
datetime | When they were assigned to this manager. Read only. |
The team member project object
Section titled “The team member project object”A project a team member is on, seen from the person’s side.
| Field | Type | Description |
|---|---|---|
id |
string | The id of this person’s place on the project. Read only. |
project |
object | { id, name, code } of the project. Read only. |
client |
object | { id, name } of the project’s client, or null when the project has no client. Read only. Can be null. |
projectStatus |
string | The project’s status, as on the project: working, completed, paused or archived. Some older projects may also show submitted or onHold. Read only. |
isProjectManager |
boolean | true when this person manages the project. Read only. |
createdAt |
datetime | When the person was added to the project. Read only. |
updatedAt |
datetime | When this person’s place on the project last changed. Changes to their project rates do not change it. Read only. |
The member permissions object
Section titled “The member permissions object”A team member’s permission profile and effective permissions.
| Field | Type | Description |
|---|---|---|
permissionProfile |
object | { id, name } of the person’s permission profile, or null when they have none. Read only. Can be null. |
permissions |
array of object | Every permission in the catalogue, each { id, key, name, module, isFromProfile, override, isEnabled }. isFromProfile is true when the profile grants it; override is granted or revoked when this person has their own change to it, and null when they follow the profile; isEnabled is the result. Read only. |
Team members
Section titled “Team members”List team members
Section titled “List team members”Returns the people on the team, A to Z by name, including people added to the team who have not joined yet. Client portal contacts and leads are never listed. Archived people are left out unless status asks for them. Pending invitations are listed separately at /v1/team-members/invitations.
GET /v1/team-membersParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
search |
query | string | No | Only people whose name or email contains this text. |
status |
query | string | No | active (default), archived or all. |
employmentType |
query | string | No | employee or contractor. |
hasJoined |
query | boolean | No | false for only people who were added to the team but have not joined yet; true for only people who have joined. |
filterRoleIds |
query | string | No | Comma-separated role ids; people holding any of them. |
filterDepartmentIds |
query | string | No | Comma-separated department ids; people in any of them. |
filterPermissionProfileIds |
query | string | No | Comma-separated permission profile ids; people holding any of them. |
sortField |
query | string | No | name (default), createdAt or updatedAt. |
sortOrder |
query | string | No | asc (default) or desc. |
updatedSince |
query | datetime | No | Only team members changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person has neither the permission to see team members (view-team-member), which shows the whole team, nor the permission to see managed team members (view-managed-team-member), which shows the token’s own record and the people its person manages.- Fields the token’s person may not see are
nullon every record (see each field).
Example request
curl "https://api.onesuite.io/v1/team-members?status=active&limit=20" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members?status=active&limit=20", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cmh2k8w1q0004s6l0an4x7d2e", "name": "Ana Ortega", "firstName": "Ana", "lastName": "Ortega", "avatarUrl": null, "hasJoined": true, "isAccountOwner": false, "isArchived": false, "archivedAt": null, "employeeId": "E-104", "jobTitle": "Senior designer", "employmentType": "employee", "weeklyCapacityHours": 35, "phone": null, "timeZone": null, "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "roles": [ { "id": "cmh0x7t2b0001v5m3ds4k8n6d", "name": "Designer" } ], "departments": [ { "id": "cmh0x6r1a0002w4l2st9n5m3f", "name": "Studio" } ], "isAddedToNewProjects": false, "billableRate": 120, "costRate": null, "currency": "USD", "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-11-12T16:40:21.090Z" }, { "id": "cmh2k8w1q000as6l0cq2h8v1g", "name": "Chen Wu", "firstName": "Chen", "lastName": "Wu", "avatarUrl": null, "hasJoined": false, "isAccountOwner": false, "isArchived": false, "archivedAt": null, "employeeId": null, "jobTitle": "Developer", "employmentType": "contractor", "weeklyCapacityHours": null, "phone": null, "timeZone": null, "permissionProfile": null, "roles": [ { "id": "cmh0x7t2b0003v5m3dv7p2q1e", "name": "Developer" } ], "departments": [], "isAddedToNewProjects": false, "billableRate": null, "costRate": null, "currency": "USD", "createdAt": "2026-09-24T07:02:55.301Z", "updatedAt": "2026-09-24T07:02:55.301Z" } ], "totalCount": 2, "page": 1, "limit": 20}Get your own team member record
Section titled “Get your own team member record”Returns the team member record of the person who created the token. Any valid personal token can call it.
GET /v1/team-members/meRules
- Never refused for a valid token. Phone, time zone and billable rate are shown because the record is the token’s own; capacity and cost rate follow the same permissions as for anyone else.
Example request
curl "https://api.onesuite.io/v1/team-members/me" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/me", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh2k8w1q0004s6l0an4x7d2e", "name": "Ana Ortega", "firstName": "Ana", "lastName": "Ortega", "avatarUrl": null, "hasJoined": true, "isAccountOwner": false, "isArchived": false, "archivedAt": null, "employeeId": "E-104", "jobTitle": "Senior designer", "employmentType": "employee", "weeklyCapacityHours": 35, "phone": "+1 555 0100", "timeZone": "America/New_York", "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "roles": [ { "id": "cmh0x7t2b0001v5m3ds4k8n6d", "name": "Designer" } ], "departments": [ { "id": "cmh0x6r1a0002w4l2st9n5m3f", "name": "Studio" } ], "isAddedToNewProjects": false, "billableRate": 120, "costRate": null, "currency": "USD", "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-11-12T16:40:21.090Z" }}Get a team member
Section titled “Get a team member”Returns one team member.
GET /v1/team-members/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
Rules
403when the token’s person has neither the permission to see team members (view-team-member), which shows the whole team, nor the permission to see managed team members (view-managed-team-member), which shows the token’s own record and the people its person manages.404when the id is not a team member of this business (client portal contacts and leads included), or is not one of the people the token’s person manages when they may only see managed team members.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh2k8w1q0004s6l0an4x7d2e", "name": "Ana Ortega", "firstName": "Ana", "lastName": "Ortega", "avatarUrl": null, "hasJoined": true, "isAccountOwner": false, "isArchived": false, "archivedAt": null, "employeeId": "E-104", "jobTitle": "Senior designer", "employmentType": "employee", "weeklyCapacityHours": 35, "phone": null, "timeZone": null, "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "roles": [ { "id": "cmh0x7t2b0001v5m3ds4k8n6d", "name": "Designer" } ], "departments": [ { "id": "cmh0x6r1a0002w4l2st9n5m3f", "name": "Studio" } ], "isAddedToNewProjects": false, "billableRate": 120, "costRate": null, "currency": "USD", "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-11-12T16:40:21.090Z" }}Invite a team member who has not joined
Section titled “Invite a team member who has not joined”Sends the first invitation to a team member who was added to the team but has not joined yet. When they accept, that team member record, with all its time and expenses, becomes theirs. Their permission profile is the one chosen for them when they were added.
POST /v1/team-members/:id/inviteParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id: a person who has not joined yet. |
confirmedSeatCount |
body | integer | No | As for Invite a team member: the paid seat total given in the 402 answer. |
Rules
403when the token’s person does not have the permission to invite team members (invite-team-member).404when the id is not a team member of this business who has not joined yet.409when the person has already joined, is archived, has no email address, or already has a pending invitation.402and 409 for seats, as for Invite a team member.- Answers
201with the invitation.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q000as6l0cq2h8v1g/invite" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q000as6l0cq2h8v1g/invite", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({}),});const data = await response.json();Example response — status 201
{ "data": { "id": "cmh7e6w3i0001d1s9in2o3p4q", "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "employmentType": "contractor", "employeeId": null, "weeklyCapacityHours": null, "billableRate": null, "costRate": null, "currency": "USD", "roles": [ { "id": "cmh0x7t2b0003v5m3dv7p2q1e", "name": "Developer" } ], "departments": [], "sentAt": "2026-11-20T10:20:44.002Z", "createdAt": "2026-11-20T10:20:43.870Z", "updatedAt": "2026-11-20T10:20:44.002Z" }}Update a team member
Section titled “Update a team member”Changes a team member’s details. Send only the fields to change. roleIds and departmentIds replace the whole set; an empty list clears it. Rates are changed through the billable rate and cost rate endpoints, and archiving through the archive and restore actions.
PATCH /v1/team-members/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
firstName |
body | string | No | Only for a person who has joined. The name belongs to their account, so it changes in every business they belong to, and they are emailed about it. |
lastName |
body | string | No | Only for a person who has joined; the same rules as firstName. |
employeeId |
body | string | No | Up to 64 characters, unique in the business; null clears it. |
jobTitle |
body | string | No | Up to 191 characters; null clears it. |
employmentType |
body | string | No | employee or contractor. |
weeklyCapacityHours |
body | decimal | No | 0 to 60; null returns to the business’s default. |
timeZone |
body | string | No | IANA time zone name, such as Europe/London; null clears it. |
roleIds |
body | array of string | No | Role ids; replaces the whole set. |
departmentIds |
body | array of string | No | Department ids; replaces the whole set. |
isAddedToNewProjects |
body | boolean | No | true to add this person to every project created from now on. |
permissionProfileId |
body | string | No | Id of the permission profile to move the person onto. Their own per-person permission changes are kept. |
Rules
403when the token’s person does not have the permission to edit team members (edit-team-member) and a detail field is sent.403whenisAddedToNewProjectsis sent without the permission to edit projects (edit-project).403whenpermissionProfileIdis sent without the permission to edit profiles (edit-business-role), or names a profile the token’s person may not grant.403“The Account Owner’s permissions can’t be changed” whenpermissionProfileIdis sent for the Account Owner.400“This person hasn’t joined yet, so their name comes from their invitation” when a name is sent for a person who has not joined.400whenemailis sent (it is the person’s sign-in), the employee ID is taken, capacity is outside 0 to 60, or a role or department id does not exist in the business.- The whole request is checked before anything is saved, so a refused request changes nothing.
404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"jobTitle":"Design lead","weeklyCapacityHours":32,"roleIds":["cmh0x7t2b0001v5m3ds4k8n6d","cmh0x7t2b0003v5m3dv7p2q1e"]}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ jobTitle: "Design lead", weeklyCapacityHours: 32, roleIds: [ "cmh0x7t2b0001v5m3ds4k8n6d", "cmh0x7t2b0003v5m3dv7p2q1e", ], }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh2k8w1q0004s6l0an4x7d2e", "name": "Ana Ortega", "firstName": "Ana", "lastName": "Ortega", "avatarUrl": null, "hasJoined": true, "isAccountOwner": false, "isArchived": false, "archivedAt": null, "employeeId": "E-104", "jobTitle": "Design lead", "employmentType": "employee", "weeklyCapacityHours": 32, "phone": null, "timeZone": null, "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "roles": [ { "id": "cmh0x7t2b0001v5m3ds4k8n6d", "name": "Designer" }, { "id": "cmh0x7t2b0003v5m3dv7p2q1e", "name": "Developer" } ], "departments": [ { "id": "cmh0x6r1a0002w4l2st9n5m3f", "name": "Studio" } ], "isAddedToNewProjects": false, "billableRate": 120, "costRate": null, "currency": "USD", "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-11-20T10:40:12.660Z" }}Archive a team member
Section titled “Archive a team member”Archives a person. They keep all their time and expenses, can no longer use this business, are left out of team totals and stop holding a seat.
POST /v1/team-members/:id/archiveParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
Rules
403when the token’s person does not have the permission to archive team members (archive-team-member).400“You can’t archive yourself” for the token’s own record.403“The Account Owner can’t be archived”.- An already archived person answers 200 with the record unchanged.
404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0007s6l0bn9r3c5f/archive" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0007s6l0bn9r3c5f/archive", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh2k8w1q0007s6l0bn9r3c5f", "name": "Ben Adeyemi", "firstName": "Ben", "lastName": "Adeyemi", "avatarUrl": null, "hasJoined": true, "isAccountOwner": false, "isArchived": true, "archivedAt": "2026-11-20T10:44:03.115Z", "employeeId": "E-087", "jobTitle": "Senior designer", "employmentType": "employee", "weeklyCapacityHours": 35, "phone": null, "timeZone": null, "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "roles": [ { "id": "cmh0x7t2b0001v5m3ds4k8n6d", "name": "Designer" } ], "departments": [ { "id": "cmh0x6r1a0002w4l2st9n5m3f", "name": "Studio" } ], "isAddedToNewProjects": false, "billableRate": 120, "costRate": null, "currency": "USD", "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-11-20T10:44:03.115Z" }}Restore an archived team member
Section titled “Restore an archived team member”Brings an archived person back onto the team. They hold a seat again.
POST /v1/team-members/:id/restoreParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
Rules
403when the token’s person does not have the permission to archive team members (archive-team-member).403when restoring would exceed the number of members the plan allows (active people plus pending invitations).- A person who is not archived answers 200 with the record unchanged.
404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0007s6l0bn9r3c5f/restore" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0007s6l0bn9r3c5f/restore", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh2k8w1q0007s6l0bn9r3c5f", "name": "Ben Adeyemi", "firstName": "Ben", "lastName": "Adeyemi", "avatarUrl": null, "hasJoined": true, "isAccountOwner": false, "isArchived": false, "archivedAt": null, "employeeId": "E-087", "jobTitle": "Senior designer", "employmentType": "employee", "weeklyCapacityHours": 35, "phone": null, "timeZone": null, "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "roles": [ { "id": "cmh0x7t2b0001v5m3ds4k8n6d", "name": "Designer" } ], "departments": [ { "id": "cmh0x6r1a0002w4l2st9n5m3f", "name": "Studio" } ], "isAddedToNewProjects": false, "billableRate": 120, "costRate": null, "currency": "USD", "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-11-20T10:45:30.002Z" }}Delete a team member
Section titled “Delete a team member”Removes a person from the team for good. Only possible for someone with no tracked time and no expenses; archive everyone else.
DELETE /v1/team-members/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
Rules
403when the token’s person does not have the permission to delete team members (delete-team-member).400“You can’t delete yourself” for the token’s own record.403“The Account Owner can’t be deleted. Transfer ownership first.”409“This person has tracked time or expenses, so they can’t be deleted. Archive them instead.”- On a per-seat plan the freed seat is credited to the subscription.
404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q000ds6l0dt5m2k9h" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q000ds6l0dt5m2k9h", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Team member deleted"}Invitations
Section titled “Invitations”List pending invitations
Section titled “List pending invitations”Returns invitations that have not been accepted yet, newest first. An accepted invitation leaves this list and the person appears in /v1/team-members. Client portal invitations are not listed.
GET /v1/team-members/invitationsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
search |
query | string | No | Only invitations whose email address contains this text. |
updatedSince |
query | datetime | No | Only invitations changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person does not have the permission to invite team members (invite-team-member).
Example request
curl "https://api.onesuite.io/v1/team-members/invitations" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/invitations", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cmh6c4u1g0001b9q7in4b5c6d", "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "employmentType": "employee", "employeeId": "E-131", "weeklyCapacityHours": 40, "billableRate": 100, "costRate": null, "currency": "USD", "roles": [ { "id": "cmh0x7t2b0003v5m3dv7p2q1e", "name": "Developer" } ], "departments": [], "sentAt": "2026-11-18T14:05:12.000Z", "createdAt": "2026-11-18T14:05:11.802Z", "updatedAt": "2026-11-18T14:05:12.330Z" } ], "totalCount": 1, "page": 1, "limit": 20}Invite a team member
Section titled “Invite a team member”Adds someone to the team by sending them an invitation email. Only the email address and a permission profile are required; their name comes from their own account when they accept. Until they accept they are a pending invitation, not a team member, and have no team member id. On a plan that charges per seat, an invitation that needs a seat the business has not paid for is refused with 402 until the request confirms the new seat total in confirmedSeatCount.
POST /v1/team-members/invitationsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
email |
body | string | Yes | The email address to invite. |
permissionProfileId |
body | string | Yes | Id of the permission profile they will have. |
employmentType |
body | string | No | employee or contractor. |
employeeId |
body | string | No | Employee ID, up to 64 characters, unique in the business. |
weeklyCapacityHours |
body | decimal | No | 0 to 60; leave it out for the business’s default. |
billableRate |
body | decimal | No | Starting billable rate per hour, in the business’s currency. Needs the permission to edit team rates. |
costRate |
body | decimal | No | Starting cost rate per hour, in the business’s currency. Needs the permissions to edit team rates and to see cost rates. |
roleIds |
body | array of string | No | Ids of the roles they will hold. |
departmentIds |
body | array of string | No | Ids of the departments they will belong to. |
grantPermissionIds |
body | array of string | No | Permission ids to add on top of the profile, for this person only. Permissions the token’s person may not grant are dropped. |
revokePermissionIds |
body | array of string | No | Permissions of the profile to leave off, for this person only. |
message |
body | string | No | A note included in the invitation email. |
confirmedSeatCount |
body | integer | No | On a per-seat plan, the total number of paid seats the business will have after this invitation, as given in the 402 answer. Sending it agrees to buy the extra seat. |
Rules
403when the token’s person does not have the permission to invite team members (invite-team-member).403“You can’t grant a profile with more team or settings access than your own” when the profile carries team or settings permissions the token’s person does not have.403whenbillableRateis sent without the permission to edit team rates, orcostRatewithout the permissions to edit team rates and to see cost rates.grantPermissionIdsis narrowed to the permissions the token’s person may grant; the others are dropped without an error.400when the address is not an email address, already belongs to a team member, or already has a pending invitation.400when the employee ID is taken, a role or department id is unknown, capacity is outside 0 to 60, or a rate is not a valid amount.403on a plan with a fixed number of members when there is no room; the message says how many members the plan covers and how many are in use. A team member who has not joined yet does not count.402on a per-seat plan when this invitation needs a seat that is not paid for andconfirmedSeatCountwas not sent; the message gives the new seat total. During a trial the extra seat is billed when the trial ends.409whenconfirmedSeatCountdoes not match the seat total now because the team has changed; send the request again without it to get the new total.- Answers
201with the invitation. The seat is added to the subscription when the invitation is sent.
Example request
curl "https://api.onesuite.io/v1/team-members/invitations" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"email":"[email protected]","permissionProfileId":"cmg9p1r7e0002t3k1mb8w0z4a","employmentType":"employee","weeklyCapacityHours":40,"billableRate":100,"roleIds":["cmh0x7t2b0003v5m3dv7p2q1e"]}'const response = await fetch("https://api.onesuite.io/v1/team-members/invitations", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ permissionProfileId: "cmg9p1r7e0002t3k1mb8w0z4a", employmentType: "employee", weeklyCapacityHours: 40, billableRate: 100, roleIds: [ "cmh0x7t2b0003v5m3dv7p2q1e", ], }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cmh6c4u1g0001b9q7in4b5c6d", "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "employmentType": "employee", "employeeId": null, "weeklyCapacityHours": 40, "billableRate": 100, "costRate": null, "currency": "USD", "roles": [ { "id": "cmh0x7t2b0003v5m3dv7p2q1e", "name": "Developer" } ], "departments": [], "sentAt": "2026-11-20T10:12:00.410Z", "createdAt": "2026-11-20T10:12:00.118Z", "updatedAt": "2026-11-20T10:12:00.410Z" }}Cancel an invitation
Section titled “Cancel an invitation”Withdraws a pending invitation. The link in the email stops working.
DELETE /v1/team-members/invitations/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The invitation’s id. |
Rules
403when the token’s person does not have the permission to invite team members (invite-team-member).404when there is no pending team invitation with this id in the business.
Example request
curl "https://api.onesuite.io/v1/team-members/invitations/cmh6c4u1g0001b9q7in4b5c6d" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/invitations/cmh6c4u1g0001b9q7in4b5c6d", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Invitation cancelled"}Permissions
Section titled “Permissions”Get a team member’s permissions
Section titled “Get a team member’s permissions”Returns what the person can do: their permission profile, and every permission with whether the profile grants it, whether this person has their own change to it, and the result.
GET /v1/team-members/:id/permissionsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
Rules
403when the token’s person does not have the permission to see profiles and permissions (view-business-roles-and-permissions).404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/permissions" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/permissions", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "permissions": [ { "id": "cmf0a1b2c0010c0r8pe1d2e3f", "key": "view-team-member", "name": "View team member", "module": "TEAM", "isFromProfile": true, "override": null, "isEnabled": true }, { "id": "cmf0a1b2c0011c0r8pe4g5h6i", "key": "view-team-rates", "name": "View team rates", "module": "TEAM", "isFromProfile": false, "override": "granted", "isEnabled": true }, { "id": "cmf0a1b2c0012c0r8pe7j8k9l", "key": "create-project", "name": "Create project", "module": "PROJECT", "isFromProfile": true, "override": "revoked", "isEnabled": false } ] }}Set a team member’s permissions
Section titled “Set a team member’s permissions”Saves the complete set of permissions the person should have. Only the differences from their profile are kept as per-person changes, so if a permission is later added to the profile it stops being a per-person change. Can also move them onto another profile in the same request.
PUT /v1/team-members/:id/permissionsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
enabledPermissionIds |
body | array of string | Yes | Ids of every permission the person should end up with. Ids not in the catalogue are ignored. |
permissionProfileId |
body | string | No | Id of a permission profile to move the person onto; enabledPermissionIds is then compared with that profile. |
Rules
403when the token’s person does not have the permission to edit profiles (edit-business-role).403“The Account Owner’s permissions can’t be changed”.403“You can’t grant a profile with more team or settings access than your own” for a profile the token’s person may not grant.404whenpermissionProfileIddoes not exist in this business, or the team member does not exist.400whenenabledPermissionIdsis missing.- The change takes effect from the person’s next request.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/permissions" \ -X PUT \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"enabledPermissionIds":["cmf0a1b2c0010c0r8pe1d2e3f","cmf0a1b2c0011c0r8pe4g5h6i"]}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/permissions", { method: "PUT", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ enabledPermissionIds: [ "cmf0a1b2c0010c0r8pe1d2e3f", "cmf0a1b2c0011c0r8pe4g5h6i", ], }),});const data = await response.json();Example response — status 200
{ "data": { "permissionProfile": { "id": "cmg9p1r7e0002t3k1mb8w0z4a", "name": "Member" }, "permissions": [ { "id": "cmf0a1b2c0010c0r8pe1d2e3f", "key": "view-team-member", "name": "View team member", "module": "TEAM", "isFromProfile": true, "override": null, "isEnabled": true }, { "id": "cmf0a1b2c0011c0r8pe4g5h6i", "key": "view-team-rates", "name": "View team rates", "module": "TEAM", "isFromProfile": false, "override": "granted", "isEnabled": true }, { "id": "cmf0a1b2c0012c0r8pe7j8k9l", "key": "create-project", "name": "Create project", "module": "PROJECT", "isFromProfile": true, "override": "revoked", "isEnabled": false } ] }}Managed people
Section titled “Managed people”List the people a team member manages
Section titled “List the people a team member manages”Returns the people assigned to this person to manage (Assigned people in the app). If this person’s profile has the permissions for managed team members, they see and approve the time and expenses of exactly these people.
GET /v1/team-members/:id/managed-peopleParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).404when the team member does not exist in this business. A person who manages nobody answers 200 with an empty list.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/managed-people" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/managed-people", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "member": { "id": "cmh2k8w1q0007s6l0bn9r3c5f", "name": "Ben Adeyemi" }, "jobTitle": "Designer", "createdAt": "2026-05-11T12:00:31.204Z" } ], "totalCount": 1, "page": 1, "limit": 20}Set the people a team member manages
Section titled “Set the people a team member manages”Replaces the whole list of people this person manages; an empty list clears it. Any team member can be given people to manage, but it only widens what they see if their permission profile has the permissions for managed team members.
PUT /v1/team-members/:id/managed-peopleParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
memberIds |
body | array of string | Yes | Team member ids of the people to manage. |
Rules
403when the token’s person does not have the permission to edit team members (edit-team-member).400naming the ids that are not team members of this business, or when the list contains the person themselves.- The change takes effect immediately in everything the manager can see: time, expenses, approvals and reports.
404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/managed-people" \ -X PUT \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"memberIds":["cmh2k8w1q0007s6l0bn9r3c5f","cmh2k8w1q000as6l0cq2h8v1g"]}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/managed-people", { method: "PUT", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ memberIds: [ "cmh2k8w1q0007s6l0bn9r3c5f", "cmh2k8w1q000as6l0cq2h8v1g", ], }),});const data = await response.json();Example response — status 200
{ "data": [ { "member": { "id": "cmh2k8w1q0007s6l0bn9r3c5f", "name": "Ben Adeyemi" }, "jobTitle": "Designer", "createdAt": "2026-11-20T10:50:02.551Z" }, { "member": { "id": "cmh2k8w1q000as6l0cq2h8v1g", "name": "Chen Wu" }, "jobTitle": "Developer", "createdAt": "2026-11-20T10:50:02.551Z" } ], "totalCount": 2, "page": 1, "limit": 20}Projects of a team member
Section titled “Projects of a team member”List a team member’s projects
Section titled “List a team member’s projects”Returns the projects this person is on (Assigned projects in the app), most recently added first, archived projects included. Private projects the token’s person is not on are left out. The person’s rates, work types and budget on one project are at /v1/projects/:id/members.
GET /v1/team-members/:id/projectsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
isProjectManager |
query | boolean | No | true for only the projects the person manages. |
updatedSince |
query | datetime | No | Only project places changed at or after this moment. Records deleted since then are not reported. |
Rules
- The token’s own projects can always be read (or use
/v1/team-members/me/projects). 403when reading anyone else’s projects without the permission to see team members (view-team-member).- Private projects are left out unless the token’s person may see all projects (
view-all-project) or is on them;totalCountcounts only what is returned. 404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/projects" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/projects", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cmh1y9w5e0003a8p6co1y2z3a", "project": { "id": "cmh1y8u3c0001y6n4pr5s6t7u", "name": "Website refresh", "code": "WEB-24" }, "client": { "id": "cmh1y2v4d0001z7o5cl8v9w0x", "name": "Northwind Studio" }, "projectStatus": "working", "isProjectManager": true, "createdAt": "2026-04-07T08:30:00.000Z", "updatedAt": "2026-04-07T08:30:00.000Z" } ], "totalCount": 1, "page": 1, "limit": 20}List your own projects
Section titled “List your own projects”Returns the projects the token’s person is on. The same as /v1/team-members/:id/projects for the token’s own record.
GET /v1/team-members/me/projectsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
isProjectManager |
query | boolean | No | true for only the projects the person manages. |
updatedSince |
query | datetime | No | Only project places changed at or after this moment. Records deleted since then are not reported. |
Rules
- Never refused for a valid token.
Example request
curl "https://api.onesuite.io/v1/team-members/me/projects" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/me/projects", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cmh1y9w5e0003a8p6co1y2z3a", "project": { "id": "cmh1y8u3c0001y6n4pr5s6t7u", "name": "Website refresh", "code": "WEB-24" }, "client": { "id": "cmh1y2v4d0001z7o5cl8v9w0x", "name": "Northwind Studio" }, "projectStatus": "working", "isProjectManager": true, "createdAt": "2026-04-07T08:30:00.000Z", "updatedAt": "2026-04-07T08:30:00.000Z" } ], "totalCount": 1, "page": 1, "limit": 20}Billable rates
Section titled “Billable rates”List a team member’s billable rates
Section titled “List a team member’s billable rates”Returns the person’s billable rate history, oldest period first. Periods never overlap and never leave a gap: each ends the day before the next one starts, the first has no start date and covers every earlier date, and the last has no end date. A person whose rate was set before rate history was kept may have a billable rate on their record and no periods here.
GET /v1/team-members/:id/billable-ratesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
updatedSince |
query | datetime | No | Only periods changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person does not have the permission to see team rates (view-team-rates), on their own record too.404when the team member does not exist in this business or is not visible to the token’s person.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cmh5b3t0f0001x9o4ra1c2d3e", "billableRate": 95, "currency": "USD", "startDate": null, "endDate": "2025-12-31", "isCurrent": false, "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-06-01T10:02:44.118Z" }, { "id": "cmh5b3t0f0004x9o4ra4f5g6h", "billableRate": 110, "currency": "USD", "startDate": "2026-01-01", "endDate": "2026-06-30", "isCurrent": false, "createdAt": "2026-06-01T10:02:44.118Z", "updatedAt": "2026-07-03T08:11:09.440Z" }, { "id": "cmh5b3t0f0007x9o4ra7i8j9k", "billableRate": 120, "currency": "USD", "startDate": "2026-07-01", "endDate": null, "isCurrent": true, "createdAt": "2026-07-03T08:11:09.440Z", "updatedAt": "2026-07-03T08:11:09.440Z" } ], "totalCount": 3, "page": 1, "limit": 20}Get a billable rate period
Section titled “Get a billable rate period”Returns one period of the person’s billable rate history.
GET /v1/team-members/:id/billable-rates/:rateIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
rateId |
path | string | Yes | The rate period’s id. |
Rules
403when the token’s person does not have the permission to see team rates (view-team-rates), on their own record too.404when the period does not exist, was removed, or is a period of the other kind of rate.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0007x9o4ra7i8j9k" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0007x9o4ra7i8j9k", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh5b3t0f0007x9o4ra7i8j9k", "billableRate": 120, "currency": "USD", "startDate": "2026-07-01", "endDate": null, "isCurrent": true, "createdAt": "2026-07-03T08:11:09.440Z", "updatedAt": "2026-07-03T08:11:09.440Z" }}Add a billable rate from a date
Section titled “Add a billable rate from a date”Adds a new billable rate that takes effect on startDate. The period that covered that date now ends the day before; the new period runs until the day before the next later period, or has no end if there is none. Later periods are kept as they are: adding a rate never removes or changes a later one (remove it with Remove a billable rate period if it should go). A startDate that an existing period already starts on corrects that period’s rate instead, keeping its id. A future startDate is accepted: the rate shown on the team member changes on that day. The person’s first rate needs no date; a date sent with the first rate is ignored and the period covers every earlier date.
POST /v1/team-members/:id/billable-ratesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
billableRate |
body | decimal | Yes | Hourly rate in the business’s currency, 0 to 9999999999999.99. |
startDate |
body | date | No | First day the rate applies. Required once the person has any billable rate. |
repriceLoggedTime |
body | object | No | Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never. The days re-priced follow from the rate’s own dates, so no fromDate is taken. |
Rules
- Adding a rate starts it on
startDate; the period that covered that date ends the day before; later periods are kept. 403when the token’s person does not have the permission to edit team rates (edit-team-rates).400“Choose the date this rate takes effect” whenstartDateis missing and the person already has a billable rate.400whenbillableRateis missing, negative, too large or not a number, orstartDateis not a valid date.- Answers
201with the new period, or200with the corrected period whenstartDatematched an existing period’s start. - With
repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’srepricedEntryCount, besidedata, says how many entries changed. 404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"billableRate":130,"startDate":"2027-01-01"}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ billableRate: 130, startDate: "2027-01-01", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cmh7d5v2h0001c0r8ra0l1m2n", "billableRate": 130, "currency": "USD", "startDate": "2027-01-01", "endDate": null, "isCurrent": false, "createdAt": "2026-11-20T10:31:02.004Z", "updatedAt": "2026-11-20T10:31:02.004Z" }, "repricedEntryCount": 0}Change a billable rate period
Section titled “Change a billable rate period”Changes a period’s rate, its start date, or both. A period may be moved to any start date no other period already has; the history is re-ordered and every end date recalculated. The first period has no start date, and a date sent for it is ignored.
PATCH /v1/team-members/:id/billable-rates/:rateIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
rateId |
path | string | Yes | The rate period’s id. |
billableRate |
body | decimal | No | New hourly rate, 0 to 9999999999999.99. |
startDate |
body | date | No | New first day of the period. |
repriceLoggedTime |
body | object | No | Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never. The days re-priced follow from the rate’s own dates, so no fromDate is taken. |
Rules
403when the token’s person does not have the permission to edit team rates (edit-team-rates).400“Enter a rate or a start date” when neither is sent.400“Start date has already been taken” when another period starts on that date.404when the period does not exist, was removed, or is a period of the other kind of rate.- With
repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’srepricedEntryCount, besidedata, says how many entries changed.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0007x9o4ra7i8j9k" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"billableRate":125}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0007x9o4ra7i8j9k", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ billableRate: 125, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh5b3t0f0007x9o4ra7i8j9k", "billableRate": 125, "currency": "USD", "startDate": "2026-07-01", "endDate": null, "isCurrent": true, "createdAt": "2026-07-03T08:11:09.440Z", "updatedAt": "2026-11-20T10:33:40.771Z" }, "repricedEntryCount": 0}Remove a billable rate period
Section titled “Remove a billable rate period”Removes one period from the history. It is kept for audit, but no longer prices anything.
DELETE /v1/team-members/:id/billable-rates/:rateIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
rateId |
path | string | Yes | The rate period’s id. |
repriceLoggedTime |
body | object | No | Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never. The days re-priced follow from the rate’s own dates, so no fromDate is taken. |
Rules
403when the token’s person does not have the permission to edit team rates (edit-team-rates).- The period before the removed one is extended to cover its dates, so the history never has a gap. Removing the first period makes the next one the first.
- Removing the only period that covers today leaves the person with no billable rate from that point.
404when the period does not exist or was already removed.- With
repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’srepricedEntryCount, besidemessage, says how many entries changed.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0004x9o4ra4f5g6h" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0004x9o4ra4f5g6h", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Rate removed"}Cost rates
Section titled “Cost rates”List a team member’s cost rates
Section titled “List a team member’s cost rates”Returns the person’s cost rate history, oldest period first. Periods never overlap and never leave a gap: each ends the day before the next one starts, the first has no start date and covers every earlier date, and the last has no end date. A person whose rate was set before rate history was kept may have a cost rate on their record and no periods here.
GET /v1/team-members/:id/cost-ratesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
updatedSince |
query | datetime | No | Only periods changed at or after this moment. Records deleted since then are not reported. |
Rules
403unless the token’s person has both the permission to see team rates (view-team-rates) and the permission to see cost rates (view-team-cost-rates), on their own record too.404when the team member does not exist in this business or is not visible to the token’s person.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cmh5b3t0f0001x9o4rc1c2d3e", "costRate": 55, "currency": "USD", "startDate": null, "endDate": "2025-12-31", "isCurrent": false, "createdAt": "2026-03-02T09:14:07.512Z", "updatedAt": "2026-06-01T10:02:44.118Z" }, { "id": "cmh5b3t0f0004x9o4rc4f5g6h", "costRate": 62, "currency": "USD", "startDate": "2026-01-01", "endDate": "2026-06-30", "isCurrent": false, "createdAt": "2026-06-01T10:02:44.118Z", "updatedAt": "2026-07-03T08:11:09.440Z" }, { "id": "cmh5b3t0f0007x9o4rc7i8j9k", "costRate": 68, "currency": "USD", "startDate": "2026-07-01", "endDate": null, "isCurrent": true, "createdAt": "2026-07-03T08:11:09.440Z", "updatedAt": "2026-07-03T08:11:09.440Z" } ], "totalCount": 3, "page": 1, "limit": 20}Get a cost rate period
Section titled “Get a cost rate period”Returns one period of the person’s cost rate history.
GET /v1/team-members/:id/cost-rates/:rateIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
rateId |
path | string | Yes | The rate period’s id. |
Rules
403unless the token’s person has both the permission to see team rates (view-team-rates) and the permission to see cost rates (view-team-cost-rates), on their own record too.404when the period does not exist, was removed, or is a period of the other kind of rate.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0007x9o4rc7i8j9k" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0007x9o4rc7i8j9k", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh5b3t0f0007x9o4rc7i8j9k", "costRate": 68, "currency": "USD", "startDate": "2026-07-01", "endDate": null, "isCurrent": true, "createdAt": "2026-07-03T08:11:09.440Z", "updatedAt": "2026-07-03T08:11:09.440Z" }}Add a cost rate from a date
Section titled “Add a cost rate from a date”Adds a new cost rate that takes effect on startDate. The period that covered that date now ends the day before; the new period runs until the day before the next later period, or has no end if there is none. Later periods are kept as they are: adding a rate never removes or changes a later one (remove it with Remove a cost rate period if it should go). A startDate that an existing period already starts on corrects that period’s rate instead, keeping its id. A future startDate is accepted: the rate shown on the team member changes on that day. The person’s first rate needs no date; a date sent with the first rate is ignored and the period covers every earlier date.
POST /v1/team-members/:id/cost-ratesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
costRate |
body | decimal | Yes | Hourly rate in the business’s currency, 0 to 9999999999999.99. |
startDate |
body | date | No | First day the rate applies. Required once the person has any cost rate. |
repriceLoggedTime |
body | object | No | Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean, "correctInvoicedCost": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never, except that correctInvoicedCost true also corrects the cost (never the billable amount) of invoiced time outside a locked period. The days re-priced follow from the rate’s own dates, so no fromDate is taken. |
Rules
- Adding a rate starts it on
startDate; the period that covered that date ends the day before; later periods are kept. 403unless the token’s person has both the permission to edit team rates (edit-team-rates) and the permission to see cost rates (view-team-cost-rates).400“Choose the date this rate takes effect” whenstartDateis missing and the person already has a cost rate.400whencostRateis missing, negative, too large or not a number, orstartDateis not a valid date.- Answers
201with the new period, or200with the corrected period whenstartDatematched an existing period’s start. - With
repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’srepricedEntryCount, besidedata, says how many entries changed. 404when the team member does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"costRate":72,"startDate":"2027-01-01"}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ costRate: 72, startDate: "2027-01-01", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cmh7d5v2h0002c0r8rc0l1m2n", "costRate": 72, "currency": "USD", "startDate": "2027-01-01", "endDate": null, "isCurrent": false, "createdAt": "2026-11-20T10:31:02.004Z", "updatedAt": "2026-11-20T10:31:02.004Z" }, "repricedEntryCount": 0}Change a cost rate period
Section titled “Change a cost rate period”Changes a period’s rate, its start date, or both. A period may be moved to any start date no other period already has; the history is re-ordered and every end date recalculated. The first period has no start date, and a date sent for it is ignored.
PATCH /v1/team-members/:id/cost-rates/:rateIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
rateId |
path | string | Yes | The rate period’s id. |
costRate |
body | decimal | No | New hourly rate, 0 to 9999999999999.99. |
startDate |
body | date | No | New first day of the period. |
repriceLoggedTime |
body | object | No | Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean, "correctInvoicedCost": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never, except that correctInvoicedCost true also corrects the cost (never the billable amount) of invoiced time outside a locked period. The days re-priced follow from the rate’s own dates, so no fromDate is taken. |
Rules
403unless the token’s person has both the permission to edit team rates (edit-team-rates) and the permission to see cost rates (view-team-cost-rates).400“Enter a rate or a start date” when neither is sent.400“Start date has already been taken” when another period starts on that date.404when the period does not exist, was removed, or is a period of the other kind of rate.- With
repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’srepricedEntryCount, besidedata, says how many entries changed.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0007x9o4rc7i8j9k" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"costRate":70}'const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0007x9o4rc7i8j9k", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ costRate: 70, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cmh5b3t0f0007x9o4rc7i8j9k", "costRate": 70, "currency": "USD", "startDate": "2026-07-01", "endDate": null, "isCurrent": true, "createdAt": "2026-07-03T08:11:09.440Z", "updatedAt": "2026-11-20T10:33:40.771Z" }, "repricedEntryCount": 0}Remove a cost rate period
Section titled “Remove a cost rate period”Removes one period from the history. It is kept for audit, but no longer prices anything.
DELETE /v1/team-members/:id/cost-rates/:rateIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The team member’s id. |
rateId |
path | string | Yes | The rate period’s id. |
repriceLoggedTime |
body | object | No | Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean, "correctInvoicedCost": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never, except that correctInvoicedCost true also corrects the cost (never the billable amount) of invoiced time outside a locked period. The days re-priced follow from the rate’s own dates, so no fromDate is taken. |
Rules
403unless the token’s person has both the permission to edit team rates (edit-team-rates) and the permission to see cost rates (view-team-cost-rates).- The period before the removed one is extended to cover its dates, so the history never has a gap. Removing the first period makes the next one the first.
- Removing the only period that covers today leaves the person with no cost rate from that point.
404when the period does not exist or was already removed.- With
repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’srepricedEntryCount, besidemessage, says how many entries changed.
Example request
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0004x9o4rc4f5g6h" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0004x9o4rc4f5g6h", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Rate removed"}