Browse API documentation
API REFERENCEv1

Retrieve an application form

Read the sections and questions your website must render for this posting.

On this page
GET/api/auth/public/v1/jobs/{job_id}/application-form

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

How to use this endpoint

Fetch this before building a custom application screen. Keep section order and question IDs, render every supported type, and reevaluate conditional visibility when answers change. Identity system fields belong at the top level of the final payload; custom fields belong under answers. Required fields can differ by posting. If you cannot render a returned type, use the hosted apply_url rather than dropping it.

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.

Request body

No request body is required.

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 "$KARWA_API_BASE/jobs/$JOB_ID/application-form?posting_id=$POSTING_ID" \
  -H "X-Karwa-App-Key: $KARWA_APP_KEY" \
  -H "Authorization: Bearer $KARWA_SECRET_KEY"

Response

200 · application/json · Successful Response

job_idstringRequired
The public job ID from a jobs response. Internal numeric IDs cannot be used.
posting_idstringRequired
The selected posting ID. Pass the same value throughout detail, form, session, upload and submission. Omission selects the default eligible posting.
application_formobjectRequired
Ordered sections and dynamic questions. Render the full definition, including types, options, required fields and conditions.
Show fields
namestring
Application form name.
sectionsarray<object>
Value returned by Karwa.
Show item fields
idstringRequired
Stable section ID.
titlestring
Section title to display.
descriptionstring
Optional section introduction; render as text.
questionsarray<object>Required
Value returned by Karwa.
Show item fields
idstringRequired
Question ID. Use it as the answer key; system IDs read from top-level applicant fields.
typestringRequired
Control and answer format. See the form implementation guide for every type. Allowed: "short_text", "long_text", "email", "phone", "url", "number", "date", "boolean", "yes_no", "multiple_choice", "checkboxes", "resume", "file", "candidate_location", "other_location", "education".
labelstringRequired
Visible field label. Render it as text and associate it with the input.
requiredboolean
Whether the currently visible question must be answered.
privateboolean
Field metadata; does not hide the question from the applicant or grant access to candidate records.
placeholderstring
Optional input hint.
help_textstring
Optional help text below the input.
optionsarray<string>
Available values for single-choice and checkbox questions. Submit selected option strings.
conditionobject
Conditional visibility using question_id, operator (equals, not_equals or contains) and value. Trim and lowercase strings before comparison.
education_settingsobject
Enabled school/degree/field_of_study/start_date/end_date fields, allow_multiple and max. Submit an array of objects, not a JSON string.
consent_requiredboolean
Indicates that the applicant must explicitly consent before submission. Default: true.
max_file_bytesinteger
Maximum size of each uploaded file in bytes. Validate it before uploading. Default: 10485760.
json · example response
{
  "job_id": "job-public-id",
  "posting_id": "posting-id",
  "application_form": {
    "name": "Application",
    "sections": [
      {
        "id": "about-you",
        "title": "About you",
        "questions": [
          {
            "id": "full_name",
            "label": "Full name",
            "type": "short_text",
            "required": true
          },
          {
            "id": "email",
            "label": "Email",
            "type": "email",
            "required": true
          },
          {
            "id": "resume",
            "label": "Résumé",
            "type": "resume",
            "required": true
          }
        ]
      }
    ]
  },
  "consent_required": true,
  "max_file_bytes": 10485760
}

Errors and recovery

401
Invalid credential or application session
403
Missing permission, scope or plan access
404
Posting unavailable
422
Validation Error
429
Rate limited; observe Retry-After
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 →