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"
    },
    {
      "id": "1CLJt2v6592N5WQzNpjpj2",
      "type": "tag",
      "name": "UX"
    },
    {
      "id": "1CLJt2v6KXDyzDuM57pQqo",
      "type": "tag",
      "name": "Bug"
    },
    {
      "id": "1CLJt2v6ZuRbtwPhmQtzxa",
      "type": "tag",
      "name": "Billing"
    },
    {
      "id": "1CLJt2v6pHdDoet4Thyb5M",
      "type": "tag",
      "name": "QBR"
    },
    {
      "id": "1CLJt2v74fpqiNNRA14BC8",
      "type": "tag",
      "name": "Feature Request"
    },
    {
      "id": "1CLJt2v7K42Td5rmrJ8mJu",
      "type": "tag",
      "name": "Login Issue"
    },
    {
      "id": "1CLJt2v7ZSE5XoM8YbDMRg",
      "type": "tag",
      "name": "Refund"
    },
    {
      "id": "1CLJt2v7opRhSWqVEtHwYT",
      "type": "tag",
      "name": "Pricing"
    },
    {
      "id": "1CLJt2v84CdKMEKqwBNXfE",
      "type": "tag",
      "name": "Meeting"
    },
    {
      "id": "1CLJt2v8JapwFwpCdUT7n1",
      "type": "tag",
      "name": "VIP"
    }
  ],
  "created_at": "2025-02-17T16:00:00.000Z",
  "updated_at": "2025-02-17T16:00:00.000Z"
}

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 that can be applied within a specific Inbox.

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.