> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tightknit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve tag group

> Returns one tag group by its id.



## OpenAPI

````yaml /openapi-v1.json get /v1/tag_groups/{tag_group_id}
openapi: 3.1.0
info:
  title: Tightknit Admin API
  version: 1.0.0
  description: Administrative access to a Tightknit community.
servers:
  - url: https://api.tightknit.ai
security:
  - Bearer: []
tags:
  - name: API keys
    description: Inspect the key a request authenticated with.
  - name: Awards
    description: Badges and certificates a community grants its members.
  - name: Events
    description: Read, create, update and delete events on the community calendar.
  - name: Journeys
    description: Read multi-step member programs and their milestones.
  - name: Tags
    description: The labels that classify events and content resources.
  - name: Groups
    description: The segments a community sorts its members into.
  - name: Content
    description: >-
      The collections a community files its content under, and the links and
      events in them.
  - name: Feeds
    description: The Slack channels and site-only spaces a community posts in.
  - name: Files
    description: Images and documents a community has uploaded.
  - name: Messages
    description: What a community has published.
  - name: Members
    description: The people in a community.
  - name: Slack messages
    description: >-
      Messages sent to Slack. Sending is the only operation: they cannot be
      read, edited or deleted here.
  - name: Compositions
    description: >-
      Message Blaster drafts: messages saved in Studio before, and kept after,
      they are sent to Slack channels and members. An API key sees only the
      compositions shared with every Studio user.
  - name: Follows
    description: What a member follows.
  - name: Polls
    description: The questions a community puts to its members in Slack.
  - name: Activity logs
    description: What members did in the community, and when.
  - name: System
    description: Service health.
paths:
  /v1/tag_groups/{tag_group_id}:
    get:
      tags:
        - Tags
      summary: Retrieve tag group
      description: Returns one tag group by its id.
      operationId: getTagGroup
      parameters:
        - schema:
            type: string
            pattern: ^tgrp_[a-zA-Z0-9]{12}$
            description: >-
              The unique id of the tag group, starting with `tgrp_`. Returned as
              `id` by `GET /v1/tag_groups`.
          required: true
          description: >-
            The unique id of the tag group, starting with `tgrp_`. Returned as
            `id` by `GET /v1/tag_groups`.
          name: tag_group_id
          in: path
        - schema:
            anyOf:
              - type: string
                enum:
                  - tags
                  - created_by
                  - updated_by
              - type: array
                items:
                  type: string
                  enum:
                    - tags
                    - created_by
                    - updated_by
                maxItems: 3
            description: >-
              Repeatable. Returns the named relation inline. One of: `tags`,
              `created_by`, `updated_by`.
          required: false
          description: >-
            Repeatable. Returns the named relation inline. One of: `tags`,
            `created_by`, `updated_by`.
          name: expand
          in: query
          style: form
          explode: true
      responses:
        '200':
          description: Success
          headers:
            Request-Id:
              description: Identifier for this request, quote it in support tickets.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagGroup'
        default:
          description: Error
          headers:
            Request-Id:
              description: Identifier for this request, quote it in support tickets.
              schema:
                type: string
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - Bearer: []
components:
  schemas:
    TagGroup:
      type: object
      properties:
        object:
          type: string
          enum:
            - tag_group
          description: Always `tag_group`.
        id:
          type: string
          description: Unique identifier for the object.
          example: tgrp_4h2o89z6qlpw
        created_at:
          type: string
          format: date-time
          description: When the object was created.
        updated_at:
          type: string
          format: date-time
          description: When the object was last changed.
        label:
          type: string
          description: The name the tag group is shown with.
        slug:
          type: string
          description: >-
            A URL-safe name, made from the label when none is set. Renaming the
            label keeps it.
        description:
          type:
            - string
            - 'null'
          description: What the tag group is for. Null when not set.
        emoji_icon:
          type:
            - string
            - 'null'
          description: The emoji shown beside the tag group. Null when it has none.
        visibility:
          type: string
          enum:
            - public
            - internal
          description: >-
            Who sees the tag group and its tags. One of:

            - `public`: members, wherever tags show on the community site.

            - `internal`: hidden from members; only people who can manage tags
            see them, through Studio, MCP and this API.
          example: public
        created_by_id:
          type:
            - string
            - 'null'
          description: >-
            The id of the member who created the tag group. Null when no member
            is recorded as its creator.
          example: prof_5Yq7tVz2Hm3n
        created_by:
          anyOf:
            - $ref: '#/components/schemas/Profile'
            - type: 'null'
          description: >-
            The member who created the tag group. Present only when `created_by`
            is expanded.
        updated_by_id:
          type:
            - string
            - 'null'
          description: >-
            The id of the member who last changed the tag group. Null until it
            is first changed, or when no member is recorded.
          example: prof_5Yq7tVz2Hm3n
        updated_by:
          anyOf:
            - $ref: '#/components/schemas/Profile'
            - type: 'null'
          description: >-
            The member who last changed the tag group. Present only when
            `updated_by` is expanded.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The tags in the group. Present only when `tags` is expanded.
      required:
        - object
        - id
        - created_at
        - updated_at
        - label
        - slug
        - description
        - emoji_icon
        - visibility
        - created_by_id
        - updated_by_id
    Problem:
      type: object
      properties:
        type:
          type: string
          description: A URI naming the problem type. Always `about:blank`.
          example: about:blank
        title:
          type: string
          description: A short summary of the HTTP status.
          example: Not found
        status:
          type: integer
          description: The HTTP status code.
          example: 404
        detail:
          type: string
          description: What went wrong with this request, when there is more to say.
        code:
          type: string
          description: >-
            A stable, machine-readable error code to branch on, unlike `title`
            and `detail`.
          example: not_found
        param:
          type: string
          description: The request field or parameter the error is about, when one is.
        used_by:
          type: array
          items:
            type: object
            properties:
              object:
                type: string
                description: The type of the object that uses it.
                example: event
              id:
                type:
                  - string
                  - 'null'
                description: >-
                  The id of the object that uses it. Null for a private Message
                  Blaster message.
                example: cevt_V1StGXR8Z5jd
              field:
                type: string
                description: The field of that object that holds it.
                example: cover_image_file_id
            required:
              - object
              - id
              - field
          description: >-
            Up to 20 objects that use the file. Present only when `code` is
            `file_in_use`.
        request_id:
          type: string
          description: >-
            The id of the request, also sent as the `Request-Id` header. Quote
            it in support tickets.
          example: req_9f2b8c1d4e5a6b7c8d9e0f1a2b3c4d5e
      required:
        - type
        - title
        - status
        - code
    Profile:
      type: object
      properties:
        object:
          type: string
          enum:
            - profile
          description: Always `profile`.
        id:
          type: string
          description: Unique identifier for the object.
          example: prof_9f2b8c1d4e5a
        created_at:
          type: string
          format: date-time
          description: When the object was created.
        updated_at:
          type: string
          format: date-time
          description: When the object was last changed.
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The name the community shows for the member. With a linked Slack
            profile it follows the community’s name preference, or reads
            `🔒[private profile]` when `opt_out_of_public_profile` is true;
            without one it is `display_name`, falling back to `full_name`.
          example: Ada Lovelace
        full_name:
          type: string
          description: The member’s full name. Always set.
          example: Ada Lovelace
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The shorter name the member goes by, when they set one. Null
            otherwise.
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          description: The member’s first name, when known.
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          description: The member’s last name, when known.
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The URL of the member’s avatar, from their Slack profile when one is
            linked. Null when they have none, or when a member with a linked
            Slack profile has `opt_out_of_public_profile` on.
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: The member’s email address. Null when it is not known.
          example: ada@example.com
        email_domain:
          anyOf:
            - type: string
            - type: 'null'
          description: The lowercased domain of `email`, maintained by the database.
          example: example.com
        locale:
          anyOf:
            - type: string
            - type: 'null'
          description: The member’s language and region, such as `en-US`, when known.
        is_team_member:
          type: boolean
          description: >-
            Whether the member is staff of the community rather than one of its
            people.
        is_deactivated:
          type: boolean
          description: Whether the member has been deactivated in the community.
        opt_out_of_public_profile:
          type: boolean
          description: >-
            Whether the member asked to be left out of the public member
            directory.
        member_since:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: >-
            When the member joined the community: their first site sign-in or
            Slack join. Null while they are invited and have not joined yet.
        invited_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: >-
            When an admin added the member before they joined (Studio, Admin
            API, MCP or CSV import), whether or not an invitation was sent. Kept
            after they join; null for members never added this way.
        signed_up_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: >-
            When the member first signed in to the community site. Unlike
            `member_since`, a Slack join never sets it. Null for members who
            have never signed in.
        source:
          type: string
          enum:
            - slack_sync
            - import
            - api
            - studio_signin
            - sso_signin
            - legacy
            - unknown
          description: >-
            How the profile was created. A Slack invitee who had not joined yet
            takes `api` or `import` when an admin then adds them. One of:

            - `slack_sync`: from Slack, through the member roster sync or the
            member joining or acting in the workspace.

            - `import`: from an admin’s bulk member import.

            - `api`: from the Admin API, Studio’s add-member form or the MCP
            server.

            - `studio_signin`: on an admin’s first Studio sign-in.

            - `sso_signin`: on a member’s first single sign-on (SSO) sign-in,
            where the site creates accounts automatically.

            - `legacy`: created before the origin was recorded.

            - `unknown`: created before the origin was recorded and before its
            Slack link, with no way left to tell how.
          example: slack_sync
        has_account:
          type: boolean
          description: >-
            Whether the member has a sign-in account. False for a Slack identity
            nobody has claimed.
        flair_group_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The group whose flair the member shows beside their name.
          example: grup_7m3x9k4t8plz
        slack_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Slack’s id for the member’s linked Slack profile. Null when the
            member has no Slack identity.
          example: U0BRY4S6LNQ
        integrations:
          type: object
          properties:
            slack:
              type: object
              properties:
                profile:
                  anyOf:
                    - $ref: '#/components/schemas/SlackProfile'
                    - type: 'null'
                  description: The linked Slack profile, or null when the member has none.
              required:
                - profile
              description: The member’s Slack identity.
          required:
            - slack
          description: >-
            Where the member connects to other platforms. Present only when
            `slack_profile` is expanded.
        field_values:
          type: array
          items:
            $ref: '#/components/schemas/ProfileFieldValue'
          description: >-
            The member’s profile field values, each with its field. Present only
            when `field_values` is expanded.
      required:
        - object
        - id
        - created_at
        - updated_at
        - name
        - full_name
        - display_name
        - first_name
        - last_name
        - avatar_url
        - email
        - email_domain
        - locale
        - is_team_member
        - is_deactivated
        - opt_out_of_public_profile
        - member_since
        - invited_at
        - signed_up_at
        - source
        - has_account
        - flair_group_id
        - slack_profile_id
    Tag:
      type: object
      properties:
        object:
          type: string
          enum:
            - tag
          description: Always `tag`.
        id:
          type: string
          description: Unique identifier for the object.
          example: tags_4h2o89z6qlpw
        created_at:
          type: string
          format: date-time
          description: When the object was created.
        updated_at:
          type: string
          format: date-time
          description: When the object was last changed.
        label:
          type: string
          description: The name the tag is shown with.
        slug:
          type: string
          description: >-
            A URL-safe name, made from the label when none is set. Renaming the
            label keeps it.
        section:
          type:
            - string
            - 'null'
          description: >-
            Free text that subdivides a tag group, not a fixed vocabulary: a
            group holds at most 10 distinct sections, and a tag with none reads
            null.
          example: format
        description:
          type:
            - string
            - 'null'
          description: What the tag is for. Null when not set.
        tag_group_id:
          type: string
          description: The id of the tag group the tag belongs to.
          example: tgrp_4h2o89z6qlpw
        created_by_id:
          type:
            - string
            - 'null'
          description: >-
            The id of the member who created the tag. Null when no member is
            recorded as its creator.
          example: prof_5Yq7tVz2Hm3n
        created_by:
          anyOf:
            - $ref: '#/components/schemas/Profile'
            - type: 'null'
          description: >-
            The member who created the tag. Present only when `created_by` is
            expanded.
        updated_by_id:
          type:
            - string
            - 'null'
          description: >-
            The id of the member who last changed the tag. Null until it is
            first changed, or when no member is recorded.
          example: prof_5Yq7tVz2Hm3n
        updated_by:
          anyOf:
            - $ref: '#/components/schemas/Profile'
            - type: 'null'
          description: >-
            The member who last changed the tag. Present only when `updated_by`
            is expanded.
      required:
        - object
        - id
        - created_at
        - updated_at
        - label
        - slug
        - section
        - description
        - tag_group_id
        - created_by_id
        - updated_by_id
    SlackProfile:
      type: object
      properties:
        object:
          type: string
          enum:
            - slack_profile
          description: Always `slack_profile`.
        id:
          type: string
          description: Slack’s id for the member.
          example: U0BRY4S6LNQ
        created_at:
          type: string
          format: date-time
          description: When the object was created.
        updated_at:
          type: string
          format: date-time
          description: When the object was last changed.
        workspace_id:
          type: string
          description: Slack’s id for the workspace the member belongs to.
          example: T01ABC123
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The display name the member set in Slack. Empty or null when they
            set none.
        real_name:
          anyOf:
            - type: string
            - type: 'null'
          description: The member’s full name in Slack. Null when Slack has none.
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The email address on the Slack account. Null when Slack does not
            share it, as for bots.
          example: ada@example.com
        pronouns:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The pronouns the member set in Slack. Empty or null when they set
            none.
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          description: The URL of the member’s Slack avatar. Null when Slack has none.
        locale:
          anyOf:
            - type: string
            - type: 'null'
          description: The member’s Slack language and region, such as `en-US`, when known.
        tz:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The member’s time zone in Slack, as an IANA name such as
            `America/New_York`, when known.
        is_bot:
          type: boolean
          description: Whether the account is a bot rather than a person.
        is_app_user:
          type: boolean
          description: >-
            Whether Slack reports the member as an authorized user of the
            Tightknit app.
        is_workflow_bot:
          type: boolean
          description: Whether the account is the bot behind a Slack workflow.
        is_admin:
          type: boolean
          description: Whether the member is an admin of the Slack workspace.
        is_owner:
          type: boolean
          description: Whether the member is an owner of the Slack workspace.
        is_restricted:
          type: boolean
          description: >-
            Whether the member is a Slack guest, limited to the channels they
            were invited to.
        is_invited_user:
          type: boolean
          description: Whether the member holds nothing but a still-open Slack invitation.
        is_deleted:
          type: boolean
          description: Whether Slack deactivated the account.
      required:
        - object
        - id
        - created_at
        - updated_at
        - workspace_id
        - display_name
        - real_name
        - email
        - pronouns
        - avatar_url
        - locale
        - tz
        - is_bot
        - is_app_user
        - is_workflow_bot
        - is_admin
        - is_owner
        - is_restricted
        - is_invited_user
        - is_deleted
    ProfileFieldValue:
      type: object
      properties:
        object:
          type: string
          enum:
            - profile_field_value
          description: Always `profile_field_value`.
        id:
          type: string
          description: Unique identifier for the object.
          example: pfvl_3n8c5v1b7zrd
        created_at:
          type: string
          format: date-time
          description: When the object was created.
        updated_at:
          type: string
          format: date-time
          description: When the object was last changed.
        profile_id:
          type: string
          description: The id of the member the value belongs to.
          example: prof_9f2b8c1d4e5a
        profile_field_id:
          type: string
          description: The id of the field the value fills in.
          example: pfld_6t2k9w4m8xqa
        profile_field:
          anyOf:
            - $ref: '#/components/schemas/ProfileField'
            - type: 'null'
          description: The field the value fills in.
        value:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The member’s value, shaped by the field’s `type`: the URL of a
            `link`, `YYYY-MM-DD` for a `date`, the picked option of an
            `options_list`, the Slack user ids of a `user`. A `tags` or `file`
            value is passed on as Slack stores it. Never null: a field the
            member left blank has no value.
          example: San Francisco
        display_text:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The text a `link` value shows in place of its URL. Null or empty for
            other types, or when none is set.
      required:
        - object
        - id
        - created_at
        - updated_at
        - profile_id
        - profile_field_id
        - profile_field
        - value
        - display_text
    ProfileField:
      type: object
      properties:
        object:
          type: string
          enum:
            - profile_field
          description: Always `profile_field`.
        id:
          type: string
          description: Unique identifier for the object.
          example: pfld_6t2k9w4m8xqa
        created_at:
          type: string
          format: date-time
          description: When the object was created.
        updated_at:
          type: string
          format: date-time
          description: When the object was last changed.
        label:
          type: string
          description: The field’s name.
          example: City
        hint:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The help text members see when filling in the field. Null when it
            has none.
        type:
          type: string
          enum:
            - text
            - long_text
            - options_list
            - date
            - link
            - tags
            - user
            - file
          description: >-
            What the field holds. The community site shows only `text`,
            `options_list`, `date` and `link` fields; the rest are always
            inactive. One of:

            - `text`: a line of text.

            - `long_text`: several lines of text.

            - `options_list`: one option picked from a list.

            - `date`: a calendar date, as `YYYY-MM-DD`.

            - `link`: a URL, with optional display text.

            - `tags`: several short values.

            - `user`: other Slack members.

            - `file`: a file.
          example: text
        is_active:
          type: boolean
          description: >-
            Whether the field is visible in Slack and of a type the community
            site can show. An inactive field keeps its values but is hidden from
            the site.
        show_label_on_site:
          type: boolean
          description: >-
            Whether the field shows on member profile pages and in the member
            directory.
        is_value_restricted_to_members:
          type: boolean
          description: >-
            Whether the field’s values are hidden from visitors who are not
            signed in.
        is_featured:
          type: boolean
          description: >-
            Whether the field is shown prominently in profile previews. At most
            one field is featured.
      required:
        - object
        - id
        - created_at
        - updated_at
        - label
        - hint
        - type
        - is_active
        - show_label_on_site
        - is_value_restricted_to_members
        - is_featured
      description: A custom field on a member profile.
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: Tightknit API key
      description: 'A Tightknit admin API key, sent as `Authorization: Bearer <key>`.'

````

## Related topics

- [Retrieve tag](https://docs.tightknit.ai/v1/api-reference/tags/retrieve-tag.md)
- [Retrieve group](https://docs.tightknit.ai/v1/api-reference/groups/retrieve-group.md)
- [Retrieve group membership](https://docs.tightknit.ai/v1/api-reference/groups/retrieve-group-membership.md)
- [List tag groups](https://docs.tightknit.ai/v1/api-reference/tags/list-tag-groups.md)
- [Get started with tags](https://docs.tightknit.ai/tags/getting-started.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.