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

# Pre-screen a candidate from a binary resume upload

> Accepts a multipart/form-data upload with candidate details and a binary resume file, converts the resume to text, runs AI pre-screening against the position, stores the result, and returns the decision.



## OpenAPI

````yaml https://cool.jobmojito.com/functions/v1/openapi post /job-interview-pre-screening-api-resume-binary
openapi: 3.1.0
info:
  title: JobMojito API
  version: 1.0.0
  description: >-
    Public API for JobMojito, served by Supabase Edge Functions. Authenticate
    with a Supabase JWT access token via the Authorization header.
servers:
  - url: https://cool.jobmojito.com/functions/v1
    description: Production
security: []
tags:
  - name: Interviews
    description: >-
      Create, configure and manage interview / coaching / assessment
      definitions.
  - name: Results
    description: >-
      Interview results, transcripts, reports, re-attempt requests and
      analytics.
  - name: Candidates
    description: List and manage candidates.
  - name: Knowledge base
    description: Upload documents used to generate knowledge-base interviews.
  - name: Resume & Form verification
    description: Pre-screen candidates from resumes and forms.
  - name: Admin
    description: >-
      Account administration — invite team/coaching users, manage sub-merchants
      and avatar templates.
paths:
  /job-interview-pre-screening-api-resume-binary:
    post:
      tags:
        - Resume & Form verification
      summary: Pre-screen a candidate from a binary resume upload
      description: >-
        Accepts a multipart/form-data upload with candidate details and a binary
        resume file, converts the resume to text, runs AI pre-screening against
        the position, stores the result, and returns the decision.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PreScreeningResumeBinaryRequest'
      responses:
        '200':
          description: Pre-screening result, or an early-exit status message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreScreeningResumeBinaryResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Forbidden: only merchant users can access this endpoint.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Position not found or does not belong to this merchant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    PreScreeningResumeBinaryRequest:
      type: object
      properties:
        position_id:
          type: string
          minLength: 1
          description: The position the candidate is being pre-screened against.
        candidate_name:
          type: string
          minLength: 1
          description: Full name of the candidate.
        candidate_email:
          type: string
          minLength: 1
          description: Candidate email (normalized to lowercase, trimmed).
        candidate_country_code:
          type: string
          minLength: 1
          description: ISO country code used as residency/nationality fallback.
        candidate_external_id:
          type: string
          description: Optional external identifier for the candidate.
        candidate_linkedin_url:
          type: string
          description: Optional candidate LinkedIn profile URL.
        file:
          type: string
          description: Resume file (pdf, doc, docx, txt, etc.)
          format: binary
        form:
          type: string
          description: >-
            Optional JSON string with
            education/languages/residency/nationality/visa/age/gender.
      required:
        - position_id
        - candidate_name
        - candidate_email
        - candidate_country_code
        - file
    PreScreeningResumeBinaryResponse:
      anyOf:
        - $ref: '#/components/schemas/PreScreeningResumeBinarySuccess'
        - $ref: '#/components/schemas/PreScreeningResumeBinaryEarlyExit'
      description: >-
        Either the completed pre-screening result, or an early-exit status
        message when the candidate is not in the pre-screening candidate_action
        state.
    Error:
      type: object
      properties:
        error:
          type: string
          example: Field is required.
        name:
          type: string
          example: interview_result_id
      required:
        - error
    PreScreeningResumeBinarySuccess:
      type: object
      properties:
        success:
          type: boolean
        decision_status:
          type: string
        recommendation:
          type: string
          nullable: true
        profile_interview_id:
          type: string
        interview_result_pre_screening_id:
          type: string
        interview_file_id:
          type: string
        pre_screening_score:
          type: number
          nullable: true
        resume_ai_analysis:
          type: string
          nullable: true
        resume_ai_education:
          type: string
          nullable: true
        resume_ai_technical_experience:
          type: number
          nullable: true
        resume_ai_is_switching_profession:
          type: boolean
          nullable: true
        processing_reason:
          type: string
          nullable: true
      required:
        - success
        - decision_status
        - recommendation
        - profile_interview_id
        - interview_result_pre_screening_id
        - interview_file_id
        - pre_screening_score
        - resume_ai_analysis
        - resume_ai_education
        - resume_ai_technical_experience
        - resume_ai_is_switching_profession
        - processing_reason
    PreScreeningResumeBinaryEarlyExit:
      type: object
      properties:
        decision_status:
          type: string
        message:
          type: string
      required:
        - decision_status
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Supabase JWT access token, passed as `Authorization: Bearer <token>`.'

````