Industries
The business’s list of industries: the line of business a person, company, client or opportunity is in, such as Architecture or Healthcare. People, companies, clients and opportunities share one list, managed under Industry in the CRM’s and the Clients’ Customize settings.
Who can use it
Section titled “Who can use it”Every endpoint acts as the person whose personal access token is used. Reading industries needs the permission to view companies; creating one needs the permission to create companies; renaming, making default and deleting need the permission to edit companies. The list is the same for everyone who may read it, member, manager or administrator; administrators hold every permission. A person without the permission an endpoint needs gets 403. To give a person, company, client or opportunity a industry, send its id as industryId when creating or updating that record.
The industry object
Section titled “The industry object”One industry in the business’s list.
| Field | Type | Description |
|---|---|---|
id |
string | The industry’s id. Read only. |
name |
string | Name, 1–191 characters, unique in the business. |
isDefault |
boolean | Whether this is the business’s default industry. The default is listed first and cannot be deleted; at most one industry is the default. |
isInUse |
boolean | True when any person or company has this industry. A industry in use cannot be deleted. Read only. |
createdAt |
datetime | When it was created. Read only. |
updatedAt |
datetime | When it last changed. Read only. |
Endpoints
Section titled “Endpoints”List industries
Section titled “List industries”Returns the business’s industries: the default first, then newest first, unless sortField is sent.
GET /v1/industriesParameters
| 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. |
isInUse |
query | boolean | No | true: only industries someone has; false: only unused ones. |
updatedSince |
query | datetime | No | Only records changed at or after this moment. Records deleted since then are not reported. |
sortField |
query | string | No | name, createdAt or updatedAt. Default: the default first, then newest first. |
sortOrder |
query | string | No | asc or desc. Default asc for name, desc otherwise. |
Rules
403when the person may not view companies.400whenupdatedSince,sortFieldorsortOrderis not valid.
Example request
curl "https://api.onesuite.io/v1/industries?limit=2" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/industries?limit=2", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm2h7a4lt0005rt52jk3lm4no", "name": "Architecture", "isDefault": true, "isInUse": true, "createdAt": "2026-02-11T08:30:12.004Z", "updatedAt": "2026-06-03T13:44:51.287Z" }, { "id": "cm2h7b9mv0007rt52pq5rs6tu", "name": "Healthcare", "isDefault": false, "isInUse": false, "createdAt": "2026-11-21T09:58:40.771Z", "updatedAt": "2026-11-21T09:58:40.771Z" } ], "totalCount": 9, "page": 1, "limit": 2}Get a industry
Section titled “Get a industry”Returns one industry.
GET /v1/industries/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The industry’s id. |
Rules
403when the person may not view companies.404when the industry does not exist in the business.
Example request
curl "https://api.onesuite.io/v1/industries/cm2h7a4lt0005rt52jk3lm4no" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/industries/cm2h7a4lt0005rt52jk3lm4no", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2h7a4lt0005rt52jk3lm4no", "name": "Architecture", "isDefault": true, "isInUse": true, "createdAt": "2026-02-11T08:30:12.004Z", "updatedAt": "2026-06-03T13:44:51.287Z" }}Create a industry
Section titled “Create a industry”Adds a industry to the business’s list. It is not the default.
POST /v1/industriesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
name |
body | string | Yes | Name, 1–191 characters, unique in the business. |
Rules
403when the person may not create companies.400when the name is empty or longer than 191 characters.409when a industry with that name already exists.
Example request
curl "https://api.onesuite.io/v1/industries" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Healthcare"}'const response = await fetch("https://api.onesuite.io/v1/industries", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Healthcare", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm2h7b9mv0007rt52pq5rs6tu", "name": "Healthcare", "isDefault": false, "isInUse": false, "createdAt": "2026-11-21T09:58:40.771Z", "updatedAt": "2026-11-21T09:58:40.771Z" }}Update a industry
Section titled “Update a industry”Renames the industry, or makes it the default: send isDefault true and the previous default stops being the default. Every person, company, client and opportunity that has the industry shows the new name.
PATCH /v1/industries/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The industry’s id. |
name |
body | string | No | New name, 1–191 characters, unique in the business. |
isDefault |
body | boolean | No | true makes this the default industry. false is refused: make another industry the default instead. |
Rules
403when the person may not edit companies.404when the industry does not exist in the business.400when the body is empty, the name is empty or too long, orisDefaultis false.409when another industry already has that name.
Example request
curl "https://api.onesuite.io/v1/industries/cm2h7b9mv0007rt52pq5rs6tu" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Healthcares"}'const response = await fetch("https://api.onesuite.io/v1/industries/cm2h7b9mv0007rt52pq5rs6tu", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Healthcares", }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2h7b9mv0007rt52pq5rs6tu", "name": "Healthcares", "isDefault": false, "isInUse": false, "createdAt": "2026-11-21T09:58:40.771Z", "updatedAt": "2026-11-21T10:03:17.402Z" }}Delete a industry
Section titled “Delete a industry”Deletes a industry that no person or company has. Opportunities that have it are left without a industry.
DELETE /v1/industries/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The industry’s id. |
Rules
403when the person may not edit companies.404when the industry does not exist in the business.409when a person or company has the industry: give them another industry first.409when it is the default industry: make another one the default first.
Example request
curl "https://api.onesuite.io/v1/industries/cm2h7b9mv0007rt52pq5rs6tu" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/industries/cm2h7b9mv0007rt52pq5rs6tu", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Industry deleted"}