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

# Create Job

> Create a new job posting for your organization.

Create a new job posting in your organization. Jobs default to the published state; pass `state` to create a draft or another supported state.

## Request body

| Field | Type | Required | Description |
| - | - | - | - |
| `title` | string | Yes | Job title displayed to candidates. |
| `description` | string | Yes | Full job description (supports plain text). |
| `external_id` | string | No | Your own internal job identifier. Stored as-is and searchable with `GET /v2/jobs?external_id=`. |
| `location` | object | Yes | Location details for the job (see below). |
| `wage_lower_bound` | number | No | Lower bound of the compensation range. |
| `wage_upper_bound` | number | No | Upper bound of the compensation range. |
| `wage_type` | string | No | Compensation frequency: `hourly`, `daily`, `weekly`, `monthly`, or `annually`. |
| `script_id` | number | No | ID of the interview script to use for AI phone screening. Defaults to your organization's default script. |
| `benefits` | string | No | Benefits description. |
| `faqs` | array | No | Array of FAQ objects for the job posting. |
| `application_questions` | array | No | Screening questions presented to applicants. |
| `additional_subscriber_emails` | array | No | Email addresses to notify on new applications. |
| `custom_data` | object | No | Arbitrary key-value metadata to attach to the job. |

### Additional editable job fields

Both `POST /v2/jobs` and `PATCH /v2/jobs/{jobId}` accept these fields alongside the existing request fields:

| Fields | Type | Behavior |
| - | - | - |
| `full_title`, `full_description` | string | Override the derived display title or full description. |
| `requirements`, `employment_type`, `code` | string or null | Set or clear the corresponding job value. |
| `geo` | string or null | WKT `POINT(longitude latitude)`, with longitude −180–180 and latitude −90–90. Updates `location.coords`, which the database uses to derive `geo`; null clears coordinates. |
| `wage_currency` | string | Three uppercase letters, such as `USD` or `CAD`. |
| `company` | string | Display company name; creates default to the organization name. |
| `branch_id` | string or null | An active branch owned by your organization; null clears the branch. |
| `state` | string | `draft`, `published`, `closed`, `archived`, `user_draft`, or `parsing`. Creates default to `published`. |
| `url` | string or null | An HTTP or HTTPS job URL. |
| `screening_requirements` | object or null | Structured screening requirements. |
| `interview_script_id` | integer | Alias for `script_id`; both must match if provided. The script must belong to your organization. |
| `ats_ai_recruiter_on` | boolean | Turn screening on or off. Enabling checks the applicable plan when the screening entitlement gate is active. |
| `subscribers` | UUID array | Replace subscribers with users in your organization who can access the job's branch. |
| `benefits_array` | string array or null | Structured benefits. |
| `languages_enabled` | string array | Newly enabled interview languages must be included in your organization's entitlement. |

Unknown and server-owned fields are ignored. Clients cannot set identity (`id`, `shortcode`, `slug`),
organization, creator, boost/billing fields, integration bindings, or indexing controls.
Omitted PATCH fields retain their stored values. Arrays replace the previous array.
Changing a branch also validates retained subscribers and an already-enabled screening setting.
If a retained subscriber lacks access to the new branch, include an eligible replacement `subscribers` list in the same request.

`description` continues to populate both description columns unless `full_description` is supplied.
`script_id`, `external_id`, `faqs`, `additional_subscriber_emails`, and `custom_data` keep their existing behavior.

### Location object

| Field | Type | Description |
| - | - | - |
| `city` | string | City name. |
| `region` | string | State or region name. |
| `country` | string | Country name. |
| `zip_code` | string | Postal/ZIP code. |
| `region_code` | string | State/region abbreviation (e.g. `TX`). |
| `country_code` | string | ISO country code (e.g. `US`). |
| `location_str` | string | Freeform location string (e.g. "Austin, TX"). |
| `workplace_type` | string | One of `remote`, `onsite`, or `hybrid`. |

`location.coords` also accepts `{ "longitude": -97.74, "latitude": 30.27 }`. When both `geo` and `location.coords` are supplied, `geo` takes precedence.

### FAQ object

| Field | Type | Description |
| - | - | - |
| `question` | string | The FAQ question. |
| `answer` | string | The FAQ answer. |

### Application question object

| Field | Type | Description |
| - | - | - |
| `question` | string | The screening question text. |
| `type` | string | Question type: `yes_no`, `text`, or `multiple_choice`. |
| `required` | boolean | Whether the candidate must answer this question. |
| `disqualify_on` | string | Answer value that disqualifies the candidate (e.g. `"no"`). |
| `options` | array | Array of option strings (required for `multiple_choice` type). |

### Subscriber email object

| Field | Type | Description |
| - | - | - |
| `email` | string | Email address. |
| `first_name` | string | Subscriber's first name. |
| `last_name` | string | Subscriber's last name. |

## Example

```bash theme={null}
curl -X POST "https://api.classet.ai/v2/jobs" \
  -H "X-API-KEY: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "HVAC Technician",
    "external_id": "REQ-2026-118",
    "description": "Install, maintain, and repair HVAC systems for residential and commercial clients.",
    "location": {
      "city": "Denver",
      "region": "Colorado",
      "country_code": "US",
      "workplace_type": "onsite"
    },
    "wage_lower_bound": 25,
    "wage_upper_bound": 38,
    "wage_type": "hourly",
    "script_id": 12,
    "benefits": "Health insurance, PTO, tool allowance",
    "faqs": [
      {
        "question": "Is EPA certification required?",
        "answer": "Yes, EPA 608 certification is required."
      }
    ],
    "application_questions": [
      {
        "question": "Do you hold an EPA 608 certification?",
        "type": "yes_no",
        "required": true,
        "disqualify_on": "no"
      },
      {
        "question": "How many years of HVAC experience do you have?",
        "type": "text",
        "required": true
      }
    ],
    "additional_subscriber_emails": [
      {
        "email": "ops-lead@example.com",
        "first_name": "Mike",
        "last_name": "Johnson"
      }
    ],
    "custom_data": {
      "source": "api",
      "department": "HVAC"
    }
  }'
```

```json theme={null}
{
  "data": {
    "job_id": "k7Hq2xVbN"
  }
}
```

> [!NOTE]
>
> The `script_id` must reference an existing interview script in your organization. If you omit it, the job uses your organization's default script. If your organization has no default script, the request fails with `400 validation_error`.


## OpenAPI

````yaml POST /v2/jobs
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/jobs:
    post:
      tags:
        - Jobs
      summary: Create a job
      description: Create a new job posting for your organization.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                  example: Senior Software Engineer
                description:
                  type: string
                  minLength: 1
                  example: We are looking for...
                external_id:
                  type: string
                  minLength: 1
                  example: CC-REQ-48217
                  description: >-
                    Your own internal job identifier. Stored as-is and
                    searchable via GET /v2/jobs?external_id=. Independent of any
                    ATS sync.
                location:
                  $ref: '#/components/schemas/Location'
                wage_lower_bound:
                  type: number
                  example: 120000
                wage_upper_bound:
                  type: number
                  example: 180000
                wage_type:
                  type: string
                  enum:
                    - hourly
                    - daily
                    - weekly
                    - monthly
                    - annually
                  example: annually
                script_id:
                  type: integer
                  example: 42
                benefits:
                  type: string
                  example: Health insurance, 401k, unlimited PTO
                faqs:
                  type: array
                  items:
                    $ref: '#/components/schemas/FAQ'
                  minItems: 1
                application_questions:
                  type: array
                  items:
                    $ref: '#/components/schemas/ApplicationQuestion'
                additional_subscriber_emails:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        nullable: true
                        description: Subscriber ID from your system
                      email:
                        type: string
                        format: email
                      first_name:
                        type: string
                      last_name:
                        type: string
                      remote_id:
                        type: string
                        nullable: true
                        description: Remote subscriber ID from ATS
                      hiring_team_roles:
                        type: array
                        items:
                          type: string
                        description: Hiring team roles
                    required:
                      - email
                custom_data:
                  type: object
                  nullable: true
                  additionalProperties:
                    nullable: true
                full_title:
                  type: string
                  minLength: 1
                  description: Override the derived display title.
                full_description:
                  type: string
                  minLength: 1
                  description: >-
                    Override the full description; otherwise description is
                    used.
                requirements:
                  type: string
                  nullable: true
                geo:
                  type: string
                  nullable: true
                  example: POINT(-97.74 30.27)
                employment_type:
                  type: string
                  nullable: true
                  minLength: 1
                wage_currency:
                  type: string
                  pattern: ^[A-Z]{3}$
                  example: USD
                company:
                  type: string
                  minLength: 1
                  description: Display company name; defaults to your organization name.
                branch_id:
                  type: string
                  nullable: true
                  minLength: 1
                  description: >-
                    An active branch belonging to your organization, or null for
                    no branch.
                code:
                  type: string
                  nullable: true
                state:
                  type: string
                  enum:
                    - draft
                    - published
                    - closed
                    - archived
                    - user_draft
                    - parsing
                  description: Job lifecycle state. New jobs default to published.
                url:
                  type: string
                  nullable: true
                  format: uri
                screening_requirements:
                  type: object
                  nullable: true
                  additionalProperties:
                    nullable: true
                interview_script_id:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  description: Alias for script_id. If both are supplied they must match.
                ats_ai_recruiter_on:
                  type: boolean
                  description: >-
                    Enable or pause AI screening. Enabling requires the
                    applicable plan entitlement and an API key with the
                    `interviews:send` scope.
                subscribers:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: >-
                    User IDs in your organization with access to the job branch.
                    Replaces the subscriber list.
                benefits_array:
                  type: array
                  nullable: true
                  items:
                    type: string
                languages_enabled:
                  type: array
                  items:
                    type: string
                    pattern: ^[a-z]{2}$
                  description: >-
                    Interview languages. Newly enabled languages must be
                    included in your organization entitlement.
              required:
                - title
                - description
                - location
      responses:
        '201':
          description: Job created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      job_id:
                        type: string
                        example: abc123def
                        description: >-
                          The v2 job ID (`jobs.id`), as GET /v2/jobs returns it.
                          `job_shortcode`, where present, is the v1 shortcode of
                          the same job; every `{jobId}` and `job_id` input
                          accepts either.
                    required:
                      - job_id
                required:
                  - data
        '400':
          description: Validation 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
        '403':
          description: Language or AI screening entitlement required
          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: Internal 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
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Location:
      type: object
      properties:
        coords:
          type: object
          nullable: true
          properties:
            longitude:
              type: number
              minimum: -180
              maximum: 180
            latitude:
              type: number
              minimum: -90
              maximum: 90
          required:
            - longitude
            - latitude
        city:
          type: string
          example: San Francisco
        region:
          type: string
          example: California
        country:
          type: string
          example: United States
        zip_code:
          type: string
          example: '94105'
        region_code:
          type: string
          example: CA
        country_code:
          type: string
          example: US
        location_str:
          type: string
          example: San Francisco, CA
        workplace_type:
          type: string
          enum:
            - remote
            - onsite
            - hybrid
          example: onsite
      required:
        - workplace_type
      description: Job location details
    FAQ:
      type: object
      properties:
        question:
          type: string
          minLength: 1
          example: What are the working hours?
        answer:
          type: string
          minLength: 1
          example: Monday to Friday, 9am-5pm
      required:
        - question
        - answer
      description: Frequently asked question
    ApplicationQuestion:
      type: object
      properties:
        question:
          type: string
          example: Do you have a valid driver's license?
          description: Question text (v2 format)
        type:
          type: string
          enum:
            - yes_no
            - text
            - multiple_choice
          example: yes_no
        required:
          type: boolean
          default: true
        disqualify_on:
          type: string
          example: 'No'
          description: Answer that disqualifies the candidate
        options:
          type: array
          items:
            type: string
          example:
            - 'Yes'
            - 'No'
          description: Options for multiple choice questions
        id:
          type: string
          description: Unique question ID from your system (v1 format)
        remote_id:
          type: string
          nullable: true
          description: Question ID in your ATS
        title:
          type: string
          description: Question text (v1 format — alias for question)
        description:
          type: string
          nullable: true
          description: Elaboration on the question
        format:
          nullable: true
          description: >-
            Display format object (v1 format — TEXT, SINGLE_SELECT, BOOLEAN,
            etc.)
        index:
          type: number
          nullable: true
          description: Display order in application
        precondition_question_id:
          type: string
          nullable: true
          description: ID of preceding conditional question
        precondition_options:
          nullable: true
          description: Conditional answer options
      description: >-
        Screening/knockout question. Accepts both v2 simplified and v1 complex
        ATS formats.
  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.