Skip to content
Recruit Swipe

Docs / Developer API

Quickstart

Create a key, check it works, and send your first application from a terminal. Ten minutes, start to finish.

This page gets one test applicant into your workspace from a terminal, so you know your key, your plan and your job are all set up before you wire up a real form. You need a paid plan (Basic or above), at least one open job you created in the app, and curl in a bash-style shell (macOS and Linux terminals as they are; on Windows, Git Bash or WSL, since the commands below use export).

1. Create a secret key

In the app, open Settings → Sources → Developer & API, find the API keys group, tap New key, give it a name you will recognise later (for example “Quickstart”), choose Secret, and create it. The full key, starting rs_sk_, is shown once. Copy it now; afterwards the app only shows its first twelve characters.

Put it in your shell so the commands below can use it:

export RS_KEY="rs_sk_paste-your-key-here"
export RS_BASE="https://lbhikadtsmbnzkzetpyb.supabase.co/functions/v1/api/v1"

2. Check the key with GET /me

curl -s "$RS_BASE/me" -H "X-Api-Key: $RS_KEY"

You get back the key, the workspace it belongs to, your plan, and how much of the plan you are using:

{
  "key": { "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f2a3b4c5d", "name": "Quickstart", "kind": "secret", "prefix": "rs_sk_q8Zt3m" },
  "workspace": { "id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d", "name": "Northside Talent" },
  "plan": { "id": "basic", "paid": true },
  "usage": { "open_jobs": 3, "candidates": 212 },
  "limits": { "jobs": 5, "candidates": 500 }
}

A limits value of null means unlimited.

3. Find a job id

curl -s "$RS_BASE/jobs" -H "X-Api-Key: $RS_KEY"

Each job in data has an id. Copy the one you want to test against:

export RS_JOB="7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c"

Only open jobs you created in the app are listed. Jobs synced from a connected ATS never appear.

4. Send an application

curl -s -X POST "$RS_BASE/applications" \
  -H "X-Api-Key: $RS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "job_id": "'"$RS_JOB"'",
    "name": "Test Person",
    "email": "test.person@example.com",
    "phone": "+1 555 0100",
    "Why do you want this role?": "Testing the API."
  }'

The answer is 201 Created:

{
  "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 }
}

Open the job in the app: Test Person is in the Applied stage, and the answer to “Why do you want this role?” is on the application. Any field the API does not recognise is kept as an answer like that.

5. Send it again

Run the same command a second time. This time the answer is 200 OK with "created": false and the same application id. A person applying twice to the same job is one application, never a duplicate and never an error, so a form tool that resends is harmless.

Next

If it doesn’t work

  • 401 invalid_key. The key is mistyped, cut short, or revoked. Copy it again or create a new one.
  • 402 plan_required. The workspace owner is on the free plan. The API needs Basic or above.
  • 403 forbidden. You used a public key (rs_pk_) on a route that needs a secret key, such as GET /candidates or GET /applications. Use a secret key from a terminal.
  • 403 origin_not_allowed. You used a public key from a terminal. Public keys only work from the website origins they list; use a secret key here.
  • 404 not_found. The job id is wrong or belongs to another workspace.
  • 422 job_not_open. The job exists but is not open, or it is a job synced from your ATS. Reopen it in the app, or pick a job you created there.
  • 422 validation_failed. Look at fields in the response: it names each field that is missing or wrong, such as a missing name, or none of email, phone and linkedin (that one is reported under fields.email).