API v1

Tawzifa Company API

Connect your HR or ERP system to Tawzifa: publish jobs, receive applicants and run interviews, offers and messages from your own system — with a free sandbox.

REST + JSON on /api/v1, scoped keys, a signature on every request, signed webhooks and an isolated sandbox with sample data.

Access: sandbox, then live

From your company dashboard → “Integrations / API”.

  • Sandbox (free, instant): any company with a verified e-mail and a complete address + map pin can create twz_test_ keys right away. They run on completely separate sample data (fake jobs, applicants, interviews, offers and messages) that never reaches a real person, the website or statistics.
  • Live: send the live access request once you have an approved commercial register, an approved tax card, a complete company profile (legal name, legal entity, address + map pin, representative name and title) and your system’s name and production address (https). Approval within 5 business days (Sunday–Thursday).
  • twz_live_ keys work when all three hold: Tawzifa approval + an active annual plan that includes the API + payments being open on Tawzifa. The API itself is free.
  • Partners: companies Tawzifa treats as partners (affiliated companies) get initial approval without documents, without an annual plan or open payments, and with no cap on published jobs. They only need an approved access request with their system’s domain declared. Only the Tawzifa team grants this, and GET /usage returns jobs.unlimited = true.
  • Not available through the API: daily-worker search or contact, and bulk data exports.

Authentication and request signing

A key looks like twz_test_<id>.<secret> and is shown once, when created. Keep it on your server only (environment variable or secret manager) — never in a website or mobile app. We never store the key itself, only an HMAC fingerprint of it, so a lost key can’t be recovered: rotate it.

Every request carries:

Authorization: Bearer twz_test_ab12cd34ef56gh78.<secret>
X-Tawzifa-Timestamp: 1764000000          # Unix seconds, ±5 minutes
X-Tawzifa-Nonce: 3f9c1d2e8a7b4c6d9e0f1a2b  # 16–64 chars, never reused
X-Tawzifa-Signature: v1=<hex HMAC-SHA256(secret, canonical)>
Content-Type: application/json            # requests with a body
Idempotency-Key: 7d1e…                   # recommended on POST / PATCH / DELETE

The signed text (canonical) is these lines joined by \n:

METHOD            e.g. POST
PATH              e.g. /api/v1/jobs
SORTED_QUERY      params sorted by name, RFC 3986 encoded (%20 for spaces), joined by &  (empty if none)
TIMESTAMP         same value as X-Tawzifa-Timestamp
NONCE             same value as X-Tawzifa-Nonce
BODY_SHA256       hex SHA-256 of the exact raw body bytes (SHA-256 of "" when there is no body)

Why both? The secret travels only inside HTTPS and is compared with a peppered fingerprint; the signature binds each request to its exact method, path, query and body; and the timestamp + single-use nonce block replays. Plain HTTP is refused.

KEY="$TAWZIFA_API_KEY"            # twz_test_xxxxxxxxxxxxxxxx.secret
SECRET="${KEY#*.}"
METHOD="GET"; PATH_="/api/v1/jobs"; QUERY="per_page=10"; BODY=""
TS=$(date +%s); NONCE=$(openssl rand -hex 16)
BODY_SHA=$(printf '%s' "$BODY" | openssl dgst -sha256 -hex | sed 's/^.* //')
SIG=$(printf '%s\n%s\n%s\n%s\n%s\n%s' "$METHOD" "$PATH_" "$QUERY" "$TS" "$NONCE" "$BODY_SHA" \
  | openssl dgst -sha256 -hmac "$SECRET" -hex | sed 's/^.* //')

curl -sS "https://tawzifa.com$PATH_?$QUERY" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Tawzifa-Timestamp: $TS" -H "X-Tawzifa-Nonce: $NONCE" \
  -H "X-Tawzifa-Signature: v1=$SIG" -H "Accept: application/json"

Conventions

  • Responses are {"data": …}; lists add meta.next_cursor and meta.has_more. Send ?cursor=<next_cursor> for the next page, per_page up to 100.
  • Times in responses are ISO 8601 UTC (Z). Interview and offer times you send are Cairo time, formatted like 2026-12-01T10:30.
  • Amounts are in Egyptian pounds (EGP).
  • Idempotency-Key on POST/PATCH/DELETE: the first response is kept for 24 hours and replayed for retries (with Idempotent-Replayed: true). The same key with a different body = 422 idempotency_key_reuse; a request still running with the same key = 409 idempotency_in_progress.
  • Important: 4xx responses (such as 422 rule_violation) are stored and replayed as they are for the same key for the whole 24 hours; only 5xx responses are not stored. So: retry with the same key after a network drop or a 5xx, but once you have fixed the cause of a refusal (data or state), send with a new key. Simplest: one new key per logical attempt (for example a UUID per message or per edit).
  • updated_since accepts any ISO 8601 time (such as 2026-11-24T10:00:00Z or 2026-11-24T12:00:00+02:00), compares it as an instant and returns what changed at or after it. Keep the time of your last successful sync and subtract a minute as a safety margin.
  • Limits: 120 requests a minute per key, 240 per company, and a daily quota (20,000 live / 5,000 sandbox). Over it: 429 with Retry-After. X-RateLimit-Limit, X-RateLimit-Remaining and X-Quota-Remaining show what is left.
  • Bodies are JSON only, at most 1 MB. Every response has X-Request-Id — quote it to support.
  • The version is in the path (/api/v1). Breaking changes go to /api/v2 with notice.

Privacy — the same rules as the dashboard

  • An applicant’s phone and e-mail appear only after the applicant shares them (contact.shared = true).
  • Phone numbers, e-mails and handles inside messages and cover letters stay masked until then (masked = true).
  • The CV is a signed link valid for 10 minutes from GET /applications/{id}/cv.
  • Every call sees only your company’s data — another company’s id answers 404. Identity numbers and document files never leave through the API.

Jobs and categories

  • Categories have 3 levels: main category → sub-category → specialty. GET /reference/fields returns both: parent_id = null is a main category, anything else is a sub-category under it. GET /reference/specialties?field_id= returns the specialties (trade_id).
  • Creating or editing: trade_id is required and work_field_id (the sub-category) optional; if you send it, the specialty must belong to it or you get a 422. area_id comes from GET /reference/areas.
  • A job in responses carries specialty (with its field_id) and category = {group_id, field_id}, so you can show the main and sub-category without extra calls.
  • Publishing follows the dashboard rules: a company logo is required, and during the free launch there is a cap on jobs published at the same time (GET /usage → jobs.free_active_limit; partners have no cap). A paused job can be published again, a closed one cannot — create a new job instead.
  • After closes_on a job stops taking applicants. When its free publishing period ends the job is paused and you receive job.expired; renew it with POST /jobs/{id}/publish (partners’ jobs are never paused). Closing a job sends job.closed.

Applicants, interviews and offers

  • Statuses: submitted → reviewing → shortlisted → interview → hired, or rejected, or withdrawn when the applicant withdraws. Through the API you can set reviewing, shortlisted, hired or rejected (with an optional note).
  • POST /applications/{id}/interviews schedules an interview (Cairo time) and moves the status to interview. The applicant’s answer (accept, decline, or up to 3 suggested times) arrives as interview.responded; confirm a suggested time with POST /interviews/{id}/confirm and the slot number.
  • POST /applications/{id}/offers sends a job offer with a deadline (expires_at). The applicant accepting moves the application to hired and sends offer.accepted; there are also offer.declined and offer.expired.
  • GET /applications/{id} returns the full details (cover letter, skills, languages, your notes, interview and offer ids). The CV, in Tawzifa’s design, comes from the signed GET /applications/{id}/cv link (10 minutes).

Messages

  • POST /applications/{id}/conversation opens (or returns) the conversation with an applicant, and POST /conversations/{id}/messages sends a text message of up to 2000 characters. If the conversation is blocked, sending is refused (422 rule_violation).
  • GET /conversations carries unread_count per conversation (applicant messages your company has not read yet), and ?unread=1 returns only conversations with something new — one call is enough for your badges. ?updated_since returns conversations with messages since a given time.
  • GET /conversations/{id}/messages marks the conversation read for your company by default; send mark_read=0 in background syncs so nothing is marked read before a person actually opens it. applicant_read_at tells you when the applicant read your messages.
  • Phone numbers and e-mails inside messages are masked (masked = true) until the applicant shares their details (contact_shared = true); the same messages then come back in full. Photos the applicant sends show as has_image = true and open on Tawzifa only.
  • A new applicant message = webhook message.received with conversation and message.

Webhooks

Add an https address from the dashboard or POST /webhooks. The secret is shown once. We POST JSON with id, type, mode, created_at and data, plus X-Tawzifa-Event, X-Tawzifa-Event-Id, X-Tawzifa-Timestamp and X-Tawzifa-Signature.

application.created          a new applicant on one of your jobs
application.status_changed   an applicant’s status changed (by you, the dashboard or a withdrawal)
interview.responded          the applicant accepted, declined or suggested other times, or it was cancelled
interview.reminder           a reminder before the interview
offer.accepted               the offer was accepted
offer.declined               the offer was declined
offer.expired                the offer expired unanswered
message.received             a new message from an applicant
job.expired                  the job stopped because its period ended
job.closed                   the job was closed

Verify the signature: v1=hex(HMAC-SHA256(secret, timestamp + "." + raw body)), reject timestamps older than 5 minutes, and use id to ignore duplicates. Answer 2xx within 8 seconds; failures are retried after 1, 5, 30 minutes, 2, 6, 12, 24 hours (8 attempts), and an endpoint is disabled after 25 failures in a row. You can redeliver from the delivery log.

Safety: https only; internal, private, localhost and metadata addresses are refused, also after DNS resolution; redirects are not followed. Live endpoints must be on a domain declared in your approved request.

What data holds for each event:

application.created          {application}
application.status_changed   {previous_status, application}
interview.responded          {application_id, response: accepted|declined|proposed|cancelled, interview}
interview.reminder           {application_id, interview}
offer.accepted|declined|expired  {application_id, offer}
message.received             {conversation, message}
job.closed | job.expired     {job}

Rotating the secret: add a new endpoint with the same address (up to 10 endpoints per mode), let your system accept both the old and the new secret for a short while (for example 30 minutes), then delete the old endpoint with DELETE /webhooks/{id}. Each event goes to every active endpoint, so use X-Tawzifa-Event-Id to ignore duplicates.

<?php
$payload = file_get_contents('php://input');                 // raw body, before decoding
$ts = $_SERVER['HTTP_X_TAWZIFA_TIMESTAMP'] ?? '';
$expected = 'v1='.hash_hmac('sha256', $ts.'.'.$payload, getenv('TAWZIFA_WEBHOOK_SECRET'));

if (! ctype_digit($ts) || abs(time() - (int) $ts) > 300 || ! hash_equals($expected, $_SERVER['HTTP_X_TAWZIFA_SIGNATURE'] ?? '')) {
    http_response_code(400);
    exit;
}
$event = json_decode($payload, true);   // skip if $event['id'] was already processed
http_response_code(200);

The sandbox

  • The first twz_test_ call prepares a copy of your company with a published job, a draft and 4 fake applicants (one shortlisted, one with an interview, one with an offer, one who sent a message).
  • From the dashboard: “Reset the sandbox data” and “Simulate event” (application.created, interview.responded, offer.accepted, message.received) — test webhooks are really sent to your test endpoints.
  • Same validation, permissions and limits as live — without e-mails, notifications or billing.

Security checklist for your system

  • One key per system with the fewest scopes it needs, locked to your server IPs.
  • Set an expiry and rotate regularly — the old key keeps working for the overlap you choose.
  • If a key may have leaked: revoke it from the dashboard (effective immediately).
  • Every call is logged (key, IP, path, result, latency) — see the audit log.

Integration guide, step by step

The reference example: Hunt ERP is connected this way — its “Job applications” screen shows the applicants to the company’s jobs on Tawzifa, and every HR action reaches the applicant in their Tawzifa account.

  • 1) Sandbox: in “Integrations / API” create a twz_test_ key with only the scopes you need, and check your signing with GET /company.
  • 2) Run the whole cycle on the sample data: publish a job (POST /jobs), pull applicants (GET /applications?updated_since=…), change a status, schedule an interview, send an offer, open a conversation and send a message.
  • 3) Webhooks: add a test endpoint and receive events (dashboard: “Simulate event”). Verify the signature, ignore repeated Event-Ids, answer 2xx quickly and do heavy work afterwards.
  • 4) Keep the mapping on your side: the Tawzifa job and application ids next to the matching records in your system, so nothing is duplicated or sent twice.
  • 5) Request live access from the same screen with your system’s domain. Once approved, create a twz_live_ key (preferably locked to your server IP) and register a live webhook endpoint on the declared domain.
  • 6) Run a safety-net sync every minute (updated_since + unread=1 + mark_read=0) so a missed event is caught up, and keep webhooks as the real-time path.
  • 7) Monitor: GET /usage for limits, plus the audit log and the webhook delivery log in the dashboard. If a key leaks, revoke it at once and rotate the secret.

All endpoints

Base URL: https://tawzifa.com/api/v1

Company

GET /api/v1/company Your company profile company:read
PATCH /api/v1/company Update descriptive profile fields company:write

Jobs

GET /api/v1/jobs List your jobs jobs:read
POST /api/v1/jobs Create a job (draft, or publish: true) jobs:write
GET /api/v1/jobs/{job} Get a job jobs:read
PATCH /api/v1/jobs/{job} Update a job (only the fields you send) jobs:write
POST /api/v1/jobs/{job}/publish Publish a job jobs:write
POST /api/v1/jobs/{job}/pause Pause a job jobs:write
POST /api/v1/jobs/{job}/close Close a job jobs:write

Applications

GET /api/v1/applications List applicants (filters: job_id, status, updated_since) applications:read
GET /api/v1/applications/{application} Get an applicant applications:read
GET /api/v1/applications/{application}/cv A signed CV link valid for 10 minutes applications:read
POST /api/v1/applications/{application}/status Change status (reviewing, shortlisted, hired, rejected) applications:write
PUT /api/v1/applications/{application}/notes Private company notes applications:write

Interviews

GET /api/v1/applications/{application}/interviews Interviews of an applicant applications:read
POST /api/v1/applications/{application}/interviews Schedule an interview (Cairo time) interviews:write
GET /api/v1/interviews/{interview} Get an interview applications:read
POST /api/v1/interviews/{interview}/reschedule Move an interview interviews:write
POST /api/v1/interviews/{interview}/confirm Confirm a time the applicant suggested interviews:write
POST /api/v1/interviews/{interview}/cancel Cancel an interview interviews:write
POST /api/v1/interviews/{interview}/outcome Mark attended / no-show interviews:write

Offers

GET /api/v1/applications/{application}/offers Offers of an applicant applications:read
POST /api/v1/applications/{application}/offers Send a job offer offers:write
GET /api/v1/offers/{offer} Offer status applications:read
POST /api/v1/offers/{offer}/withdraw Withdraw an offer offers:write

Messages

GET /api/v1/conversations Applicant conversations (filters: updated_since = a message since; unread=1 = unread applicant messages only) messages:read
POST /api/v1/applications/{application}/conversation Open (or get) the conversation with an applicant messages:write
GET /api/v1/conversations/{conversation}/messages Messages (contact details masked until shared; mark_read=0 keeps the thread unread) messages:read
POST /api/v1/conversations/{conversation}/messages Send a message messages:write

Reference

GET /api/v1/reference/fields Work fields reference:read
GET /api/v1/reference/specialties Specialties (trade_id for jobs) reference:read
GET /api/v1/reference/areas Areas (area_id for jobs) reference:read

Usage

GET /api/v1/usage Plan, limits and today’s usage usage:read

Webhooks

GET /api/v1/webhooks Webhook endpoints of this key’s mode webhooks:manage
POST /api/v1/webhooks Add an endpoint (secret returned once) webhooks:manage
DELETE /api/v1/webhooks/{webhook} Delete an endpoint webhooks:manage

Every request and response field is in the OpenAPI file. openapi.json

Error codes

Every error is application/problem+json (RFC 7807) with a stable code you can rely on, and a request_id.

{"type":"https://tawzifa.com/developers#error-insufficient_scope","title":"This key does not have the jobs:write permission.","status":403,"code":"insufficient_scope","request_id":"req_01j…"}
CodeHTTP
https_required403
missing_key401
invalid_key401
key_revoked401
key_expired401
stale_timestamp401
invalid_nonce401
bad_signature401
replayed_request401
company_suspended403
no_owner403
ip_not_allowed403
live_access_inactive403
insufficient_scope403
forbidden403
not_found404
method_not_allowed405
idempotency_in_progress409
payload_too_large413
unsupported_media_type415
validation_failed422
rule_violation422
invalid_idempotency_key422
idempotency_key_reuse422
unsafe_webhook_url422
webhook_domain_not_declared422
too_many_endpoints422
rate_limited429
daily_quota_exceeded429
internal_error500
api_unavailable503
sandbox_unavailable503