# st.unarchiveJob

Take a job out of the archived stage of the account’s LinkedIn job tracker.

> The API Reference is also the SDK and CLI reference. Consecutive code fences marked `tab=HTTP`, `tab=Node`, `tab=Python` and `tab=CLI` are the same call on each surface (a fence marked `tab=HTTP,CLI` is the same text for both), and a block between `:::surface <names>` and `:::` applies only to the surfaces it names. Identifiers in the text are written as in Node and in HTTP JSON (camelCase); the Python SDK spells methods, parameters and result attributes in snake_case (`sendMessage` → `send_message`, `reconnectionLink` → `reconnection_link`), while names inside HTTP JSON stay camelCase.

Take a job out of the `archived` stage of the account’s [job tracker](/docs/tracking-jobs) and into the stage you name.

:::surface node,python
In the SDK this is the `unarchiveJob` method. It takes the parameters below except `label`, which exists only in workflow JSON. It returns no `data`: a failed action comes back in `errors`, with one of the error types below.
:::

:::surface cli
The command is `linkedin jobs unarchive`. Its argument and flags are listed below.
:::

## Constraints

> ⏺️ **Root Start:** allowed.

> ⬆️ **Parent Actions:** N/A.

> ⬇️ **Child Actions:** N/A.

## Parameters

```json tab=HTTP
{
  "actionType": "st.unarchiveJob",
  "label": "unarchiveJob1",
  "jobUrl": "https://www.linkedin.com/jobs/view/4450053454/",
  "stage": "saved"
}
```

```typescript tab=Node
const workflow = await linkedapi.unarchiveJob.execute({
  jobUrl: "https://www.linkedin.com/jobs/view/4450053454/",
  stage: "saved"
});

const { errors } = await linkedapi.unarchiveJob.result(workflow.workflowId);
```

```python tab=Python
from linkedapi import UnarchiveJobParams

workflow = linkedapi.unarchive_job.execute(
    UnarchiveJobParams(job_url="https://www.linkedin.com/jobs/view/4450053454/", stage="saved")
)

result = linkedapi.unarchive_job.result(workflow.workflow_id)
```

```bash tab=CLI
linkedin jobs unarchive https://www.linkedin.com/jobs/view/4450053454/ --stage saved --json
```

In AI assistants, the MCP tool is `unarchive_job`. The n8n action is **Unarchive job**; the Make module is **Unarchive a job**.

| Parameter | Description |
| --- | --- |
| `label` | Optional label included in workflow completion. |
| `jobUrl` | Required. LinkedIn URL of the job, in the `linkedin.com/jobs/view/<id>` form. |
| `stage` | Required. The stage to unarchive into: `saved`, `inProgress`, `applied` or `interview`. |

:::surface cli
| Arg | Required | Description |
| --- | --- | --- |
| `url` | yes | LinkedIn job URL |

| Flag | Description |
| --- | --- |
| `--stage` | Required. `saved`, `inProgress`, `applied` or `interview`. |
:::

## Unarchiving behaviour

- **The destination is required.** LinkedIn asks which stage to unarchive into, so there is no default.
- **LinkedIn decides which stages it offers for each job.** A stage it does not offer returns `stageNotAvailable`, and nothing is changed. To move an archived job to an earlier stage, unarchive it to `applied` and move it from there with [`st.setJobStage`](/docs/action-st-set-job-stage).
- **After `stageNotHonoured`, the job has moved.** Do not retry: read it back with [`st.retrieveTrackedJobs`](/docs/action-st-retrieve-tracked-jobs) to see which stage it is in now.
- **Safe to repeat, and only for an archived job.** A job already in the stage you name succeeds without changing anything. A job in any other stage returns `jobNotArchived`; to move it, use [`st.setJobStage`](/docs/action-st-set-job-stage).

## Result options

```json
{
  "actionType": "st.unarchiveJob",
  "label": "unarchiveJob1",
  "success": true
}
```

A successful call has no `data`. `label` is included only if specified in the action parameters.

## Error result

```json
{
  "actionType": "st.unarchiveJob",
  "label": "unarchiveJob1",
  "success": false,
  "error": {
    "type": "jobNotArchived",
    "message": "..."
  }
}
```

Possible `error.type` values:

- `jobNotArchived` — The job is not archived.
- `jobNotFound` — The job could not be opened or no longer exists.
- `stageNotAvailable` — This stage is not available for this job.
- `stageNotHonoured` — The job was moved, but to a stage other than the one requested.
- `trackerTooLarge` — The job tracker holds too many jobs in this stage to locate this job.
- `unexpectedError` — The change could not be completed.
