Skip to main content
POST
Create a new task within an existing script. The task will be added at the specified order position, or appended to the end if no order is specified.

Authorizations

X-API-KEY
string
header
required

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

Path Parameters

scriptId
string
required

The ID of the script to add the task to.

Body

application/json
name
string
required

Display name for the task (e.g. "Technical Assessment", "Logistics Check").

Minimum string length: 1
Example:

"Technical Assessment"

short_name
string

Short identifier. Defaults to a lowercase/underscore version of the name.

Example:

"technical"

description
string

Description of what this task covers during the interview.

questions
string[]

Questions to ask during this task.

qualifying_questions
object[]

Pass/fail questions with question and disqualifyIf fields.

instructions
string

Additional instructions for the AI agent during this task.

order
integer

Position in the interview flow (0-indexed). If omitted, task is added at the end.

Response

Task created

data
object
required