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

# Get a single contest submission by ID

> Returns a single submission with user, repository, supporters preview, and clap count. Resolve `trackIds` against `contest.tracks` to display track names. Only APPROVED or WINNER submissions are returned.



## OpenAPI

````yaml /openapi.yaml get /contests/{contestId}/submissions/{submissionId}
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/{contestId}/submissions/{submissionId}:
    get:
      tags:
        - Contests
      summary: Get a single contest submission by ID
      description: >-
        Returns a single submission with user, repository, supporters preview,
        and clap count. Resolve `trackIds` against `contest.tracks` to display
        track names. Only APPROVED or WINNER submissions are returned.
      operationId: getSubmission
      parameters:
        - schema:
            type: string
          in: path
          name: contestId
          required: true
          description: Contest ID or slug
        - schema:
            type: string
          in: path
          name: submissionId
          required: true
          description: Submission ID
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Submission'
                required:
                  - success
                  - data
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    Submission:
      type: object
      properties:
        id:
          type: string
        contestId:
          type: string
        userId:
          type: string
        title:
          type: string
        description:
          type: string
        trackIds:
          type: array
          items:
            type: string
          description: >-
            Track IDs this submission belongs to. Resolve names via
            contest.tracks.
        imageUrl:
          anyOf:
            - type: string
            - type: 'null'
        fieldValues:
          anyOf:
            - type: array
              items:
                type: object
                properties:
                  label:
                    type: string
                  type:
                    type: string
                    enum:
                      - string
                      - url
                      - textarea
                      - image
                      - repository
                  value:
                    type: string
                required:
                  - label
                  - type
                  - value
                additionalProperties: false
            - type: 'null'
        additionalLinks:
          anyOf:
            - type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  value:
                    type: string
                required:
                  - name
                  - value
                additionalProperties: false
            - type: 'null'
        status:
          type: string
          enum:
            - PENDING
            - APPROVED
            - REJECTED
            - WINNER
        moderationReason:
          anyOf:
            - type: string
            - type: 'null'
        clapCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Total clap count on this submission (used for ranking)
        supportersPreview:
          type: object
          properties:
            totalCount:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
              description: Total number of unique users who clapped
            items:
              type: array
              items:
                type: object
                properties:
                  userId:
                    type: string
                  username:
                    anyOf:
                      - type: string
                      - type: 'null'
                  avatar:
                    $ref: '#/components/schemas/Avatar'
                  votingTier:
                    anyOf:
                      - type: string
                        enum:
                          - STARTER
                          - BRONZE
                          - SILVER
                          - GOLD
                          - PLATINUM
                      - type: 'null'
                    description: Voting tier of this supporter
                required:
                  - userId
                  - username
                  - avatar
                  - votingTier
                additionalProperties: false
              description: Up to 5 recent supporters (no per-user clap count exposed)
          required:
            - totalCount
            - items
          additionalProperties: false
        prizePlace:
          anyOf:
            - type: number
            - type: 'null'
        createdAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
        updatedAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
        commentCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Total comment count on this submission
        user:
          $ref: '#/components/schemas/EmbeddedUser'
        repository:
          anyOf:
            - type: object
              properties:
                platform:
                  type: string
                platformId:
                  type: string
                owner:
                  type: string
                name:
                  type: string
                description:
                  anyOf:
                    - type: string
                    - type: 'null'
                stars:
                  type: number
                forks:
                  type: number
              required:
                - platform
                - platformId
                - owner
                - name
                - description
                - stars
                - forks
              additionalProperties: false
            - type: 'null'
        makers:
          type: array
          items:
            $ref: '#/components/schemas/EmbeddedUser'
      required:
        - id
        - contestId
        - userId
        - title
        - description
        - trackIds
        - imageUrl
        - fieldValues
        - additionalLinks
        - status
        - moderationReason
        - clapCount
        - prizePlace
        - createdAt
        - updatedAt
        - commentCount
      additionalProperties: false
      example:
        id: sub_001
        contestId: contest_001
        userId: user_001
        title: TON DEX Aggregator
        description: A DEX aggregator for the TON ecosystem
        trackIds: []
        imageUrl: null
        fieldValues:
          - label: Repository
            type: repository
            value: https://github.com/example/ton-dex
          - label: Demo
            type: url
            value: https://demo.example.com
        additionalLinks:
          - name: Twitter
            value: https://twitter.com/example
        status: APPROVED
        moderationReason: null
        clapCount: 15
        commentCount: 3
        supportersPreview:
          totalCount: 1
          items:
            - userId: user_002
              username: alice
              avatar: null
              votingTier: GOLD
        prizePlace: null
        createdAt: '2025-01-15T00:00:00.000Z'
        updatedAt: '2025-01-15T00:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
        code:
          $ref: '#/components/schemas/ErrorCode'
        details:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: Normalized field path, e.g. "email" or "profile.displayName"
              location:
                type: string
                enum:
                  - body
                  - querystring
                  - params
                  - headers
                  - unknown
                description: Request part where validation failed
              message:
                type: string
                description: Human-readable validation error
              rule:
                description: Validation rule/code (e.g. invalid_type, format)
                type: string
            required:
              - path
              - location
              - message
            additionalProperties: false
      required:
        - success
        - error
      additionalProperties: false
      example:
        success: false
        error: User not found
        code: NOT_FOUND
    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'
    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
    ErrorCode:
      type: string
      enum:
        - UNAUTHORIZED
        - INVALID_TOKEN
        - TOKEN_EXPIRED
        - TOKEN_RIGHTS_OUTDATED
        - ACCOUNT_DEACTIVATED
        - ACCOUNT_ALREADY_DEACTIVATED
        - REFRESH_TOKEN_EXPIRED
        - REFRESH_TOKEN_REUSED
        - REFRESH_TOKEN_INVALID
        - API_KEY_MISSING
        - API_KEY_INVALID
        - AGENT_KEY_INVALID
        - AGENT_KEY_REVOKED
        - AGENT_KEY_RATE_LIMITED
        - AGENT_PROFILE_NOT_FOUND
        - AGENT_NAME_TAKEN
        - AGENT_CLAIM_INVALID
        - AGENT_CLAIM_EXPIRED
        - AGENT_ALREADY_CLAIMED
        - AGENT_NOT_PUBLISHED
        - AGENT_LIMIT_REACHED
        - AGENT_REGISTER_RATE_LIMITED
        - AGENT_CLAIM_RATE_LIMITED
        - SOCIAL_ACCOUNT_ALREADY_LINKED
        - PLATFORM_ALREADY_LINKED
        - LAST_LOGIN_METHOD
        - OAUTH_TOKEN_INVALID
        - OAUTH_PROVIDER_UNSUPPORTED
        - USERNAME_TAKEN
        - USERNAME_RESERVED
        - DISPLAY_NAME_RESERVED
        - RATE_LIMIT_EXCEEDED
        - AUTH_RATE_LIMIT_EXCEEDED
        - GATEWAY_NOT_ELIGIBLE
        - VALIDATION_ERROR
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - INTERNAL_ERROR
        - DATABASE_ERROR
        - PARSER_ERROR
        - EMAIL_ALREADY_TAKEN
        - EMAIL_CODE_INVALID
        - EMAIL_CODE_EXPIRED
        - EMAIL_RATE_LIMITED
        - EMAIL_SEND_FAILED
        - EMAIL_NOT_LINKED
        - PROOF_PAYLOAD_INVALID
        - PROOF_USER_MISMATCH
        - PROOF_UNSUPPORTED_WALLET
        - PROOF_PUBLIC_KEY_MISMATCH
        - PROOF_ADDRESS_MISMATCH
        - PROOF_DOMAIN_NOT_ALLOWED
        - PROOF_EXPIRED
        - PROOF_SIGNATURE_INVALID
        - PROOF_VERIFICATION_FAILED
    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.