> ## Documentation Index
> Fetch the complete documentation index at: https://docs.edpire.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Question

> Grades a single question without creating a submission.
Designed for Duolingo-style flows. Answer keys are never returned.
Rate limited per (session_id, question_id).




## OpenAPI

````yaml POST /assessments/{id}/check
openapi: 3.1.0
info:
  title: Edpire API
  description: >
    Edpire is a headless assessment engine. This API lets you manage
    assessments,

    submit answers for grading, retrieve results, manage collections, and
    configure

    webhooks for real-time notifications.


    All responses use a consistent envelope: `{ data, error, meta }`.
  version: 1.0.0
  contact:
    name: Edpire Support
    url: https://edpire.com
  license:
    name: Proprietary
servers:
  - url: https://edpire.com/api/v1
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Assessments
    description: Create, list, update, publish, and grade assessments
  - name: Submissions
    description: Retrieve submission details
  - name: Learners
    description: Query learner results
  - name: Collections
    description: Manage ordered groups of assessments
  - name: Webhooks
    description: Register and manage webhook endpoints
  - name: Embed
    description: Mint tokens and load assessments for browser-side rendering
  - name: OpenAPI
    description: API specification
paths:
  /assessments/{id}/check:
    post:
      tags:
        - Assessments
      summary: Grade a single question (real-time)
      description: |
        Grades a single question without creating a submission.
        Designed for Duolingo-style flows. Answer keys are never returned.
        Rate limited per (session_id, question_id).
      operationId: checkQuestion
      parameters:
        - $ref: '#/components/parameters/AssessmentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckRequest'
      responses:
        '200':
          description: Question graded
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/CheckResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
        - BearerAuth:
            - read:assessments
components:
  parameters:
    AssessmentId:
      name: id
      in: path
      required: true
      description: Assessment UUID
      schema:
        type: string
        format: uuid
  schemas:
    CheckRequest:
      type: object
      required:
        - exercise_id
        - question_id
        - answers
        - learner_ref
      properties:
        exercise_id:
          type: string
        question_id:
          type: string
        answers:
          type: array
          items:
            type: object
            additionalProperties: true
        learner_ref:
          type: string
        session_id:
          type: string
          description: UUID per attempt for rate limiting
    Envelope:
      type: object
      properties:
        data: {}
        error:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ErrorObject'
        meta:
          oneOf:
            - type: 'null'
            - type: object
    CheckResult:
      type: object
      properties:
        correct:
          type: boolean
        score:
          type: number
        max_score:
          type: number
        feedback:
          type: object
          additionalProperties:
            type: object
            properties:
              state:
                type: string
                enum:
                  - correct
                  - incorrect
                  - partial
              showFeedback:
                type: boolean
              score:
                type: number
    ErrorObject:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    ErrorResponse:
      type: object
      properties:
        data:
          type: 'null'
        error:
          $ref: '#/components/schemas/ErrorObject'
        meta:
          type: 'null'
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnprocessableEntity:
      description: Evaluation or processing failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
            description: Seconds until the rate limit resets
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >
        API key starting with `edp_live_`. Pass via `Authorization: Bearer
        edp_live_xxx`.


        Scopes: `read:assessments`, `write:assessments`, `read:results`,
        `write:submissions`.

````