Browse API documentation
API REFERENCEv1

Create an application

Submit applicant identity, consent, form answers and uploaded file tokens.

On this page
POST/api/auth/public/v1/jobs/{job_id}/applications

Requires applications:write. Only your company's eligible public postings are accessible. Read the implementation guide →

How to use this endpoint

Submit only after the applicant has supplied the current form's visible required answers, uploaded its files and agreed to consent. Persist one submission ID before the first call. Retrying the same ID returns the original receipt; it does not update answers. A separate duplicate attempt can return 409. The accepted application enters your existing validation and hiring workflow. A receipt confirms submission, not a screening result or hiring decision.

Authentication

Send both headers from your server. An app key or application token alone does not authorize a request.

http
X-Karwa-App-Key: <APP_KEY>
Authorization: Bearer <SECRET_KEY>

Parameters

Path parameters

job_idstringRequired

The public job ID from a jobs response. Internal numeric IDs cannot be used.

Query parameters

posting_idstring or nullOptional

The selected posting ID. Pass the same value throughout detail, form, session, upload and submission. Omission selects the default eligible posting.

Header parameters

X-Karwa-Application-Tokenstring or nullRequired

Token returned by application-session. Bound to this credential version, server IP, brand, job and posting.

Idempotency-Keystring or nullRequired

One stable identifier of 1–200 characters per application attempt. Persist it and reuse it on retries.

Request body

Send application/json. The current application form determines which answers are required. Consent must be true. When using cURL below, save this payload as application.json and replace example answers with the current form’s values.

full_namestring or null
Applicant name. A form can require it even though the transport schema permits omission.
emailemail or null
Applicant email address. Used for identity and duplicate detection; follow the current form's required fields.
phonestring or null
Applicant phone with country calling code when requested by the form.
cover_letterstring or null
Applicant's cover letter when requested by the current form.
consentboolean
Must explicitly be true for this endpoint. Collect consent from the applicant. Default: false.
sourcestring
Accepted source hint. Actual attribution is resolved from validated source/referral tokens, supported UTM values and referrer information. Default: "careers_site". Allowed: "careers_site", "google_jobs".
source_tokenstring or null
A real source tracking token collected from the applicant's journey. Do not invent tokens.
referrer_originstring or null
Actual external landing origin, when available, used for source attribution.
referral_tokenstring or null
A real referral tracking token collected from the applicant's journey.
referral_visitor_idstring or null
Visitor identifier associated with the real referral journey, when available.
utm_parametersobject
Campaign parameters collected from the applicant's landing URL. Send string values, using the original parameter names.
answersobject
Custom answers keyed by question ID. File answers are upload-token strings. Education is an array of objects; locations are structured objects. Follow the fetched form.
json
{
  "full_name": "Example Applicant",
  "email": "applicant@example.com",
  "consent": true,
  "answers": {
    "resume": "<UPLOAD_TOKEN>"
  }
}

Request example

Set KARWA_API_BASE to your HTTPS gateway origin followed by /api/auth/public/v1. Local development uses http://localhost:8000/api/auth/public/v1. Replace job, posting, question and token values where shown.

bash
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.json

Response

201 · application/json · Successful Response

submittedboolean
Submission confirmation; it is not an acceptance or screening decision. Default: true.
application_referencestring or null
Optional applicant-facing reference. A null value still represents a successful submission.
created_atdate-timeRequired
Timestamp when the application was created. An idempotent retry returns the original receipt.
json · example response
{
  "submitted": true,
  "application_reference": null,
  "created_at": "2026-11-06T09:10:00Z"
}

Errors and recovery

401
Invalid credential or application session
403
Missing permission, scope or plan access
404
Posting unavailable
409
Duplicate application
413
Request exceeds upload or JSON size limit
422
Validation Error
429
Rate limited; observe Retry-After
503
Temporary service failure
json · example error response
{
  "detail": "Invalid API key"
}

Inspect the HTTP status before using the body. Validation detail can be a string or an array. For submission timeouts, retain the same Idempotency-Key. For 429 responses, wait for Retry-After. See error handling and quotas →