# Jobs

> Describe the work, get a role suggestion with reasons, create the job and share its one apply link. Tag jobs with client_id per customer.

Source: https://docs.b55.online/jobs

A job is one opening. It holds the recruiter's description, the role B55 screens for, and **one apply link** that every candidate gets. Candidates and reports live inside the job.

## Suggest a role from the description

`POST /v0/roles/suggest`

```bash
curl -s -X POST http://localhost:3100/api/v0/roles/suggest \
  -H "Authorization: Bearer $B55_API_KEY" -H 'content-type: application/json' \
  -d '{"description":"Backend engineer to build payment APIs in golang on Postgres. 6+ years. Python is a plus."}'
```

```json
{
  "object": "role_suggestion",
  "role": "backend",
  "role_label": "Backend engineer",
  "seniority": "senior",
  "seniority_stated": true,
  "must": ["Go", "SQL"],
  "nice": ["Python", "Java", "JavaScript", "TypeScript"],
  "nice_from_catalog": ["Java", "JavaScript", "TypeScript"],
  "reasons": [
    { "term": "Backend", "means": "Backend engineer", "kind": "role" },
    { "term": "APIs", "means": "Backend engineer", "kind": "role" },
    { "term": "golang", "means": "Go", "kind": "skill" },
    { "term": "Postgres", "means": "SQL", "kind": "skill" },
    { "term": "Python", "means": "Python", "kind": "skill" },
    { "term": "6+ years", "means": "senior", "kind": "seniority" }
  ],
  "alternatives": [
    { "id": "fullstack", "label": "Full-stack engineer", "terms": ["golang", "Postgres", "Python"] },
    { "id": "founding-engineer", "label": "Founding engineer", "terms": ["golang", "Postgres", "Python"] }
  ],
  "weak": false,
  "source": "rules",
  "model": null
}
```

- Every choice comes with `reasons`: the recruiter's own words and what each was read as. Show them, and let the recruiter change anything.
- `weak: true` means no role word matched (the role was guessed from skills alone, or there is none). Ask the recruiter to pick.
- `nice_from_catalog` are adjacent skills from the role, not things the recruiter wrote.
- `source` is `rules` in the API. **Sandbox and production:** the public API is always rule-based. The console's own New-job form and B55 AI may use an AI model when the console is run with `OPENAI_API_KEY`, and then show "Suggested by gpt-6-luna"; only the description is sent, after emails, links and handles are replaced by placeholders, and the answer is checked against the catalog. See [Privacy](/privacy#b55-ai).

## Create a job

`POST /v0/jobs`

```bash
curl -s -X POST http://localhost:3100/api/v0/jobs \
  -H "Authorization: Bearer $B55_API_KEY" -H 'content-type: application/json' \
  -d '{"title":"Senior backend engineer","description":"Payment APIs in Go on Postgres.","company":"Acme",
       "role":{"base":"backend","seniority":"senior","must":["Go","SQL"],"nice":["Python"]},"client_id":"tenant-42:req-981"}'
```

```json
{
  "object": "job",
  "id": "job_000001",
  "client_id": "tenant-42:req-981",
  "title": "Senior backend engineer",
  "description": "Payment APIs in Go on Postgres.",
  "company": "Acme",
  "role": { "base": "backend", "seniority": "senior", "must": ["Go", "SQL"], "nice": ["Python"], "ai_usage": "neutral" },
  "role_label": "Backend engineer",
  "status": "open",
  "apply_url": "http://localhost:3100/apply/job_000001",
  "counts": { "total": 0, "invited": 0, "opened": 0, "consented": 0, "scanned": 0, "ready": 0, "insufficient_evidence": 0 },
  "created_at": "2026-11-24T12:47:36.309Z",
  "closed_at": null
}
```

| Field | Type | Notes |
|---|---|---|
| `title` | string, required | 1 to 200 characters. |
| `role` | role id or object, required | A role id (`"backend"`) or `{ base, seniority, must, nice, ai_usage }`. See [Roles](/roles). The job stores it with every default filled in. |
| `description` | string, optional | The recruiter's words, up to 4000 characters. |
| `company` | string, optional | Shown to candidates on the apply page. |
| `client_id` | string, optional | Your id for this job. Creating again with the same `client_id` returns the existing job unchanged. |

## The apply link

`apply_url` is the one link for this job: put it in the job post, your ATS or an email. On it the candidate sees the company, the role, exactly what is shared and what never leaves their laptop, signs in with GitHub, consents, and gets one command to run. **Sandbox:** the "GitHub sign-in" is a picker of the eight fictional developers. **Production plan:** real GitHub OAuth.

You can also add people by email ([Candidates](/candidates#add-candidates-by-email)); they get the same link.

## List, get and close

```bash
curl -s "http://localhost:3100/api/v0/jobs?status=open&client_id=tenant-42:req-981" -H "Authorization: Bearer $B55_API_KEY"  # newest first
curl -s http://localhost:3100/api/v0/jobs/job_000001 -H "Authorization: Bearer $B55_API_KEY"                              # with counts
curl -s -X POST http://localhost:3100/api/v0/jobs/job_000001/close -H "Authorization: Bearer $B55_API_KEY"
```

A closed job takes no new candidates (`409 job_closed`), by email or through the link. Existing candidates and reports stay. Closing twice changes nothing.

## Platforms: one account, many customers

Tag every job with your customer in `client_id` (for example `tenant-42:req-981`) and filter with `GET /v0/jobs?client_id=…`. **Sandbox:** any `b55_test_` key sees every job on your machine. **Production plan:** keys scoped to a `client_id` prefix, so each customer can get its own key.

## Events

`GET /v0/jobs/{job_id}/events` lists the job's events oldest first, the order webhooks deliver them. See [Webhooks](/webhooks).
