Developers
Careers API: jobs and applications from your ATS
Integrate SohamRecruit with your own website — read published jobs, accept applications, track candidate status, and receive webhook events.
The Careers API is the integration surface for your branded career site. Use it to list open jobs, submit applications straight into your pipeline, show candidates their status, and get notified of events.
It is intentionally narrow — the careers surface only. It cannot read or write your candidates, clients, or pipeline data. (A general Data API is planned separately.)
Most read endpoints need no authentication. The only credential is the Careers API Key, used server-side to submit applications without a reCAPTCHA challenge. Never put it in browser code.
Base URL https://api.sohamrecruit.com
Authentication
Most read endpoints (listing jobs, the feed, candidate status) need no authentication.
The one credential is the Careers API Key. It is provisioned on request — contact support to have one issued for your tenant. Send it as the X-Careers-Api-Key header when submitting applications from your server — a valid key that matches the job’s tenant skips the reCAPTCHA challenge. All other validation (consent, required fields, résumé checks) still applies.
The key is a secret: keep it on your server (e.g. a Cloudflare Pages secret) and never ship it in browser code. It grants no data access beyond application submission. The legacy headers X-Career-Site-Key and X-Partner-Apply-Key are still accepted as aliases.
Quickstart
Two common integrations. The first is a public read you can call from the browser; the second must run on your server so the Careers API Key stays secret.
curl "https://api.sohamrecruit.com/api/jobs/public?tenantId=YOUR_TENANT_ID"const res = await fetch(
'https://api.sohamrecruit.com/api/jobs/public?tenantId=YOUR_TENANT_ID'
)
const { jobs } = await res.json()
jobs.forEach((j) => console.log(j.title, j.location, j.currency))curl -X POST \
"https://api.sohamrecruit.com/api/jobs/public/JOB_ID/apply" \
-H "X-Careers-Api-Key: $CAREERS_API_KEY" \
-F "name=Asha Rao" \
-F "email=asha@example.com" \
-F "phone=+919876543210" \
-F "consent=true" \
-F "resume=@/path/to/resume.pdf"// Runs on YOUR backend. The browser posts the form to you;
// you forward it to SohamRecruit with the secret key.
const form = new FormData()
form.set('name', body.name)
form.set('email', body.email)
form.set('phone', body.phone)
form.set('consent', 'true')
// A CV is REQUIRED — without it the API answers 400 resume_required.
form.set('resume', body.resume, 'resume.pdf')
const res = await fetch(
`https://api.sohamrecruit.com/api/jobs/public/${jobId}/apply`,
{
method: 'POST',
headers: { 'X-Careers-Api-Key': process.env.CAREERS_API_KEY },
body: form,
},
)
const result = await res.json() // { message, statusUrl }Jobs
/api/jobs/publicNoneList a tenant's open, listed, non-expired jobs (newest first).
- Query: tenantId (uuid) — scope to one tenant (the normal case).
- Returns { jobs: PublicJob[] } with a currency per job.
- Safe to call directly from the browser.
/api/jobs/public/{id}NoneGet a single open job by id.
- Returns { job: PublicJob }, or 404 if not found / not open.
- Optional ?tenantId=: 404 unless the job belongs to that tenant. Pass it when your page is scoped to one company.
/api/jobs/feed/{tenantId}NoneXML job feed in the LinkedIn/Indeed job-wrapping format.
- application/xml response.
- Rate limit: 30 requests / 5 min / IP.
Applications
/api/jobs/public/{id}/applyCareers API Key or reCAPTCHASubmit a candidate application (multipart/form-data).
- Required fields: name, email, phone, consent, resume (PDF/DOCX ≤10MB). Optional: coverLetter, source.
- consent must be 'true' (GDPR).
- With a valid X-Careers-Api-Key, reCAPTCHA is skipped; otherwise a captchaToken is required.
- 201 → { message, statusUrl }. Errors: 400 (incl. resume_required when no CV is attached), 404, 409 (already applied), 429.
Candidate status
/api/status/{token}None (token)Sanitized application status for a candidate.
- The token is emailed to the candidate on apply (see statusUrl).
- Returns companyName, jobTitle, appliedAt, and a 4-step status timeline.
- Never exposes recruiter PII, internal notes, or raw stage names.
Webhooks
Register HTTPS endpoints under Settings → Webhooks to receive signed events. Each delivery is a JSON envelope — { event, tenantId, timestamp, data } — with three headers: X-SohamRecruit-Event, X-SohamRecruit-Signature-256, and X-SohamRecruit-Delivery.
Events: candidate.created, candidate.updated, candidate.stage_changed, candidate.application.status_changed, placement.created, interview.scheduled, application.received.
candidate.stage_changed carries the internal pipeline stage; candidate.application.status_changed carries the candidate-facing 4-step view (the same wording the portal and status page show), and only fires when that view actually changes — several internal stages map to the same step.
Verify the signature (HMAC-SHA256 of the raw request body with your endpoint secret) before trusting a payload. Respond with any 2xx to acknowledge; a non-2xx is retried up to 3 times.
import crypto from 'node:crypto'
function verifySignature(rawBody, header, secret) {
const expected =
'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex')
return crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected))
}Rate limits
Limits are per rolling 5-minute window:
• Public job board reads: 10 requests / 5 min / IP. • Job feed: 30 requests / 5 min / IP. • Apply with a valid Careers API Key: 300 requests / 5 min per tenant. • Apply with a missing/invalid key: 10 requests / 5 min / IP (reCAPTCHA still applies).
A 429 response includes a Retry-After header and a retryAfterSeconds field.
Errors
Errors use a consistent JSON envelope: { "error": "..." } (some also include a human-readable message).
Common status codes: 400 (invalid/missing fields or consent), 404 (not found / invalid token), 409 (duplicate application), 429 (rate limited, with retryAfterSeconds).
Data API — Authentication
The Data API (/api/v1/*) reads and writes your jobs, candidates, applications, and clients. Authenticate with a Data API Key sent as an HTTP Bearer token: Authorization: Bearer sk_live_….
A company admin generates keys under Settings → Data API keys, choosing a scope — read, or read + write. The raw key is shown once; keep it on your server only. Write endpoints (POST / PATCH) require a key with the write scope, otherwise they return 403.
Every key is scoped to your tenant — it can only ever read or write your own data.
Data API — Quickstart
curl "https://api.sohamrecruit.com/api/v1/jobs?status=open" \
-H "Authorization: Bearer $DATA_API_KEY"curl -X POST "https://api.sohamrecruit.com/api/v1/candidates" \
-H "Authorization: Bearer $DATA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Asha Rao","email":"asha@example.com","skills":"React, Node"}'const res = await fetch(
'https://api.sohamrecruit.com/api/v1/applications/' + applicationId,
{
method: 'PATCH',
headers: {
Authorization: 'Bearer ' + process.env.DATA_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({ status: 'interview' }),
},
)
const { application } = await res.json()Data API — Reference
All list endpoints accept `limit` (max 100) + `offset` pagination. Endpoints marked "write" need a key with the write scope.
/api/v1/jobsAPI keyList / search jobs (status, q).
/api/v1/jobswriteCreate a job.
/api/v1/jobs/{id}API keyGet a job.
/api/v1/jobs/{id}writeUpdate or close a job.
/api/v1/candidatesAPI keyList / search candidates (q, status).
/api/v1/candidateswriteCreate a candidate (email-deduped).
/api/v1/candidates/{id}API keyGet a candidate.
/api/v1/candidates/{id}writeUpdate a candidate.
/api/v1/applicationsAPI keyList applications (jobId, status).
/api/v1/applications/{id}API keyGet an application.
/api/v1/applications/{id}writeUpdate the application stage.
/api/v1/clientsAPI keyList / search clients (q, status).
/api/v1/clientswriteCreate a client.
/api/v1/clients/{id}API keyGet a client.
/api/v1/clients/{id}writeUpdate a client.
Assistant connections (MCP)
SohamRecruit can connect to your AI assistant — ChatGPT, Claude, Cursor, VS Code, Gemini CLI and other MCP clients — so it can search your candidates and jobs. On paid Pro, a note, stage move or new candidate is applied as soon as you confirm it in your assistant, and is labelled as coming from that assistant. A company admin can require approval in SohamRecruit for any of those actions instead (Settings → Integrations → Assistant connections). If a stage move would email the candidate, the tool returns confirmation_needed and must be retried with confirm=true before anything is sent. Applied changes can be undone for seven days from the Recruiting Agent page. This is a Pro feature. A free trial can search (read-only); writes unlock on paid Pro.
The server URL is https://api.sohamrecruit.com/mcp. Do not send a Data API key (sk_live_…) here — those keys are rejected. Create a personal assistant token (sk_mcp_…) in Settings → Integrations → Assistant connections, or sign in with OAuth when your assistant supports it.
Search results omit contact details and CVs. Paid Pro has a usual daily allowance of 1,000 calls per user, and a company pool of 1,000 × the number of seats, with a warning at 80%. After the usual allowance, requests are slowed rather than blocked; a hard stop applies only at twice that allowance. Trials have a tighter hard cap. Each list or search returns at most 25 results. Caps reset at midnight IST. A company admin can turn connections off, revoke tokens, and see usage.
/mcpBearer sk_mcp_… or OAuth access tokenMCP JSON-RPC (initialize, tools/list, tools/call).
- Sessionless POST. Resource/audience is https://api.sohamrecruit.com/mcp.
/.well-known/oauth-authorization-serverNoneOAuth 2.1 authorization-server metadata.
/.well-known/oauth-protected-resourceNoneProtected-resource metadata for the MCP server.
1. In ChatGPT or Claude.ai, add a custom connector / MCP server.
2. Server URL: https://api.sohamrecruit.com/mcp
3. Sign in when prompted, then Allow on the SohamRecruit consent screen.
4. Ask your assistant to search candidates or list open jobs.
5. Ask it to add a note or move a stage. On paid Pro the change is applied immediately and labelled via your assistant. If a move would email the candidate, confirm once more when asked.// Settings → Integrations → Assistant connections → Create token.
// Copy the sk_mcp_ token once. Example mcp.json:
{
"mcpServers": {
"sohamrecruit": {
"url": "https://api.sohamrecruit.com/mcp",
"headers": { "Authorization": "Bearer sk_mcp_YOUR_TOKEN" }
}
}
}Questions? Contact support