Submit an application
Collect consent, submit answers, handle duplicates and retry safely.
On this page
Submit only after fetching the selected posting's form, collecting visible required answers and uploading its files. Requires applications:write and a valid application session.
Endpoint
POST /jobs/{job_id}/applications?posting_id={posting_id}
X-Karwa-App-Key: <APP_KEY>
Authorization: Bearer <SECRET_KEY>
X-Karwa-Application-Token: <APPLICATION_TOKEN>
Idempotency-Key: <ONE_STABLE_SUBMISSION_ID>
Content-Type: application/jsonPayload
{
"full_name": "Example Applicant",
"email": "applicant@example.com",
"phone": "+966501234567",
"cover_letter": "I would like to apply for this role.",
"consent": true,
"answers": {
"resume": "<UPLOAD_TOKEN>",
"experience": "4",
"work_authorized": "Yes"
}
}Full name and email are top-level identity fields; a custom field with a different ID does not replace them. The active form determines required fields. Consent must explicitly be true. Do not preselect consent or assert it on behalf of an applicant who has not agreed.
| Field | Type | Notes |
|---|---|---|
full_name | String | 2–160 characters when supplied; use the applicant's name |
email | Email string | Used for candidate identity and duplicate checks |
phone | String | Up to 60 characters; include the country code when the form requests a phone |
cover_letter | String | Up to 5,000 characters |
consent | Boolean | Must be true |
answers | Object | Question-ID keys with the formats in the form guide |
source | String | careers_site by default; google_jobs is also accepted |
source_token, referral_token, referral_visitor_id | Optional strings | Use actual attribution values from the applicant's journey, not invented IDs |
referrer_origin | Optional string | Actual external landing origin, if available |
utm_parameters | Object of strings | Campaign attribution, if present |
The source field is not an arbitrary source override. Karwa resolves actual attribution from validated source/referral tokens, supported UTM values and referrer information. Send only values collected from the real applicant journey.
Send the application
Write your payload to application.json on your server. Keep this file out of source control because it contains personal information.
curl --fail-with-body -X POST \
"$KARWA_API_BASE/jobs/$JOB_ID/applications?posting_id=$POSTING_ID" \
-H "X-Karwa-App-Key: $KARWA_APP_KEY" \
-H "Authorization: Bearer $KARWA_SECRET_KEY" \
-H "X-Karwa-Application-Token: $APPLICATION_TOKEN" \
-H "Idempotency-Key: $SUBMISSION_ID" \
-H "Content-Type: application/json" \
--data-binary @application.jsonSuccess receipt
A successful submission returns 201. A retry can also return 201 with the original receipt.
{"submitted":true,"application_reference":null,"created_at":"2026-11-06T09:10:00Z"}The reference can be null; do not require it to show a success screen. A receipt confirms submission, not acceptance, screening status or a hiring decision. There is no public endpoint to read internal application status.
Idempotent retries
Generate one submission identifier on your server and persist it with the applicant's attempt before calling Karwa. It must be 1–200 characters. Reuse it only for the same application and unchanged payload, including after network timeouts or 503 responses.
Do not generate a fresh identifier on every retry. Reusing an identifier with changed answers can return the original receipt instead of updating the application. A separate duplicate attempt can return 409; do not treat that as a new accepted submission or automatically resubmit with another email.
Secret reset keeps the same company-level idempotency namespace. Deploy the new secret, obtain a fresh session and retain the same submission ID when recovering an uncertain request.
Validation and workflow
A 422 carries validation detail. Refresh the form when appropriate and let the applicant fix answers before retrying the same attempt. A 404 means the selected posting is no longer eligible. Both are different from a temporary server failure.
Accepted applications use Karwa's existing validation, duplicate detection, attachment linking, source attribution and configured hiring workflow. Your integration cannot assign screening scores, choose a hiring stage or bypass confidentiality rules through this endpoint.