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

# Stop Interview

> Stop an active interview for a candidate. Optionally send a final SMS or email message. If only_stop_outreach is true, the outreach sequence is cancelled without sending messages.

Stop an active interview for a candidate. This cancels the outreach sequence and marks the interview outcome as `ai_stopped_override`.

Optionally send a final SMS or email message to the candidate. If `only_stop_outreach` is `true`, the sequence is cancelled without sending any messages.

This endpoint uses the same ai-recruiter stop workflow as v1, including nudge-workflow cancellation and final message delivery when requested.

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

```json 200 theme={null}
{
  "data": {
    "candidate_id": "Xk3pQ9vT2mLr8bNc4Hd1s",
    "stopped": true,
    "sms_sent_success": null,
    "email_sent_success": null
  }
}
```

Stopping an interview that is already stopped succeeds without doing anything again. The response is `200` with `already_stopped: true` and no `sms_sent_success` or `email_sent_success`, so a retry is safe:

```json 200 theme={null}
{
  "data": {
    "candidate_id": "Xk3pQ9vT2mLr8bNc4Hd1s",
    "stopped": true,
    "already_stopped": true
  }
}
```

> [!NOTE]
>
> You cannot stop an interview that was never initiated (`409` error) or one where the outcome has already been determined (`409` with the existing `interview_outcome`).

> [!NOTE]
>
> If external API mutations are not enabled for your organization, the request returns `503 service_unavailable` and nothing is stopped. Contact [success@classet.ai](mailto:success@classet.ai) to enable them.


## OpenAPI

````yaml POST /v2/candidates/{candidateId}/stop-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}/stop-interview:
    post:
      tags:
        - Candidates
      summary: Stop an active interview
      description: >-
        Stop an active interview for a candidate. Optionally send a final SMS or
        email message. If only_stop_outreach is true, the outreach sequence is
        cancelled without sending messages.
      parameters:
        - schema:
            type: string
          required: true
          name: candidateId
          in: path
          description: The ID of the candidate whose interview to stop.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sms_message_to_candidate:
                  type: string
                  description: Final SMS message to send to the candidate.
                email_message_to_candidate:
                  type: string
                  description: Final email message to send to the candidate.
                only_stop_outreach:
                  type: boolean
                  default: false
                  description: >-
                    If `true`, only stop the outreach sequence without sending
                    any messages.
      responses:
        '200':
          description: Interview stopped
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      candidate_id:
                        type: string
                        description: The candidate ID.
                      stopped:
                        type: boolean
                        description: Whether the interview was successfully stopped.
                      already_stopped:
                        type: boolean
                      sms_sent_success:
                        type: boolean
                        nullable: true
                        description: >-
                          Whether the final SMS was sent, or `null` when no SMS
                          was requested.
                      email_sent_success:
                        type: boolean
                        nullable: true
                        description: >-
                          Whether the final email was sent, or `null` when no
                          email was requested.
                    required:
                      - candidate_id
                      - stopped
                required:
                  - data
        '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: Interview not active or outcome already determined
          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
        '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 are not enabled
          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:
  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.