Skip to main content
This guide is for teams connecting their own applicant tracking system, or an ATS product they build, to Classet through the API. The integration has four parts: mirror your jobs, send each applicant, receive the interview result, and write it back.
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:
The response lists the enabled channels, the phone regions you can send to, and your rate limit.

2. Mirror your jobs

Create each ATS job once, with your id in external_id:
The job uses your organization’s default interview script unless you pass 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:
With send_sms or send_email set, this request texts and emails the person in the body and uses one interview invite. While you are testing, put in your own phone number and email.
Things to handle:
  • Retries. Send an Idempotency-Key built from your applicant id, so a retry after a timeout does not text the candidate twice.
  • 409, four cases. Branch on code and on whether the body has data:
    • conflict with data: the candidate already exists for this job. Store the candidate_id it carries. No new outreach was sent.
    • conflict without data: your first request with that Idempotency-Key is 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 the candidate_id it carries and do not retry before retry_at.
  • 429. Nothing was sent. Read exceeded_window in the body. For burst or sustained, wait for Retry-After and send again. For daily or monthly the wait can be hours or days, so queue the applicant and resume later. A 429 without exceeded_window is the request rate limit; wait for Retry-After.
  • 402 and 422. 402 means your trial interview allowance is spent, and 422 means 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.
To send the link yourself, leave out send_sms and send_email and use the webcall_url in the response.

4. Receive the result

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 type and api_version is a v2 event, and a body with event is an interview event.An interview event looks like this:
Verify the signature, answer 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.
Either way, read the result from one place:
It returns 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

Map outcome 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:
Read the job’s stage names from 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_id on the applicant, and handle all three kinds of 409.
  • 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.
  • 429 and 503 responses wait for Retry-After, and a daily or monthly invite cap queues the send.
  • Candidates with ai_opt_out are never re-sent.
  • You tested the whole loop with your own phone number and email first.

Have your agent build it

Install the classet-api skill, then give your coding agent this prompt:
Build with an AI agent covers the skill and the MCP server.