Browse API documentation
API REFERENCEv1

Retrieve a job

Retrieve one published posting using its public job ID and posting ID.

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

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

How to use this endpoint

Call this when someone opens a job from your listing. Pass the selected posting ID so the title, description and application flow refer to the same published version. Render titles as text and sanitize descriptions before displaying HTML. A posting can become unavailable after it was listed; handle 404 by stopping its application flow and refreshing your listing.

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

Response

200 · application/json · Successful Response

idstringRequired
Public job identifier. Preserve it together with posting_id for subsequent requests.
posting_idstringRequired
The selected posting ID. Pass the same value throughout detail, form, session, upload and submission. Omission selects the default eligible posting.
titlestringRequired
Candidate-facing title from the published posting, rather than an unpublished draft.
descriptionstringRequired
Published description, which may contain HTML. Sanitize it before rendering.
company_namestringRequired
Display name of the company or hiring brand associated with this posting or credential.
company_slugstringRequired
Limit results to one hiring brand in your company.
departmentstring or null
Public department label, when configured. May be null.
locationstring or null
Public location display text. May be null; it does not establish an applicant's location.
employment_typestring or null
Published employment arrangement, such as full-time. May be null.
workplacestring or null
Published workplace arrangement, such as hybrid or remote. May be null.
published_atdate-time or null
Posting publication timestamp, when available. May be null.
application_deadlinedate-time or null
Application cutoff timestamp, when configured. May be null. Expired postings are excluded.
compensation_summarystring or null
Only included when the posting permits public compensation display. May be null.
apply_urlstringRequired
Hosted application URL for this exact posting. Use it if you do not implement a custom application form.
json · example response
{
  "id": "job-public-id",
  "posting_id": "posting-id",
  "title": "Software engineer",
  "description": "<p>Build useful recruiting tools.</p>",
  "company_name": "Example Company",
  "company_slug": "example-company",
  "department": "Engineering",
  "location": "Riyadh",
  "employment_type": "Full-time",
  "workplace": "Hybrid",
  "published_at": "2026-11-06T09:00:00Z",
  "application_deadline": null,
  "compensation_summary": null,
  "apply_url": "https://your-karwa-site/example-company/jobs/job-public-id?posting_id=posting-id"
}

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 →