---
title: "Jobs namespace"
label: "Jobs"
description: "Reference for job discovery, details, similar jobs, applications, and resume uploads."
publishedAt: 2026-07-10
updatedAt: 2026-10-21
order: 2
status: "published"
---

Use `board.jobs` to read published jobs and to run the native application flow. Job discovery and detail reads are public. `apply` accepts either a candidate session or an allowed guest application, while `myApplication` requires a candidate session.

## Shared behavior

Every method returns the Board API wire body without reshaping it. A non-2xx response throws `BoardApiError`; inspect `status`, `code`, `details`, and `requestId` instead of matching the message.

The final `FetchOptions` argument passes `signal`, `headers`, `cache`, `next`, `cf`, and other fetch options through to `fetch`. List and search results include `object`, `url`, `hasMore`, `nextCursor`, and `data`. Job catalog responses can also include `count`, `limit`, `offset`, and `gatedCount`.

## `board.jobs.collectionChoices`

List active entries available to a collection field on the job form. A collection can be shared with company and talent profiles; this method returns choices only for fields configured on jobs.

```ts no-check
board.jobs.collectionChoices(
  fieldKey: string,
  query?: { search?: string; cursor?: string; limit?: number },
  options?: FetchOptions,
): Promise<JobCollectionChoiceList>
```

The response contains `data` entries with `id`, `name`, and an optional `logoUrl`, plus `nextCursor`. Follow the cursor until it is null. Pass the selected entry IDs when saving collection values through the job posting API. Collection fields on retrieved jobs are available as `resolvedCollectionFields`; use those resolved names and details for display.

## `board.jobs.list`

List published jobs. The default `relevance` sort uses the board’s featured ranking.

```ts no-check
board.jobs.list(
  query?: JobsListQuery,
  options?: FetchOptions,
): Promise<JobCardListEnvelope>
```

`JobsListQuery` accepts:

| Field | Type | Behavior |
| --- | --- | --- |
| `cursor` | `string` | Opaque `nextCursor` from the previous response. |
| `limit` | `number` | Page size from 1 to 100. |
| `offset` | `number` | Jobs to skip. It takes precedence over `cursor`; `offset + limit` cannot exceed 10,000. |
| `companyId` | `string[]` | Up to 10 company IDs, matched with OR. |
| `remoteOption` | `RemoteOption[]` | `on_site`, `hybrid`, or `remote`. |
| `employmentType` | `EmploymentType[]` | Built-in employment types, matched with OR. A built-in matches jobs that have no custom employment type. |
| `customEmploymentType` | `string[]` | Custom employment type keys from `board.context().jobForm.employmentType.customTypes`, matched with OR and combined with `employmentType`. |
| `seniority` | `Seniority[]` | Seniority levels, matched with OR. |
| `sort` | `JobSort` | `relevance`, `newest`, or `salary_high`. An explicit sort unpins featured jobs. |
| `location` | `string` | Place slug. Returns jobs in the place and the places inside it (a region includes its cities). An unresolvable place is ignored. |
| `radius` | `number` | Widens a city or locality `location` to jobs whose own city or locality is within this many km of it. 1–250, decimals allowed (`8.05` is 5 mi). Omit it for the place only. Ignored for region and country places and without `location`. |
| `category` | `string` | Category slug for a programmatic jobs page. An unresolvable category returns 404. |
| `skill` | `string` | Skill slug for a programmatic jobs page. An unresolvable skill returns 404. |
| `fields` | `string` | Only `+description` is supported. It adds HTML `description` to each otherwise-slim card. |
| `capabilities` | `JobCapability[]` | `['apply-gateway-v1']` includes Sponsored jobs. See [Sponsored jobs](#sponsored-jobs). |

A `location` search has no default distance: without `radius` it returns jobs in the place only. Hosted city pages and the starter apply a default by passing it: 25 mi (about 40.2 km) in miles countries, 50 km elsewhere. A place from [`board.taxonomy.places.suggest`](/docs/sdk/reference/taxonomy#boardtaxonomyplacessuggest) is the exception: without `radius` it uses its own default distance, 15 km for a neighborhood, 25 km for a town and 50 km for a city, even with `defaultRadius`. Use `searchRadiusOptions`, `defaultSearchRadius`, and `distanceUnitForCountry` from `@cavuno/board/format` to build the same choices; see [Add a search distance to city pages](/docs/sdk/cookbook/job-listing-page#add-a-search-distance-to-city-pages).

The response is `JobCardListEnvelope`: `data` contains `PublicJobCard` values and `relatedSearches` can suggest category or skill pages. `relatedSearches[].count` is how many jobs **in the returned page** carry that term — not the board-wide total. For homepage “browse by category” tiles, use [`board.taxonomy.categories.list({ sort: 'jobCount' })`](/docs/sdk/reference/taxonomy#boardtaxonomycategorieslist).

Each card carries `customFieldValues` for the job and `company.customFieldValues` for its company, keyed by field key and `{}` when empty. Cards include only single-select, multi-select, boolean and number values; select values are option keys. Text values are only on the full job and company, and private company fields are never included. Resolve job labels against `board.context().customFields.job` and company labels against [`board.profileFields.retrieve('company')`](/docs/sdk/reference/profile-fields). Every method that returns job cards (list, search, similar, company jobs, embed, recommended and saved jobs) uses the same shape.

```ts
const controller = new AbortController();
const page = await board.jobs.list(
  {
    limit: 20,
    offset: 0,
    remoteOption: ['remote', 'hybrid'],
    location: 'london-eng-united-kingdom',
    radius: 25,
    sort: 'newest',
  },
  { signal: controller.signal },
);

for (const job of page.data) {
  console.log(job.title, job.links.public);
}

if (page.hasMore) {
  console.log('Next cursor:', page.nextCursor);
}
```

Handle `pagination_invalid_cursor`, `pagination_offset_too_large`, taxonomy not-found errors, and `search_unavailable`. `gatedCount` reports jobs hidden from the current viewer; do not present it as another page of accessible results.

### Sponsored jobs

A Sponsored job (`isSponsored: true`) is a paid placement whose Apply link goes through the Cavuno Apply gateway. Sponsored jobs are being restricted to callers that send the `apply-gateway-v1` capability; a starter that renders the gateway should send it on every job read now:

- `board.jobs.list`, `board.jobs.similar`, `board.companies.listJobs` and `board.embed.jobs` include them with `capabilities: ['apply-gateway-v1']`. The opt-in travels in the URL, so the response stays shared-cacheable.
- `board.jobs.search` and `board.me.recommendedJobs.list` include them when `options.headers` carries `x-cavuno-board-capabilities: apply-gateway-v1`.
- `board.jobs.retrieve` returns 404 `jobs_not_found` for a Sponsored job unless the caller opts in.

Without the capability, Sponsored jobs are left out of the results entirely: `count`, `hasMore` and `nextCursor` cover only the jobs returned. On the cacheable `GET` reads, use the `capabilities` option rather than the header: a shared cache keys the response by URL, so a header-form request can be answered with the response cached for the bare URL.

```ts
const page = await board.jobs.list({
  limit: 20,
  capabilities: ['apply-gateway-v1'],
});
```

Related methods: [`board.jobs.search`](#boardjobssearch), [`board.companies.listJobs`](/docs/sdk/reference/companies#boardcompanieslistjobs), and [`paginate`](/docs/sdk/fundamentals/data-fetching-and-pagination).

## `board.jobs.retrieve`

Retrieve one published job by slug.

```ts no-check
board.jobs.retrieve(
  jobSlug: string,
  query?: Record<string, never>,
  options?: FetchOptions,
): Promise<PublicJob>
```

`PublicJob` includes job and company identity, description, application URL, employment and salary fields, resolved categories and skills, office locations, place hierarchy, remote-work requirements, custom-field values, and canonical public links. The SDK URL-encodes `jobSlug` and does not resolve custom-field labels; match `customFieldValues` keys to `board.context().customFields.job`. When a job uses one of the board's custom employment types, `customEmploymentType` is `{ key, label }`: show its `label` in place of `employmentType`, which holds its built-in Google equivalent. It is `null` otherwise.

Each `placeHierarchy` entry (country → region → city) has `slug`, `name`, and `canonicalSlug`. `name` is in the board's language, falling back to English for a place with no translation. `slug` is always the English slug. `canonicalSlug` is in the board's language where that language has unique place slugs; otherwise, and for a place with no translation, it is the English `slug`. Link breadcrumbs with `canonicalSlug` (`/jobs/locations/:canonicalSlug`): on a translated board, the location page at the English `slug` can redirect. Both slugs work as the jobs `location` filter.

The country-gated Apply protocol is an explicit starter capability, not a global SDK default. A compatible starter passes this option when retrieving the job and throughout its Apply flow:

```ts no-check
const applyGateway = {
  headers: {
    'x-cavuno-board-capabilities': 'apply-gateway-v1',
  },
} satisfies FetchOptions;
```

```ts
const job = await board.jobs.retrieve('senior-engineer', undefined, applyGateway);

console.log(job.title);
console.log(job.company?.name);
console.log(job.customFieldValues);
```

The method returns 404 when the board is unavailable or the slug does not identify a published job. Draft, pending-approval, expired, and archived jobs are not returned by this public read. A Sponsored job also returns 404 to a caller without the `apply-gateway-v1` capability; see [Sponsored jobs](#sponsored-jobs).

Related methods: [`board.jobs.similar`](#boardjobssimilar), [`board.jobs.apply`](#boardjobsapply), and `board.context` for custom-field definitions.

## `board.jobs.search`

Search published jobs with free text, facets, date bounds, and geo filters.

```ts no-check
board.jobs.search(
  body: JobsSearchBody,
  query?: Record<string, never>,
  options?: FetchOptions,
): Promise<JobCardSearchEnvelope>
```

`JobsSearchBody` accepts optional `query` text up to 200 characters, `sort`, `cursor`, `limit`, `offset`, and `filters`. Filter arrays accept up to 10 values. `filters.publishedAt` accepts ISO 8601 `gte` and `lte` bounds; `filters.location` and `filters.radius` follow the list method’s geo rules.

`filters.customFields` matches the job's own custom fields (`board.context().customFields.job`) and `filters.companyCustomFields` matches the public profile fields of the job's company (`board.profileFields.retrieve('company')`). Both take `CustomFieldFilter` clauses of a field `key` and its accepted `values` (option keys, booleans, or numbers): clauses are AND-matched and values within one clause are OR-matched, up to 10 clauses of 10 values each. The two lists never share keys, so a job field and a company field may have the same key. An unknown or private key, or an option key the field does not define, returns `invalid_filter`. See [Custom field filters and badges](/docs/sdk/cookbook/custom-field-filters-and-badges).

```ts
const controller = new AbortController();
const results = await board.jobs.search(
  {
    query: 'platform engineer',
    sort: 'salary_high',
    filters: {
      employmentType: ['full_time'],
      seniority: ['senior', 'lead'],
      publishedAt: { gte: '2026-07-01T00:00:00.000Z' },
    },
    limit: 20,
  },
  undefined,
  { signal: controller.signal },
);

console.log(results.data, results.count, results.gatedCount);
```

This is a POST request, but it is a read operation. Invalid filters or pagination return 400; an unavailable search core returns `search_unavailable` with status 503.

Related methods: [`board.jobs.list`](#boardjobslist) and [`board.taxonomy.places.list`](/docs/sdk/reference/taxonomy#boardtaxonomyplaceslist).

## `board.jobs.similar`

Return jobs related to a published job. The result excludes the source job and jobs at the same company.

```ts no-check
board.jobs.similar(
  jobSlug: string,
  query?: JobsSimilarQuery,
  options?: FetchOptions,
): Promise<ListEnvelope<PublicJobCard>>
```

`query.limit` accepts 1–20 and defaults to 5.

```ts
const { data } = await board.jobs.similar('senior-engineer', { limit: 5 });

for (const job of data) {
  console.log(job.title);
}
```

An empty `data` array is a valid result. A missing source job returns 404; similarity infrastructure failure returns `search_unavailable` with status 503.

Related methods: [`board.jobs.retrieve`](#boardjobsretrieve) and [`board.companies.similar`](/docs/sdk/reference/companies#boardcompaniessimilar).

## `board.jobs.apply`

Submit a native application. Signed-in candidates can omit `name` and `email`; guests must supply them and can apply only when the board permits guest applications. Repeating the same application is idempotent and returns the existing `Application`.

```ts no-check
board.jobs.apply(
  jobSlug: string,
  body?: ApplyBody,
  options?: FetchOptions,
): Promise<Application>
```

`ApplyBody` contains optional `name`, `email`, and `coverNote` fields.

```ts
const application = await board.jobs.apply('senior-engineer', {
  name: 'Avery Chen',
  email: 'avery@example.com',
  coverNote: 'I build reliable developer platforms.',
});

console.log(application.id, application.status);
```

The returned `Application` includes its ID, candidate-facing status, timestamps, candidate facts, optional resume filename, and a job summary. Handle `applications_guest_not_allowed` (403), `applications_job_not_found` (404), and `applications_external_apply_only` (422). Use the job’s `applicationUrl` or the `resolveApplyAction` helper to branch between native and external apply before submitting.

Related methods: [`board.jobs.uploadApplicationResume`](#boardjobsuploadapplicationresume) and [`board.jobs.myApplication`](#boardjobsmyapplication).

## `board.jobs.prepareApplyApproval`

Prepare the signed-in Candidate's browser-edge country approval for a native job whose `applyAction` is `gateway_native`. Call this from the board server with Candidate authorization and a server-owned session key.

```ts no-check
board.jobs.prepareApplyApproval(
  jobSlug: string,
  body: { sessionKey: string },
  options?: FetchOptions,
): Promise<ApplyApprovalPlan>
```

The result is either `{ kind: 'not_required' }` or an `approval_required` plan containing an opaque `approvalUrl` and expiry. For a required plan, the Candidate browser POSTs directly to that URL with `credentials: 'omit'` and no body. Pass the returned receipt `id` and the same key to `board.jobs.apply` as `approvalReceipt` and `approvalSessionKey`.

Pass `x-cavuno-board-capabilities: apply-gateway-v1` in `options.headers` when preparing and when making the final `board.jobs.apply` call. The SDK does not add this header automatically because doing so would activate the protocol on incompatible boards. This receipt flow is signed-in only; the current starter sends anonymous visitors through sign-in before native preparation, while guest-native API Apply retains its legacy behavior.

## `board.jobs.createApplyIntent`

Create a short-lived opaque hand-off for `gateway_external`. Framework starters call this from a board-local POST and return a browser `303` to the resulting `gatewayUrl`; never render the gateway URL as a crawlable anchor.

```ts no-check
board.jobs.createApplyIntent(
  jobSlug: string,
  body: { sessionKey: string },
  options?: FetchOptions,
): Promise<ApplyIntent>
```

The method accepts no destination. Cavuno resolves the known job's stored destination only after the dedicated gateway allows the request. Pass `x-cavuno-board-capabilities: apply-gateway-v1` in `options.headers`; callers that do not opt in receive the legacy not-found behavior.

```ts no-check
const intent = await board.jobs.createApplyIntent(
  jobSlug,
  { sessionKey },
  applyGateway,
);
```

## `board.jobs.uploadApplicationResume`

Attach a resume to an existing native application. The SDK creates the multipart `FormData` body.

```ts no-check
board.jobs.uploadApplicationResume(
  jobSlug: string,
  file: Blob,
  opts?: { applicationId?: string },
  options?: FetchOptions,
): Promise<Application>
```

Signed-in candidates target their own application and omit `applicationId`. A guest passes the ID returned by `board.jobs.apply`.

```ts
const application = await board.jobs.apply('senior-engineer', {
  name: 'Avery Chen',
  email: 'avery@example.com',
});

const updated = await board.jobs.uploadApplicationResume(
  'senior-engineer',
  resumeFile,
  { applicationId: application.id },
);

console.log(updated.resumeFilename);
```

Empty or malformed files return `applications_resume_invalid_file` with status 400. Files over 10 MB return 413. Unsupported types or a magic-byte mismatch return 415. A missing or inaccessible application returns `applications_not_found` with status 404. Do not set `content-type` yourself; the runtime must add the multipart boundary.

Related method: [`board.jobs.apply`](#boardjobsapply).

## `board.jobs.myApplication`

Retrieve the authenticated candidate’s application for one job.

```ts no-check
board.jobs.myApplication(
  jobSlug: string,
  options?: FetchOptions,
): Promise<Application>
```

```ts
import { isNotFound } from '@cavuno/board';

try {
  const application = await board.jobs.myApplication('senior-engineer');
  console.log(application.status);
} catch (error) {
  if (isNotFound(error)) {
    console.log('The candidate has not applied to this job.');
  } else {
    throw error;
  }
}
```

This method requires a board-user access token. It returns 401 for a missing, invalid, or expired token; 403 when the token belongs to another board; 404 for a missing board, job, or application; and 429 when the per-user rate limit is exceeded. A 404 application is an expected “not applied” state, not necessarily a broken job page.

Related methods: [`board.jobs.apply`](#boardjobsapply) and `board.me.applications` for the candidate’s full application history.
