Keys
The account owner makes keys in Organization settings → API and webhooks: a name, what it may do (its scopes) and, if wanted, when it expires. The key is shown once; only its first characters are kept to recognize it. Send it with every request:
curl "https://jobs.ly/api/v2/organization" \
-H "Authorization: Bearer hk_3f9a2c1d_…"
{
"data": {
"organization": { "id": "5b1e…", "name": "شركة المرجان", "nameEn": "Al Marjan", "kind": "company", "verified": true, "approved": true },
"key": { "name": "HR system", "scopes": ["jobs:read", "applications:read"], "partner": false }
}
}- A key acts as your organization with a recruiter's rights, never the owner's: under «Approve jobs before they go live» its new jobs wait for the owner, like a recruiter's.
- A revoked or expired key, or a suspended organization, gets 401. Revoke a key the moment it may have leaked.
- Each key may make 120 requests a minute (429 with
Retry-Afterbeyond it). Every request is logged against the key (its route and status, never its data), and the owner sees the last ones. - Keep keys on your server. The API answers no browser on another site (no CORS): a key in a web page would be anyone's.
| Scope | Allows |
|---|---|
jobs:read | Your jobs: GET /jobs, GET /jobs/{id}. |
jobs:write | Post, change, close and publish jobs. |
applications:read | Applications on your jobs: GET /applications, GET /applications/{id}. |
applications:write | Move an application to a step. Its answer is the whole application only with applications:read too; otherwise its id, jobId, step and stepChangedAt. |
webhooks | Manage your webhook addresses, see their deliveries and send a test event. |
applications:submit | A connected job board only, given by our team: send its users' applications (see below). |
Addresses
| Address | Does |
|---|---|
GET /api/v2/organization | The key's organization, name and scopes: the first call to check a key. |
GET /api/v2/jobs | Your jobs, newest first; status = live, closed, paused, expired, in_review, awaiting_approval, removed or all. |
POST /api/v2/jobs | Post a job. It is checked like one posted on the site (screening, your plan's open jobs, your approval setting) and is live on the job board as soon as it passes: any job board receives it through the public API and feeds. |
GET /api/v2/jobs/{id} | One of your jobs, with its applicant count. |
PATCH /api/v2/jobs/{id} | Change what you send; the rest stays. Send the revision you read to refuse a change someone made meanwhile (409 conflict). |
POST /api/v2/jobs/{id}/close | Close it (?pause=true: a pause, applicants aren't told). |
POST /api/v2/jobs/{id}/publish | Reopen or publish it: screened again, with a fresh end date. |
GET /api/v2/applications | Applications on your jobs, newest first; jobId, step, lang (the CV's language). |
GET /api/v2/applications/{id} | One application, with the CV as it was sent. |
POST /api/v2/applications/{id}/step | Move it to a step: { "step": "shortlisted" }. |
GET POST /api/v2/webhooks | Your webhook addresses; add one (its signing secret comes back once). |
PATCH DELETE /api/v2/webhooks/{id} | Change one (url, events, enabled), or remove it. |
GET /api/v2/webhooks/{id}/deliveries | Its latest deliveries; POST /api/v2/webhooks/{id}/test sends a test event now. |
GET /api/v2/openapi.json | The OpenAPI 3 description. |
Lists come a page at a time: limit (1 to 100) and cursor: pass the nextCursor you got to read the next page (null: the last one). Another organization's ids answer 404, like ids that don't exist.
curl "https://jobs.ly/api/v2/jobs?status=live&limit=25" -H "Authorization: Bearer $KEY"
{
"data": [
{
"id": "8ce12ab3-…", "status": "live",
"title": { "ar": "محاسب", "en": "Accountant" },
"city": "tripoli", "category": "accounting_finance", "jobType": "full_time", "workMode": "onsite", "experienceLevel": "mid",
"salary": { "min": 2500, "max": 3200, "currency": "LYD", "period": "month" },
"screeningQuestions": [{ "text": "Do you have a driving licence?", "required": true }],
"blindReview": false, "confidential": false, "applicants": 14,
"url": { "ar": "https://jobs.ly/jobs/8ce12ab3-…", "en": "https://jobs.ly/en/jobs/8ce12ab3-…" },
"revision": "2026-11-21T09:12:03.512Z", "createdAt": "…", "publishedAt": "…", "expiresAt": "…", "closedAt": null
}
],
"nextCursor": "eyJhdCI6…"
}Posting and changing jobs
curl -X POST "https://jobs.ly/api/v2/jobs" \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 5f0c6f7e-1d8a-4c55-9e1b-0a2b3c4d5e6f" \
-d '{
"title": { "ar": "محاسب", "en": "Accountant" },
"description": { "ar": "…", "en": "Daily accounting work and keeping the books…" },
"requirements": { "en": ["Bachelor in accounting", "2 years of experience"] },
"city": "tripoli", "category": "accounting_finance", "jobType": "full_time",
"workMode": "onsite", "experienceLevel": "mid",
"salary": { "min": 2500, "max": 3200 },
"screeningQuestions": [{ "text": "Do you have a driving licence?", "required": true }]
}'
201 { "data": { "id": "…", "status": "live", … }, "review": false, "awaitingApproval": false }- Titles and descriptions in Arabic, English or both: a missing language is translated for you.
- Options take the codes in
/api/v1/meta(cities, fields, job types, work modes, levels, benefits). - The answer says whether the job waits:
review(our check),awaitingApproval(your account owner). Refusals come as 422refusedwith areasonand the words your team sees on the site. - A text and details that disagree (a salary written in the text, another city) are refused until you send
"acknowledgeConsistency": true.
Applications and their privacy
You read exactly what your team reads on the site, never more:
- The CV as it was sent with the application, never the person's CV as it is now.
- During a blind first review (
anonymous: true) the applicant is «applicant 7»: no name, phone, email, city, schools or dates, and their name is taken out of their own words. Moving them forward shows them. - Phone and email only while your organization may see them: not after the person withdrew, and not once the job ended over 12 months ago. A withdrawn application keeps only its step and dates.
- Applications only for an organization we approved; until then 403
organization_not_approved.
curl "https://jobs.ly/api/v2/applications?jobId=8ce12ab3-…&step=new" -H "Authorization: Bearer $KEY"
{
"data": [
{
"id": "1d2e…", "jobId": "8ce12ab3-…", "step": "new", "anonymous": false,
"applicant": { "number": 7, "name": "سارة علي", "phone": "+218912345678", "email": "sara@example.com" },
"answers": [{ "question": "Do you have a driving licence?", "answer": true, "required": true }],
"meetsRequirements": true, "match": { "score": 82 }, "note": null, "source": "whatsapp",
"cv": { "language": "ar", "headline": "محاسبة", "summary": "…", "experience": […], "education": […], "skills": […], "languages": […] },
"appliedAt": "…", "stepChangedAt": "…", "updatedAt": "…"
}
],
"nextCursor": null
}Moving an applicant uses the same rules as your team's screens: only the steps your organization uses, only from a step one may go from, an offer ready before Hired. The applicant's message waits a few seconds, as on the site: a correction sent in that time replaces it.
curl -X POST "https://jobs.ly/api/v2/applications/1d2e…/step" \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 8a1f…" -d '{ "step": "shortlisted" }'Safe retries
Send an Idempotency-Key header (a UUID) with every write. Sent again with the same key within 24 hours, it gets the first answer again (Idempotent-Replayed: true), never a second job or step. We never keep a secret or an applicant's details for this: a repeated POST /webhooks answers without the signing secret (secret is null; the account owner can show it again in settings), and a repeated step move shows the application as it is now, under the rules and your key's scopes then. The same key with other data is refused (422 idempotency_key_reused); while the first is still running, 409 idempotency_in_progress.
Errors
Every error is JSON with error (a code) and message, and the HTTP status that says the same:
401 { "error": "unauthorized", "message": "Send your API key as \"Authorization: Bearer hk_…\"…" }
403 { "error": "insufficient_scope", "message": "…", "required": "jobs:write" }
404 { "error": "not_found", "message": "No job with this id in your organization." }
409 { "error": "conflict", "reason": "jobStale", "message": "This job was changed meanwhile…" }
422 { "error": "validation_failed", "message": "…", "fields": [{ "field": "city", "code": "…" }] }
422 { "error": "refused", "reason": "jobLimit", "message": "You've reached your plan's open jobs limit…" }
429 { "error": "too_many_requests", "message": "Up to 120 requests per minute for one key." }
Retry-After: 60Webhooks
Add an https address in Organization settings (or POST /api/v2/webhooks) and choose its events. Each event is a POST with a JSON body: its id, type, createdAt and data (ids and steps, never a person's details: read the rest through the API, where the rules above apply).
| Event | When |
|---|---|
application.created | A new application on one of your jobs (applicationId, jobId, step, appliedAt). |
application.step_changed | An application moved to another step, by your team, the API or the applicant withdrawing (fromStep, step, changedAt). |
hire.made | An applicant moved to Hired (hiredAt). |
job.published | A job went live: posted, reopened, approved after a check (publishedAt, expiresAt). |
job.closed | A job stopped being live (reason: closed, paused, held, removed or expired). |
POST https://your-system.example.com/hooks
webhook-id: 0b8e5a0c-6f4b-4d9e-9a51-3c6f2d7e8a90
webhook-timestamp: 1763716800
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
webhook-event: application.step_changed
content-type: application/json
{
"id": "0b8e5a0c-6f4b-4d9e-9a51-3c6f2d7e8a90",
"type": "application.step_changed",
"createdAt": "2026-11-21T09:20:00.000Z",
"data": { "applicationId": "1d2e…", "jobId": "8ce12ab3-…", "fromStep": "new", "step": "shortlisted", "changedAt": "2026-11-21T09:20:00.000Z" }
}Events are signed the Standard Webhooks way (standardwebhooks.com, with ready libraries): webhook-signature is v1, and the base64 HMAC-SHA256, keyed by your signing secret (the base64 after whsec_), of {webhook-id}.{webhook-timestamp}.{body}. Check it on the raw body, compare in constant time, and refuse a timestamp more than 5 minutes off (a replay). webhook-id is the same on every retry: keep the ids you processed to drop a repeat.
import { createHmac, timingSafeEqual } from "node:crypto";
// secret: "whsec_…" from your settings; body: the request's raw text, before JSON.parse.
function verify(secret, headers, body) {
const id = headers["webhook-id"], ts = headers["webhook-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // replayed or late
const key = Buffer.from(secret.slice("whsec_".length), "base64");
const expected = createHmac("sha256", key).update(`${id}.${ts}.${body}`).digest();
return headers["webhook-signature"].split(" ").some((part) => {
const [version, value] = part.split(",");
const given = Buffer.from(value ?? "", "base64");
return version === "v1" && given.length === expected.length && timingSafeEqual(given, expected);
});
}import base64, hashlib, hmac, time
def verify(secret: str, headers: dict, body: bytes) -> bool:
msg_id, ts = headers["webhook-id"], headers["webhook-timestamp"]
if abs(time.time() - int(ts)) > 300:
return False # replayed or late
key = base64.b64decode(secret.removeprefix("whsec_"))
expected = base64.b64encode(hmac.new(key, f"{msg_id}.{ts}.".encode() + body, hashlib.sha256).digest()).decode()
return any(hmac.compare_digest(expected, sig.split(",", 1)[1])
for sig in headers["webhook-signature"].split(" ") if sig.startswith("v1,"))- Answer with a 2xx within 10 seconds; do the work afterwards. Redirects aren't followed.
- Anything else is tried again after 1 minute, 5, 30, 2 hours, 5, 10, then every 12 hours: 8 tries in all.
- After 15 failed tries in a row the address is switched off and the account owner is emailed; switch it on again in settings once it works.
- Each address's latest deliveries, and «Send a test event», are in settings.
Job boards: sending applications
A job board connected by agreement with us (given the applications:submit scope by our team) can send its users' applications for jobs it received through the public API or feeds. We never make an account or an application on a board's word: the answer has a confirmUrl to show the person straight away. There, signed in to the account whose verified email or phone is the one you sent (anyone else sees nothing of it), they see the job, the employer, the CV you sent and their answers, and send it themselves, exactly like applying here (or say no, and what you sent about them is deleted). The link is on jobs.ly, or on enbar.com for an employer that takes its applications through Enbar: there Enbar checks the person with a code to the email or phone you sent (making their account there if they have none), speaks to them for the employer, and they follow the application on Enbar. Show the link exactly as given; the same id, states and rules apply either way. A link works once, for 7 days, and only at its own address. We keep only a fingerprint of it, never the link itself: if you retry the request with the same Idempotency-Key (say, the first answer never reached you), the answer has a new confirmUrl while the person hasn't answered, and the earlier link stops working; the new one ends when the first would have. Once they have answered, or the link has expired, confirmUrl is null.
curl -X POST "https://jobs.ly/api/v2/partner/applications" \
-H "Authorization: Bearer $BOARD_KEY" -H "Content-Type: application/json" \
-d '{
"jobId": "8ce12ab3-…",
"externalId": "board-application-48213",
"applicant": { "name": "Sara Ali", "email": "sara@example.com", "phone": "+218912345678", "language": "en" },
"cv": { "language": "en", "headline": "Accountant", "summary": "…",
"experience": [{ "title": "Accountant", "company": "…", "location": "Tripoli", "start": "2022-01", "end": "", "description": "…" }],
"education": [], "skills": ["Excel", "IFRS"], "languages": [{ "name": "Arabic", "level": "native" }] },
"answers": [true],
"consent": { "givenAt": "2026-11-21T09:00:00Z", "notice": "Your application and CV go to the employer through jobs.ly." }
}'
202 { "data": { "id": "…", "status": "waiting", "confirmUrl": "https://jobs.ly/en/apply/…", "expiresAt": "…" } }answers: one yes or no for each of the job's screening questions, in order (the job'sscreeningQuestionsin the public API).consent: when the person agreed on your site to send their application and CV here, and the words they agreed to.externalId: your own reference; sent again while it waits, it gives a new link (the old one stops working).GET /api/v2/partner/applications/{id}:waiting,sent,declinedorexpired. Nothing about the employer's decisions.