Test and launch
Verify discovery, uploads, submissions and failure cases before launch.
On this page
Validate the full flow against a test company before publishing your careers page. Use your company's server as the external client and the gateway as the only API entry point.
Prepare the test
Create an active, published, listed posting with a known form. Include required name/email fields, a résumé question, a custom question and a conditional question. Use test applicant details and a small UTF-8 TXT résumé. Create separate Read-only and Read + Submit credentials with a short validity.
Check discovery
- List postings and confirm only your company's eligible postings appear.
- Fetch a second page and verify the IDs and has_more behavior.
- Test brand and search filters, including an empty result.
- Retrieve detail and form with the selected posting_id.
- Check confidential jobs, confidential positions, draft/closed jobs, unlisted postings, expired deadlines and other companies' IDs return no data.
- Verify the hosted apply_url opens the intended posting when using hosted applications.
Check a custom application
- Render the returned sections and question IDs, including required indicators and conditions.
- Start a session from your server and retain it for uploads and submission.
- Upload a valid file as raw bytes and put the returned token in the correct answer.
- Submit with explicit consent and one persisted Idempotency-Key.
- Confirm the receipt and inspect the resulting test application in Karwa, including its file, form snapshot and source.
- Repeat the identical request with the same identifier and verify the receipt is reused.
- Submit a separate duplicate attempt and handle 409 without exposing internal IDs.
Check failure cases
Test missing/wrong app key, wrong secret, disabled/expired/revoked credentials, Read-only write requests, expired or mismatched sessions, invalid file contents, excessive file sizes, omitted consent and missing required answers. Show recoverable validation errors clearly. Preserve the same submission ID after a network timeout.
Verify rate-limit responses use 429 and Retry-After. Do not deliberately flood a live company to test quotas. Use isolated test data or a controlled test environment with preloaded quota records instead.
Check secret reset
Reset the test secret. Confirm the app key stays the same, the old secret stops working, the new pair succeeds and old developer application sessions fail. Start a fresh session and retain the original Idempotency-Key when recovering an uncertain submission. Reset must not clear your request quota.
Production checks
Confirm HTTPS, trusted proxy settings, private service reachability, a stable outbound IP, allowed upload sizes/timeouts and redacted logs. Protect your own public upload and submission endpoints from abuse. Confirm consent wording and the privacy/retention behavior of both systems.
Do not launch an unsupported form by dropping its fields. Use Karwa's hosted apply_url until your renderer supports the active form. Remove closed jobs promptly and treat a posting becoming unavailable as a normal flow you must handle.
Automated verification
The repository's developer API suite covers scopes, company boundaries, confidentiality, key expiry/reset, file and form contracts, idempotency and quotas. Its external HTTP test runs a temporary auth server and gateway on loopback and drives the downloadable Node.js client through real HTTP, with isolated company records and local file storage. Email, billing and AI services are isolated in the test; it does not verify a live production domain or real email delivery.
From the backend directory, run the developer API tests with the project's Python environment.
.venv/bin/python -m pytest tests/test_developer_api.py -qKeep the downloads and contract current when changing endpoints. The OpenAPI export script derives schemas from the app and the docs seed adds guides without replacing editorial changes.