Skip to main content
client.gamma.events.getEventTags lists the tags associated with an event.

Request

const tags = await client.gamma.events.getEventTags(id);

Parameters

NameTypeRequiredNotes
idnumber (≥ 0)Event ID.

Response

type EventTag = {
  id: string;
  label: string | null;
  slug: string | null;
  forceShow: boolean | null;
  publishedAt: string | null;
  createdBy: number | null;
  updatedBy: number | null;
  createdAt: string | null;
  updatedAt: string | null;
  forceHide: boolean | null;
  isCarousel: boolean | null;
};

Usage example

const tags = await client.gamma.events.getEventTags(35723);

console.log(tags.map((tag) => tag.slug));

Failure modes

  • id must be numeric.