> ## 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 a list of channels

> Retrieve a list of channels that match the specified filter criteria



## OpenAPI

````yaml /api-reference/openapi.json post /channels
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: advertising
    x-group: Advertising
  - 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: product
    x-group: Product
  - name: report
    x-group: Report
  - name: vendor
    x-group: Vendor
  - name: tag
    x-group: Tag
  - name: search-query-performance
    x-group: Search Query Performance
  - name: client-report
    x-group: Client Report
  - name: profitability
    x-group: Profitability
  - name: targets
    x-group: Targets
  - name: seller-health
    x-group: Seller Health
paths:
  /channels:
    post:
      tags:
        - channel
      summary: Retrieve a list of channels
      description: Retrieve a list of channels that match the specified filter criteria
      operationId: getChannels
      requestBody:
        description: Filter criteria
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetChannelsRequest'
        required: true
      responses:
        '200':
          description: Successful operation
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArrayOfChannel'
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                malformedFilter:
                  summary: >-
                    filter.marketplaces / filter.countryCodes is not an array of
                    strings
                  value:
                    status: error
                    error: Invalid filter parameters
      security:
        - api_key: []
components:
  schemas:
    GetChannelsRequest:
      type: object
      properties:
        filter:
          type: object
          properties:
            marketplaces:
              type: array
              items:
                type: string
            countryCodes:
              type: array
              items:
                type: string
    ArrayOfChannel:
      type: array
      items:
        $ref: '#/components/schemas/Channel'
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
        error:
          type: string
          description: >-
            Human-readable message. Validation failures list every failing rule,
            comma-separated.
      example:
        status: error
        error: Invalid request parameters
    Channel:
      type: object
      properties:
        channelId:
          type: string
        merchantId:
          type: string
        marketplace:
          type: string
        countryCode:
          type: string
        displayName:
          type: string
        hasAdvertisingConnected:
          type: boolean
  securitySchemes:
    api_key:
      type: apiKey
      name: x-api-key
      in: header

````

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