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

# Get a tag

> Fetches a single tag by ID.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /tags/{id}
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Checkout Sessions
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Integrations
  - name: Invoices
  - name: Merchants
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Tags
  - name: Tax
  - name: Wallet Grants
  - name: Wallets
paths:
  /tags/{id}:
    get:
      tags:
        - Tags
      summary: Get a tag
      description: Fetches a single tag by ID.
      operationId: get-tag
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the tag
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    TagResponse:
      properties:
        color:
          description: Hex color used to render the tag
          example: '#64748B'
          type: string
        created_at:
          description: Timestamp when the tag was created
          example: '2026-04-01T10:00:00Z'
          format: date-time
          type: string
        entity_types:
          description: Resource types this tag can be attached to
          example:
            - plan
          items:
            enum:
              - product
              - customer
              - plan
              - subscription
              - metric
              - invoice
              - quote
            type: string
          type: array
        id:
          description: >-
            Unique identifier for the tag. Pass it to the tag_ids filter on list
            endpoints
          example: tag_01H1VECT
          type: string
        name:
          description: Display name of the tag
          example: Enterprise
          type: string
        updated_at:
          description: Timestamp when the tag was last updated
          example: '2026-04-01T12:30:00Z'
          format: date-time
          type: string
      required:
        - color
        - created_at
        - entity_types
        - id
        - name
        - updated_at
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````