ClusterHack Judging API

The judging API from ClusterHack — 7 operation(s) for judging.

GitHub OpenAPI

Operations 8

GET /api/v1/judge-invites/{token}/ The accountless judge's panel (magic link) #
POST /api/v1/judge-invites/{token}/scores/ Record one scorecard as an invited judge #
GET /api/v1/events/{slug}/leaderboard/ The event leaderboard #
POST /api/v1/submissions/{id}/scores/ Batch-upsert one judge's scorecard for a project #
GET /api/v1/events/{slug}/judging/progress/ Which judges still owe scores (organizer-scoped) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/clusterhack-dev:clusterhack-dev-judging-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

clusterhack-dev-judging-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Clusterhack Dev Judging API
  version: 1.3.0
  description: 'Operations tagged judging across 2 of this provider''s published API definitions: clusterhack-dev-openapi-original.json, clusterhack-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://clusterhack.dev
  description: Production. Not stated in the provider spec (no servers[]); the spec is served from https://clusterhack.dev/api/schema/ and its paths are rooted at /api/v1 and /geo-api.
tags:
- name: judging
paths:
  /api/v1/judge-invites/{token}/:
    get:
      operationId: judge_invites_retrieve
      description: The token in the path is the credential; an unknown one is a 404.
      summary: The accountless judge's panel (magic link)
      parameters:
      - in: path
        name: token
        schema:
          type: string
        required: true
      tags:
      - judging
      security:
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: 'Keys: `event`, `judge` (including the naming-consent state), `criteria[]`, `submissions[]` with the judge''s own scorecard so far.'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
  /api/v1/judge-invites/{token}/scores/:
    post:
      operationId: judge_invites_scores_create
      description: 'POST /api/v1/judge-invites//scores/ — record one scorecard.


        Routed through the same ``ScoreEntryForm`` and the same

        ``judging.save_judge_scores`` the HTML page uses, so the refusals are the

        same refusals (a score with no sentence for the team is still refused) and

        neither surface can grow its own idea of what a saved score is.'
      summary: Record one scorecard as an invited judge
      parameters:
      - in: path
        name: token
        schema:
          type: string
        required: true
      tags:
      - judging
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JudgeInviteScoresPayloadRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/JudgeInviteScoresPayloadRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/JudgeInviteScoresPayloadRequest'
        required: true
      security:
      - {}
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: 'Keys: `saved`, `submission`, `scores`.'
        '400':
          description: The request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
  /api/v1/judge-invites/{token}/consent/:
    post:
      operationId: judge_invites_consent_create
      description: 'POST /api/v1/judge-invites//consent/ — the naming question.


        The magic link spares the judge an account, not the consent. Their answer

        is recorded through the shared ``apply_name_consent`` (one wording, one

        place to change), and taking a name back later is this same one request.'
      summary: Answer the judge's naming question
      parameters:
      - in: path
        name: token
        schema:
          type: string
        required: true
      tags:
      - judging
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JudgeInviteConsentPayloadRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/JudgeInviteConsentPayloadRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/JudgeInviteConsentPayloadRequest'
        required: true
      security:
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: 'Keys: `has_name_consent`, `needs_name_consent`, `public_name`.'
        '400':
          description: The request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
  /api/v1/events/{slug}/leaderboard/:
    get:
      operationId: events_leaderboard_retrieve
      description: Public once the host publishes the verdict; before that, event admins and judges only.
      summary: The event leaderboard
      parameters:
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - judging
      security:
      - jwtAuth: []
      - tokenAuth: []
      - cookieAuth: []
      - basicAuth: []
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: 'Keys: `event` (slug), `entries[]`.'
        '403':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: '`{detail}` — the leaderboard is not published yet.'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
  /api/v1/submissions/{id}/scores/:
    post:
      operationId: submissions_scores_create
      description: 'POST /api/v1/submissions//scores/ — batch upsert of a judge''s scores.


        Parity with ``JudgePanelView.post``: only an ASSIGNED judge of the

        submission''s event may score (an event admin who is not a judge gets 403);

        the submission must be submitted (drafts 404, like the HTML panel''s

        ``get_object_or_404``); every criterion must belong to the event and the

        value must respect the 0..max_score bounds of the HTML form, and -- like

        that form -- the pass must carry a written sentence for the team. One

        ``Score.update_or_create`` per criterion; the whole batch is validated

        before anything is written.'
      summary: Batch-upsert one judge's scorecard for a project
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        required: true
      tags:
      - judging
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScoreBatchRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ScoreBatchRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ScoreBatchRequest'
        required: true
      security:
      - jwtAuth: []
      - tokenAuth: []
      - cookieAuth: []
      - basicAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmissionScoresBatchResult'
          description: ''
        '400':
          description: The request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
          headers:
            WWW-Authenticate:
              description: Always `Bearer realm="api"`.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '403':
          description: Authenticated, but not permitted to perform this action on this object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
  /api/v1/judges/{id}/name-consent/:
    get:
      operationId: judges_name_consent_retrieve
      description: 'GET/POST /api/v1/judges//name-consent/ — ``{"agreed": bool}``.


        Commandment 7 over the API: a judge''s name goes on a permanent, indexed

        page only if that judge said yes, and taking it back is the same single

        request. Until now an authenticated judge could score through the API but

        could only answer the naming question on the HTML panel.


        The answer is the judge''s own. An event admin may READ the state (it is on

        the judge row already) but may not answer for them — a consent someone

        else can give is not a consent.'
      summary: Read a judge's naming-consent state
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        required: true
      tags:
      - judging
      security:
      - jwtAuth: []
      - tokenAuth: []
      - cookieAuth: []
      - basicAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: 'Keys: `judge`, `event`, `display_name`, `has_name_consent`, `needs_name_consent`, `public_name`, `name_consent_at`, `name_consent_answered_at`.'
        '401':
          description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
          headers:
            WWW-Authenticate:
              description: Always `Bearer realm="api"`.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '403':
          description: Authenticated, but not permitted to perform this action on this object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
    post:
      operationId: judges_name_consent_create
      description: 'GET/POST /api/v1/judges//name-consent/ — ``{"agreed": bool}``.


        Commandment 7 over the API: a judge''s name goes on a permanent, indexed

        page only if that judge said yes, and taking it back is the same single

        request. Until now an authenticated judge could score through the API but

        could only answer the naming question on the HTML panel.


        The answer is the judge''s own. An event admin may READ the state (it is on

        the judge row already) but may not answer for them — a consent someone

        else can give is not a consent.'
      summary: Answer the naming question (the judge's own answer only)
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        required: true
      tags:
      - judging
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JudgeNameConsentRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/JudgeNameConsentRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/JudgeNameConsentRequestRequest'
        required: true
      security:
      - jwtAuth: []
      - tokenAuth: []
      - cookieAuth: []
      - basicAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: The same shape GET returns.
        '400':
          description: The request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
          headers:
            WWW-Authenticate:
              description: Always `Bearer realm="api"`.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '403':
          description: Authenticated, but not permitted to perform this action on this object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
  /api/v1/events/{slug}/judging/progress/:
    get:
      operationId: events_judging_progress_retrieve
      description: 'GET /api/v1/events//judging/progress/ — who still owes scores.


        Per judge: how many submitted projects they have scored at least one

        criterion for, and which ones they have not touched. Organizer-scoped —

        chasing judges is the hosts'' job, and a coverage table naming everyone''s

        gaps is not the room''s business.


        Never falls back to a judge''s email address for the label: an external

        reviewer''s address is not part of a coverage report.'
      summary: Which judges still owe scores (organizer-scoped)
      parameters:
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - judging
      security:
      - jwtAuth: []
      - tokenAuth: []
      - cookieAuth: []
      - basicAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: 'Keys: `event`, `submissions`, `judges[]` — per judge, how many submitted projects they have scored and which they have not touched. Never carries a judge''s email address.'
        '401':
          description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
          headers:
            WWW-Authenticate:
              description: Always `Bearer realm="api"`.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '403':
          description: Authenticated, but not permitted to perform this action on this object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '404':
          description: No such object, or it is not visible to you.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '429':
          description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
          headers:
            Retry-After:
              description: Seconds until the caller may retry.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '500':
          description: Unhandled server error.
components:
  schemas:
    ErrorDetail:
      type: object
      description: The body DRF returns for a handled error.
      properties:
        detail:
          type: string
          description: Human-readable explanation of the failure.
      required:
      - detail
    ScoreBatchRequest:
      type: object
      description: 'Payload of POST /api/v1/submissions/<pk>/scores/: {"scores": [...]} (at most ``MAX_SCORES_PER_BATCH`` rows).'
      properties:
        scores:
          type: array
          items:
            $ref: '#/components/schemas/ScoreBatchItemRequest'
      required:
      - scores
    JudgeInviteConsentPayloadRequest:
      type: object
      properties:
        choice:
          $ref: '#/components/schemas/ChoiceEnum'
      required:
      - choice
    ChoiceEnum:
      enum:
      - agree
      - decline
      type: string
      description: '* `agree` - agree

        * `decline` - decline'
    ScoreBatchItemRequest:
      type: object
      description: 'One {criterion, value, comment} row of a judge''s batch score payload.


        Mirrors the HTML ``ScoreEntryForm`` bounds: 0 <= value <= criterion.max_score,

        and the criterion must belong to the event supplied via context.'
      properties:
        criterion:
          type: integer
        value:
          type: integer
          minimum: 0
        comment:
          type: string
        private_note:
          type: string
      required:
      - criterion
      - value
    SubmissionScoresBatchResult:
      type: object
      properties:
        scores:
          type: array
          items:
            $ref: '#/components/schemas/Score'
      required:
      - scores
    ValidationError:
      type: object
      description: Field-keyed validation errors. Errors that belong to no single field appear under `non_field_errors`.
      additionalProperties:
        type: array
        items:
          type: string
    JudgeNameConsentRequestRequest:
      type: object
      properties:
        agreed:
          type: boolean
      required:
      - agreed
    JudgeInviteScoresPayloadRequest:
      type: object
      description: 'JSON shape of one submission''s scorecard.


        ``scores`` maps criterion id -> value; it is translated into the very same

        ``ScoreEntryForm`` the HTML page posts, so the rules (per-criterion

        ``max_score``, at least one score, a written sentence for the team) are

        validated once, in one place, for both surfaces.'
      properties:
        submission:
          type: integer
        comment:
          type: string
          default: ''
        private_note:
          type: string
          default: ''
        scores:
          type: object
          additionalProperties:
            type:
            - integer
            - 'null'
      required:
      - scores
      - submission
    Score:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        submission:
          type: integer
        judge:
          type: integer
          readOnly: true
        criterion:
          type: integer
        value:
          type: integer
          maximum: 2147483647
          minimum: 0
          title: Score value
        comment:
          type: string
          title: Feedback for the team
        private_note:
          type: string
          title: Private note for organizers
        created:
          type: string
          format: date-time
          readOnly: true
        last_updated:
          type: string
          format: date-time
          readOnly: true
      required:
      - created
      - criterion
      - id
      - judge
      - last_updated
      - submission
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Access token from `POST /api/v1/auth/jwt/`, refreshed at `POST /api/v1/auth/jwt/refresh/`. Send as `Authorization: Bearer <access>`.'
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"
x-refined-from:
- clusterhack-dev-openapi-original.json
- clusterhack-dev-openapi.yml