Companies
Companies are the organisations a business tracks in its CRM: their contact details, domains, ARR, Account Owner, people, opportunities, notes and files. A company can be converted to a client; the company client and the company then share one set of details.
Who can use it
Section titled “Who can use it”Every endpoint acts as the person whose personal access token is used, with the permissions their permission profile gives them in the app. Listing companies, reading one, its notes, its Timeline and downloading its files need the permission to view companies. Creating a company needs the permission to create companies. Changing a company, converting it to a client, writing, changing or deleting its notes, and listing, uploading, renaming or deleting its files need the permission to edit companies. Deleting a company needs the permission to delete companies. These permissions cover the whole business: a member, a manager or an administrator who may view companies sees every company, with nothing narrowed to the people or projects they manage and no field hidden. Administrators hold every permission. Without the permission an endpoint needs, the answer is 403; a client portal login is refused with 403. A company’s people are read and changed with the People endpoints and their permissions, and its opportunities with the Opportunities endpoints and theirs.
Objects
Section titled “Objects”The company object
Section titled “The company object”A company the business deals with in the CRM: an organisation with its contact details, people, opportunities and, once converted, its client.
| Field | Type | Description |
|---|---|---|
id |
string | The company’s id. Read only. |
name |
string | The company’s name, 1–255 characters. |
logoUrl |
string | URL of the company’s logo, or null. Read only. Can be null. |
emails |
array of emailAddress | The company’s email addresses, primary first. When there is at least one, exactly one is primary. |
phones |
array of phoneNumber | The company’s phone numbers, primary first. When there is at least one, exactly one is primary. |
domains |
array of domain | The company’s web domains, primary first. When there is at least one, exactly one is primary. |
address1 |
string | First address line, or null. Can be null. |
address2 |
string | Second address line, or null. Can be null. |
city |
string | City, or null. Can be null. |
state |
string | State, county or region, or null. Can be null. |
zip |
string | Postal code, or null. Can be null. |
countryCode |
string | Two-letter ISO country code, such as IE, or null. Set this to set the country. Can be null. |
country |
string | The country’s name as the app shows it, for countryCode, or null. Read only. Can be null. |
annualRecurringRevenue |
integer | ARR: the company’s annual recurring revenue in whole units of currency, or null when not set. Can be null. |
currency |
string | ISO code of the currency annualRecurringRevenue is in, such as EUR. Null means the business’s currency. Can be null. |
employees |
integer | Number of employees, or null when not set. Can be null. |
isIcp |
boolean | Whether the company fits the business’s ICP (ideal customer profile). |
linkedinUrl |
string | LinkedIn page URL, or null. Must be a linkedin.com address. Can be null. |
twitterUrl |
string | X (Twitter) URL, or null. Must be an x.com or twitter.com address. Can be null. |
instagramUrl |
string | Instagram URL, or null. Can be null. |
facebookUrl |
string | Facebook URL, or null. Can be null. |
youtubeUrl |
string | YouTube URL, or null. Can be null. |
tiktokUrl |
string | TikTok URL, or null. Can be null. |
threadsUrl |
string | Threads URL, or null. Can be null. |
otherSocialUrl |
string | Any other profile URL, or null. Can be null. |
industry |
object | The company’s industry as { id, name }, or null. Can be null. |
source |
object | Where the company came from, as { id, name }, or null. Can be null. |
accountOwner |
object | The team member who is the company’s Account Owner, as { id, name }, or null. Can be null. |
pointOfContact |
object | The person who is the company’s Point of Contact, as { id, name }, or null. Always one of the company’s people; read and manage the person with the People endpoints. Can be null. |
opportunities |
array of object | The opportunities linked to the company, newest first, each { id, name }. Link or unlink one from the opportunity’s own record. |
isClient |
boolean | Whether the company has been converted to a client (the app shows Converted to Client). Read only. |
client |
object | The company client this company is, as { id, name } (the client’s name is the company’s name), or null when the company is not a client. The client and the company share one set of details: name, emails, phone numbers, address, industry, source, point of contact and custom fields changed on either are the same record. Read only. Can be null. |
tags |
array of object | Tags on the company, each { id, name }. |
customFields |
object | The business’s custom fields for companies, keyed by each field’s key, with the stored value: text, number, date (YYYY-MM-DD), a list for multi-select. Fields with no value are left out. |
createdBy |
object | The team member who added the company, as { id, name }, or null when it was not added by a team member. Read only. Can be null. |
createdAt |
datetime | When the company was added. Read only. |
updatedAt |
datetime | When the company, or one of its emails, phone numbers or domains, last changed. Read only. |
The email address object
Section titled “The email address object”One of a company’s email addresses.
| Field | Type | Description |
|---|---|---|
id |
string | The address’s id. Send it back in emails to keep or change this address. Read only. |
email |
string | The address. |
isPrimary |
boolean | Whether this is the company’s primary address. |
createdAt |
datetime | When the address was added. Read only. |
updatedAt |
datetime | When the address last changed. Read only. |
The phone number object
Section titled “The phone number object”One of a company’s phone numbers.
| Field | Type | Description |
|---|---|---|
id |
string | The number’s id. Send it back in phones to keep or change this number. Read only. |
phone |
string | The number: digits, optionally starting with +, at most 15 digits. |
country |
string | Country the number belongs to, or null. Can be null. |
dialCode |
string | International dial code, such as +353, or null. Can be null. |
label |
string | What kind of number it is: office, mobile, fax, home, direct, main or other; null when not said. Can be null. |
isPrimary |
boolean | Whether this is the company’s primary number. |
createdAt |
datetime | When the number was added. Read only. |
updatedAt |
datetime | When the number last changed. Read only. |
The domain object
Section titled “The domain object”One of a company’s web domains.
| Field | Type | Description |
|---|---|---|
id |
string | The domain’s id. Send it back in domains to keep or change this domain. Read only. |
domain |
string | The domain, such as example.com. |
isPrimary |
boolean | Whether this is the company’s primary domain. |
createdAt |
datetime | When the domain was added. Read only. |
updatedAt |
datetime | When the domain last changed. Read only. |
The company note object
Section titled “The company note object”A note written on a company, shown on its Notes tab.
| Field | Type | Description |
|---|---|---|
id |
string | The note’s id. Read only. |
title |
string | The note’s title. |
description |
string | The note’s body as HTML, the format the app’s note editor writes, or null. Can be null. |
files |
array of object | Files attached to the note in the app, each { id, name }. Read, download, rename or delete them with the company’s file endpoints. Read only. |
createdBy |
object | The team member who wrote the note, as { id, name }, or null. Read only. Can be null. |
createdAt |
datetime | When the note was written. Read only. |
updatedAt |
datetime | When the note last changed. Read only. |
The company file object
Section titled “The company file object”A file on a company’s Files tab: added to the company directly, or attached to one of its notes or CRM tasks.
| Field | Type | Description |
|---|---|---|
id |
string | The file’s id. Read only. |
name |
string | The file’s name as shown in the app. |
fileType |
string | The file’s extension, such as pdf, or null. Read only. Can be null. |
size |
integer | Size in bytes, or null for a file linked from cloud storage. Read only. Can be null. |
note |
object | The company note the file is attached to, as { id, name } (name = the note’s title), or null. Read only. Can be null. |
task |
object | The CRM task the file is attached to, as { id, name } (name = the task’s title), or null. Read only. Can be null. |
createdBy |
object | The team member who added the file, as { id, name }, or null. Read only. Can be null. |
createdAt |
datetime | When the file was added. Read only. |
The timeline entry object
Section titled “The timeline entry object”One entry of a company’s Timeline: a change made to the company or its notes and files.
| Field | Type | Description |
|---|---|---|
id |
string | The entry’s id. Read only. |
action |
string | What was done, in the app’s words, such as created, added, updated, connected or converted. Read only. |
item |
string | What it was done to, such as Company, Email, Domain, Note, File or Account Owner. Read only. Can be null. |
detail |
string | The value involved, such as the address added or the note’s title, or null. Read only. Can be null. |
message |
string | The sentence the Timeline shows for the entry. Read only. |
performedBy |
object | Who did it, as { id, name }. id is the team member’s id, or null when no team member did it (name then reads as the app shows it, such as System). Read only. |
createdAt |
datetime | When it happened. Read only. |
The portal invitation object
Section titled “The portal invitation object”The outcome of inviting one of the company’s people to the client portal while converting it to a client.
| Field | Type | Description |
|---|---|---|
person |
object | The person invited, as { id, name }. Read only. |
result |
string | invited (an invitation was sent), alreadyInvited (an invitation was already pending; nothing sent) or failed (nothing sent; see message). Read only. |
message |
string | Why the invitation failed, such as the person having no primary email address; null otherwise. Read only. Can be null. |
The conversion object
Section titled “The conversion object”The result of converting a company to a client.
| Field | Type | Description |
|---|---|---|
company |
company | The company, now with isClient true and its client. Read only. |
client |
object | The new company client, as { id, name }. Read and change it with the Clients endpoints. Read only. |
invitations |
array of portalInvitation | One row per person asked to be invited to the client portal, in the order sent; empty when none were. Read only. |
Companies
Section titled “Companies”List companies
Section titled “List companies”Returns the business’s companies, newest first by default. To list a company’s people, use List people with filterCompanyIds.
GET /v1/companiesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Rows per page. Default 20, at most 1000. |
search |
query | string | No | Text in the name or any email address. |
filterIndustryIds |
query | string | No | Comma-separated industry ids. |
filterSourceIds |
query | string | No | Comma-separated source ids. |
filterTagIds |
query | string | No | Comma-separated tag ids; companies with any of them. |
filterAccountOwnerIds |
query | string | No | Comma-separated team member ids of Account Owners. |
filterCountryCodes |
query | string | No | Comma-separated two-letter country codes, such as IE,GB. |
isClient |
query | boolean | No | true: only companies converted to clients; false: only those not converted. |
updatedSince |
query | datetime | No | Only companies that, or whose emails, phone numbers or domains, changed at or after this moment. Records deleted since then are not reported. |
sortField |
query | string | No | createdAt (default), updatedAt, name, country or employees. |
sortOrder |
query | string | No | asc or desc (default). |
Rules
403when the person may not view companies.400whenupdatedSinceis not a valid moment,isClientis not true or false, orsortFieldorsortOrderis not one of the listed values.- Ids in a filter that are not in the business match nothing; the request still answers 200.
Example request
curl "https://api.onesuite.io/v1/companies?isClient=true&filterTagIds=cm3qk0t1a0007l208tag9g0h1&limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies?isClient=true&filterTagIds=cm3qk0t1a0007l208tag9g0h1&limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3qk1x6z0002l2087kf3m0aa", "name": "Northwind Studio", "logoUrl": null, "emails": [ { "id": "cm3qk1y2b0006l208em1a2b3c", "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "phones": [ { "id": "cm3qk1y3c0007l208ph4d5e6f", "phone": "+35315550100", "country": "Ireland", "dialCode": "+353", "label": null, "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "domains": [ { "id": "cm3qk1y4d0008l208dm7g8h9j", "domain": "example.com", "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "address1": "14 Harbour Road", "address2": null, "city": "Dublin", "state": null, "zip": "D02 XY45", "countryCode": "IE", "country": "Ireland", "annualRecurringRevenue": 120000, "currency": "EUR", "employees": 24, "isIcp": true, "linkedinUrl": "https://www.linkedin.com/company/example-northwind", "twitterUrl": null, "instagramUrl": null, "facebookUrl": null, "youtubeUrl": null, "tiktokUrl": null, "threadsUrl": null, "otherSocialUrl": null, "industry": { "id": "cm3qk0p2x0003l208ind0a1b2", "name": "Architecture" }, "source": { "id": "cm3qk0q7v0005l208src3c4d5", "name": "Referral" }, "accountOwner": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "pointOfContact": { "id": "cm3qk2a1c0009l208h7w5r3pq", "name": "Dana Reyes" }, "opportunities": [ { "id": "cm3qk3o1p0013l208opp1a2b3", "name": "Studio fit-out 2027" } ], "isClient": true, "client": { "id": "cm3qk1x7a0004l208c2vh9e1t", "name": "Northwind Studio" }, "tags": [ { "id": "cm3qk0t1a0007l208tag9g0h1", "name": "Key account" } ], "customFields": { "account-tier": "Gold" }, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-02T10:12:03.402Z", "updatedAt": "2026-11-12T15:40:21.118Z" } ], "totalCount": 4, "page": 1, "limit": 1}Get a company
Section titled “Get a company”Returns one company.
GET /v1/companies/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
Rules
403when the person may not view companies.404when the company does not exist in the business.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3qk1x6z0002l2087kf3m0aa", "name": "Northwind Studio", "logoUrl": null, "emails": [ { "id": "cm3qk1y2b0006l208em1a2b3c", "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "phones": [ { "id": "cm3qk1y3c0007l208ph4d5e6f", "phone": "+35315550100", "country": "Ireland", "dialCode": "+353", "label": null, "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "domains": [ { "id": "cm3qk1y4d0008l208dm7g8h9j", "domain": "example.com", "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "address1": "14 Harbour Road", "address2": null, "city": "Dublin", "state": null, "zip": "D02 XY45", "countryCode": "IE", "country": "Ireland", "annualRecurringRevenue": 120000, "currency": "EUR", "employees": 24, "isIcp": true, "linkedinUrl": "https://www.linkedin.com/company/example-northwind", "twitterUrl": null, "instagramUrl": null, "facebookUrl": null, "youtubeUrl": null, "tiktokUrl": null, "threadsUrl": null, "otherSocialUrl": null, "industry": { "id": "cm3qk0p2x0003l208ind0a1b2", "name": "Architecture" }, "source": { "id": "cm3qk0q7v0005l208src3c4d5", "name": "Referral" }, "accountOwner": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "pointOfContact": { "id": "cm3qk2a1c0009l208h7w5r3pq", "name": "Dana Reyes" }, "opportunities": [ { "id": "cm3qk3o1p0013l208opp1a2b3", "name": "Studio fit-out 2027" } ], "isClient": true, "client": { "id": "cm3qk1x7a0004l208c2vh9e1t", "name": "Northwind Studio" }, "tags": [ { "id": "cm3qk0t1a0007l208tag9g0h1", "name": "Key account" } ], "customFields": { "account-tier": "Gold" }, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-02T10:12:03.402Z", "updatedAt": "2026-11-12T15:40:21.118Z" }}Create a company
Section titled “Create a company”Adds a company. Only name is required; any other field can be set in the same request. Unless accountOwnerId is sent, the company has no Account Owner. The person creating it is recorded as Created By. Add the company’s people afterwards by setting their company with Update a person, then choose a Point of Contact with Update a company. Emails, phone numbers and domains are each sent as a list; at most one row per list may be isPrimary: true, and if none is, the first row becomes primary.
POST /v1/companiesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
name |
body | string | Yes | The company’s name, 1–255 characters. |
emails |
body | array of object | No | The company’s complete list of email addresses, each { id?, email, isPrimary? }. See the rule for lists in the description. |
phones |
body | array of object | No | The company’s complete list of phone numbers, each { id?, phone, country?, dialCode?, label?, isPrimary? }. label is one of office, mobile, fax, home, direct, main, other, or null. |
domains |
body | array of object | No | The company’s complete list of domains, each { id?, domain, isPrimary? }. |
address1 |
body | string | No | First address line. The body also takes address2, city, state, zip and countryCode, each a string or null. |
annualRecurringRevenue |
body | integer | No | ARR in whole units, 0 or more, or null to clear. |
currency |
body | string | No | ISO code of the ARR’s currency, or null for the business’s currency. |
employees |
body | integer | No | Number of employees, 0 or more, or null to clear. |
isIcp |
body | boolean | No | Whether the company fits the ICP. |
linkedinUrl |
body | string | No | LinkedIn URL. The body also takes twitterUrl, instagramUrl, facebookUrl, youtubeUrl, tiktokUrl, threadsUrl and otherSocialUrl, each a URL or null. |
industryId |
body | string | No | Industry id, or null for none. |
sourceId |
body | string | No | Source id, or null for none. |
accountOwnerId |
body | string | No | Team member id of the Account Owner, or null for none. |
tagIds |
body | array of string | No | The company’s complete list of tag ids; an empty list removes every tag. |
customFields |
body | object | No | Custom field values keyed by the field’s key. Keys not sent keep their value; null clears one. |
Rules
403when the person may not create companies.400when the name is missing or longer than 255 characters, an email address, phone number or domain is invalid, more than one row in a list is marked primary, alabelis not one of the listed values, the LinkedIn or X URL is not on its site,annualRecurringRevenueoremployeesis negative or not a whole number,currencyorcountryCodeis unknown, or a custom field value does not fit its field. Nothing is created.404when the industry, source, Account Owner, a tag or a custom field key is not in the business.- Answers 201 with the new company.
Example request
curl "https://api.onesuite.io/v1/companies" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Bluebell Analytics","emails":[{"email":"[email protected]"}],"domains":[{"domain":"bluebell.example.com"}],"city":"Cork","countryCode":"IE","employees":8,"sourceId":"cm3qk0q7v0005l208src3c4d5","accountOwnerId":"cm3qk0m4r0001l208own6e7f8"}'const response = await fetch("https://api.onesuite.io/v1/companies", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Bluebell Analytics", emails: [ { }, ], domains: [ { domain: "bluebell.example.com", }, ], city: "Cork", countryCode: "IE", employees: 8, sourceId: "cm3qk0q7v0005l208src3c4d5", accountOwnerId: "cm3qk0m4r0001l208own6e7f8", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm3qn4c8k0031l208q2w3e4rt", "name": "Bluebell Analytics", "logoUrl": null, "emails": [ { "id": "cm3qn4c9a0033l208a1s2d3fg", "isPrimary": true, "createdAt": "2026-11-21T09:45:12.550Z", "updatedAt": "2026-11-21T09:45:12.550Z" } ], "phones": [], "domains": [ { "id": "cm3qn4c9b0035l208h4j5k6lz", "domain": "bluebell.example.com", "isPrimary": true, "createdAt": "2026-11-21T09:45:12.550Z", "updatedAt": "2026-11-21T09:45:12.550Z" } ], "address1": null, "address2": null, "city": "Cork", "state": null, "zip": null, "countryCode": "IE", "country": "Ireland", "annualRecurringRevenue": null, "currency": null, "employees": 8, "isIcp": false, "linkedinUrl": null, "twitterUrl": null, "instagramUrl": null, "facebookUrl": null, "youtubeUrl": null, "tiktokUrl": null, "threadsUrl": null, "otherSocialUrl": null, "industry": null, "source": { "id": "cm3qk0q7v0005l208src3c4d5", "name": "Referral" }, "accountOwner": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "pointOfContact": null, "opportunities": [], "isClient": false, "client": null, "tags": [], "customFields": {}, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-21T09:45:12.541Z", "updatedAt": "2026-11-21T09:45:12.550Z" }}Update a company
Section titled “Update a company”Changes the fields sent and leaves the rest as they are. Emails, phone numbers and domains are each sent as the complete list. A row with the id of one of the company’s own rows keeps that row and applies any change; a row without an id is added; any existing row not in the list is removed; an empty list removes them all. At most one row per list may be isPrimary: true; if none is, the first row becomes primary. Leaving a list out of the body leaves it unchanged. tagIds likewise replaces the company’s tags. For a company that is a client, the shared details (name, emails, phone numbers, address, industry, source, Point of Contact, custom fields) change on the client too.
PATCH /v1/companies/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
name |
body | string | No | The company’s name, 1–255 characters. |
emails |
body | array of object | No | The company’s complete list of email addresses, each { id?, email, isPrimary? }. See the rule for lists in the description. |
phones |
body | array of object | No | The company’s complete list of phone numbers, each { id?, phone, country?, dialCode?, label?, isPrimary? }. label is one of office, mobile, fax, home, direct, main, other, or null. |
domains |
body | array of object | No | The company’s complete list of domains, each { id?, domain, isPrimary? }. |
address1 |
body | string | No | First address line. The body also takes address2, city, state, zip and countryCode, each a string or null. |
annualRecurringRevenue |
body | integer | No | ARR in whole units, 0 or more, or null to clear. |
currency |
body | string | No | ISO code of the ARR’s currency, or null for the business’s currency. |
employees |
body | integer | No | Number of employees, 0 or more, or null to clear. |
isIcp |
body | boolean | No | Whether the company fits the ICP. |
linkedinUrl |
body | string | No | LinkedIn URL. The body also takes twitterUrl, instagramUrl, facebookUrl, youtubeUrl, tiktokUrl, threadsUrl and otherSocialUrl, each a URL or null. |
industryId |
body | string | No | Industry id, or null for none. |
sourceId |
body | string | No | Source id, or null for none. |
accountOwnerId |
body | string | No | Team member id of the Account Owner, or null for none. |
pointOfContactId |
body | string | No | The id of one of the company’s people to make Point of Contact, or null for none. |
tagIds |
body | array of string | No | The company’s complete list of tag ids; an empty list removes every tag. |
customFields |
body | object | No | Custom field values keyed by the field’s key. Keys not sent keep their value; null clears one. |
Rules
403when the person may not edit companies.404when the company does not exist in the business.400when the body is empty, the name is empty, an email address, phone number or domain is invalid, more than one row in a list is marked primary, anidinemails,phonesordomainsis not one of this company’s, alabelis not one of the listed values, the LinkedIn or X URL is not on its site,annualRecurringRevenueoremployeesis negative or not a whole number, orcurrencyorcountryCodeis unknown. Nothing changes.400whenpointOfContactIdnames a person who is not one of the company’s people.404when the industry, source, Account Owner, Point of Contact, a tag or a custom field key is not in the business.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"employees":30,"accountOwnerId":"cm3qk0n8s0002l208own1x2y3","domains":[{"domain":"northwind.example.com","isPrimary":true},{"id":"cm3qk1y4d0008l208dm7g8h9j","domain":"example.com"}]}'const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ employees: 30, accountOwnerId: "cm3qk0n8s0002l208own1x2y3", domains: [ { domain: "northwind.example.com", isPrimary: true, }, { id: "cm3qk1y4d0008l208dm7g8h9j", domain: "example.com", }, ], }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3qk1x6z0002l2087kf3m0aa", "name": "Northwind Studio", "logoUrl": null, "emails": [ { "id": "cm3qk1y2b0006l208em1a2b3c", "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "phones": [ { "id": "cm3qk1y3c0007l208ph4d5e6f", "phone": "+35315550100", "country": "Ireland", "dialCode": "+353", "label": null, "isPrimary": true, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-02T10:12:03.410Z" } ], "domains": [ { "id": "cm3qm2d5e0025l208dmz1x2c3", "domain": "northwind.example.com", "isPrimary": true, "createdAt": "2026-11-21T10:20:31.004Z", "updatedAt": "2026-11-21T10:20:31.004Z" }, { "id": "cm3qk1y4d0008l208dm7g8h9j", "domain": "example.com", "isPrimary": false, "createdAt": "2026-11-02T10:12:03.410Z", "updatedAt": "2026-11-21T10:20:31.004Z" } ], "address1": "14 Harbour Road", "address2": null, "city": "Dublin", "state": null, "zip": "D02 XY45", "countryCode": "IE", "country": "Ireland", "annualRecurringRevenue": 120000, "currency": "EUR", "employees": 30, "isIcp": true, "linkedinUrl": "https://www.linkedin.com/company/example-northwind", "twitterUrl": null, "instagramUrl": null, "facebookUrl": null, "youtubeUrl": null, "tiktokUrl": null, "threadsUrl": null, "otherSocialUrl": null, "industry": { "id": "cm3qk0p2x0003l208ind0a1b2", "name": "Architecture" }, "source": { "id": "cm3qk0q7v0005l208src3c4d5", "name": "Referral" }, "accountOwner": { "id": "cm3qk0n8s0002l208own1x2y3", "name": "Priya Nair" }, "pointOfContact": { "id": "cm3qk2a1c0009l208h7w5r3pq", "name": "Dana Reyes" }, "opportunities": [ { "id": "cm3qk3o1p0013l208opp1a2b3", "name": "Studio fit-out 2027" } ], "isClient": true, "client": { "id": "cm3qk1x7a0004l208c2vh9e1t", "name": "Northwind Studio" }, "tags": [ { "id": "cm3qk0t1a0007l208tag9g0h1", "name": "Key account" } ], "customFields": { "account-tier": "Gold" }, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-02T10:12:03.402Z", "updatedAt": "2026-11-21T10:20:31.004Z" }}Delete a company
Section titled “Delete a company”Permanently deletes the company with its emails, phone numbers, domains, notes, files, Timeline and custom field values, and the opportunities linked to it. Its people are kept, without a company. A company that has been converted to a client cannot be deleted here: delete the client instead.
DELETE /v1/companies/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
Rules
403when the person may not delete companies.404when the company does not exist in the business.409when the company has been converted to a client; nothing is deleted.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qn4c8k0031l208q2w3e4rt" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qn4c8k0031l208q2w3e4rt", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Company deleted"}Convert a company to a client
Section titled “Convert a company to a client”Makes the company a company client, as Convert to Client does in the app. The client takes the company’s details, which from then on are shared by both, and the business’s default client status and priority. Optionally invites some of the company’s people to the client portal in the same request; each invitation’s outcome is reported and a failed invitation does not undo the conversion.
POST /v1/companies/:id/convert-to-clientParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
invitePersonIds |
body | array of string | No | Ids of the company’s people to invite to the client portal. Each needs a primary email address. |
invitationMessage |
body | string | No | Personal message added to the portal invitation email. |
Rules
403when the person may not edit companies.404when the company does not exist in the business.409when the company is already a client; nothing changes.400when an id ininvitePersonIdsis not one of the company’s people; nothing changes.- Answers 201 with the company, the new client and the invitation outcomes.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qn4c8k0031l208q2w3e4rt/convert-to-client" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"invitePersonIds":["cm3ql7d2f0011l208k9m1n2pq"],"invitationMessage":"Welcome aboard - your project files will be shared here."}'const response = await fetch("https://api.onesuite.io/v1/companies/cm3qn4c8k0031l208q2w3e4rt/convert-to-client", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ invitePersonIds: [ "cm3ql7d2f0011l208k9m1n2pq", ], invitationMessage: "Welcome aboard - your project files will be shared here.", }),});const data = await response.json();Example response — status 201
{ "data": { "company": { "id": "cm3qn4c8k0031l208q2w3e4rt", "name": "Bluebell Analytics", "logoUrl": null, "emails": [ { "id": "cm3qn4c9a0033l208a1s2d3fg", "isPrimary": true, "createdAt": "2026-11-21T09:45:12.550Z", "updatedAt": "2026-11-21T09:45:12.550Z" } ], "phones": [], "domains": [ { "id": "cm3qn4c9b0035l208h4j5k6lz", "domain": "bluebell.example.com", "isPrimary": true, "createdAt": "2026-11-21T09:45:12.550Z", "updatedAt": "2026-11-21T09:45:12.550Z" } ], "address1": null, "address2": null, "city": "Cork", "state": null, "zip": null, "countryCode": "IE", "country": "Ireland", "annualRecurringRevenue": null, "currency": null, "employees": 8, "isIcp": false, "linkedinUrl": null, "twitterUrl": null, "instagramUrl": null, "facebookUrl": null, "youtubeUrl": null, "tiktokUrl": null, "threadsUrl": null, "otherSocialUrl": null, "industry": null, "source": { "id": "cm3qk0q7v0005l208src3c4d5", "name": "Referral" }, "accountOwner": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "pointOfContact": null, "opportunities": [], "isClient": true, "client": { "id": "cm3qp9z1x0041l208c7v8b9nm", "name": "Bluebell Analytics" }, "tags": [], "customFields": {}, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-21T09:45:12.541Z", "updatedAt": "2026-11-21T11:02:44.317Z" }, "client": { "id": "cm3qp9z1x0041l208c7v8b9nm", "name": "Bluebell Analytics" }, "invitations": [ { "person": { "id": "cm3ql7d2f0011l208k9m1n2pq", "name": "Lee Chen" }, "result": "invited", "message": null } ] }}List a company’s notes
Section titled “List a company’s notes”Returns the company’s notes, newest first.
GET /v1/companies/:id/notesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Rows per page. Default 20, at most 1000. |
updatedSince |
query | datetime | No | Only notes changed at or after this moment. Notes deleted since then are not reported. |
Rules
403when the person may not view companies.404when the company does not exist in the business.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes?limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes?limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3qk5n2b0051l208nt1q2w3e", "title": "Kick-off call", "description": "<p>Wants a fit-out quote by January. Budget agreed in principle.</p>", "files": [ { "id": "cm3qk5f7c0053l208fl4r5t6y", "name": "brief.pdf" } ], "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-10T14:02:10.220Z", "updatedAt": "2026-11-10T14:05:47.913Z" } ], "totalCount": 3, "page": 1, "limit": 1}Add a note to a company
Section titled “Add a note to a company”Adds a note to the company’s Notes tab, written by the person whose token is used.
POST /v1/companies/:id/notesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
title |
body | string | Yes | The note’s title, not empty. |
description |
body | string | No | The note’s body as HTML. |
Rules
403when the person may not edit companies.404when the company does not exist in the business.400when the title is missing or empty.- Answers 201 with the new note.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title":"Pricing follow-up","description":"<p>Sent revised rates.</p>"}'const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ title: "Pricing follow-up", description: "<p>Sent revised rates.</p>", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm3qr2n4m0071l208nt8p9a0s", "title": "Pricing follow-up", "description": "<p>Sent revised rates.</p>", "files": [], "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-21T12:30:00.118Z", "updatedAt": "2026-11-21T12:30:00.118Z" }}Update a company note
Section titled “Update a company note”Changes the note’s title, body or both.
PATCH /v1/companies/:id/notes/:noteIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
noteId |
path | string | Yes | The note’s id. |
title |
body | string | No | The note’s title, not empty. |
description |
body | string | No | The note’s body as HTML; null or an empty string clears it. |
Rules
403when the person may not edit companies.404when the company or the note does not exist, or the note is not this company’s.400when the body is empty or the title is empty.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes/cm3qk5n2b0051l208nt1q2w3e" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title":"Kick-off call (10 Nov)"}'const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes/cm3qk5n2b0051l208nt1q2w3e", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ title: "Kick-off call (10 Nov)", }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3qk5n2b0051l208nt1q2w3e", "title": "Kick-off call (10 Nov)", "description": "<p>Wants a fit-out quote by January. Budget agreed in principle.</p>", "files": [ { "id": "cm3qk5f7c0053l208fl4r5t6y", "name": "brief.pdf" } ], "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-10T14:02:10.220Z", "updatedAt": "2026-11-21T12:41:05.660Z" }}Delete a company note
Section titled “Delete a company note”Permanently deletes the note and the files attached to it.
DELETE /v1/companies/:id/notes/:noteIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
noteId |
path | string | Yes | The note’s id. |
Rules
403when the person may not edit companies.404when the company or the note does not exist, or the note is not this company’s.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes/cm3qr2n4m0071l208nt8p9a0s" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/notes/cm3qr2n4m0071l208nt8p9a0s", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Note deleted"}List a company’s files
Section titled “List a company’s files”Returns the files on the company’s Files tab, newest first: files added to the company and files attached to its notes and CRM tasks.
GET /v1/companies/:id/filesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Rows per page. Default 20, at most 1000. |
Rules
403when the person may not edit companies (the permission the app requires to list a company’s files).404when the company does not exist in the business.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files?limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files?limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3qk5f7c0053l208fl4r5t6y", "name": "brief.pdf", "fileType": "pdf", "size": 284512, "note": { "id": "cm3qk5n2b0051l208nt1q2w3e", "name": "Kick-off call" }, "task": null, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-10T14:04:58.731Z" } ], "totalCount": 2, "page": 1, "limit": 1}Upload a file to a company
Section titled “Upload a file to a company”Adds a file to the company’s Files tab. Send it as multipart/form-data with the file in the file part. At most 25 MB; executable and other unsafe file types are refused.
POST /v1/companies/:id/filesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
file |
body | string | Yes | The file, as the file part of a multipart/form-data body. |
Rules
403when the person may not edit companies.404when the company does not exist in the business.400when no file is sent, it is larger than 25 MB, or its type is not allowed.- Answers 201 with the new file.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"file":"(binary: signed-proposal.pdf)"}'const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ file: "(binary: signed-proposal.pdf)", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm3qr0f1d0061l208fl7u8i9o", "name": "signed-proposal.pdf", "fileType": "pdf", "size": 412880, "note": null, "task": null, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-21T12:15:09.442Z" }}Download a company file
Section titled “Download a company file”Returns the file’s contents, with its name in the Content-Disposition header.
GET /v1/companies/:id/files/:fileId/downloadParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
fileId |
path | string | Yes | The file’s id. |
Rules
403when the person may not view companies.404when the company or the file does not exist, or the file is not on this company’s Files tab.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files/cm3qk5f7c0053l208fl4r5t6y/download" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files/cm3qk5f7c0053l208fl4r5t6y/download", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{}Rename a company file
Section titled “Rename a company file”Changes the file’s name.
PATCH /v1/companies/:id/files/:fileIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
fileId |
path | string | Yes | The file’s id. |
name |
body | string | Yes | The new name, not empty. |
Rules
403when the person may not edit companies.404when the company or the file does not exist, or the file is not on this company’s Files tab.400when the name is missing or empty.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files/cm3qk5f7c0053l208fl4r5t6y" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"kick-off-brief.pdf"}'const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files/cm3qk5f7c0053l208fl4r5t6y", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "kick-off-brief.pdf", }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3qk5f7c0053l208fl4r5t6y", "name": "kick-off-brief.pdf", "fileType": "pdf", "size": 284512, "note": { "id": "cm3qk5n2b0051l208nt1q2w3e", "name": "Kick-off call" }, "task": null, "createdBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-10T14:04:58.731Z" }}Delete a company file
Section titled “Delete a company file”Permanently deletes the file, including one attached to a note or CRM task of the company.
DELETE /v1/companies/:id/files/:fileIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
fileId |
path | string | Yes | The file’s id. |
Rules
403when the person may not edit companies.404when the company or the file does not exist, or the file is not on this company’s Files tab.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files/cm3qr0f1d0061l208fl7u8i9o" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/files/cm3qr0f1d0061l208fl7u8i9o", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "File deleted"}Timeline
Section titled “Timeline”List a company’s Timeline
Section titled “List a company’s Timeline”Returns the company’s Timeline, newest first: who created the company, changed its fields, added or removed notes and files, linked people and opportunities, and converted it to a client.
GET /v1/companies/:id/timelineParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The company’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Rows per page. Default 20, at most 1000. |
from |
query | date | No | Only entries on or after this day (UTC). |
to |
query | date | No | Only entries on or before this day (UTC). |
Rules
403when the person may not view companies.404when the company does not exist in the business.400whenfromis aftertoor either is not a valid day.
Example request
curl "https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/timeline?limit=2" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/companies/cm3qk1x6z0002l2087kf3m0aa/timeline?limit=2", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3qm2d5f0027l208lg1h2j3k", "action": "updated", "item": "Company", "detail": "Northwind Studio", "message": "updated", "performedBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-21T10:20:31.010Z" }, { "id": "cm3qk5n2c0052l208lg4l5z6x", "action": "added note", "item": "Note", "detail": "Kick-off call", "message": "added note", "performedBy": { "id": "cm3qk0m4r0001l208own6e7f8", "name": "Sam Okafor" }, "createdAt": "2026-11-10T14:02:10.231Z" } ], "totalCount": 37, "page": 1, "limit": 2}