> ## 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 contests

> Returns paginated list of contests. Filterable by display status (active/completed).



## OpenAPI

````yaml /openapi.yaml get /contests
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:
  /contests:
    get:
      tags:
        - Contests
      summary: List contests
      description: >-
        Returns paginated list of contests. Filterable by display status
        (active/completed).
      operationId: listContests
      parameters:
        - schema:
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
          in: query
          name: page
          required: false
          description: Page number (1-based)
        - schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: pageSize
          required: false
          description: Items per page (1-100)
        - schema:
            type: string
            enum:
              - active
              - completed
          in: query
          name: displayStatus
          required: false
          description: 'Filter: active or completed'
      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/Contest'
                      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:
    Contest:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
          description: URL-safe slug, e.g. "hack-a-ton-2025"
        title:
          type: string
        shortDescription:
          type: string
          description: Short contest tagline/summary (plain text)
        details:
          anyOf:
            - type: string
            - type: 'null'
          description: Full contest description (Markdown, optional)
        rules:
          anyOf:
            - type: string
            - type: 'null'
        prizePool:
          anyOf:
            - type: string
            - type: 'null'
        imageUrl:
          anyOf:
            - type: string
            - type: 'null'
        judgeUserIds:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - DRAFT
            - OPEN
            - JUDGING
            - COMPLETED
            - CANCELLED
        directLinkEnabled:
          type: boolean
        fields:
          anyOf:
            - type: array
              items:
                type: object
                properties:
                  label:
                    type: string
                  type:
                    type: string
                    enum:
                      - string
                      - url
                      - textarea
                      - image
                      - repository
                  required:
                    type: boolean
                required:
                  - label
                  - type
                  - required
                additionalProperties: false
            - type: 'null'
        submissionStart:
          anyOf:
            - type: string
            - type: string
              format: date-time
        submissionEnd:
          anyOf:
            - type: string
            - type: string
              format: date-time
        votingStart:
          anyOf:
            - type: string
            - type: string
              format: date-time
        votingEnd:
          anyOf:
            - type: string
            - type: string
              format: date-time
        createdById:
          type: string
        createdAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
        updatedAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
        tracks:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              contestId:
                type: string
              name:
                type: string
              description:
                anyOf:
                  - type: string
                  - type: 'null'
              prize:
                anyOf:
                  - type: string
                  - type: 'null'
              sortOrder:
                type: number
            required:
              - id
              - contestId
              - name
              - description
              - prize
              - sortOrder
            additionalProperties: false
        criteria:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              contestId:
                type: string
              name:
                type: string
              description:
                anyOf:
                  - type: string
                  - type: 'null'
              weight:
                type: number
              maxScore:
                type: number
              sortOrder:
                type: number
            required:
              - id
              - contestId
              - name
              - description
              - weight
              - maxScore
              - sortOrder
            additionalProperties: false
        submissionCounts:
          type: object
          properties:
            total:
              type: number
            pending:
              type: number
            approved:
              type: number
            rejected:
              type: number
            winner:
              type: number
          required:
            - total
            - pending
            - approved
            - rejected
            - winner
          additionalProperties: false
        mySubmissionIds:
          type: array
          items:
            type: string
        judges:
          type: array
          items:
            $ref: '#/components/schemas/EmbeddedUser'
        displayStatus:
          type: string
          enum:
            - active
            - completed
            - hidden
        badgeCollections:
          type: array
          items:
            type: object
            properties:
              address:
                type: string
              role:
                type: string
              name:
                type: string
              image:
                anyOf:
                  - type: string
                  - type: 'null'
            required:
              - address
              - role
              - name
              - image
            additionalProperties: false
      required:
        - id
        - slug
        - title
        - shortDescription
        - details
        - rules
        - prizePool
        - imageUrl
        - judgeUserIds
        - status
        - directLinkEnabled
        - fields
        - submissionStart
        - submissionEnd
        - votingStart
        - votingEnd
        - createdById
        - createdAt
        - updatedAt
      additionalProperties: false
      example:
        id: contest_001
        slug: hack-a-ton-2025
        title: Hack-a-TON 2025
        shortDescription: Build the future of TON
        details: Full contest details in Markdown...
        rules: See contest page
        prizePool: $50,000
        imageUrl: null
        judgeUserIds: []
        status: OPEN
        directLinkEnabled: false
        fields: null
        submissionStart: '2025-01-01T00:00:00.000Z'
        submissionEnd: '2025-02-01T00:00:00.000Z'
        votingStart: '2025-02-01T00:00:00.000Z'
        votingEnd: '2025-02-15T00:00:00.000Z'
        createdById: admin_001
        createdAt: '2024-12-01T00:00:00.000Z'
        updatedAt: '2024-12-01T00:00:00.000Z'
        displayStatus: active
    EmbeddedUser:
      type: object
      properties:
        id:
          type: string
        username:
          anyOf:
            - type: string
            - type: 'null'
        displayName:
          anyOf:
            - type: string
            - type: 'null'
        avatar:
          $ref: '#/components/schemas/Avatar'
        bio:
          anyOf:
            - type: string
            - type: 'null'
        status:
          type: string
        tags:
          type: array
          items:
            $ref: '#/components/schemas/TagWithTier'
      required:
        - id
        - username
        - displayName
        - avatar
        - bio
        - status
        - tags
      additionalProperties: false
    Avatar:
      anyOf:
        - type: object
          properties:
            sm:
              type: string
              description: 100x100 WebP avatar URL
            lg:
              type: string
              description: 256x256 WebP avatar URL
          required:
            - sm
            - lg
          additionalProperties: false
        - type: 'null'
    TagWithTier:
      type: object
      properties:
        tag:
          type: string
          enum:
            - DEVELOPER
            - BUILDER
            - CONTRIBUTOR
            - TELEGRAM
            - IDENTITY
            - OG
            - CONTEST_WINNER
          description: Profile tag
        tier:
          description: Tier level
          type: string
          enum:
            - SILVER
            - GOLD
            - PLATINUM
        contestName:
          description: Contest name (for CONTEST_WINNER tag)
          type: string
      required:
        - tag
      additionalProperties: false

````

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