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

# Reporting with Classet

> Turn jobs, applications, interview outcomes, and extracted fields into recruiting metrics

Classet exposes the row-level building blocks for recruiting analytics. Pull them with the REST API, typed SDK, or read-only MCP and calculate metrics in your warehouse or reporting service. During the pilot, use polling and incremental filters; there is no separate aggregate reporting endpoint.

> [card] [MCP server](/docs/guides/mcp-server.md)
>
> Ask a trusted agent to explore jobs, applications, outcomes, scripts, and extracted fields.

## Data model

| Dataset | Endpoint | Useful fields |
| - | - | - |
| Jobs | `GET /v2/jobs` | `job_id`, `state`, description, location, wage range/currency, `updated_at` |
| Candidates | `GET /v2/candidates` | source, location, stage, job, created time, customer `custom_data` |
| Applications | `GET /v2/jobs/{jobId}/applications` | source, answers, stage, outcome, sent/completed times, both custom-data namespaces |
| Interview result | `GET /v2/candidates/{candidateId}/interview` | status, outcome, summary, question answers, extracted custom data |
| Raw attempts | `GET /v2/candidates/{candidateId}/calls` | call status/type and attempt timestamps |

`candidate_custom_data` is metadata your integration supplied. `interview_custom_data` is structured data the recruiter extracted from the interview. The deprecated application-detail field `custom_data` remains an alias for `candidate_custom_data`; new integrations should use the explicit names.

## Poll incrementally

List every application in your organization with one call, and keep your own high-water mark. You don't need a request per job:

```bash theme={null}
curl "https://api.classet.ai/v2/applications?created_after=2026-07-01&limit=50" \
  -H "X-API-KEY: $CLASSET_API_KEY"
```

Follow `meta.next_cursor` until it is `null`. Record the time each poll starts; on the next run, pass `updated_since` set to that start time minus 5 minutes. Never advance it to the highest `updated_at` (or `changed_at`) you saw: results are ordered by `created_at`, so a row changed mid-poll can land on a page you already fetched, and the overlap re-delivers it instead of dropping it. `updated_since` filters on `changed_at`, which can be newer than `updated_at`. Add `job_id` to narrow the report to one job. For screens still in progress, poll the aggregated interview endpoint with exponential backoff. Store raw records keyed by Classet ID, then recompute aggregates from your local copy. This makes reruns idempotent and avoids repeatedly fetching every historical record.

## Core metrics

Use one consistent cohort and timezone for every numerator and denominator.

| Metric | Definition |
| - | - |
| Qualified rate | completed applications with a `qualified` outcome ÷ completed applications |
| Source qualified rate | qualified rate grouped by candidate/application `source` |
| Screen completion rate | completed interviews ÷ interviews sent |
| Speed to screen | median `interview_completed_at - interview_sent_at` |
| Dealbreaker impact | failure rate where a qualifying answer failed, grouped by question |
| Skill pass rate | qualified rate grouped by a normalized value in `interview_custom_data` |
| Wage alignment | distribution of extracted wage expectation compared with the job wage range and currency |
| Outreach timing | completion rate grouped by send weekday/hour |

Example TypeScript aggregation across every job:

```ts theme={null}
async function* listApplications(params: Record<string, string>) {
  let cursor: string | null = null;
  do {
    const query = new URLSearchParams({ ...params, limit: '50', ...(cursor ? { cursor } : {}) });
    const res = await fetch(`https://api.classet.ai/v2/applications?${query}`, {
      headers: { 'X-API-KEY': process.env.CLASSET_API_KEY! },
    });
    const { data, meta } = await res.json();
    yield* data;
    cursor = meta.next_cursor;
  } while (cursor);
}

const totals = new Map<string, { completed: number; qualified: number }>();

for await (const application of listApplications({ created_after: '2026-07-01' })) {
  if (!application.interview_completed_at) continue;

  const source = application.source ?? 'unknown';
  const row = totals.get(source) ?? { completed: 0, qualified: 0 };
  row.completed += 1;
  if (application.interview_outcome === 'qualified') {
    row.qualified += 1;
  }
  totals.set(source, row);
}

const report = [...totals].map(([source, row]) => ({
  source,
  completed: row.completed,
  qualified_rate: row.completed ? row.qualified / row.completed : null,
}));
```

## Design extraction fields before reporting

Reports for certifications, schedule fit, reasons for leaving, sentiment, or wage expectations require a stable extraction schema. Add explicit instructions to the interview script, use consistent field names and value types, and version changes to the schema. For example:

```json theme={null}
{
  "epa_608_certified": true,
  "years_hvac_experience": 5,
  "expected_hourly_wage": 34,
  "available_shift": "second"
}
```

Treat free-text answers as evidence, not dimensions. Normalize values in your reporting layer before grouping them.

## Using MCP for analysis

The read-only MCP is useful for exploration and drafting queries:

* “List published jobs changed since Monday.”
* “For this job, compare completed and qualified screens by source this month.”
* “Summarize the distribution of `epa_608_certified` without showing candidate names.”
* “Find applications sent more than 48 hours ago that do not have a completed interview.”

For recurring dashboards, move the validated logic into code or your warehouse instead of relying on conversational output. To reproduce an MCP cohort over REST, use the same filters: `list_all_applications` takes `job_id`, `stage`, `outcome`, `source`, `status`, `updated_since`, `created_after`, `created_before` and `cursor`, matching `GET /v2/applications`; `search_candidates` takes `updated_since` and `cursor`; `list_applications` takes the created and interview-sent date filters of `GET /v2/jobs/{jobId}/applications`; `list_jobs` takes `state`, `updated_since` and the created-date filters.

## Privacy and governance

Candidate records, transcripts, messages, recordings, and free-text answers can contain personal information. Retain only the fields needed for the report, and aggregate or pseudonymize before sending data to another system. Do not put raw candidate data into prompts, logs, issue trackers, or unapproved analytics tools.

When sharing scorecards, publish aggregate SOURCE → SCREEN → INTERVIEW → HIRE metrics. Keep candidate-level drill-down inside access-controlled Classet systems.


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