Quickstart
Create credentials and make your first authenticated request.
On this page
This example fetches a real published posting. Use a test company with a listed, active posting and a plan that includes API keys.
Create your credentials
Open Settings → API keys, choose Create API key and give it a recognizable name. Turn on Read public jobs. For custom application forms, also turn on Submit applications. Choose 12 hours, 1 day, 3 days, 7 days, 14 days, 28 days or Permanent. New forms default to 28 days.
Copy the secret at creation. The app key remains visible in Settings, while the secret is shown only once. Store both on your server. Set the following values in your server's environment using your hosting provider's secret configuration.
KARWA_API_BASE=http://localhost:8000/api/auth/public/v1
KARWA_APP_KEY=<your-app-key>
KARWA_SECRET_KEY=<your-secret-key>Fetch your first page
curl --fail-with-body "$KARWA_API_BASE/jobs?limit=20&offset=0" \
-H "X-Karwa-App-Key: $KARWA_APP_KEY" \
-H "Authorization: Bearer $KARWA_SECRET_KEY"A successful response has items, total, limit, offset and has_more. An empty items array is a valid response. Check publication status, visibility, deadline and brand if an expected posting is missing.
Fetch with JavaScript on your server
This code requires a server runtime with built-in fetch, such as Node.js 20 or later. Do not paste it into browser JavaScript.
const base = process.env.KARWA_API_BASE;
const response = await fetch(`${base}/jobs?limit=20&offset=0`, {
headers: {
"X-Karwa-App-Key": process.env.KARWA_APP_KEY,
"Authorization": `Bearer ${process.env.KARWA_SECRET_KEY}`,
},
cache: "no-store",
});
const result = await response.json();
if (!response.ok) throw new Error(`Karwa returned ${response.status}`);
for (const posting of result.items) {
console.log(posting.id, posting.posting_id, posting.title, posting.apply_url);
}Decide where candidates apply
For the hosted flow, render a link to each result's apply_url. Your credential only needs Read public jobs. Escape titles as text; sanitize the HTML description before rendering it.
For a custom flow, select the job ID and posting ID, read the application form, start a session, upload required files and submit all visible required answers with consent. Each step must run through your own server.
Check your setup
A 401 means the key pair is missing, invalid, disabled, expired or revoked. A 403 means a scope, matching permission or plan capability is unavailable. A 404 for an explicit posting means it is not available to this API. Do not substitute an internal numeric job ID.
Download the server example for pagination and a complete upload-and-submit flow. Use Errors and rate limits when handling failures.