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

# Quickstart

> From a key to a new search, an analysed candidate and new candidates.

## 1. Get a key

In the app, open **Connections → API keys** and press **Create key** (workspace owners and admins). The key is
shown once; it starts with `kh_live_`. Keep it in a secret store and send it in the `Authorization` header (see
[Authentication](https://docs.kudohires.com/authentication.md)).

```bash theme={null}
export KH_KEY="kh_live_..."
export KH_API="https://app.kudohires.com/api/v1"
```

## 2. Check the key

```bash theme={null}
curl -s "$KH_API/me" -H "Authorization: Bearer $KH_KEY"
```

You get your workspace and the key's scopes.

## 3. List your searches

```bash theme={null}
curl -s "$KH_API/jobs?status=active&limit=25" -H "Authorization: Bearer $KH_KEY"
```

Lists are pages: `{ "data": [...], "next_cursor": "...", "has_more": true }`. Pass `cursor=<next_cursor>` for the
next page.

## 4. Create a search (or use one from the list)

```bash theme={null}
curl -s -X POST "$KH_API/jobs" \
  -H "Authorization: Bearer $KH_KEY" -H "Content-Type: application/json" \
  -d '{"title": "Sales Developer, German market", "company_name": "Example Co", "company_domain": "example.com",
       "location": "Barcelona, Spain",
       "description": "Outbound prospecting into DACH SMBs. 1-3 years in B2B sales.",
       "notes": "Must be native German."}'
```

The answer is `201` with the new search's `id` and `links` to the next calls. `title` and `company_name` are
required; give a `description` or `notes` so the next two steps know what to look for.

## 5. Analyse a candidate someone sent you

```bash theme={null}
curl -s -X POST "$KH_API/jobs/<job_id>/analyze-candidate" \
  -H "Authorization: Bearer $KH_KEY" -H "Content-Type: application/json" \
  -d '{"linkedin_url": "https://www.linkedin.com/in/jane-doe"}'
```

You get a score from 0 to 100, a verdict, strengths, concerns and what to ask. See [Analyse a candidate](https://docs.kudohires.com/analyze-candidate.md).

## 6. Find more candidates for the search

```bash theme={null}
curl -s -X POST "$KH_API/jobs/<job_id>/find-more" \
  -H "Authorization: Bearer $KH_KEY" -H "Content-Type: application/json" \
  -d '{"max_candidates": 10, "note": "Prefer people who led a post-merger integration."}'
```

The answer is `202` with a `request_id` and a `status_url`. The body is optional (default 15 candidates, at most 25).

## 7. Follow it, then read the results

```bash theme={null}
curl -s "$KH_API/candidate-searches/<request_id>" -H "Authorization: Bearer $KH_KEY"
```

Poll every 30 seconds or so. `status` goes `pending` → `running` → `done` (or `error`, with the reason in
`message`). When it is `done`:

```bash theme={null}
curl -s "$KH_API/candidate-searches/<request_id>/results" -H "Authorization: Bearer $KH_KEY"
```


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