---
title: "Employer self-service"
label: "Employer self-service"
description: "Let approved employers claim companies, manage jobs, and review applicants."
publishedAt: 2026-07-10
updatedAt: 2026-10-14
order: 8
status: "published"
---

Build an employer portal around `board.me.companies`. Every method is authenticated and scoped to a company membership; public company data remains under `board.companies`.

## Prerequisites

- `board.context().features.employers` is `true`.
- A server-owned employer session.
- A protected account area with `cache: 'no-store'`.
- UI states for `approved`, `pending_work_email`, `awaiting_admin`, and `rejected` memberships.

## Claim a company

```ts
// src/data/employer.ts
import type { FetchOptions } from '@cavuno/board';

import { board } from '../lib/board';

function session(accessToken: string): FetchOptions {
  return {
    cache: 'no-store',
    headers: { authorization: `Bearer ${accessToken}` },
  };
}

export async function claimCompany(
  accessToken: string,
  companySlug: string,
) {
  return board.me.companies.claim(
    companySlug,
    session(accessToken),
  );
}

export async function sendWorkEmail(
  accessToken: string,
  companySlug: string,
  workEmail: string,
) {
  return board.me.companies.workEmail.verify(
    companySlug,
    { workEmail },
    session(accessToken),
  );
}
```

If the membership is `pending_work_email`, send the verification link. Consume the emailed token with `board.auth.verifyWorkEmail` — the link carries only a token, so there is no company slug and no board-user session:

```ts
const membership = await board.auth.verifyWorkEmail({ token });
```

Do not unlock management screens until the returned membership is `approved`. The same link can also finish a website change (below); then `membership.websiteChange` is set.

## Change the company website

A new website domain never takes effect straight away. Send `websiteChange` with the update: an address on the new domain gets a verification link, and without one the board reviews the change. The rest of the update saves either way, and an employer cannot remove the website.

```ts
const company = await board.me.companies.update(
  companySlug,
  {
    website: 'https://acme.io',
    websiteChange: { verificationEmail: 'sam@acme.io' },
  },
  session(accessToken),
);
// company.website is unchanged until the change finishes.
// company.pendingWebsiteChange: { websiteDomain, status }
```

Show `pendingWebsiteChange` beside the website field while it is set. When the employer clicks the link, `board.auth.verifyWorkEmail` returns the membership with `websiteChange.outcome`: `changed`, `pending_review`, or `conflict`. Send them back to `membership.company.slug`'s profile with that outcome.

## Create and publish a job

```ts
export async function createEmployerJob(
  accessToken: string,
  companySlug: string,
) {
  const options = session(accessToken);
  const draft = await board.me.companies.jobs.create(
    companySlug,
    {
      title: 'Staff Engineer',
      description: 'Build reliable systems for our customers.',
      applicationUrl: 'https://acme.example/careers/staff-engineer',
      employmentType: 'full_time',
      remoteOption: 'remote',
      remotePermits: [{ type: 'worldwide', value: 'worldwide' }],
    },
    options,
  );

  return board.me.companies.jobs.publish(
    companySlug,
    draft.id,
    options,
  );
}
```

New jobs are held drafts. `publish` works only while an existing paid window permits it. A held draft that needs billing must use `jobs.checkout`; branch on `checkout`, `published`, `pending_approval`, or `invoice_sent`. A free post (or invoice publish-on-issue) returns `pending_approval` when the board requires free-job approval — show an awaiting-review state. The job’s status becomes `pending_approval`; like a draft, it is not public, and only the board operator can publish it. Bundle, subscription, and member-credit posts still return `published`. Never infer publication from a browser redirect.

```ts
export async function checkoutEmployerJob(
  accessToken: string,
  companySlug: string,
  jobId: string,
  planId: string,
) {
  const result = await board.me.companies.jobs.checkout(
    companySlug,
    jobId,
    { billing: { type: 'new', planId } },
    session(accessToken),
  );

  switch (result.status) {
    case 'checkout':
      return { redirectTo: result.checkoutUrl } as const;
    case 'published':
      return { jobSlug: result.jobSlug } as const;
    case 'pending_approval':
      return { message: 'Your job is awaiting approval.' } as const;
    case 'invoice_sent':
      return { message: 'Your invoice has been sent.' } as const;
  }
}
```

## Load the applicant pipeline

```ts
export async function loadPipeline(
  accessToken: string,
  companySlug: string,
  jobId: string,
) {
  return board.me.companies.applicants.list(
    companySlug,
    { job: jobId },
    session(accessToken),
  );
}

export async function moveApplicant(
  accessToken: string,
  companySlug: string,
  applicationId: string,
  stageId: string,
) {
  const options = session(accessToken);
  await board.me.companies.applicants.move(
    companySlug,
    applicationId,
    { stageId },
    options,
  );

  // Applicant mutations return 204; re-read the pipeline for fresh state.
}
```

Use the stage order returned by the pipeline. Do not maintain a second ordering model in local storage.

## Source candidates onto a job

A job's sourced shortlist is the talent list (saved search) linked to it; a job has at most one. Shortlist a candidate by saving them to that list with `board.me.companies.talentLists.members.add`, and take them off with `members.remove`, which also removes their pipeline row while it is a sourced row still at Shortlisted. The pipeline row has source `sourced` and stays hidden from the candidate until they apply themselves. Move shortlisted people on through the pipeline as usual. Do not add a sourced stage to the pipeline rail. The `sourcedCandidates` methods are deprecated and forward to these calls.

```ts
export async function shortlistOntoJob(
  accessToken: string,
  companySlug: string,
  jobId: string,
  candidateBoardUserId: string,
) {
  const options = session(accessToken);
  const { data: lists } = await board.me.companies.talentLists.list(
    companySlug,
    options,
  );
  const jobList =
    lists.find((list) => list.jobId === jobId) ??
    (await board.me.companies.talentLists.create(
      companySlug,
      { name: 'Shortlist', job: jobId },
      options,
    ));
  return board.me.companies.talentLists.members.add(
    companySlug,
    jobList.id,
    { candidateBoardUserId },
    options,
  );
}
```

## Expected result

An employer sees membership state before any private controls. Approved members can create held drafts, publish or check them out, and read a pipeline whose stages and applicants come from one server response.

## Verify the result

- A pending or rejected membership cannot edit a company or job.
- Claim confirmation produces the membership state shown in the portal.
- A created job appears as a draft before publication or checkout.
- A free checkout on a board that requires free-job approval returns `pending_approval`, and the job’s status is `pending_approval` until the operator approves or rejects it.
- Applicant writes re-read the pipeline after the 204 response.
- One employer cannot access another company’s private records.

## Errors and edge cases

- Claiming can approve immediately on a domain match or enter a pending state.
- Work-email links expire after 24 hours.
- Employer job updates are merge patches; omitted fields remain unchanged.
- Remote timezone values auto-derive on create when omitted, but do not re-derive on update.
- Custom stages are capped and protected stages cannot be removed or arbitrarily reordered.

## Production cautions

- Treat applicant data, notes, and signed resume URLs as private.
- Keep every employer response out of public caches and logs.
- Use the API’s authorization decision even if the UI already hid a control.
- Re-read state after void-returning mutations rather than simulating server changes.

Next, add an anonymous purchase path with [Job posting and checkout](/docs/sdk/build-your-board/job-posting-and-checkout).
