# API

> Hyperdesk's API - API keys, request and reply shape, Ashby-style method names, pagination, idempotency, dry runs, errors, rate limits, OpenAPI, the command line and the skill.

Source: https://hyperdesk.com/docs/api | Updated 2026-12-06 | Docs index: https://hyperdesk.com/llms.txt

## Before you start

> **Note:** **The API needs a Hyperdesk account.** Every call uses an API key, and a key belongs to a person on your team. Access is by invitation, people sign in at [app.hyperdesk.com/ats](https://app.hyperdesk.com/ats), and the way to get an account is to [book a demo](https://hyperdesk.com/book-demo).

A call without a key is refused with `401`:

```
{ "success": false, "errorInfo": { "code": "unauthorized", "message": "Pass an API key: Authorization: Basic base64(<key>:) or Bearer <key>", "requestId": "..." }, "errors": ["..."] }
```


## API keys

- **Where:** in Hyperdesk, **Settings > Claude, MCP and API > Your API keys**. Admins see everyone's keys under **Admin > API keys**. Keys can also be made with `apiKey.create`.
- **Shown once.** Keys look like `hd_live_...`, are shown once when made, and are stored hashed.
- **Acts as its owner.** A key acts as the person who made it, with that person's current role and access, and can never do more. When the person is deactivated, their keys stop working.
- **Scopes.** A key can be limited to some areas, each with read, write or delete, for example `{ "candidates": { "read": true } }`. Without scopes it can do what its owner can.
- **Sending it:** `Authorization: Basic base64(<key>:)` (the key as the username, as Ashby does) or `Authorization: Bearer <key>`.
- **Revoking:** `apiKey.revoke`, or from the same screen. Calls with a revoked key fail at once.

## Requests

> **Note:** `<your-hyperdesk-address>` stands for your team's Hyperdesk address. It comes with your account, and Hyperdesk shows it, filled in, under **Settings > Claude, MCP and API**.

`POST https://<your-hyperdesk-address>/api/v1/<capability id>` with the capability's input as a JSON object:

```
curl -X POST https://<your-hyperdesk-address>/api/v1/candidate.search \
  -H "Authorization: Bearer $HYPERDESK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "stripe", "limit": 10}'
```

A reply:

```
{ "success": true, "results": [ ... ], "moreDataAvailable": true, "nextCursor": "..." }
```

- `results` holds the result: a list for list and search methods, otherwise an object.
- Writes that can be reversed add an `undoToken`.
- Every reply has the header `x-hyperdesk-request-id`; quote it when you ask about a call.

## Method names

The method is the capability id: `candidate.search`, `application.changeStage`, `report.query`. Signed in, `capability_search` over MCP and `hyperdesk capabilities` on the command line list them all. Where Ashby has a method, Hyperdesk uses Ashby's name, and these Ashby names are also accepted:

| Ashby name | Runs |
|---|---|
| `candidate.addNote` | `candidate.createNote` |
| `application.change_stage` | `application.changeStage` |
| `report.synchronous` | `report.run` |
| `report.generate` | `report.run` |
| `report.pipeline` | `analytics.pipelineSummary` |
| `offer.startApprovalProcess` | `offer.startApproval` |
| `offer.approve` | `approval.decideStep` |
| `feedback.list` | `applicationFeedback.list` |
| `feedback.submit` | `applicationFeedback.submit` |

## Pagination

List and search methods take `limit` (usually up to 100) and `cursor`. A reply with `moreDataAvailable: true` has a `nextCursor`: pass it as `cursor` for the next page. Many lists also take `updatedAfter` (ISO 8601) to fetch only what changed since your last sync.

## Writes

- **They run as the key's owner.** A write with an API key runs at once, with the owner's access, and is recorded in the audit log. (Writes through MCP become proposals instead; see [Approvals and undo](https://hyperdesk.com/docs/approvals).)
- **Dry run:** send `X-Dry-Run: true` (or `"_dryRun": true` in the body) to get `{ "success": true, "dryRun": true, "preview": { ... } }` and change nothing. The preview has a summary, how many records, the changes and side effects such as emails.
- **Idempotency:** send `Idempotency-Key: <your key>` (or `idempotencyKey` in the body). The same key from the same person within 24 hours returns the first result instead of running again, with the header `x-idempotency-replayed: true`.
- **Undo:** pass a write's `undoToken` to `action.undo` within 7 days. Only the person who made the change, or an admin, can undo it.

## Errors

A failed call returns `{ "success": false, "errorInfo": { "code", "message", "requestId", "data" }, "errors": [message] }` with an HTTP status:

| Status | Code | What it means |
|---|---|---|
| 400 | `bad_request` | An input isn't valid; `data.issues` names each field |
| 401 | `unauthorized`, `invalid_api_key` | No key, or the key isn't valid any more |
| 403 | `forbidden` | The key or its owner can't do this |
| 404 | `not_found`, `unknown_method` | No such record (records in other organizations are not found too), or no such method |
| 409 | `conflict` | The record changed or is in the wrong state |
| 409 | `needs_connection` | An app must be connected first, such as Gmail or Google Calendar; `data.appName` says which |
| 429 | `rate_limited` | Too many requests |
| 503 | `not_configured` | A feature isn't switched on for this organization yet |

Messages are plain sentences that say what to do next.

## Rate limits

1,000 requests a minute per key. Over that, calls return `429` with the code `rate_limited`.

## OpenAPI

`https://<your-hyperdesk-address>/api/v1/openapi.json` describes every capability as a `POST` under `https://<your-hyperdesk-address>/api/v1`, with its input schema. It is generated from the same definitions as the API, so it doesn't drift.

## Command line

The `hyperdesk` command line runs the same capabilities through the API with your key:

```
hyperdesk login --key hd_live_... --url https://<your-hyperdesk-address>
hyperdesk candidate search "staff engineer"
hyperdesk application change-stage --application-id app_1 --stage-title Onsite
hyperdesk capabilities interview
hyperdesk describe interviewSchedule.create
```

Each command is a capability id in words (`application.changeStage` is `hyperdesk application change-stage`), and inputs are flags. Before a change it shows the preview and asks; `--dry-run` only previews, `--yes` skips the question, `--json` prints JSON and `--idempotency-key` makes retries safe. After a change it prints the undo command.

## Skill

The Hyperdesk skill teaches Claude, or any agent that reads skill folders, how Hyperdesk works: the surfaces, how to work (find ids before acting, previews, approvals, undo) and every capability by area. It is generated from the same definitions as the API.

- `https://<your-hyperdesk-address>/api/skill` downloads it as a zip (a `hyperdesk/` folder with `SKILL.md` and references).
- `https://<your-hyperdesk-address>/api/skill?format=md` returns `SKILL.md` alone.

Downloading it needs a sign-in or an API key; it is also under **Settings > Claude, MCP and API**.

---
Every surface needs a Hyperdesk account; access is by invitation. Get one: https://hyperdesk.com/book-demo. Help center for app users: https://app.hyperdesk.com/help
