Codequiry Run API

Start analysis and track progress.

GitHub OpenAPI

Operations 4

POST /check/start Start a check #
POST /check/quick Quick check (all-in-one) #
POST /check/status Get check status #
GET /checks/{checkId}/status Get check status (REST) #

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/codequiry-com:codequiry-com-run-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

codequiry-com-run-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Codequiry Com Run API
  version: 1.0.0
  contact:
    name: Codequiry Support
    url: https://codequiry.com/contact
  license:
    name: Proprietary
    url: https://codequiry.com/terms-of-service
  description: 'Operations tagged Run across 2 of this provider''s published API definitions: codequiry-com-openapi-original.json, codequiry-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://codequiry.com/api/v1
  description: Production
security:
- apikey: []
tags:
- name: Run
  description: Start analysis and track progress.
paths:
  /check/start:
    post:
      tags:
      - Run
      operationId: startChecking
      summary: Start a check
      description: Queues analysis for a check that already has submissions. `webcheck` and `dbcheck` only take effect when BOTH are supplied (both true → engine 1, both false → engine 9); otherwise the check's existing engine is used. The check is set to status_id 7 (queued).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - check_id
              properties:
                check_id:
                  type: integer
                  example: 12345
                  minimum: 1
                webcheck:
                  type: boolean
                  description: Enable internet/web matching.
                  example: true
                dbcheck:
                  type: boolean
                  description: Enable Codequiry database matching.
                  example: true
                test_type:
                  type: integer
                  example: 1
                  minimum: 1
                  description: Approved engine id (overrides webcheck/dbcheck mapping).
                ai_run:
                  type: boolean
                  default: true
                  description: Run AI-generated-code detection on this check. Accepts true/false/1/0.
                base_code_detection:
                  type: boolean
                  default: false
                  description: Detect shared base/boilerplate (starter) code.
      responses:
        '200':
          description: Check queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  check:
                    $ref: '#/components/schemas/Check'
                  status:
                    type: string
                    example: In Queue
                  submission_count:
                    type: integer
                    example: 28
                  checkURL:
                    type: string
                    example: https://dashboard.codequiry.com/course/678/assignment/12345/overview
        '401':
          $ref: '#/components/responses/InvalidKey'
        '402':
          $ref: '#/components/responses/BillingSuspended'
        '429':
          $ref: '#/components/responses/RateLimited'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationError'
        '503':
          description: Analysis services are temporarily offline.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://codequiry.com/api/v1
      description: Production
  /check/quick:
    post:
      tags:
      - Run
      operationId: quickCheck
      summary: Quick check (all-in-one)
      description: Creates a check, uploads files, and starts analysis in a single authenticated call. Distinct from the public website Quick Check widget.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - name
              - files
              properties:
                name:
                  type: string
                  example: CS-201 Assignment 4
                  minLength: 3
                  maxLength: 255
                language:
                  type: integer
                  default: 13
                  description: Language id from GET /languages. Use 999 for Auto Detect; an unknown/invalid id falls back to Auto Detect.
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                    example: nowak_alice_a4.zip
                  description: One or more ZIP archives (each mimes:zip, max 10 MB).
                webcheck:
                  type: boolean
                  example: true
                dbcheck:
                  type: boolean
                  example: true
                test_type:
                  type: integer
                  example: 1
                  minimum: 1
                ai_run:
                  type: boolean
                  default: true
                  description: Run AI-generated-code detection on this check. Accepts true/false/1/0.
                base_code_detection:
                  type: boolean
                  default: false
                  description: Detect shared base/boilerplate (starter) code.
      responses:
        '201':
          description: Created and started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuickCheckResult'
        '401':
          $ref: '#/components/responses/InvalidKey'
        '402':
          $ref: '#/components/responses/BillingSuspended'
        '429':
          $ref: '#/components/responses/RateLimited'
        '422':
          $ref: '#/components/responses/ValidationError'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          description: Analysis services are temporarily offline.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://codequiry.com/api/v1
      description: Production
  /check/status:
    post:
      tags:
      - Run
      operationId: getCheckStatusPost
      summary: Get check status
      description: Polling endpoint. Equivalent to GET /checks/{checkId}/status.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - check_id
              properties:
                check_id:
                  type: integer
                  example: 12345
      responses:
        '200':
          description: Status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckStatus'
        '401':
          $ref: '#/components/responses/InvalidKey'
        '402':
          $ref: '#/components/responses/BillingSuspended'
        '429':
          $ref: '#/components/responses/RateLimited'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
    servers:
    - url: https://codequiry.com/api/v1
      description: Production
  /checks/{checkId}/status:
    get:
      tags:
      - Run
      operationId: getCheckStatus
      summary: Get check status (REST)
      parameters:
      - $ref: '#/components/parameters/CheckId'
      responses:
        '200':
          description: Status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckStatus'
        '401':
          $ref: '#/components/responses/InvalidKey'
        '402':
          $ref: '#/components/responses/BillingSuspended'
        '429':
          $ref: '#/components/responses/RateLimited'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
    servers:
    - url: https://codequiry.com/api/v1
      description: Production
components:
  responses:
    ServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Check is in a state that does not allow this operation (e.g. still processing, or not yet completed).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not owned by this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationError:
      description: Request validation failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              validation_errors:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
    BillingSuspended:
      description: The account is suspended for an unpaid invoice. Every endpoint returns this until the invoice is paid from the billing dashboard; it is not retryable and the request was not performed.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              invoice:
                type: string
                nullable: true
                description: Stripe invoice id of the unpaid invoice.
          example:
            error: Account suspended due to an unpaid invoice. Pay the outstanding invoice from your billing dashboard to restore API access.
            invoice: in_1QxYz...
    InvalidKey:
      description: Missing or invalid API key. The API key is checked before any endpoint logic runs, so this is returned for every operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              summary: No apikey header
              value:
                error: No API Key (apikey) provided in header request
            invalid:
              summary: Unknown or malformed key
              value:
                error: Unauthorized, make sure your API Key is valid an associated with an account. Create an account at codequiry.com
    Forbidden:
      description: Not permitted (e.g. free-trial limitation, or a read-only demo check).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 'Rate limit exceeded: more than 60 requests in one minute from this IP. Retry after the number of seconds in the Retry-After header. Successful responses carry X-RateLimit-Limit and X-RateLimit-Remaining too, so you can pace a client without waiting to be refused.'
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Always 60.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Calls left in the window (0 here).
          schema:
            type: integer
        X-RateLimit-Reset:
          description: Unix timestamp when the window reopens. Sent only on 429.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Check:
      type: object
      description: A check (internally an assignment). Endpoints return the full assignment row, so more fields are present than are listed here; only the stable, documented ones are shown.
      properties:
        stats:
          type: object
          nullable: true
          description: Present only when the list was requested with with_stats=1. Averages and maxima are over finished submissions and are null when there are none.
          properties:
            submissions:
              type: integer
              example: 24
            completed:
              type: integer
              example: 24
            failed:
              type: integer
              example: 0
            avg_group:
              type: number
              nullable: true
              example: 18.4
            max_group:
              type: number
              nullable: true
              example: 82
            avg_web:
              type: number
              nullable: true
              example: 9.1
            max_web:
              type: number
              nullable: true
              example: 100
            flagged:
              type: integer
              example: 2
              description: Finished submissions at or above 75% Group or Web.
            avg_ai:
              type: number
              nullable: true
              example: 31.6
            max_ai:
              type: number
              nullable: true
              example: 97.2
            ai_submissions:
              type: integer
              example: 24
            ai_flagged:
              type: integer
              example: 3
              description: Submissions whose mean AI probability is 75% or more.
            matches:
              type: integer
              example: 41
              description: 'Match total as the dashboard counts it: peer fragments, web sources (one per source) and AI blocks.'
        id:
          type: integer
          example: 12345
        name:
          type: string
          example: CS-201 Assignment 4
        status_id:
          type: integer
          example: 4
        language_id:
          type: integer
          example: 13
        test_type:
          type: integer
          example: 1
        ai_run:
          type: integer
          description: 1 if AI-generated-code detection runs for this check.
          example: 1
        base_code_detection:
          type: integer
          description: 1 if base/boilerplate-code detection is enabled.
          example: 0
        created_at:
          type: string
          example: '2026-08-11 09:14:02'
        updated_at:
          type: string
          example: '2026-08-11 09:41:37'
        assignmentstatuses:
          type: object
          description: Expanded status, included only by GET/POST /checks. Not returned by /check/create, /check/get or /check/update - use status_id there, or the top-level status string that /check/get returns.
          properties:
            id:
              type: integer
              example: 4
            status:
              type: string
              example: Completed
    Error:
      type: object
      properties:
        error:
          type: string
          example: Invalid check_id provided.
    CheckStatus:
      type: object
      properties:
        check_id:
          type: integer
          example: 12345
        status_id:
          type: integer
          example: 6
        status:
          type: string
          example: Processing
        status_message:
          type: string
          example: Waiting for the server to pick up your check
        progress:
          type: number
          example: 64
        submissions_total:
          type: integer
          example: 28
        submissions_completed:
          type: integer
          example: 18
        estimated_completion:
          type: string
          nullable: true
          description: ISO-8601, set only while status_id is 6 or 7.
          example: '2026-08-11T09:41:37+00:00'
    QuickCheckResult:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Check created, files uploaded, and analysis started successfully.
        data:
          type: object
          properties:
            check_id:
              type: integer
              example: 12345
            check_name:
              type: string
              example: CS-201 Assignment 4
            language:
              type: string
              example: Java (.java)
            language_id:
              type: integer
              example: 13
            status:
              type: string
              example: Processing
            status_id:
              type: integer
              example: 7
            test_type:
              type: integer
              example: 1
            submissions:
              type: object
              properties:
                uploaded:
                  type: integer
                  example: 28
                failed:
                  type: integer
                  example: 0
                total:
                  type: integer
                  example: 28
                details:
                  type: array
                  description: The submission rows created by this call.
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 90271
                      filename:
                        type: string
                        example: nowak_alice_a4
                      file_size:
                        type: integer
                        example: 10874
                      status_id:
                        type: integer
                        example: 2
                      created_at:
                        type: string
                        example: '2026-08-11 09:14:02'
            failed_uploads:
              type: array
              description: Files rejected during upload. Empty when everything landed.
              items:
                type: object
                properties:
                  file:
                    type: string
                    example: duffy_erin_a4.rar
                  error:
                    type: string
                    example: 'The files.3 must be a file of type: zip.'
            detection_settings:
              type: object
              description: Which external corpora this check searches, resolved from webcheck/dbcheck and the engine.
              properties:
                web_check:
                  type: boolean
                  example: true
                github_check:
                  type: boolean
                  example: true
                stackoverflow_check:
                  type: boolean
                  example: true
                gist_check:
                  type: boolean
                  example: true
            check_url:
              type: string
              example: https://dashboard.codequiry.com/course/678/assignment/12345/overview
            execution_time_ms:
              type: number
              example: 4182
        next_steps:
          type: object
          description: Literal follow-up calls, with the new check id already substituted in.
          properties:
            poll_status:
              type: string
              example: Use GET /check/get with check_id=12345 to monitor progress
            get_results:
              type: string
              example: Once status is 'Completed', use POST /check/overview with check_id=12345
  parameters:
    CheckId:
      name: checkId
      in: path
      required: true
      schema:
        type: integer
        example: 12345
      description: The check (assignment) id.
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: apikey
      description: Your 64-character API key from the Codequiry dashboard.
x-refined-from:
- codequiry-com-openapi-original.json
- codequiry-com-openapi.yml