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

# Get extraction results

> Returns structured data extracted from all credentials in the case.



## OpenAPI

````yaml /partner-api/openapi.json get /cases/{id}/extraction
openapi: 3.0.3
info:
  title: TruEnroll Partner API
  version: 1.0.0
  description: >-
    Submit academic documents and retrieve structured extraction, forensics, and
    translation results.
servers:
  - url: https://eval-api.trential.dev/partner/v1
    description: Sandbox
  - url: https://api.truenroll.com/partner/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Cases
    description: Create and manage processing cases.
  - name: Results
    description: Fetch extraction, forensics, and translation results.
  - name: Webhooks
    description: Register endpoints that receive case events.
paths:
  /cases/{id}/extraction:
    get:
      tags:
        - Results
      summary: Get extraction results
      description: Returns structured data extracted from all credentials in the case.
      operationId: getCaseExtraction
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: TruEnroll case ID.
      responses:
        '200':
          description: Extraction result.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/ExtractionResult'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Case not found or deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Extraction was not requested for this case.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        meta:
          type: object
          description: >-
            Optional metadata (e.g. pagination). Empty object when not
            applicable.
        data: {}
      required:
        - success
        - message
        - meta
        - data
    ExtractionResult:
      type: object
      properties:
        id:
          type: string
        externalId:
          type: string
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/ExtractionCredential'
      required:
        - id
        - credentials
    ErrorResponse:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
      required:
        - statusCode
        - message
    ExtractionCredential:
      type: object
      properties:
        credentialId:
          type: string
        uploadId:
          type: string
          nullable: true
        credentialType:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/CaseStatus'
        languageCode:
          type: string
          nullable: true
          description: ISO 639-1 language code of the original document.
        language:
          type: string
          nullable: true
          description: Human-readable language name.
        candidate:
          $ref: '#/components/schemas/Candidate'
        institution:
          $ref: '#/components/schemas/Institution'
        qualification:
          $ref: '#/components/schemas/Qualification'
        courses:
          type: array
          items:
            $ref: '#/components/schemas/Course'
      required:
        - credentialId
        - status
        - candidate
        - institution
        - qualification
        - courses
    CaseStatus:
      type: string
      enum:
        - queued
        - processing
        - completed
        - failed
      description: Processing status.
    Candidate:
      type: object
      properties:
        fullName:
          type: string
          nullable: true
        firstName:
          type: string
          nullable: true
        lastName:
          type: string
          nullable: true
        dateOfBirth:
          type: string
          nullable: true
    Institution:
      type: object
      properties:
        name:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        countryCode:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2.
        state:
          type: string
          nullable: true
        stateCode:
          type: string
          nullable: true
        accreditation:
          nullable: true
          type: object
          properties:
            isAccredited:
              type: boolean
              nullable: true
            isRecognized:
              type: boolean
              nullable: true
            lastChecked:
              type: string
              format: date-time
              nullable: true
    Qualification:
      type: object
      properties:
        registrationNumber:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
          description: Degree name.
        level:
          type: string
          nullable: true
          description: Degree level, e.g. Undergraduate.
        program:
          type: string
          nullable: true
        majorOrSpecialization:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
          description: Qualification status, e.g. Completed.
        yearOfAdmission:
          nullable: true
        yearOfCompletion:
          nullable: true
        programDuration:
          nullable: true
        dateOfIssue:
          type: string
          nullable: true
        cgpa:
          nullable: true
        totalCreditsOrMarks:
          nullable: true
    Course:
      type: object
      properties:
        id:
          type: string
        courseNumber:
          type: string
          nullable: true
        courseName:
          type: string
          nullable: true
        credit:
          nullable: true
        grade:
          type: string
          nullable: true
        alternateGrade:
          type: string
          nullable: true
        marksScored:
          nullable: true
        maximumMarks:
          nullable: true
        passStatus:
          type: string
          nullable: true
        term:
          type: string
          nullable: true
        session:
          nullable: true
        year:
          nullable: true
      required:
        - id
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Partner API key. Also accepted as `Authorization: Bearer <key>`.'

````