POST /v2/jobs/generate and POST /v2/scripts/generate save nothing — you review the output and create the job or script yourself. POST /v2/onboard is the one that writes to your account.
Generate a job posting
Create a complete job description from just a title and optional context.POST /v2/jobs. Two things to fill in before you create the job:
- Location. The output’s
locationisnullunless you sent alocation. When you did, it comes back as{ "location_str": "...", "workplace_type": "onsite" }.POST /v2/jobsrequires alocationwith aworkplace_type(remote,onsiteorhybrid), so set one yourself when the output has none, and correctonsiteif it’s wrong. - Script. The output carries no
script_id. Without one,POST /v2/jobsuses your organization’s default script.
Generate an interview script
Create a structured interview script with screening questions tailored to a role.job_title is required; job_description and focus_areas are optional. Returns a script name, description, and ordered tasks with the questions the AI interviewer will ask. Nothing is saved. To use the script:
- Create the script with
POST /v2/scriptsand{ "name": <name>, "description": <description> }. It returnsscript_id.POST /v2/scriptsdoesn’t accept the generatedtasksarray: the new script starts with Classet’s standard phone-screen tasks, and atasksfield in the body is ignored. - Add each generated task with
POST /v2/scripts/{scriptId}/tasks, passing itsname,description,questionsandqualifying_questions. Leave outorder, and the API appends the task after the last one. Don’t pass the generatedorder: generated tasks are numbered from 1, the standard tasks already use those numbers, and the API stores whateverorderit’s given, so generated questions end up mixed in with the standard Introduction. Skip any generated task that only greets the candidate or wraps up the call, such as “Introduction” or “Closing”. The standard Introduction and Next Steps tasks already do that, and adding them would make the call repeat itself. - Appended tasks land after the standard Next Steps task. Read the script with
GET /v2/scripts/{scriptId}and sendPUT /v2/scripts/{scriptId}/reorder-taskswith every task in the order you want, Next Steps last. Pass each task’sidastask_id; thetask_idfield on a task is not its id. - For each standard task you don’t want, send
PATCH /v2/script-tasks/{taskId}with the task’sidand{ "removed": true }. Keep Introduction and Next Steps: they open and close the call. - Attach the script to a job with
PATCH /v2/jobs/{jobId}and{ "script_id": <script_id> }.
Onboard a company
Set up an organization from a single description. Onboarding creates jobs and knowledge base entries.201 with the jobs it created and the number of knowledge entries it added. What it does and doesn’t do:
- It generates no scripts. Every job it creates uses your organization’s default script, so the organization must have one; without it the call returns
400.jobs_created[].script_idis that default script’s id. To give a job its own script, generate one and attach it as above. - It creates at most five jobs. With no
roles_to_hire, it suggests roles from the description. - The jobs are published at once, with a generated description and no location. Each job’s candidate-facing title is the role followed by
- Remote(for exampleRegistered Nurse - Remote). Review them in the dashboard before candidates reach them. - A failed call can leave partial resources. Onboarding removes what it created when a write fails or the AI returns nothing, but not when the AI provider errors or times out partway. The cleanup is also best-effort. Before you retry a failed call, list your jobs (
GET /v2/jobs) and knowledge entries (GET /v2/knowledge) and delete anything it left behind, or a retry creates duplicates.
Best practices
- Provide as much context as possible (
brief_description,job_description,company_description) for better results - AI-generated content is a starting point — review and customize before going live
- Use the knowledge base to give the AI interviewer company-specific context (benefits, culture, logistics)