> For the complete documentation index, see [llms.txt](https://helpcenter.talentlead.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.talentlead.nl/talent-assessment/api/conventies-and-foutafhandeling.md).

# Conventies & foutafhandeling

Lijst-endpoints gebruiken **cursor-paginatie** (stabiel onder gelijktijdige wijzigingen, in tegenstelling tot offset):

```json
{
  "data": [ ... ],
  "pagination": { "hasMore": true, "nextCursor": "eyJrIjpb..." }
}
```

Geef `?cursor=` de waarde van `nextCursor` voor de volgende pagina. `?limit=` accepteert 1–100 (standaard 25).

### Synchroniseren

Voor incrementele syncs vanuit je ATS ondersteunen `GET /persons` en `GET /invitations` het filter `?updatedAfter=<ISO 8601>`: alleen records die sindsdien zijn gewijzigd.

### Idempotency

Alle POST-endpoints ondersteunen de `Idempotency-Key`-header. Bij een retry met dezelfde key én dezelfde body krijg je de opgeslagen response terug (herkenbaar aan de header `Idempotency-Replayed: true`). Dezelfde key met een ándere body geeft `409 idempotency_key_reused`.

```bash
curl -X POST https://assessment.talentlead.nl/api/v1/persons \
  -H "Authorization: Bearer tl_live_..." \
  -H "Idempotency-Key: import-run-2026-07-15-001" \
  -H "Content-Type: application/json" \
  -d '{"email": "kandidaat@voorbeeld.nl", "externalId": "ATS-1001"}'
```

### Foutenvelop

Fouten hebben altijd dezelfde vorm, met een stabiele machine-leesbare `code`:

```json
{
  "error": "Person limit reached for your plan.",
  "code": "person_limit_reached",
  "details": { "used": 250, "limit": 250, "plan": "professional" }
}
```

| Code                             | Status  | Betekenis                                                      |
| -------------------------------- | ------- | -------------------------------------------------------------- |
| `unauthorized` / `invalid_token` | 401     | Sleutel ontbreekt of is onbekend                               |
| `key_revoked` / `key_expired`    | 401     | Sleutel ingetrokken of verlopen                                |
| `plan_upgrade_required`          | 403     | Plan zonder API-toegang                                        |
| `subscription_inactive`          | 403     | Schrijfactie terwijl abonnement inactief is                    |
| `insufficient_scope`             | 403     | Sleutel mist de vereiste scope                                 |
| `not_found`                      | 404     | Resource bestaat niet binnen jouw organisatie                  |
| `validation_error`               | 400     | Ongeldige body of queryparameter                               |
| `conflict`                       | 409     | Bijv. naam overschrijven of niet-pending uitnodiging intrekken |
| `person_limit_reached`           | 409     | Personenlimiet bereikt                                         |
| `idempotency_key_reused`         | 409     | Zelfde key, andere body                                        |
| `rate_limited`                   | 429     | Rate limit overschreden                                        |
| `internal_error`                 | 500/503 | Onze kant; probeer opnieuw                                     |

### Idempotent importeren

`POST /persons` is idempotent op e-mailadres: bestaat de persoon al actief in je pool, dan krijg je `200` met de header `X-Existing-Resource: true` in plaats van `201`. Zo kun je je hele ATS-bestand veilig herhaald synchroniseren.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://helpcenter.talentlead.nl/talent-assessment/api/conventies-and-foutafhandeling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
