Upload résumés and files
Validate files, send raw bytes and retain upload tokens.
On this page
Upload each visible file or résumé question before submitting its answer. Use the actual question ID from the form, not a hard-coded résumé field name.
Endpoint and headers
POST /jobs/{job_id}/application-files/{question_id}?posting_id={posting_id}&filename=cv.pdf requires applications:write.
curl --fail-with-body -X POST \
"$KARWA_API_BASE/jobs/$JOB_ID/application-files/$QUESTION_ID?posting_id=$POSTING_ID&filename=cv.pdf" \
-H "X-Karwa-App-Key: $KARWA_APP_KEY" \
-H "Authorization: Bearer $KARWA_SECRET_KEY" \
-H "X-Karwa-Application-Token: $APPLICATION_TOKEN" \
-H "Content-Type: application/pdf" \
--data-binary @cv.pdfSend raw bytes. Do not send multipart form data, JSON, a URL or a base64 string. URL-encode path segments and the filename query parameter in your server's code.
Supported files
| Question type | Supported extensions | Maximum bytes |
|---|---|---|
resume | PDF, DOCX, UTF-8 TXT | 10,485,760 |
file | PDF, DOCX, UTF-8 TXT, PNG, JPG, JPEG | 10,485,760 |
Content must match its extension. TXT cannot contain null bytes; DOCX must contain a valid Word document structure. Résumé extraction can reject an unreadable or invalid document. Content-Type alone does not override these checks. An empty file is invalid.
Check size in your browser and on your server, then let Karwa validate the content. Give résumé upload requests up to 120 seconds because parsing takes longer than a normal JSON read.
Response
A successful upload returns 201.
{"token":"<UPLOAD_TOKEN>","filename":"cv.pdf","content_type":"application/pdf","size_bytes":12345}Set answers[question_id] to this token in the application JSON. Do not send the file again as the answer. Keep the original filename for your own UI, and show successful upload only after receiving the token. This response does not return AI screening or extraction scores.
Upload ownership
Tokens are tied to the company, job and question and expire according to the upload retention window. A consumed file cannot be attached to a different new application. Never reuse a token from another applicant or assume a token from another question is valid. There is no public file-download or token-refresh endpoint in v1.
Recovery
A 413 means the HTTP body is too large. A 422 can mean the extension, content, file question or résumé extraction failed. Let the applicant choose a valid file. A 401 means the credential or application session is invalid; refresh the session only after verifying the key pair.
Uploads do not have an Idempotency-Key contract. After an upload timeout, no token may be available even if storage completed. Upload again and use the latest successfully returned token. Only application submission uses idempotent retry. Unused uploads are removed through the existing expiry cleanup process.
Do not log file bodies or tokens. Preserve each applicant's uploads separately in your own backend state.