Skip to main content
GET
/
tagsets
/
{id}
JavaScript
import Moonbase from '@moonbaseai/sdk';

const client = new Moonbase({
  apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted
});

const tagset = await client.tagsets.retrieve('id');

console.log(tagset.id);
{
  "id": "1CLJt2v5aNd8G5SGzEaeVU",
  "type": "tagset",
  "name": "Support",
  "description": "Tags for our support inbox",
  "tags": [
    {
      "id": "1CLJt2v5pkpkAnvdgXfEcF",
      "type": "tag",
      "name": "Requires Action",
      "color": "red"
    },
    {
      "id": "1CLJt2v6592N5WQzNpjpj2",
      "type": "tag",
      "name": "UX",
      "color": "violet"
    },
    {
      "id": "1CLJt2v6KXDyzDuM57pQqo",
      "type": "tag",
      "name": "Bug",
      "color": "orange"
    },
    {
      "id": "1CLJt2v6ZuRbtwPhmQtzxa",
      "type": "tag",
      "name": "Billing",
      "color": "amber"
    },
    {
      "id": "1CLJt2v6pHdDoet4Thyb5M",
      "type": "tag",
      "name": "QBR",
      "color": "blue"
    },
    {
      "id": "1CLJt2v74fpqiNNRA14BC8",
      "type": "tag",
      "name": "Feature Request",
      "color": "purple"
    },
    {
      "id": "1CLJt2v7K42Td5rmrJ8mJu",
      "type": "tag",
      "name": "Login Issue",
      "color": "rose"
    },
    {
      "id": "1CLJt2v7ZSE5XoM8YbDMRg",
      "type": "tag",
      "name": "Refund",
      "color": "emerald"
    },
    {
      "id": "1CLJt2v7opRhSWqVEtHwYT",
      "type": "tag",
      "name": "Pricing",
      "color": "cyan"
    },
    {
      "id": "1CLJt2v84CdKMEKqwBNXfE",
      "type": "tag",
      "name": "Meeting",
      "color": "indigo"
    },
    {
      "id": "1CLJt2v8JapwFwpCdUT7n1",
      "type": "tag",
      "name": "VIP",
      "color": "fuchsia"
    }
  ],
  "created_at": "2025-02-17T16:00:00.000Z",
  "updated_at": "2025-02-17T16:00:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.moonbase.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

id
string
required

The ID of the tagset to retrieve.

Response

Successful response.

A Tagset is a collection of Tag objects whose tags can be applied to conversations, calls, and meetings.

type
string
required

String representing the object’s type. Always tagset for this object.

Allowed value: "tagset"
id
string
required

Unique identifier for the object.

name
string
required

The name of the tagset.

tags
Tag · object[]
required

A list of Tag objects belonging to this tagset.

created_at
string<date-time>
required

Time at which the object was created, as an ISO 8601 timestamp in UTC.

updated_at
string<date-time>
required

Time at which the object was last updated, as an ISO 8601 timestamp in UTC.

description
string

An optional description of the tagset's purpose.