Loading documentation
Map every question type, condition and answer to your own UI.
Fetch GET /jobs/{job_id}/application-form?posting_id={posting_id} before rendering a custom application. Requires jobs:read. The response contains the candidate-facing questions, not internal screening rules or scoring configuration.
{
"job_id": "job-public-id",
"posting_id": "posting-id",
"consent_required": true,
"max_file_bytes": 10485760,
"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},
{"id":"experience","label":"Years of experience","type":"number","required":true}
]
}]
}
}Keep the section order and question IDs. Use labels as text, associate each label with its input and show required indicators. Honor placeholder, description, help_text, options, condition and education_settings when present. The question's private flag does not authorize candidate-record access or hide it from the applicant.
Never assume every form has a question called resume or the same required fields. Use the returned definition for the selected posting. If your renderer encounters an unsupported type, offer the job's hosted apply_url instead of silently dropping a required question.
| Type | Suggested control | Submitted value |
|---|---|---|
short_text, long_text | Text input or textarea | String |
email | Email input | Email string |
phone | Phone input with country selector | International number with country code, such as +966501234567 |
url | URL input | Public HTTP or HTTPS URL |
number | Numeric input | Numeric value or numeric string |
date | Date picker | ISO date string, such as 2026-11-06 |
boolean | Checkbox | JSON true or false |
yes_no | Yes/No selection | The selected string, Yes or No |
multiple_choice | Select or radio group | One option string |
checkboxes | Checkbox group | Array of option strings |
resume, file | File picker | Upload token string, never local path or base64 |
candidate_location, other_location | Country and city controls | Structured location object |
education | Repeating education inputs | Array of education objects described below |
Put full_name, email, phone, cover_letter and consent at the top level of the submission JSON. Karwa resolves these system IDs from the top-level fields. Putting only answers.email will not populate the applicant's email. Put custom fields under answers, keyed by question ID.
{
"full_name": "Example Applicant",
"email": "applicant@example.com",
"phone": "+966501234567",
"consent": true,
"answers": {"experience":"4","resume":"<UPLOAD_TOKEN>"}
}A condition references another question ID and has an operator and value. Evaluate it against the top-level system field when applicable, otherwise against the current answers. Normalize strings by trimming whitespace and comparing lowercase values. Supported operators are equals, not_equals and contains. Only collect and validate currently visible questions; Karwa also skips hidden conditional questions when validating submission.
{"question_id":"work_authorized","operator":"equals","value":"Yes"}For this condition, show the dependent question only when work_authorized is Yes. Reevaluate when the source answer changes. A required boolean is treated as missing when false; use yes_no when both Yes and No must be valid responses to a required question.
A structured selection needs a valid country and a city. Country codes are ISO two-letter codes. A city_id, when supplied, must belong to that country. Display labels are not authority for a mismatched ID.
{"country_code":"SA","city":"Riyadh","region":"Riyadh","label":"Riyadh, Saudi Arabia"}Karwa's public location catalogs are available outside the versioned careers API at /api/auth/public/locations/countries and /api/auth/public/locations/cities. For cities, pass country as a two-letter code, for example /api/auth/public/locations/cities?country=SA. You can also use your own country/city UI and send the structured object without a city_id. Never infer nationality from a location.
Send an array of objects under the education question ID. Supported string fields are school, degree, field_of_study, start_date and end_date. Date values use YYYY-MM-DD. Each field is limited to 500 characters. Follow education_settings: a field set to false is disabled, allow_multiple enables repeated entries, and max limits them (up to 10). Otherwise send at most one entry. A required education question needs a nonempty entry and a school when that field is enabled. Blank optional entries are omitted.
{"education":[{"school":"Example University","degree":"BSc","field_of_study":"Computer Science","start_date":"2020-09-01","end_date":"2024-06-01"}]}Karwa evaluates at most 50 questions. Custom text answers are trimmed and capped at 5,000 characters, list answers at 50 items with 500 characters per item, and normalized answers must fit 30,000 serialized characters. The HTTP submission body limit is 256 KB. Stay below both limits.
Definitions can change after rendering. A 422 means the current posting's form rejected the payload; refresh its definition and show the returned detail near the relevant field. The server stores a snapshot of the form used for the accepted application.