curl -X POST https://api.classet.ai/v2/candidates \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+14155551234",
"job_id": "your-job-id",
"external_id": "ats-applicant-8812",
"send_sms": true,
"send_email": true
}'
{
"data": {
"candidate_id": "Xk3pQ9vT2mLr8bNc4Hd1s",
"call_id": "call_9f2c1d7e",
"webcall_url": "https://call.classet.ai/call/Xk3pQ9vT2mLr8bNc4Hd1s",
"interview_panel_url": "https://call.classet.ai/interview-panel/Xk3pQ9vT2mLr8bNc4Hd1s"
}
}
{
"error": "Candidate already exists. Set force_create to true to override.",
"code": "conflict",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f",
"data": {
"candidate_id": "Pq7wE2rT9yU4iO1aS6dF3",
"webcall_url": "https://call.classet.ai/call/Pq7wE2rT9yU4iO1aS6dF3",
"interview_panel_url": "https://call.classet.ai/interview-panel/Pq7wE2rT9yU4iO1aS6dF3"
}
}
Create Candidate
Create a new candidate and associate them with a job. Optionally trigger interview outreach via SMS and/or email. If neither send_sms nor send_email is set, the candidate is created without initiating the interview — use the returned webcall_url to share the interview link through your own channels. When outreach is sent, call_id is the id GET /v2/calls/ resolves (v1 parity); it is null when nothing was sent. A 409 means a candidate with the same email or phone already exists on this job — its links are under data.
curl -X POST https://api.classet.ai/v2/candidates \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+14155551234",
"job_id": "your-job-id",
"external_id": "ats-applicant-8812",
"send_sms": true,
"send_email": true
}'
{
"data": {
"candidate_id": "Xk3pQ9vT2mLr8bNc4Hd1s",
"call_id": "call_9f2c1d7e",
"webcall_url": "https://call.classet.ai/call/Xk3pQ9vT2mLr8bNc4Hd1s",
"interview_panel_url": "https://call.classet.ai/interview-panel/Xk3pQ9vT2mLr8bNc4Hd1s"
}
}
{
"error": "Candidate already exists. Set force_create to true to override.",
"code": "conflict",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f",
"data": {
"candidate_id": "Pq7wE2rT9yU4iO1aS6dF3",
"webcall_url": "https://call.classet.ai/call/Pq7wE2rT9yU4iO1aS6dF3",
"interview_panel_url": "https://call.classet.ai/interview-panel/Pq7wE2rT9yU4iO1aS6dF3"
}
}
send_sms nor send_email is set, the candidate is created without initiating the interview. Use the returned webcall_url to share the interview link through your own communication channels.
Pass external_id to store your own id for the applicant. It is saved where POST /v2/calls saves it, and comes back as remote_application_id and remote_candidate_id. It is not unique and the API does not deduplicate on it: two requests with the same external_id can create two candidates (for example with force_create). To make a retry safe, send an Idempotency-Key.
When outreach is sent, the response carries call_id, the id Get Call resolves, the same value v1 returned. It is null when nothing was sent.
When send_sms or send_email is true, this endpoint counts against your organization’s interview invite send caps. Those caps are shared with dashboard single-send and CSV campaign sends.
curl -X POST https://api.classet.ai/v2/candidates \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+14155551234",
"job_id": "your-job-id",
"external_id": "ats-applicant-8812",
"send_sms": true,
"send_email": true
}'
{
"data": {
"candidate_id": "Xk3pQ9vT2mLr8bNc4Hd1s",
"call_id": "call_9f2c1d7e",
"webcall_url": "https://call.classet.ai/call/Xk3pQ9vT2mLr8bNc4Hd1s",
"interview_panel_url": "https://call.classet.ai/interview-panel/Xk3pQ9vT2mLr8bNc4Hd1s"
}
}
{
"error": "Candidate already exists. Set force_create to true to override.",
"code": "conflict",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f",
"data": {
"candidate_id": "Pq7wE2rT9yU4iO1aS6dF3",
"webcall_url": "https://call.classet.ai/call/Pq7wE2rT9yU4iO1aS6dF3",
"interview_panel_url": "https://call.classet.ai/interview-panel/Pq7wE2rT9yU4iO1aS6dF3"
}
}
send_sms and send_email to true for optimal completed interview conversion.429 Interview invite limit exceeded and does not create the candidate. The body adds message, exceeded_window, limit and retry_at, and Retry-After says when to try again. code is rate_limited, the same as a request-rate 429, so tell them apart by exceeded_window.Authorizations
Body
Response
Replayed: this repeats a create from the last 12 hours for the same person (same phone, email and name) and job. The existing candidate is returned with replayed: true and no candidate is created. If the request asks for outreach and that candidate was never contacted, the outreach is started on it and interview_status is in_progress.
Was this page helpful?