CRM tags
The business’s list of CRM tags, used to label and filter people, companies and opportunities. They are managed under Tag in the CRM’s Customize settings and are separate from project tags.
Who can use it
Section titled “Who can use it”Every endpoint acts as the person whose personal access token is used. Reading tags needs the permission to view tags; creating, renaming and deleting each need their own permission (create tags, edit tags, delete tags). 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. Putting tags on a person, company or opportunity is done on that record and needs the permission to edit it.
The CRM tag object
Section titled “The CRM tag object”One tag in the business’s CRM tag list.
| Field | Type | Description |
|---|---|---|
id |
string | The tag’s id. Read only. |
name |
string | Name, 1–191 characters, unique in the business. |
isInUse |
boolean | True when any person, company or opportunity carries the tag. A tag 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 CRM tags
Section titled “List CRM tags”Returns the business’s CRM tags, newest first by default.
GET /v1/crm-tagsParameters
| 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 tags something carries; false: only unused tags. |
updatedSince |
query | datetime | No | Only records changed at or after this moment. Records deleted since then are not reported. |
sortField |
query | string | No | createdAt (default), updatedAt or name. |
sortOrder |
query | string | No | asc or desc (default). |
Rules
403when the person may not view tags.400whenupdatedSince,sortFieldorsortOrderis not valid.
Example request
curl "https://api.onesuite.io/v1/crm-tags?limit=2" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/crm-tags?limit=2", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm2h8d5px000brt52bc9de0fg", "name": "Newsletter", "isInUse": false, "createdAt": "2026-11-21T09:41:02.093Z", "updatedAt": "2026-11-21T09:41:02.093Z" }, { "id": "cm2h8c2nw0009rt52vw7xy8za", "name": "Priority account", "isInUse": true, "createdAt": "2026-04-09T10:21:33.518Z", "updatedAt": "2026-04-09T10:21:33.518Z" } ], "totalCount": 14, "page": 1, "limit": 2}Get a CRM tag
Section titled “Get a CRM tag”Returns one CRM tag.
GET /v1/crm-tags/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The tag’s id. |
Rules
403when the person may not view tags.404when the tag does not exist in the business.
Example request
curl "https://api.onesuite.io/v1/crm-tags/cm2h8c2nw0009rt52vw7xy8za" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/crm-tags/cm2h8c2nw0009rt52vw7xy8za", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2h8c2nw0009rt52vw7xy8za", "name": "Priority account", "isInUse": true, "createdAt": "2026-04-09T10:21:33.518Z", "updatedAt": "2026-04-09T10:21:33.518Z" }}Create a CRM tag
Section titled “Create a CRM tag”Adds a tag to the business’s CRM tag list.
POST /v1/crm-tagsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
name |
body | string | Yes | Name, 1–191 characters, unique in the business. |
Rules
403when the person may not create tags.400when the name is empty or longer than 191 characters.409when a tag with that name already exists.
Example request
curl "https://api.onesuite.io/v1/crm-tags" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Newsletter"}'const response = await fetch("https://api.onesuite.io/v1/crm-tags", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Newsletter", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm2h8d5px000brt52bc9de0fg", "name": "Newsletter", "isInUse": false, "createdAt": "2026-11-21T09:41:02.093Z", "updatedAt": "2026-11-21T09:41:02.093Z" }}Update a CRM tag
Section titled “Update a CRM tag”Renames the tag. Every person, company and opportunity carrying it shows the new name.
PATCH /v1/crm-tags/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The tag’s id. |
name |
body | string | No | New name, 1–191 characters, unique in the business. |
Rules
403when the person may not edit tags.404when the tag does not exist in the business.400when the body is empty or the name is empty or too long.409when another tag already has that name.
Example request
curl "https://api.onesuite.io/v1/crm-tags/cm2h8d5px000brt52bc9de0fg" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Newsletter 2027"}'const response = await fetch("https://api.onesuite.io/v1/crm-tags/cm2h8d5px000brt52bc9de0fg", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Newsletter 2027", }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2h8d5px000brt52bc9de0fg", "name": "Newsletter 2027", "isInUse": false, "createdAt": "2026-11-21T09:41:02.093Z", "updatedAt": "2026-11-21T09:47:55.380Z" }}Delete a CRM tag
Section titled “Delete a CRM tag”Deletes a tag that no person, company or opportunity carries.
DELETE /v1/crm-tags/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The tag’s id. |
Rules
403when the person may not delete tags.404when the tag does not exist in the business.409when a person, company or opportunity carries the tag: take it off them first.
Example request
curl "https://api.onesuite.io/v1/crm-tags/cm2h8d5px000brt52bc9de0fg" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/crm-tags/cm2h8d5px000brt52bc9de0fg", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Tag deleted"}