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

# List collections

> Returns paginated list of badge collections with optional filters. Internal collections in DRAFT status are excluded.



## OpenAPI

````yaml /openapi.yaml get /collections
openapi: 3.1.0
info:
  title: Identity Hub API
  version: 1.0.0
  description: TON ecosystem identity and reputation platform.
servers:
  - url: https://api.identityhub.app
    description: Production
security: []
tags:
  - name: Health
    description: Server health checks
  - name: Users
    description: Public user profiles, scores, badges, and contributions
  - name: Contests
    description: Contest listings and submissions
  - name: Blog
    description: Blog posts
  - name: Stats
    description: Platform statistics
paths:
  /collections:
    get:
      tags:
        - Collections
      summary: List collections
      description: >-
        Returns paginated list of badge collections with optional filters.
        Internal collections in DRAFT status are excluded.
      operationId: listCollections
      parameters:
        - schema:
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
          in: query
          name: page
          required: false
        - schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: pageSize
          required: false
        - schema:
            type: string
          in: query
          name: search
          required: false
          description: Search by collection name
        - schema:
            type: string
          in: query
          name: type
          required: false
          description: Filter by collection type
        - schema:
            type: string
          in: query
          name: importance
          required: false
          description: Filter by importance
        - schema:
            anyOf:
              - type: boolean
          in: query
          name: isSbt
          required: false
          description: Filter SBT-only collections
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Filter by category
        - schema:
            type: string
            enum:
              - internal
              - external
          in: query
          name: source
          required: false
          description: 'Filter by source: internal or external'
        - schema:
            default: createdAt
            type: string
            enum:
              - name
              - holdersCount
              - createdAt
              - onChainCreatedAt
          in: query
          name: sortBy
          required: false
          description: Sort field
        - schema:
            default: desc
            type: string
            enum:
              - asc
              - desc
          in: query
          name: order
          required: false
          description: 'Sort direction: asc or desc'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/PublicCollection'
                      total:
                        type: number
                      page:
                        type: number
                      pageSize:
                        type: number
                      totalPages:
                        type: number
                      hasMore:
                        type: boolean
                    required:
                      - items
                      - total
                      - page
                      - pageSize
                      - totalPages
                    additionalProperties: false
                required:
                  - success
                  - data
                additionalProperties: false
      security: []
components:
  schemas:
    PublicCollection:
      type: object
      properties:
        address:
          type: string
          description: TON contract address of the collection
        name:
          type: string
          description: Collection display name
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Collection description
        image:
          anyOf:
            - type: string
            - type: 'null'
          description: Collection cover image URL
        type:
          anyOf:
            - type: string
            - type: 'null'
          description: Collection type label (e.g. SBT, NFT)
        importance:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Importance level: CRITICAL, HIGH, MEDIUM, LOW'
        isSbt:
          type: boolean
          description: Whether this is a Soulbound Token collection (non-transferable)
        category:
          type: string
          description: Collection category, e.g. achievement, community, event
        isWinner:
          type: boolean
          description: Whether this collection is a contest winner badge
        source:
          type: string
          enum:
            - internal
            - external
          description: >-
            Origin: internal (minted on Identity Hub) or external (imported from
            TON)
        creatorAddress:
          anyOf:
            - type: string
            - type: 'null'
          description: TON address of the collection deployer
        nextItemIndex:
          anyOf:
            - type: number
            - type: 'null'
          description: Number of items minted so far (from on-chain collection data)
        externalLink:
          anyOf:
            - type: string
            - type: 'null'
          description: External website URL for the collection
        socialLinks:
          type: array
          items:
            type: string
          description: Social media links for the collection
        holdersCount:
          type: number
          description: Number of platform users holding items from this collection
        createdAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
          description: Collection creation timestamp (ISO 8601)
        onChainCreatedAt:
          anyOf:
            - anyOf:
                - type: string
                - type: string
                  format: date-time
            - type: 'null'
          description: Deployment timestamp from blockchain (ISO 8601)
      required:
        - address
        - name
        - description
        - image
        - type
        - importance
        - isSbt
        - category
        - isWinner
        - source
        - creatorAddress
        - nextItemIndex
        - externalLink
        - socialLinks
        - holdersCount
        - createdAt
        - onChainCreatedAt
      additionalProperties: false
      example:
        address: EQBx...abc
        name: TON Footstep SBT
        description: Awarded for completing a TON Footstep task
        image: https://cache.tonapi.io/imgproxy/footstep.webp
        type: SBT
        importance: HIGH
        isSbt: true
        category: achievement
        isWinner: false
        source: internal
        creatorAddress: EQCx...def
        nextItemIndex: 150
        externalLink: null
        socialLinks: []
        holdersCount: 142
        createdAt: '2025-06-15T12:00:00.000Z'
        onChainCreatedAt: '2025-06-15T12:00:00.000Z'

````

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