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

# Get Submission



## OpenAPI

````yaml GET /submissions/{id}
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:
  /submissions/{id}:
    get:
      tags:
        - Submissions
      summary: Get submission with per-question results
      operationId: getSubmission
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Submission with question-level breakdown
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/SubmissionDetail'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - BearerAuth:
            - read:results
components:
  schemas:
    Envelope:
      type: object
      properties:
        data: {}
        error:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ErrorObject'
        meta:
          oneOf:
            - type: 'null'
            - type: object
    SubmissionDetail:
      allOf:
        - $ref: '#/components/schemas/SubmissionSummary'
        - type: object
          properties:
            assessment_id:
              type: string
              format: uuid
            question_results:
              type: array
              items:
                type: object
                properties:
                  question_id:
                    type: string
                    format: uuid
                  sequence_number:
                    type: integer
                  points:
                    type: number
                  change_count:
                    type: integer
                    description: >-
                      Number of times the learner modified this answer
                      (populated when events endpoint is used)
                  result:
                    type: object
    ErrorObject:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    SubmissionSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        learner_id:
          type: string
          format: uuid
          nullable: true
        learner_ref:
          type: string
          nullable: true
        status:
          type: string
        attempt_number:
          type: integer
        score:
          type: number
        max_score:
          type: number
        percentage:
          type: integer
        passed:
          type: boolean
          nullable: true
        started_at:
          type: string
          format: date-time
          nullable: true
        submitted_at:
          type: string
          format: date-time
          nullable: true
        graded_at:
          type: string
          format: date-time
          nullable: true
    ErrorResponse:
      type: object
      properties:
        data:
          type: 'null'
        error:
          $ref: '#/components/schemas/ErrorObject'
        meta:
          type: 'null'
  responses:
    NotFound:
      description: Resource not found
      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`.

````