This page is the contract: authentication, the two kinds of key, every route with its request and response, the fields we recognise, and every error. If you are starting out, the quickstart is shorter; come back here when you need the detail.
Base URL
https://lbhikadtsmbnzkzetpyb.supabase.co/functions/v1/api/v1
Paths below are relative to it. Everything is HTTPS; responses are JSON (application/json) unless a form asked to be redirected.
Authentication
Send your key in one of three ways. Use one per request.
| How | Example | For |
|---|---|---|
Authorization header |
Authorization: Bearer rs_sk_… |
Code |
X-Api-Key header |
X-Api-Key: rs_sk_… |
Code, Zapier, Make, form-tool webhooks |
api_key body field |
<input type="hidden" name="api_key" value="rs_pk_…"> |
HTML forms and tools that cannot set headers |
If you send more than one, the first of Authorization: Bearer, X-Api-Key and api_key whose value is shaped like a key (rs_sk_ or rs_pk_ followed by 40 characters) is used. A value that is not shaped like a key, such as a Bearer token that a gateway or an SDK added, is skipped, not an error. A key in the query string (?key=, ?api_key=) is never read: URLs end up in server logs and Referer headers. A missing, malformed or revoked key gets 401 invalid_key.
Keys
Keys are created and revoked by the workspace owner in the app, under Settings → Sources → Developer & API (New key). A workspace can have up to 20 live keys. The full key is shown once; afterwards the app shows its first 12 characters (its prefix).
Secret keys (rs_sk_…, shown as Secret in the app) can call every route. Use them only from servers and server-side tools.
Public form keys (rs_pk_…, shown as Public) are made to sit in a web page. They can call only:
GET /me(key and workspace only)GET /jobsandGET /jobs/:idPOST /applicationsPOST /candidates
Any other route answers 403 forbidden. Every public-key request must come from one of the key’s allowed origins (the Allowed origins box when you create the key, one per line):
- We read the
Originheader, or, when there is none, the origin of theRefererheader. Neither present means403 origin_not_allowed. - Matching is exact on scheme, host and port:
https://example.comdoes not matchhttps://www.example.comorhttps://example.com:8443. https://*.example.commatches any subdomain ofexample.com, but notexample.comitself.http://origins are accepted only forlocalhostor127.0.0.1.- A page opened from disk sends
Origin: null, which never matches.
CORS. Browsers send a preflight OPTIONS request before a call with an X-Api-Key header. Any OPTIONS request answers 204 and echoes the request’s Origin; the allowlist is enforced on the real request that follows, whose response echoes the origin in Access-Control-Allow-Origin only when the request used a public key and the origin is on its list; a secret key’s responses carry no CORS headers. Those responses also set Access-Control-Expose-Headers, listing X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After and X-Workspace-Over-Cap, so browser code can read them.
Public keys also have a per-IP limit on top of the per-key rate limit: 60 requests per 10 minutes from one IP address.
Plans and caps
The workspace owner needs a paid plan (Basic, Pro or Team Pro). Otherwise every request answers 402 plan_required.
Plans cap open jobs and candidates, but API writes are never refused for being over a cap: inbound applicants are never dropped. While the workspace is over either cap, every authenticated response carries:
X-Workspace-Over-Cap: true
The header is absent when the workspace is within its plan, and on responses that stop before the key is accepted (401, 402, 413, 415, 422 for an unreadable body, 429). GET /me shows the numbers.
Requests
POST bodies can be any of:
application/jsonapplication/x-www-form-urlencodedmultipart/form-data(needed to upload a resume file)
Anything else answers 415 unsupported_content_type. A body over 12 MB answers 413 payload_too_large. A JSON body that is not valid JSON, or is not an object, answers 422 validation_failed. A POST body is read before the key is checked (a form can carry its key in the body), so a caller with no valid key can get 415, 413 or 422 before 401. Ids are UUIDs. Timestamps are ISO 8601, in UTC in responses.
Errors
Every error has the same shape. fields appears on validation_failed and names each field that is wrong; message is for people and may change wording, so branch on error.
{
"error": "validation_failed",
"message": "Some fields are missing or invalid.",
"fields": {
"name": "Required.",
"email": "Give an email, a phone number or a LinkedIn URL."
}
}
| Status | error |
Meaning |
|---|---|---|
| 401 | invalid_key |
No key, or the key is malformed or revoked. |
| 402 | plan_required |
The workspace owner is not on a paid plan. |
| 403 | origin_not_allowed |
A public key was used from an origin it does not list, or with no origin at all. |
| 403 | forbidden |
A public key was used on a route only secret keys can call. |
| 404 | not_found |
No such route, or no such job, candidate or application in this workspace (another workspace’s job looks the same). Reading a job synced from a connected ATS is not_found too; submitting to one is job_not_open. |
| 405 | method_not_allowed |
The route exists but not with this method. |
| 413 | payload_too_large |
The request body is over 12 MB. |
| 415 | unsupported_content_type |
The body is not JSON, form-encoded or multipart. |
| 422 | validation_failed |
A field is missing or invalid; see fields. Also a body that is not valid JSON or not a JSON object. |
| 422 | job_not_open |
The job exists but is not open (draft, on hold, filled or closed), or it was synced from a connected ATS. |
| 429 | rate_limited |
Too many requests; see Retry-After. |
| 500 | internal_error |
Our fault. Safe to retry with the same idempotency key. |
Forms with _redirect. A form can send a _redirect address. With a public key it must be on one of the key’s allowed origins; with a secret key any https:// address is followed. The response is then a 303 See Other instead of JSON: to the address unchanged on success, and to the address with error=<code> added to its query string on failure (for example ?error=job_not_open). An invalid _redirect (not on an allowed origin for a public key, not an https:// address for a secret key, not an address at all, or carrying a user name or password) is ignored and you get JSON; it is never an error of its own. Errors raised before the key is checked (413, 415 and an unreadable body) are always JSON.
The spam trap. A non-empty _gotcha field gets 200 {"ok": true} (or the success redirect), and nothing is stored.
Rate limits
| Key | Limit |
|---|---|
| Secret | 120 requests per minute |
| Public | 30 requests per minute |
Limits are per key, in fixed one-minute windows. Every response carries:
| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Requests allowed in the window. |
X-RateLimit-Remaining |
Requests left in the window. |
X-RateLimit-Reset |
When the window resets, in Unix seconds. |
Over the limit you get 429 rate_limited with a Retry-After header in seconds.
Pagination
List routes return:
{ "data": [ … ], "next_cursor": "MjAyNi0xMC0xNFQwOToxMjowMFp8MmE5ZTZi…" }
Results are newest first (by created_at, then id). Ask for up to limit items per page (default 50, maximum 100; larger values are treated as 100 and values below 1 as 1). To get the next page, send the same request with cursor set to the last next_cursor. next_cursor is null on the last page. Treat cursors as opaque.
Routes
| Route | Secret | Public |
|---|---|---|
GET /me |
Yes | Key and workspace only |
GET /jobs |
Yes | Yes |
GET /jobs/:id |
Yes | Yes |
POST /applications |
Yes | Yes |
POST /candidates |
Yes | Yes |
GET /candidates |
Yes | No |
GET /candidates/:id |
Yes | No |
GET /applications |
Yes | No |
GET /applications/:id |
Yes | No |
GET /me
The key, its workspace, the plan and how much of it is used. A good first call to check a key.
{
"key": { "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f2a3b4c5d", "name": "Careers site", "kind": "secret", "prefix": "rs_sk_q8Zt3m" },
"workspace": { "id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d", "name": "Northside Talent" },
"plan": { "id": "pro", "paid": true },
"usage": { "open_jobs": 12, "candidates": 1840 },
"limits": { "jobs": 25, "candidates": 5000 }
}
plan.id is one of freelancer, basic, pro, team_pro. A limits value of null means unlimited. With a public key, only key and workspace are returned.
GET /jobs
Open jobs created in the app. Jobs synced from a connected ATS are never listed. Paginated.
| Query | Meaning |
|---|---|
status |
Secret keys only: draft, open, on_hold, filled or closed. Default open. Public keys always get open jobs. |
limit, cursor |
See pagination. |
{
"data": [
{
"id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c",
"title": "Senior Data Engineer",
"location": "Austin, TX",
"location_city": "Austin",
"location_region": "TX",
"location_country_code": "US",
"remote_type": "hybrid",
"employment_type": "full_time",
"status": "open",
"pay": { "min": 140000, "max": 165000, "currency": "USD", "period": "year" },
"openings": 1,
"published": true,
"stages": [
{ "key": "sourced", "name": "Sourced", "type": "lead", "position": 1 },
{ "key": "applied", "name": "Applied", "type": "applied", "position": 2 },
{ "key": "screened", "name": "Screened", "type": "screen", "position": 3 },
{ "key": "submitted", "name": "Submitted to client", "type": "submitted", "position": 4 },
{ "key": "client_interview", "name": "Client interview", "type": "interview", "position": 5 },
{ "key": "offer", "name": "Offer", "type": "offer", "position": 6 },
{ "key": "placed", "name": "Placed", "type": "hired", "position": 7 }
],
"created_at": "2026-10-02T15:04:11Z",
"updated_at": "2026-10-09T08:30:52Z"
}
],
"next_cursor": null
}
remote_type:onsite,hybridorremote.employment_type:full_time,part_time,contract,temporaryorinternship.payisnullwhen the job hides its pay, or has none.minormaxcan benullon their own.periodishour,day,week,monthoryear.publishedistruewhen the job is posted to job boards from the app.stagesare the job’s pipeline in order. A stage’skeyis stable;nameis what the recruiter calls it. Every job has its own stages, so read them per job.
GET /jobs/:id
One job, in the same shape plus description (text, may be null). A job synced from your ATS, or one in another workspace, is 404 not_found. A public key gets 404 for jobs that are not open.
POST /applications
Creates an application: the candidate (found or created) applied to a job. The application lands in the job’s first stage of type applied, with source_channel api. See fields for everything the body can carry. Required: job_id, a name, and at least one of an email, a phone or a LinkedIn URL.
{
"job_id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c",
"name": "Jane Doe",
"email": "jane.doe@example.com",
"phone": "+1 555 0142",
"resume_url": "https://files.example.com/cv/jane-doe.pdf",
"Notice period": "4 weeks"
}
With a secret key, 201 Created when the application is new:
{
"application": {
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"job_id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c",
"candidate_id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"stage": { "key": "applied", "name": "Applied", "type": "applied" },
"status": "active",
"created": true
},
"candidate": { "id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94", "matched": false }
}
Still with a secret key, 200 OK, same shape with "created": false, when it is a duplicate: either the idempotency key was seen before, or this person already has an application on this job. You get the existing application; nothing is changed. candidate.matched is true when the person matched someone already in your workspace by email, phone or LinkedIn.
With a public key the answer is always 201 Created with {"ok": true}: no ids, and no matched or created, and the same whether the person and application were new, a duplicate or an idempotent replay. A page in public view must not be able to ask whether someone is already in your workspace.
{ "ok": true }
When a resume could not be stored, the application is still created and the response adds a warnings list (to {"ok": true} for a public key):
{ "warnings": ["resume_skipped: file type image/gif is not accepted"] }
Errors specific to this route: 404 not_found for an unknown job or another workspace’s job, 422 job_not_open for a job that is not open or was synced from a connected ATS, and 422 validation_failed for a bad body.
POST /candidates
Adds a person to the workspace without applying them to a job: your talent pool. Takes the same person fields as an application (name, email, phone, LinkedIn, headline, location, skills, source and resume; see fields). Required: a name, and at least one of an email, a phone or a LinkedIn URL. Fields we do not recognise are ignored here; answers belong to applications.
With a secret key, 201 Created for a new person, 200 OK when they matched someone already in the workspace by email, phone or LinkedIn:
{ "candidate": { "id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94", "matched": true } }
A match returns the existing person and does not overwrite what you already have on them. With a public key the answer is always 201 Created with {"ok": true}, whether the person was new or matched.
GET /candidates
Secret keys only. Paginated, newest first. Only your workspace’s own candidates are returned; people synced from a connected ATS never are.
| Query | Meaning |
|---|---|
q |
Part of a name (any case), or a whole email address. Part of an email address does not match. |
updated_since |
Only people changed at or after this ISO 8601 time. |
source |
Only people with this source, e.g. api or website. |
limit, cursor |
See pagination. |
{
"data": [
{
"id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"full_name": "Jane Doe",
"emails": ["jane.doe@example.com"],
"phones": ["+1 555 0142"],
"linkedin_url": "https://www.linkedin.com/in/janedoe",
"headline": "Data engineer",
"location": "Austin, TX",
"skills": ["Python", "SQL"],
"source": "api",
"created_at": "2026-10-14T09:12:00Z",
"updated_at": "2026-10-14T09:12:00Z"
}
],
"next_cursor": null
}
GET /candidates/:id
One candidate, in the same shape plus:
resume_url: a link to the resume. For an uploaded file it is a signed link that works for one hour; fetch a fresh one rather than storing it. For a resume sent as a link, it is that link.nullwhen there is none.applications: every application this person has in the workspace.
{
"id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"full_name": "Jane Doe",
"…": "the list fields above",
"resume_url": "https://lbhikadtsmbnzkzetpyb.supabase.co/storage/v1/object/sign/ats-resumes/…",
"applications": [
{
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"job": { "id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c", "title": "Senior Data Engineer" },
"stage": { "key": "screened", "name": "Screened", "type": "screen" },
"status": "active",
"applied_at": "2026-10-14T09:12:00Z",
"created_at": "2026-10-14T09:12:00Z",
"updated_at": "2026-10-14T11:40:05Z"
}
]
}
GET /applications
Secret keys only. Paginated, newest first. Only your workspace’s own applications are returned; applications synced from a connected ATS never are.
| Query | Meaning |
|---|---|
job_id |
Only this job’s applications. |
status |
active, rejected, withdrawn or placed. |
stage |
A stage key, e.g. screened. |
updated_since |
Only applications changed at or after this ISO 8601 time. |
limit, cursor |
See pagination. |
{
"data": [
{
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"job_id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c",
"candidate_id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"stage": { "key": "screened", "name": "Screened", "type": "screen" },
"status": "active",
"source_channel": "api",
"applied_at": "2026-10-14T09:12:00Z",
"created_at": "2026-10-14T09:12:00Z",
"updated_at": "2026-10-14T11:40:05Z",
"candidate": {
"id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"full_name": "Jane Doe",
"emails": ["jane.doe@example.com"],
"phones": ["+1 555 0142"]
},
"job": { "id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c", "title": "Senior Data Engineer" }
}
],
"next_cursor": null
}
source_channel says how the application arrived: api for this API, manual for one added in the app, and the board’s name for job-board applicants.
GET /applications/:id
One application, in the same shape plus answers: the extra form fields sent with it, as an object of text values.
{
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"…": "the list fields above",
"answers": { "Notice period": "4 weeks", "Why do you want this role?": "Because…" }
}
Fields
These are the field names POST /applications and POST /candidates recognise, in any of the three body formats. Where a row lists two names, either works.
| Field | Notes |
|---|---|
job_id or job |
Applications only. The job’s id. Required. |
name or full_name |
The person’s name. Or send first_name and last_name, which are joined with a space. A name is required. |
email |
One email. A person also needs a contact: at least one of email, phone or linkedin. If none is sent, the 422 names fields.email. |
phone or tel |
One phone number. |
linkedin or linkedin_url |
Their LinkedIn profile URL. |
headline |
A one-line summary, e.g. “Senior data engineer”. |
location |
Free text, e.g. “Austin, TX”. |
skills |
A JSON array of strings, or one comma-separated string. |
source |
Where they came from, up to 40 characters. Default api. |
resume |
Multipart only: the resume file. |
resume_base64, resume_filename, resume_content_type |
The resume as base64 text with its file name, in JSON or a form. resume_content_type is optional when the file name has an extension. |
resume_url |
An http(s) link to a resume hosted elsewhere. Saved as a link and shown on the candidate; we never download it. |
idempotency_key |
Applications only. Same as the Idempotency-Key header; see idempotency. |
stage |
Applications only, secret keys only. A stage key of the job to start in, instead of the first applied stage. Ignored for public keys. |
applied_at |
Applications only, secret keys only. When they applied, ISO 8601. Default now. Ignored for public keys. |
api_key |
The key, for forms that cannot set headers. Never stored. |
_gotcha |
The spam trap. Leave empty. |
_redirect |
Where to send a form’s visitor afterwards; see errors. |
Resumes. Accepted types are PDF, Word (.doc, .docx), plain text, JPEG and PNG, up to 10 MB. Send one of resume, resume_base64 or resume_url. A file of another type or over 10 MB, base64 that cannot be decoded, or a resume_url that is not an http(s) link is skipped, not fatal (never a 422): the application or candidate is still created and the response carries a warnings entry starting resume_skipped:.
A resume is stored only when the request creates a new person: a new application for someone not already in your workspace, or a new candidate on POST /candidates. Sent with a duplicate application, or for a person who matched someone already in your workspace (even when their application to this job is new), it is ignored, so a stored resume is never replaced. Base64 text is a third larger than the file, so the 12 MB body limit caps resume_base64 at about 9 MB. A file sent as application/octet-stream, or with no type, is typed from its file name’s extension.
Answers
On POST /applications, every field not in the table above is kept on the application under answers, using the field’s name as sent. That is how a form’s own questions (“Why do you want this role?”, “Notice period”) reach the recruiter. Rules:
- Values must be text. A number, boolean, object or list in a JSON body is refused; send it as a string.
- At most 40 answers per application.
- Field names up to 64 characters, values up to 4,000.
- The names
__proto__,constructorandprototypeare not allowed.
Breaking any of these answers 422 validation_failed, with fields naming the field.
Idempotency
Send a unique key per submission, either as the Idempotency-Key header or the idempotency_key field (the header wins if both are sent). If we have already created an application with that key in your workspace, you get 200 and that application with "created": false, not a second copy (secret keys; a public key always gets 201 {"ok": true}). Keys are scoped to your workspace and to the API, so they cannot clash with applicants from job boards.
Even without a key, the same person applying twice to the same job is one application: the second request gets 200 and "created": false (again, for secret keys). We never answer a duplicate with 409, so form tools that resend are harmless.
In one rare case, two identical requests arriving at the same moment, the database’s own duplicate check can fire first. A secret key then gets 200 with the ids left out: {"application": null, "candidate": null, "created": false} on POST /applications and {"candidate": null, "created": false} on POST /candidates (a public key still gets 201 {"ok": true}). Nothing new was stored. Send the same request again and you get the normal duplicate answer, with the ids.
Good keys are your own record ids: careers-site-10482, gf-5531, typeform-a1b2c3.
Webhooks
To be told when applications arrive or move rather than polling GET /applications, see webhooks.