ScanForAI Classes API

The classes API from ScanForAI — 8 operation(s) for classes.

GitHub OpenAPI

Operations 10

GET /api/classes List Classes #
POST /api/classes Create Class #
PATCH /api/classes/{class_id} Edit Class #
DELETE /api/classes/{class_id} Delete Class #
GET /api/classes/{class_id}/submissions Submissions #
POST /api/classes/{class_id}/close Close Class #
POST /api/classes/{class_id}/rotate Rotate Code #
DELETE /api/classes/{class_id}/submissions/{sid} Delete Submission #
GET /api/classes/{class_id}/submissions/{sid}/report.pdf Submission Report #
GET /api/classes/{class_id}/export.csv Export Csv #

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/scanforai-com:scanforai-com-classes-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

scanforai-com-classes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScanForAI Classes API
  description: 'Detect AI-written text and clean it up. Public endpoints: **scan** a document for AI-writing signals, and **cleanup** (strip machine typography, no rewriting). Authenticate with an `at_sk_` API key: `Authorization: Bearer `. The score is a signal, not a verdict.'
  version: '1'
tags:
- name: Classes
paths:
  /api/classes:
    get:
      tags:
      - Classes
      summary: List Classes
      operationId: list_classes_api_classes_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
    post:
      tags:
      - Classes
      summary: Create Class
      operationId: create_class_api_classes_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
  /api/classes/{class_id}:
    patch:
      tags:
      - Classes
      summary: Edit Class
      operationId: edit_class_api_classes__class_id__patch
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassEdit'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
    delete:
      tags:
      - Classes
      summary: Delete Class
      operationId: delete_class_api_classes__class_id__delete
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/classes/{class_id}/submissions:
    get:
      tags:
      - Classes
      summary: Submissions
      operationId: submissions_api_classes__class_id__submissions_get
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/classes/{class_id}/close:
    post:
      tags:
      - Classes
      summary: Close Class
      operationId: close_class_api_classes__class_id__close_post
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/classes/{class_id}/rotate:
    post:
      tags:
      - Classes
      summary: Rotate Code
      operationId: rotate_code_api_classes__class_id__rotate_post
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/classes/{class_id}/submissions/{sid}:
    delete:
      tags:
      - Classes
      summary: Delete Submission
      operationId: delete_submission_api_classes__class_id__submissions__sid__delete
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - name: sid
        in: path
        required: true
        schema:
          type: string
          title: Sid
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/classes/{class_id}/submissions/{sid}/report.pdf:
    get:
      tags:
      - Classes
      summary: Submission Report
      description: 'The standard scan-report PDF for one submission — same artefact as any

        saved scan''s report (score, band, signal panel, sentence marks, source

        excerpt), titled class — student. Teacher-only via ownership.'
      operationId: submission_report_api_classes__class_id__submissions__sid__report_pdf_get
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - name: sid
        in: path
        required: true
        schema:
          type: string
          title: Sid
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/classes/{class_id}/export.csv:
    get:
      tags:
      - Classes
      summary: Export Csv
      operationId: export_csv_api_classes__class_id__export_csv_get
      parameters:
      - name: class_id
        in: path
        required: true
        schema:
          type: string
          title: Class Id
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
components:
  parameters:
    XUILang:
      name: X-UI-Lang
      in: header
      required: false
      description: Language of the answer's `message` fields (a language code such as `en` or `es`; only the part before any `-` is used). Without it, the answer is English as always and error bodies carry no `message`.
      schema:
        type: string
        maxLength: 16
    LangQuery:
      name: lang
      in: query
      required: false
      description: The same as the `X-UI-Lang` header, for requests a browser makes without custom headers. If both are sent, `lang` wins.
      schema:
        type: string
        maxLength: 16
  schemas:
    ClassEdit:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 120
            minLength: 3
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
            maxLength: 1000
          - type: 'null'
          title: Description
        ends:
          anyOf:
          - type: string
          - type: 'null'
          title: Ends
        require_text:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Require Text
      type: object
      title: ClassEdit
    ClassIn:
      properties:
        name:
          type: string
          maxLength: 120
          minLength: 3
          title: Name
        roster:
          anyOf:
          - items:
              type: string
            type: array
            maxItems: 500
          - type: 'null'
          title: Roster
        roster_only:
          type: boolean
          title: Roster Only
          default: false
        ends:
          anyOf:
          - type: string
          - type: 'null'
          title: Ends
        description:
          anyOf:
          - type: string
            maxLength: 1000
          - type: 'null'
          title: Description
        require_text:
          type: boolean
          title: Require Text
          default: false
      type: object
      required:
      - name
      title: ClassIn
    ErrorBody:
      type: object
      required:
      - detail
      - code
      - params
      properties:
        detail:
          description: The error in English, exactly as it has always read. A list of field problems for status 422.
          anyOf:
          - type: string
          - type: array
            items:
              type: object
        code:
          type: string
          description: Stable identifier of the error, for programs. Never changes wording.
          example: err.rate_limit.scan
        params:
          type: object
          additionalProperties: true
          description: The values the error is about (for example the seconds to wait as `retry`).
        message:
          type: string
          description: The error in the language the request named. Present only when it named one.