Classet already integrates with several ATS platforms directly. Ask success@classet.ai before you build one.
How the records map
Classet does not look candidates up by your
external_id, so save candidate_id on your applicant record when you create it.
1. Check your key
Create a key in Developer Settings, then confirm it and read the settings that decide whether sends succeed:2. Mirror your jobs
Create each ATS job once, with your id inexternal_id:
script_id. Before creating a job, check whether it already exists:
3. Send each applicant
When an applicant reaches the stage where you want them screened, create the candidate and start outreach in one call:- Retries. Send an
Idempotency-Keybuilt from your applicant id, so a retry after a timeout does not text the candidate twice. 409, four cases. Branch oncodeand on whether the body hasdata:conflictwithdata: the candidate already exists for this job. Store thecandidate_idit carries. No new outreach was sent.conflictwithoutdata: your first request with thatIdempotency-Keyis still running. Wait a few seconds and retry with the same key.candidate_opted_out: this person opted out of the AI recruiter. Nothing was sent. Do not retry; route them to a recruiter.recently_contacted: the phone number or email was contacted for this job in the last 12 hours through another candidate record. Nothing was created or sent. Store thecandidate_idit carries and do not retry beforeretry_at.
429. Nothing was sent. Readexceeded_windowin the body. Forburstorsustained, wait forRetry-Afterand send again. Fordailyormonthlythe wait can be hours or days, so queue the applicant and resume later. A429withoutexceeded_windowis the request rate limit; wait forRetry-After.402and422.402means your trial interview allowance is spent, and422means the request cannot be processed as sent, for example a candidate who cannot be reached. Neither will succeed on a retry. Error handling lists every code.
send_sms and send_email and use the webcall_url in the response.
4. Receive the result
- Webhook
- Polling
Set a webhook URL in Developer Settings. Classet sends one of two formats to it, depending on whether v2 events are enabled for your organization. Handle both: a body with Verify the signature, answer
type and api_version is a v2 event, and a body with event is an interview event.An interview event looks like this:
2xx quickly, then fetch the full interview with candidate_id. Ignore event types you do not handle, and deduplicate v2 events on event_id. Keep a poll running as well, at a slower interval, so a missed delivery still gets picked up.status, outcome, summary, question_answers, custom_data, the transcript and a recording_url. The recording URL expires, so store the summary and answers, and fetch a recording through Download call recording when someone asks to hear it.
5. Write it back to your ATS
Mapoutcome to what your recruiters should see. Only the first three values mean an interview took place.
outcome is null until something decides the interview. The Glossary says when each value is set.
6. Keep stages in step (optional)
If recruiters also work in the Classet dashboard, send your stage changes so both systems agree:GET /v2/jobs/{jobId}/stages and check meta.source. When it is default_stage_names or ats_stages, the job has a configured list: stage must be one of those names, and anything else returns 422 with the valid names in the error. When it is in_use, the job has no configured list, the response shows only the stages its applications are in today, and any stage name is accepted. Use Disqualify application for a rejection, and Stop interview when an applicant is withdrawn before they finish.
To read changes made in Classet, the polling loop in step 4 already returns them: each application carries stage, status (active, hired or rejected), disqualified, hired_at and rejected_at.
Before you go live
- Every create call sends an
Idempotency-Key. - You store
candidate_idon the applicant, and handle all three kinds of409. - Your webhook handler verifies the signature against the raw body and accepts both event formats.
- A poll runs behind the webhook, with the watermark rule from step 4.
-
429and503responses wait forRetry-After, and adailyormonthlyinvite cap queues the send. - Candidates with
ai_opt_outare never re-sent. - You tested the whole loop with your own phone number and email first.
Have your agent build it
Install theclasset-api skill, then give your coding agent this prompt: