Skip to content

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.

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.

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.

Returns the business’s CRM tags, newest first by default.

GET /v1/crm-tags

Parameters

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

  • 403 when the person may not view tags.
  • 400 when updatedSince, sortField or sortOrder is not valid.

Example request

Terminal window
curl "https://api.onesuite.io/v1/crm-tags?limit=2" \
-H "X-API-Key: $ONESUITE_TOKEN"

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
}

Returns one CRM tag.

GET /v1/crm-tags/:id

Parameters

Parameter In Type Required Description
id path string Yes The tag’s id.

Rules

  • 403 when the person may not view tags.
  • 404 when the tag does not exist in the business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/crm-tags/cm2h8c2nw0009rt52vw7xy8za" \
-H "X-API-Key: $ONESUITE_TOKEN"

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"
}
}

Adds a tag to the business’s CRM tag list.

POST /v1/crm-tags

Parameters

Parameter In Type Required Description
name body string Yes Name, 1–191 characters, unique in the business.

Rules

  • 403 when the person may not create tags.
  • 400 when the name is empty or longer than 191 characters.
  • 409 when a tag with that name already exists.

Example request

Terminal window
curl "https://api.onesuite.io/v1/crm-tags" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Newsletter"}'

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"
}
}

Renames the tag. Every person, company and opportunity carrying it shows the new name.

PATCH /v1/crm-tags/:id

Parameters

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

  • 403 when the person may not edit tags.
  • 404 when the tag does not exist in the business.
  • 400 when the body is empty or the name is empty or too long.
  • 409 when another tag already has that name.

Example request

Terminal window
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"}'

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"
}
}

Deletes a tag that no person, company or opportunity carries.

DELETE /v1/crm-tags/:id

Parameters

Parameter In Type Required Description
id path string Yes The tag’s id.

Rules

  • 403 when the person may not delete tags.
  • 404 when the tag does not exist in the business.
  • 409 when a person, company or opportunity carries the tag: take it off them first.

Example request

Terminal window
curl "https://api.onesuite.io/v1/crm-tags/cm2h8d5px000brt52bc9de0fg" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Tag deleted"
}