Skip to main content
POST
Uses AI to generate a structured interview script tailored to a specific role. Returns tasks with questions and qualifying criteria. The body takes job_title (required), job_description and focus_areas. The endpoint saves nothing. To use the script, create it with Create Script (POST /v2/scripts) using the generated name and description. Create Script doesn’t accept tasks, so add each generated task with POST /v2/scripts/{scriptId}/tasks, then attach the returned script_id to a job with Update Job. The new script starts with Classet’s standard tasks, which are already numbered from 1. When you add a generated task, leave out its order so it appends, and skip generated greeting or wrap-up tasks like “Introduction” and “Closing” that duplicate the standard Introduction and Next Steps. Then use Reorder Tasks to move Next Steps back to the end. You can remove standard tasks you don’t want with PATCH /v2/script-tasks/{taskId} and { "removed": true }, but keep Introduction and Next Steps. See AI endpoints for the full steps.

Authorizations

X-API-KEY
string
header
required

Your Classet API key. Create and rotate keys in Settings → API.

Body

application/json
job_title
string
required

The role to generate the script for.

Minimum string length: 1
Example:

"Senior Software Engineer"

job_description
string

Additional context about the role, requirements, or company.

Example:

"Full-stack role building payment infrastructure..."

focus_areas
string[]

Specific areas to focus the interview on (e.g. ["technical skills", "safety knowledge", "availability"]).

Example:

Response

Generated script data

data
object
required