curl -X POST https://api.classet.ai/v2/knowledge \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"entry_type": "qa",
"question": "What is the pay range for this role?",
"answer": "The pay range is $25-35/hour depending on experience and certifications.",
"scope": "job",
"scope_id": "k7Hq2xVbN"
}'
{
"data": {
"id": 3
}
}
Knowledge Base
Create Knowledge Entry
Add a new entry to the knowledge base. Entries can be scoped to org, branch, job, or script level.
POST
/
v2
/
knowledge
curl -X POST https://api.classet.ai/v2/knowledge \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"entry_type": "qa",
"question": "What is the pay range for this role?",
"answer": "The pay range is $25-35/hour depending on experience and certifications.",
"scope": "job",
"scope_id": "k7Hq2xVbN"
}'
{
"data": {
"id": 3
}
}
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.
jobscope:scope_idis the job’sid. For a job created withPOST /v2/jobs, that is thejob_idthe API returned. A v1 shortcode that differs from the job’sidis not matched.scriptscope: also sendscript_id(the script’s numeric id). Interviews match script-scoped entries onscript_id, so an entry created without it is stored but never used in an interview.
id. Use List Knowledge Entries to read it back.
curl -X POST https://api.classet.ai/v2/knowledge \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"entry_type": "qa",
"question": "What is the pay range for this role?",
"answer": "The pay range is $25-35/hour depending on experience and certifications.",
"scope": "job",
"scope_id": "k7Hq2xVbN"
}'
{
"data": {
"id": 3
}
}
Authorizations
Body
application/json
Was this page helpful?