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

# Shortlist a candidate

> Shortlist the candidate behind an interview, exactly as the dashboard does. It replaces any earlier dismissal, appears in the dashboard and on List Candidates (`shortlisted: true`), and fires the `candidate_shortlisted` webhook with `source: "api"`. Repeating the call is safe.



## OpenAPI

````yaml https://api.heymilo.ai/openapi.json post /api/v2/interviews/{interview_id}/shortlist
openapi: 3.1.0
info:
  title: HeyMilo Public API
  description: >-
    External developer-facing API for HeyMilo. Create interviewers with agentic
    workflows, ingest candidates, retrieve interview results, and manage
    workspace resources.
  version: 2.0.0
servers:
  - url: https://api.heymilo.ai
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Interviewers
    description: >-
      Create, read, update, and manage interviewers. An interviewer (posting)
      combines job details with an AI agent configuration and agentic workflow.
  - name: Candidates
    description: >-
      Ingest candidates into an interviewer's workflow (sync or async, single or
      bulk) and list candidates with their progress.
  - name: Interviews
    description: >-
      Retrieve full interview results (scorecard, transcript, resume evaluation)
      and manage per-interview metadata.
  - name: Webhooks
    description: >-
      Register, list, and manage webhook endpoints that receive real-time event
      notifications.
  - name: Voices
    description: Browse the workspace voice registry for AI interviewer voices.
  - name: Phone Numbers
    description: List provisioned phone numbers for SMS and voice agents.
  - name: Sender Emails
    description: Manage sender email addresses used for candidate communications.
  - name: Email Templates
    description: >-
      Create, update, delete and view the email templates used for candidate
      outreach. A template is sent once it is mapped into an email template
      group set on an interviewer.
  - name: Email Template Groups
    description: >-
      Create, update, delete and view email template groups, which map each
      email type to a template and pick the sender address. Set a group on an
      interviewer with ``email_template_group_id``.
  - name: Design Templates
    description: >-
      Create, update, delete and view the design templates that style each
      candidate-facing page. A template is used once it is mapped into a design
      template group.
  - name: Design Template Groups
    description: >-
      Create, update, delete and view design template groups, which pick a
      template for each candidate-facing page. Set a group on an interviewer
      with ``design_template_group_id``, or make it the workspace default.
  - name: Interview Templates
    description: >-
      Create, update, delete and view interview templates, reusable agent
      configurations (workflow, questions, criteria, agent settings) saved as a
      snapshot of an interviewer. Create interviewers from one with
      ``interview_template_id``.
  - name: Domains
    description: Manage custom domains for white-labelled interview URLs.
  - name: Questions
    description: >-
      Create, read, update, delete, and reorder questions and criteria for an
      interviewer's workflow. Covers all modalities: voice, sms, form,
      resume_eligibility, resume_scoring, and voice_tags.
  - name: Workspaces
    description: >-
      List the workspaces accessible to the authenticated caller. API-key
      callers receive a single entry; OAuth callers receive every workspace they
      are a member of.
  - name: Teams
    description: >-
      Create, update, delete and list workspace teams, and manage which teams an
      interviewer belongs to. Interviewers can also be assigned at creation time
      via ``team_ids`` on the create-interviewer request. Requires the Teams
      feature to be enabled for the workspace.
paths:
  /api/v2/interviews/{interview_id}/shortlist:
    post:
      tags:
        - Interviews
      summary: Shortlist a candidate
      description: >-
        Shortlist the candidate behind an interview, exactly as the dashboard
        does. It replaces any earlier dismissal, appears in the dashboard and on
        List Candidates (`shortlisted: true`), and fires the
        `candidate_shortlisted` webhook with `source: "api"`. Repeating the call
        is safe.
      operationId: shortlistCandidate
      parameters:
        - name: interview_id
          in: path
          required: true
          schema:
            type: string
            title: Interview Id
        - name: X-API-KEY
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/CandidateDecisionRequest'
                - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SingleResponse_CandidateDecisionResponse_'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '410':
          description: The candidate's account has been deactivated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
components:
  schemas:
    CandidateDecisionRequest:
      properties:
        reason:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Reason
          description: Why the candidate was shortlisted or dismissed.
          examples:
            - Strong system design answers
        note:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Note
          description: Free-form note stored with the decision.
          examples:
            - Move to onsite
      type: object
      title: CandidateDecisionRequest
      description: Optional context recorded with a shortlist or dismiss.
    SingleResponse_CandidateDecisionResponse_:
      properties:
        data:
          $ref: '#/components/schemas/CandidateDecisionResponse'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
          description: Optional metadata. Shape varies by endpoint.
      type: object
      required:
        - data
      title: SingleResponse[CandidateDecisionResponse]
    APIErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/APIError'
      type: object
      required:
        - error
      title: APIErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CandidateDecisionResponse:
      properties:
        interview_id:
          type: string
          title: Interview Id
          description: Interview identifier of the candidate.
          examples:
            - D536A69A4090E13F
        posting_id:
          type: string
          title: Posting Id
          description: ID of the posting the candidate belongs to.
          examples:
            - 13D77095
        decision:
          type: string
          enum:
            - shortlisted
            - dismissed
          title: Decision
          description: The candidate's decision after this call.
          examples:
            - shortlisted
      type: object
      required:
        - interview_id
        - posting_id
        - decision
      title: CandidateDecisionResponse
      description: A candidate's decision after a shortlist or dismiss.
    APIError:
      properties:
        type:
          type: string
          title: Type
          description: Error category
          examples:
            - invalid_request_error
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - validation_error
        message:
          type: string
          title: Message
          description: Human-readable summary
          examples:
            - The request body failed validation
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: Top-level parameter that caused the error
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: Link to relevant documentation
        errors:
          items:
            $ref: '#/components/schemas/APIErrorDetail'
          type: array
          title: Errors
          description: Detailed per-field validation errors
      type: object
      required:
        - type
        - code
        - message
      title: APIError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    APIErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - invalid_param
        message:
          type: string
          title: Message
          description: Human-readable explanation
          examples:
            - title must be between 3 and 200 characters
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: Parameter that caused the error
          examples:
            - title
      type: object
      required:
        - code
        - message
      title: APIErrorDetail
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication. Pass your key in the X-API-KEY header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.