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

# Retrieve all tags

> Retrieve a paginated list of tags across all of the caller's channels. Each item is one channel with its tags. Organisation-wide tags are prefixed with 'org://'. Pagination uses pageIndex/pageSize (zero-based); pageSize defaults to 25 and is capped at 100, pageIndex defaults to 0.



## OpenAPI

````yaml /api-reference/openapi.json get /tags
openapi: 3.0.1
info:
  title: MerchantSpring Public API
  version: 1.0.0
servers:
  - url: https://mm-api.merchantspring.io
    description: Production
  - url: https://mm-api-staging.merchantspring.io
    description: Staging
security: []
tags:
  - name: channel
    x-group: Channel
  - name: content-change
    x-group: Content Change
  - name: custom-group
    x-group: Custom Group
  - name: order
    x-group: Order
  - name: report
    x-group: Report
  - name: tag
    x-group: Tag
  - name: profitability
    x-group: Profitability
paths:
  /tags:
    get:
      tags:
        - tag
      summary: Retrieve all tags
      description: >-
        Retrieve a paginated list of tags across all of the caller's channels.
        Each item is one channel with its tags. Organisation-wide tags are
        prefixed with 'org://'. Pagination uses pageIndex/pageSize (zero-based);
        pageSize defaults to 25 and is capped at 100, pageIndex defaults to 0.
      operationId: getAllTags
      parameters:
        - name: pageSize
          in: query
          description: Number of channels per page (default 25, max 100)
          required: false
          schema:
            type: integer
        - name: pageIndex
          in: query
          description: Zero-based page index (default 0)
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: Successful operation
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllTagsResponse'
        '400':
          description: Invalid input
          content: {}
      security:
        - api_key: []
components:
  schemas:
    GetAllTagsResponse:
      type: object
      properties:
        pageIndex:
          type: integer
          description: Zero-based page index
        pageSize:
          type: integer
          description: Number of channels per page
        totalCount:
          type: integer
          description: Total number of channels with tags
        totalPages:
          type: integer
          description: Total number of pages
        items:
          type: array
          items:
            $ref: '#/components/schemas/PublicChannelTags'
      example:
        pageIndex: 0
        pageSize: 25
        totalCount: 2
        totalPages: 1
        items:
          - channelId: A1234567890ABC
            merchantId: XXXUS @ ATVPDKIKX0DER
            tags:
              - amazon
              - org://ebay
          - channelId: google_demo_001
            merchantId: google_demo_001
            tags:
              - north-america
    PublicChannelTags:
      type: object
      properties:
        channelId:
          type: string
          nullable: true
          description: Channel (store) ID, resolved from the merchant ID where available
        merchantId:
          type: string
          nullable: true
          description: Merchant ID of the channel
        tags:
          type: array
          description: >-
            Tags for the channel. Organisation-wide tags are prefixed with
            'org://'.
          items:
            type: string
      example:
        channelId: A1234567890ABC
        merchantId: XXXUS @ ATVPDKIKX0DER
        tags:
          - amazon
          - org://ebay
  securitySchemes:
    api_key:
      type: apiKey
      name: x-api-key
      in: header

````