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

# Register Call

> Deprecated v1-compatible endpoint. Creates or reuses a candidate, records a flow_initiated call, and starts interview outreach. Prefer POST /v2/candidates with send_sms/send_email for new integrations.

Creates or reuses a candidate and initiates an outreach sequence to complete an AI phone screen interview. This endpoint is kept for v1 compatibility.

> [!WARNING]
>
> This endpoint is deprecated. We recommend using [Create Candidate](/docs/api-reference/candidates/create-candidate.md) with `send_sms`/`send_email` instead, or [Send Interview](/docs/api-reference/candidates/send-interview.md) for existing candidates.

If a candidate with the same phone number already exists for the job, the request will return the existing candidate (with their `webcall_url`) unless `force_create` is set to `true`.

This endpoint always starts interview outreach and counts against your organization's interview invite send caps. Those caps are shared with API candidate creation, Send Interview, dashboard single-send, and CSV campaign sends.

```bash cURL theme={null}
curl -X POST https://api.classet.ai/v2/calls \
  -H "X-API-KEY: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "John",
    "last_name": "Smith",
    "phone_number": "+12345678901",
    "email": "john.smith@example.com",
    "job_id": "k7Hq2xVbN",
    "external_id": "EX1234567890",
    "experience": [
      {
        "title": "HVAC Technician",
        "company": "CoolAir Systems",
        "current": true,
        "summary": "Installed and maintained commercial HVAC systems.",
        "start_date": "2020-01-01"
      }
    ],
    "location": {
      "city": "Austin",
      "region": "Texas",
      "country": "United States",
      "zip_code": "78701"
    },
    "answers": [
      {
        "question": { "body": "Do you have a valid driver'\''s license?" },
        "answer": { "body": "Yes." }
      }
    ],
    "send_sms": true,
    "send_email": true
  }'
```

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

`call_id` is the v1-compatible call identifier and can be `null`. Outreach still starts when it is `null`. Track the result with [Get Interview](/docs/api-reference/candidates/get-interview.md) using `candidate_id`.

> [!TIP]
>
> We recommend setting both `send_sms` and `send_email` to `true` for optimal interview completion rates.

> [!WARNING]
>
> If your invite send cap is exhausted, the API returns `429 Interview invite limit exceeded` and does not create a candidate or call.


## OpenAPI

````yaml POST /v2/calls
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/calls:
    post:
      tags:
        - Calls
      summary: Register call (deprecated)
      description: >-
        Deprecated v1-compatible endpoint. Creates or reuses a candidate,
        records a flow_initiated call, and starts interview outreach. Prefer
        POST /v2/candidates with send_sms/send_email for new integrations.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  minLength: 1
                  description: First name of the candidate.
                last_name:
                  type: string
                  minLength: 1
                  description: Last name of the candidate.
                email:
                  type: string
                  nullable: true
                  format: email
                  description: Email address of the candidate.
                phone_number:
                  type: string
                  pattern: ^\+[1-9]\d{1,14}$
                  description: Phone number in E.164 format (e.g. `+15555555555`).
                job_id:
                  type: string
                  minLength: 1
                  description: v1 job shortcode or v2 job ID.
                external_id:
                  type: string
                  description: >-
                    Optional unique user ID from your system. Use this to map
                    Classet candidates back to your records.
                location:
                  nullable: true
                  description: >-
                    Candidate location. Accepts a simple string (e.g. `"Austin,
                    TX"`) or a structured object with `city`, `region`,
                    `country`, `zip_code`, `region_code`, `country_code`, and
                    `location_str`.
                experience:
                  type: array
                  items:
                    nullable: true
                  description: >-
                    Structured work experience entries. Each entry can include
                    `title`, `company`, `current` (boolean), `summary`,
                    `start_date`, `end_date`, and `industry`.
                force_create:
                  type: boolean
                  default: false
                  description: >-
                    Force creation of a new candidate even if one with this
                    phone number already exists. **Warning:** incoming
                    calls/texts will be associated with the new candidate.
                answers:
                  type: array
                  items:
                    type: object
                    properties:
                      question:
                        type: object
                        properties:
                          body:
                            type: string
                        required:
                          - body
                      answer:
                        type: object
                        properties:
                          body:
                            type: string
                        required:
                          - body
                    required:
                      - question
                      - answer
                  description: >-
                    Candidate answers to knockout application questions that
                    will be reconfirmed in the interview. Each element has
                    `question: { body: string }` and `answer: { body: string }`.
                send_sms:
                  type: boolean
                  deprecated: true
                  description: >-
                    Compatibility field. If provided with `send_email`, it
                    controls the outreach channel; if omitted, call registration
                    uses the organization's default outreach behavior.
                send_email:
                  type: boolean
                  deprecated: true
                  description: >-
                    Compatibility field. If provided with `send_sms`, it
                    controls the outreach channel; if omitted, call registration
                    uses the organization's default outreach behavior.
              required:
                - first_name
                - last_name
                - phone_number
                - job_id
      responses:
        '200':
          description: >-
            Call registered. When the same person was already contacted on this
            job in the last 12 hours, that candidate is returned with `replayed:
            true` and nothing is created or sent. A repeat for a record the API
            made in the last 12 hours that was never contacted sends on that
            record.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      candidate_id:
                        type: string
                        description: The ID of the created or existing candidate.
                      call_id:
                        type: string
                        nullable: true
                        description: >-
                          The ID of the initiated call. May be `null` if the
                          call has not yet been placed.
                      webcall_url:
                        type: string
                        description: >-
                          URL for the candidate to take their interview via web
                          call.
                      interview_panel_url:
                        type: string
                      replayed:
                        type: boolean
                        enum:
                          - true
                        description: >-
                          Present when this request repeated a create from the
                          last 12 hours for the same person and job. The
                          existing candidate is returned and none is created.
                          Read `interview_status` for whether outreach has
                          started.
                      interview_status:
                        type: string
                        enum:
                          - not_sent
                          - in_progress
                          - completed
                        description: >-
                          With `replayed`: the returned candidate's interview
                          status, as GET /v2/candidates/{id}/interview reports
                          it. `in_progress` covers an interview that is queued
                          as well as one that was sent. If `not_sent`, start one
                          with POST /v2/candidates/{id}/interview.
                    required:
                      - candidate_id
                      - call_id
                      - webcall_url
                      - interview_panel_url
                required:
                  - data
        '400':
          description: >-
            Interview already in flight for this candidate (only when the
            screening-claim rollout is on)
          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: Job 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: >-
            A candidate on this job matching the phone or email opted out of AI
            outreach (`candidate_opted_out`, regardless of force_create), or the
            phone number was contacted on this job in the last 12 hours through
            another person's record (`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
        '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.