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

# Build with an AI agent

> Give Claude Code, Cursor, Codex or any coding agent what it needs to work with Classet

There are three ways to put Classet in front of an agent. Use whichever matches the job.

| You want the agent to | Use | Setup |
| - | - | - |
| Read your live Classet data (jobs, candidates, interview results) | [MCP server](/docs/guides/mcp-server.md) | One config entry, your API key |
| Write code that calls the Classet API | The `classet-api` skill | One command |
| Look something up in these docs | `llms.txt` and the OpenAPI spec | Nothing to install |

## Agent instructions

Paste this into your agent, or into your project's `AGENTS.md` or `CLAUDE.md`:

```text theme={null}
Classet is an AI recruiting platform that runs voice interviews with job candidates.

- REST API base URL: https://api.classet.ai/v2
- Auth: send the API key in the X-API-KEY header. Read it from the CLASSET_API_KEY
  environment variable. Never hard-code it or send it from browser code.
- OpenAPI spec (source of truth for request and response shapes):
  https://api.classet.ai/v2/openapi.json
- Docs index: https://docs.classet.ai/llms.txt. Any docs page is available as
  Markdown by adding .md to its URL.
- Skill: npx skills add https://docs.classet.ai --skill classet-api
- MCP server (read-only, live data): https://mcp.classet.ai/mcp with the header
  Authorization: Bearer $CLASSET_API_KEY

Rules:
- Responses are { data } or { data, meta }. Errors are { error, code, request_id };
  branch on code, not on the message.
- Send an Idempotency-Key header on every POST you might retry.
- POST /v2/candidates with send_sms or send_email contacts a real person. Ask
  before you run it against a production key.
- To sync candidates or applications, poll GET /v2/candidates or /v2/applications
  with updated_since and follow meta.next_cursor until it is null. Other lists
  (jobs, one job's applications) have no cursor: page with page and limit until a
  page comes back short.
- After a sync, set the next updated_since to the time the poll started minus 5
  minutes, never to the newest updated_at you received.
```

## Install the skill

A skill is a short instruction file your agent loads when a task calls for it. Classet publishes two:

```bash theme={null}
npx skills add https://docs.classet.ai --skill classet-api
```

```bash theme={null}
npx skills add https://docs.classet.ai --skill classet-v2-migration
```

| Skill | What it gives the agent |
| - | - |
| `classet-api` | Every v2 endpoint, the response envelope, and the multi-step workflows such as screening a candidate and setting up a new role |
| `classet-v2-migration` | The v1 to v2 changes, including the ones that break an integration without an error |

## Connect the MCP server

The hosted server at `https://mcp.classet.ai/mcp` gives an agent read-only tools over your organization's data. [MCP server](/docs/guides/mcp-server.md) has the config for Claude Code, Cursor, VS Code, Codex and Claude Desktop.

The MCP server reads and the REST API writes. An agent that needs to create a candidate or send an interview does it by writing and running code against the API, where you can review it.

## Machine-readable docs

| Resource | URL |
| - | - |
| Docs index | `https://docs.classet.ai/llms.txt` |
| Any page as Markdown | Add `.md` to the page URL |
| OpenAPI 3 spec | `https://api.classet.ai/v2/openapi.json` |

## Keep your key and your candidates safe

* **Keep the key in an environment variable.** A key pasted into a prompt ends up in the transcript.
* **Ask for aggregates.** MCP results include candidate names, phone numbers, transcripts and recordings. Ask for counts and rates unless you need the rows.
* **Review writes.** Sending an interview texts or emails a real candidate and counts against your [invite caps](/docs/guides/rate-limits.md). Have the agent show you the request first.

## Next

> [card] [MCP server](/docs/guides/mcp-server.md)
>
> Per-client setup and the full tool list.

> [card] [Connect Classet to your ATS](/docs/guides/ats-integration.md)
>
> The integration most teams build first, step by step.


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