> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cord.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Positions and pipeline

> Tools for your positions, who is in the pipeline, and moving candidates through it.

All the `prepare_` tools stage a change for your approval. Nothing happens until you confirm. See [How it works](https://docs.cord.com/use/how-it-works.md).

## Reading positions

### list\_listings

List your company's positions.

**Permission:** read company

| Input | Notes |
| - | - |
| `status` | `open` (default), `closed` (archived) or `all`. `open` includes new positions that are still waiting for cord's review. |
| `scope` | `company` (default, every position) or `mine` (positions you're associated with) |
| `limit` | Maximum to return. Default 200. |

The filter uses `open` and `closed`, but each result's status reads `active` or `archived`.

### get\_listing

One of your positions by id: the job description and must-have skills, and every setting you can change with `prepare_update_listing`. That includes application criteria, the message prompt, whether the position is hidden, the hiring team and primary contact, the ATS link, other locations, visa sponsorship, security clearance, and the salary even when it is hidden from candidates.

**Permission:** read company

| Input | Notes |
| - | - |
| `listingId` | The position's id |

The job description and interview process come back as cord's own formatted text. To change either, your AI tool edits that text and sends it back whole.

### list\_team\_members

Your company's teammates: id, name and job title. Use it to choose the hiring team and the primary contact for a position. Emails and roles aren't returned.

**Permission:** read company

### list\_ats\_jobs

Jobs in your company's connected applicant tracking system (ATS): the job id and title. Use it to link a cord position to an ATS job. It returns an error if your company has no ATS connected.

**Permission:** read company

## Creating and editing positions

### prepare\_create\_listing

Stage a new position for your approval. It covers the fields on cord's position form.

**Permission:** create listings

| Input | Notes |
| - | - |
| `position` | The job title (required) |
| `internalLabel` | A name only your hiring team sees. Defaults to the title. |
| `jobRoles` | cord's job roles, from `list_job_titles` |
| `description` | The job description. Write plain text with `## ` headings, `- ` bullets and `1. ` numbered steps, and cord formats it. |
| `interviewProcess` | The interview process, written the same way. **Required** for a new position, as on cord's form. Your AI tool asks you for your stages and doesn't invent them. |
| `locationCity`, `locationRegion` | The main location, a city with its country, such as "Bournemouth, UK". cord looks it up to place the position on the map. |
| `otherLocations` | Up to 5 more locations |
| `remote` | `onsite`, `hybrid` or `remote` |
| `remoteFrom` | Where a remote position can be worked from: continents and countries, such as `["Europe"]`. An empty list means anywhere. |
| `seniority` | A list |
| `primarySkills`, `secondarySkills`, `techStack` | Lists, from `list_skills` |
| `jobType` | `Permanent` (default), `FTC`, `Part Time` or `Freelance/Contract` |
| `salaryMin`, `salaryMax` | Whole numbers. With no salary, none is shown. |
| `hideSalary` | Hide the salary from candidates |
| `visaSponsorship` | Visa sponsorship offered, for example `eu_to_uk` or `all_to_uk` |
| `clearanceRequired`, `clearanceLevel`, `clearanceEligibleWelcome` | UK security clearance: whether it's needed, the level (`CTC`, `SC`, `eSC`, `DV`, `eDV`), and whether eligible but not yet cleared candidates are welcome |
| `members`, `primaryMember` | The hiring team and the primary contact, as ids from `list_team_members`. Defaults to you. |
| `messagePrompt` | A question candidates answer when they apply. Your AI tool only uses wording you give or approve. |
| `atsPositionID` | Link to an ATS job, from `list_ats_jobs` |
| `hidden` | Hide the position in cord's position search. Candidates you message can still open it. |
| `applicationBlockCriteria` | Who can apply: `locations`, `remoteOptions`, `remoteDays` (days on site) and `workEligibilities`. Leave it out to let anyone apply. |

A fully remote position has no main location. cord clears it when `remote` is only `remote`, so use `remoteFrom` to say where it can be worked from. A change that would do this to a position that has a main location is refused, with the way forward.

Nothing is created until you confirm. New positions are reviewed first, as in cord.

### prepare\_update\_listing

Stage an edit to one of your positions. Pass the `listingId` and only the fields to change. Everything else stays as it is.

**Permission:** create listings

It takes the same fields as `prepare_create_listing`. A list, such as skills, job roles, other locations or the hiring team, replaces the whole list, so pass every value it should keep. The approval shows only what changes, and marks a field being emptied as cleared. An edit that empties the main location is refused.

### prepare\_close\_listing

Stage closing a position, as **Close position** does in cord. It stops being shown to candidates, and its intros and queued messages stop. Candidates who are waiting on a reply aren't declined.

**Permission:** create listings

| Input | Notes |
| - | - |
| `listingId` | The position, from `list_listings` |
| `hiresCount` | Optional. How many people were hired for it through cord. |

You can put it live again with `prepare_resume_listing`.

### prepare\_resume\_listing

Stage putting a closed position live again.

**Permission:** create listings

| Input | Notes |
| - | - |
| `listingId` | The position, from `list_listings` |

cord refuses this when your company's subscription has expired.

## The pipeline

### list\_pipeline

The applications and conversations for one position, by stage.

**Permission:** read pipeline

| Input | Notes |
| - | - |
| `listingId` | The position's id |
| `stage` | `conversation` (default), `received` (requests waiting for you), `sent` (your messages the candidate hasn't answered), `declined` or `archived` |
| `limit` | How many to return, 1 to 500. Default 50. |

Candidates appear as a handle and a display name such as "Ben H.". Each row says who wrote last (`lastMessageBy`, the candidate or your company), who it is waiting on (`waitingOn`) and how long it has waited (`daysWaiting`). Use `stage` `conversation` to find the active threads you can reply to.

### prepare\_pipeline\_action

Stage a stage change for a candidate who is already in a position's pipeline. This is also how you accept or decline. There is no separate decline tool.

**Permission:** change pipeline

| Input | Notes |
| - | - |
| `handle` | The candidate's handle |
| `listingId` | The position they're in the pipeline for |
| `action` | One of the actions in the table below |
| `message` | For `accept` or `decline`: an optional message sent to the candidate. It can use `{{first_name}}` and `{{sender_name}}`. |
| `inviteTypeID` | Only for `accept`: optionally attach one of your interview invites, from [`list_invite_types`](https://docs.cord.com/reference/tools-outreach#list_invite_types). It's sent even without a message. |
| `declineReason` | Only for `decline`: an optional reason |

Actions:

| Action | What it does | Seen by the candidate? |
| - | - | - |
| `seen` | Marks the application as seen | No |
| `hire`, `unhire` | Marks or unmarks as hired | No |
| `archive`, `unarchive` | Archives or restores | No |
| `accept` | Advances the application, and sends your message and interview invite if you give them | **Yes** |
| `decline` | Rejects the application, with an optional message and reason | **Yes** |

Declining can't be undone. It only works on candidates already in the pipeline for that position, not on search results.

### generate\_decline\_message

Write cord's AI decline message for a candidate, as the web app's AI decline does. It returns a draft that uses `{{first_name}}`. It doesn't send anything. To decline, pass the draft as the `message` of `prepare_pipeline_action` with `action` set to `decline`. It can be slow, because the message is written on demand.

**Permission:** change pipeline

| Input | Notes |
| - | - |
| `handle` | The candidate's handle |
| `listingId` | The position |
| `reason` | Optional. Why they're being declined, in a few words. Leave it out and cord writes one. |
| `tone` | Optional: `professional`, `friendly`, `constructive` or `straightforward`. Defaults to your company's setting. |
| `length` | Optional: `brief`, `medium` or `detailed`. Defaults to your company's setting. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.