---
title: 'Jobs'
label: 'Jobs'
description: 'Discover, create, update, publish, pause, expire, duplicate, delete, and batch-process jobs through the Cavuno MCP server.'
publishedAt: 2026-07-14
updatedAt: 2026-10-21
order: 10
parent: mcp/reference
status: published
---

Use the jobs resource to operate the full job lifecycle from an MCP client. The exact request fields and transitions are defined by the live OpenAPI document, so search the specification before writing data.

## Discover the available job operations

Tool: `search`

```javascript
async () => Object.entries(spec.paths)
  .filter(([path]) => path.startsWith('/jobs'))
  .map(([path, methods]) => ({ path, methods: Object.keys(methods) }))
```

## List published jobs

Tool: `execute`

```javascript
async () => {
  const response = await cavuno.request({
    method: 'GET',
    path: '/jobs',
    query: { status: 'published', limit: 25 },
  });
  return response.data;
}
```

## Job statuses

A job’s `status` is one of `draft`, `published`, `expired`, `archived`, or `pending_approval`. Filter the list with `query: { status: 'pending_approval' }` to read the jobs awaiting your approval. A `draft` filter does not include them.

A `pending_approval` job is waiting for an operator to approve it. It is not public, just like a draft. Approve it with `POST /jobs/{id}/publish`, or reject it with `DELETE /jobs/{id}`. You cannot create a job in `pending_approval` or set it directly: a job enters this status when your board requires approval for backfilled jobs or for free job posts. A `pending_approval` job from a company that isn't on your board yet has `companyId: null` and `company: null`, and names that company in `proposedCompany` as `{ name, website }`. Publishing the job adds that company to your board, or matches one you already have with the same website. `proposedCompany` is read-only and is `null` whenever the job has a company.

### Choose the company for a held job

A held job from a new company reads like this:

```json
{
  "id": "job_123",
  "object": "job",
  "status": "pending_approval",
  "companyId": null,
  "company": null,
  "proposedCompany": {
    "name": "Acme Robotics",
    "website": "https://acme-robotics.example"
  }
}
```

You have two choices:

1. Publish it with `POST /jobs/{id}/publish`. Cavuno adds Acme Robotics to your board, or uses your existing company with the same website, and the job goes live under it.
2. Publish it under a company you already have. Set `companyId` with `PATCH /jobs/{id}` first, which clears `proposedCompany`, then publish it with `POST /jobs/{id}/publish`.

If the proposed company was removed or blocked on your board while the job waited, publishing returns `COMPANY_BLOCKED`. Set `companyId` as in choice 2, then publish.

```javascript
async () => {
  await cavuno.request({
    method: 'PATCH',
    path: '/jobs/job_123',
    body: { companyId: 'company_456' },
  });
  return cavuno.request({ method: 'POST', path: '/jobs/job_123/publish' });
}
```

## Avoid duplicate jobs

`POST /jobs` returns a 409 `jobs_already_exists` error when the new job matches a job already on your account. `details.existing_job_id` is the matching job, and `details.matched_on` says which check matched:

| `matched_on` | Matches when | Can be overridden |
| --- | --- | --- |
| `external_id` | Another job has the same `externalId`. | No |
| `application_url` | Another job uses the same application URL or email. | Yes, with `allowSharedApplicationUrl: true` |
| `composite_hash` | Another job has the same company, title, location, and description. | No |

Always set `externalId` to the source job URL or ATS requisition ID, so a repost of the same role is detected reliably.

Several different roles often share one ATS page or one application inbox. When `matched_on` is `application_url`, `details.matching_jobs` lists up to 5 jobs that use the same application URL or email, each as `{ id, title, status }`. If the new job is a different role, retry the create with `allowSharedApplicationUrl: true`. The flag skips only the application URL check; an `externalId` match or an identical job still returns 409. The retry is a different request body, so send a new `Idempotency-Key` if you used one. The same flag works on a create inside `POST /jobs/batch`.

```javascript
async () => {
  const response = await cavuno.request({
    method: 'POST',
    path: '/jobs',
    body: {
      // Resend every field from the first request, then add the flag.
      title: 'Faculty Position in AI and Analytics',
      applicationUrl: 'recruitment@example.edu',
      externalId: 'REQ-2027-14',
      allowSharedApplicationUrl: true,
    },
  });
  return response;
}
```

In the [CLI](/docs/cli#cmd-jobs-create), pass `--external-id` and `--allow-shared-application-url` to `cavuno jobs create`.

## Write safely

Read the current record and the request schema before creating or patching a job. Keep bulk operations within the documented limit of 100 operations, inspect every per-operation result, and verify the persisted record after a write. Start with [post a job](/docs/mcp/cookbook/post-a-job), and use the [API reference](/docs/api) for every field and batch operation.
