Skip to main content
POST
/
tagsets
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.create({
  name: 'Support',
  description: 'Tags for our support inbox',
  tags: [
    { name: 'Bug', color: 'red' },
    { name: 'Feature Request', color: 'purple' },
    { name: 'Billing', color: 'amber' },
  ],
});

console.log(tagset.id);
{
  "id": "1CLJt2v5pkpkAnvdgXfEcF",
  "type": "tagset",
  "name": "Support",
  "description": "Tags for our support inbox",
  "tags": [
    {
      "id": "1CLJt2v6592N5WQzNpjpj2",
      "type": "tag",
      "name": "Bug",
      "color": "red"
    },
    {
      "id": "1CLJt2v6KXDyzDuM57pQqo",
      "type": "tag",
      "name": "Feature Request",
      "color": "purple"
    },
    {
      "id": "1CLJt2v6ZuRbtwPhmQtzxa",
      "type": "tag",
      "name": "Billing",
      "color": "amber"
    }
  ],
  "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.

Body

application/json

The TagsetCreateParams object to be created.

Parameters for creating a tagset.

name
string
required

The name of the tagset.

description
string

An optional description of the tagset's purpose.

tags
TagParam · object[]

Optional list of tags to create with this tagset. Tags are ordered by their position in the list.

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.