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

# API Reference

> Classet API v2 endpoint reference

The Classet API is organized around REST. All requests and responses use JSON. The API reference below is auto-generated from our [OpenAPI 3.1 specification](/docs/openapi.json), which you can download from this site.

## Base URL

```
https://api.classet.ai/v2
```

## Authentication

Pass your API key in the `X-API-KEY` header on every request. See [Authentication](/docs/authentication.md) for details.

## Response format

All responses use a standard envelope:

```json theme={null}
{
  "data": { ... }
}
```

Paginated endpoints accept `page` and `limit` query parameters and include metadata:

```json theme={null}
{
  "data": [ ... ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 142
  }
}
```

## Errors

Errors return the appropriate HTTP status code and a three-field body. Branch on `code`, not on the `error` text:

```json theme={null}
{
  "error": "Candidate not found",
  "code": "not_found",
  "request_id": "9f6a2c1e-4b3d-4a8e-9f2a-7c1d0e5b6a3f"
}
```

See [Error handling](/docs/guides/error-handling.md) for every `code` and which ones to retry.

## Resources

| Resource | Description |
| - | - |
| [Organization](/docs/api-reference/organization/get-organization.md) | Your organization's settings, branches, users and tags |
| [Jobs](/docs/api-reference/jobs/list-jobs.md) | Job postings for your organization |
| [Candidates](/docs/api-reference/candidates/list-candidates.md) | People who have applied or been registered |
| [Applications](/docs/api-reference/applications/list-all-applications.md) | Candidate-job relationships with screening status |
| [Calls](/docs/api-reference/calls/register-call.md) | AI phone screen sessions |
| [Scripts](/docs/api-reference/scripts/list-scripts.md) | Interview question templates |
| [Message automations](/docs/api-reference/message-automations/list-automations.md) | Outreach and reminder message sequences |
| [Knowledge](/docs/api-reference/knowledge/list-entries.md) | FAQs and context for the AI interviewer |
| [AI](/docs/api-reference/ai/generate-job.md) | AI-powered content generation |
| [Webhooks](/docs/api-reference/webhooks/get-config.md) | Event notification configuration |


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