Skip to main content
POST
Creates a new knowledge base entry. The AI interviewer uses these entries to answer candidate questions and provide accurate information during calls. scope_id is required for branch, job and script scope.
  • job scope: scope_id is the job’s id. For a job created with POST /v2/jobs, that is the job_id the API returned. A v1 shortcode that differs from the job’s id is not matched.
  • script scope: also send script_id (the script’s numeric id). Interviews match script-scoped entries on script_id, so an entry created without it is stored but never used in an interview.
Returns the new entry’s id. Use List Knowledge Entries to read it back.

Authorizations

X-API-KEY
string
header
required

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

Body

application/json
scope
enum<string>
default:org

The scope level for this entry. One of org, branch, job, or script. Defaults to org (organization-wide).

Available options:
org,
branch,
job,
script
scope_id
string | null

The ID of the scoped resource. Required for branch, job, and script scopes.

entry_type
enum<string>
default:qa

The type of entry. One of qa, context, or document. Defaults to qa.

Available options:
qa,
context,
document
question
string

The question text. Required for qa type entries.

answer
string

The answer text. Required for qa type entries.

content
string

Free-form content. Used for context and document type entries.

script_id
integer

Associate this entry with a specific script. Alternative to using scope: "script" with scope_id.

Response

Created

data
object
required