List tags

SDK platic.tags.list()

Find a workspace tag and take its id to assign it or change its settings. The list includes its criteria, automatic application and owners.

Example

await platic.tags.list();

Query parameters

ParameterTypeDescriptionRequired
workspacestringWorkspace ID. Required when your credential covers several workspaces (list workspaces); without it the answer is 400If the credential has several

Response

{
  "status": "success",
  "data": [
    {
      "id": "tag_abc123",
      "name": "MARCH RENEWAL",
      "status": "active",
      "automatic": false,
      "criteria": "March renewal: apply this tag to contacts whose subscriptions expire in March.",
      "owners": [
        "support@acme.com"
      ],
      "creationDate": "2026-03-05T21:44:40Z",
      "lastUpdate": "2026-03-05T21:44:40Z"
    },
    {
      "id": "tag_def456",
      "name": "VIP",
      "status": "active",
      "automatic": true,
      "criteria": "Apply this tag to customers with a high purchase volume.",
      "owners": [],
      "creationDate": "2026-02-20T15:00:00Z",
      "lastUpdate": "2026-03-01T10:30:00Z"
    }
  ]
}

Response fields

data is the list of the workspace's tags. Each tag has:

FieldDescription
idInternal tag ID
nameTag name
statusTag state: active
automaticWhether the AI applies the tag automatically to conversations
criteriaCriteria or description for when to apply the tag
ownersList of responsible-user emails
creationDateCreation date in ISO 8601 format
lastUpdateLast update date in ISO 8601 format

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTYour credential covers several workspaces and you did not send ?workspace=, or you sent one it does not cover. details.available lists the ones you can use
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential does not have the Contacts module (Missing contacts permission)
500INTERNAL_ERRORThe tags could not be read. Try again
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "Must specify a valid workspace (multi-workspace credential)",
    "available": ["ws_123", "ws_456"]
  }
}

The general error format is in Errors.