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

# Send Interview

> Initiate the AI interview outreach sequence for an existing candidate. At least one of send_sms or send_email must be true.

Initiate the AI interview outreach sequence for an existing candidate. At least one of `send_sms` or `send_email` must be `true`.

The candidate will receive a text message and/or email with a link to start their AI phone screen.

This endpoint counts against your organization's interview invite send caps. Those caps are shared with API candidate creation, deprecated call registration, dashboard single-send, and CSV campaign sends.

```bash cURL theme={null}
curl -X POST https://api.classet.ai/v2/candidates/Xk3pQ9vT2mLr8bNc4Hd1s/interview \
  -H "X-API-KEY: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "send_sms": true,
    "send_email": true
  }'
```

```json 200 theme={null}
{
  "data": {
    "candidate_id": "Xk3pQ9vT2mLr8bNc4Hd1s",
    "webcall_url": "https://call.classet.ai/call/Xk3pQ9vT2mLr8bNc4Hd1s",
    "interview_panel_url": "https://call.classet.ai/interview-panel/Xk3pQ9vT2mLr8bNc4Hd1s"
  }
}
```

`webcall_url` is the candidate's web-call interview link. `interview_panel_url` is a link you can share with your hiring team to view the interview.

> [!WARNING]
>
> If the interview has already been initiated for this candidate, the API will return a `400` error. Each candidate can only have one active interview per job.

> [!WARNING]
>
> If your invite send cap is exhausted, the API returns `429 Interview invite limit exceeded` and does not start outreach.


## OpenAPI

````yaml POST /v2/candidates/{candidateId}/interview
openapi: 3.1.0
info:
  title: Classet API
  version: 2.0.3
  description: >-
    AI-powered recruiting and phone screening API.


    **API key scopes.** `read` covers every GET; any other method needs `write`
    (403 `insufficient_scope`); starting or stopping an interview also needs
    `interviews:send`. A branch-limited key sees and writes only jobs in its
    branches (not jobs with no branch) and their candidates, applications and
    calls; anything outside is a 404. An organization-group key is read-only
    across every organization in its group. Branch-limited and group keys cannot
    use organization configuration (scripts, knowledge, webhooks, message
    automations, agent settings, AI generation, organization): 403
    `restricted_key_unsupported`. `GET /v2/me` reports what the calling key can
    do.
servers:
  - url: https://api.classet.ai
    description: Production
  - url: http://localhost:8081
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /v2/candidates/{candidateId}/interview:
    post:
      tags:
        - Candidates
      summary: Send interview to candidate
      description: >-
        Initiate the AI interview outreach sequence for an existing candidate.
        At least one of send_sms or send_email must be true.
      parameters:
        - schema:
            type: string
          required: true
          name: candidateId
          in: path
          description: The ID of the candidate to send the interview to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                send_sms:
                  type: boolean
                  default: false
                  description: >-
                    Send SMS outreach. The interview will take place via phone
                    call.
                send_email:
                  type: boolean
                  default: false
                  description: >-
                    Send email outreach. The interview will take place via web
                    call.
      responses:
        '200':
          description: Interview initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      candidate_id:
                        type: string
                        description: The candidate ID.
                      webcall_url:
                        type: string
                        description: >-
                          URL for the candidate to take their interview via web
                          call.
                      interview_panel_url:
                        type: string
                    required:
                      - candidate_id
                      - webcall_url
                      - interview_panel_url
                required:
                  - data
        '400':
          description: Interview already initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '402':
          description: Free-trial interview allowance exhausted
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '404':
          description: Candidate not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '409':
          description: >-
            Candidate opted out of AI outreach (`candidate_opted_out`), or
            another record with the same phone number on this job was contacted
            in the last 12 hours (`recently_contacted`)
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/CandidateOptedOutError'
                  - $ref: '#/components/schemas/RecentlyContactedError'
                  - type: object
                    properties:
                      error:
                        type: string
                        example: Resource not found
                      code:
                        type: string
                        enum:
                          - not_found
                          - validation_error
                          - unauthorized
                          - forbidden
                          - insufficient_scope
                          - restricted_key_unsupported
                          - branch_out_of_scope
                          - key_misconfigured
                          - quota_exceeded
                          - rate_limited
                          - rate_limit_unavailable
                          - conflict
                          - idempotency_key_reuse
                          - candidate_opted_out
                          - recently_contacted
                          - request_in_progress
                          - unprocessable
                          - bad_request
                          - payload_too_large
                          - internal_error
                          - service_unavailable
                        example: not_found
                        description: Stable machine-readable error code.
                      request_id:
                        type: string
                        example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                        description: >-
                          Request ID, also echoed in the X-Request-Id response
                          header. Include it when reporting issues.
                    required:
                      - error
        '422':
          description: Must provide send_sms or send_email
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '429':
          description: Interview invite limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InviteLimitError'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '503':
          description: External mutations or invite rate limiting are not available
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CandidateOptedOutError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
            - candidate_opted_out
        request_id:
          type: string
        data:
          type: object
          properties:
            candidate_id:
              type: string
          required:
            - candidate_id
          description: The opted-out candidate.
      required:
        - error
        - code
        - data
    RecentlyContactedError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
            - recently_contacted
        request_id:
          type: string
        data:
          type: object
          properties:
            candidate_id:
              type: string
            retry_at:
              type: string
              nullable: true
              description: When a send to this person on this job is accepted again.
          required:
            - candidate_id
            - retry_at
          description: The candidate that was contacted. Nothing was created or sent.
      required:
        - error
        - code
        - data
    InviteLimitError:
      type: object
      properties:
        error:
          type: string
          example: Resource not found
        code:
          type: string
          enum:
            - not_found
            - validation_error
            - unauthorized
            - forbidden
            - insufficient_scope
            - restricted_key_unsupported
            - branch_out_of_scope
            - key_misconfigured
            - quota_exceeded
            - rate_limited
            - rate_limit_unavailable
            - conflict
            - idempotency_key_reuse
            - candidate_opted_out
            - recently_contacted
            - request_in_progress
            - unprocessable
            - bad_request
            - payload_too_large
            - internal_error
            - service_unavailable
          example: not_found
          description: Stable machine-readable error code.
        request_id:
          type: string
          example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
          description: >-
            Request ID, also echoed in the X-Request-Id response header. Include
            it when reporting issues.
        message:
          type: string
          description: Which cap was hit, in words.
        exceeded_window:
          type: string
          enum:
            - burst
            - sustained
            - daily
            - monthly
          description: The send-cap window that was exceeded.
        limit:
          type: integer
          description: The cap for that window.
        retry_at:
          type: string
          description: >-
            ISO-8601 time the window frees a slot. Mirrors the Retry-After
            header.
      required:
        - error
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Classet API key. Create and rotate keys in Settings → API.

````

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