Data model
Applications
Links a candidate to a job. Carries stage (new -> review -> screening -> interview -> offer -> hired | rejected | talent_pool), KI fit-score, source, cover-letter URL, resume URL, and intra-column kanban position.
application500Fields
Per-field validation rules. Values that violate any constraint are rejected with 400 before they reach the database.
| Field | Type | Constraints |
|---|---|---|
| tags | tags | - |
| stage | enum | enum new | review | screening | interview | offer | hired | rejected | talent_pool |
| cv_url | url | max length 2048 |
| job_id | string | max length 64ref →job |
| answers | list | - |
| position | number | - |
| fit_flags | tags | - |
| fit_score | number | - |
| source_id | string | max length 64ref →source |
| applied_at | string | max length 32 |
| cv_blob_id | string | max length 64 |
| candidate_id | string | max length 64ref →candidate |
| cover_letter | string | max length 16000 |
| source_label | string | max length 200 |
| fit_reasoning | string | max length 4000 |
| last_stage_at | string | max length 32 |
| rejected_note | string | max length 2000 |
| previous_stage | string | max length 32 |
| fit_computed_at | string | max length 32 |
| rejected_reason | enum | enum not_qualified | salary_mismatch | location_mismatch | culture_mismatch | withdrew | ghosted | filled_internally | duplicate | other |
Mutability
Which fields can you send, and when? Anything without a marker is server-managed - sending it isn't an error, it's silently ignored.
| Field | Create | Patch |
|---|---|---|
| tags | ||
| stage | ||
| cv_url | ||
| job_id | ||
| answers | ||
| position | ||
| fit_flags | ||
| fit_score | ||
| source_id | ||
| applied_at | ||
| cv_blob_id | ||
| candidate_id | ||
| cover_letter | ||
| source_label | ||
| fit_reasoning | ||
| last_stage_at | ||
| rejected_note | ||
| previous_stage | ||
| fit_computed_at | ||
| rejected_reason |
Fields marked create-only but not patchable are immutable after creation. Server-managed fields include id, timestamps, ownership, and status.
Filtering & sorting
Combinable on list endpoints. Repeating a filter key produces an IN clause; prefixing a sort key with - reverses direction. Example: ?status=open&status=blocked&sort=-created_at.
Filter keys
data__job_iddata__candidate_iddata__stagedata__source_iddata__rejected_reasondata__is_archivedis_archivedowned_bycreated_bySort keys
created_atupdated_atdata__applied_atdata__fit_scoredata__positiondata__last_stage_atDefault: position
Endpoints
Each endpoint below lists its HTTP method, path, and the PAT scope it needs. Code samples cover curl, JavaScript, TypeScript, Python, Rust, Java, and WebSocket.
/xapi2/data/applicationapplication:listList objects
Returns a paginated list of objects you can read. Default page size is 20; pass ?limit= to change (capped per type). Use ?after=<id> for keyset pagination on created_at-sorted lists, or ?offset= for offset paging.
curl -H "Authorization: Bearer pat_…" \"https://www.ki-bewerber-management.de/xapi2/data/application?limit=20"
/xapi2/data/application/{id}application:readRead one
Returns the object by id. 404 if it does not exist or you cannot read it (the two cases are intentionally conflated).
curl -H "Authorization: Bearer pat_…" \https://www.ki-bewerber-management.de/xapi2/data/application/OBJECT_ID
/xapi2/data/applicationapplication:createCreate
Creates a new object. Body is a flat JSON dict of field values. Server-side fields (id, timestamps, ownership) are filled automatically; only fields listed below as creatable are read from the body.
curl -H "Authorization: Bearer pat_…" \-H "Content-Type: application/json" \-X POST https://www.ki-bewerber-management.de/xapi2/data/application \-d '{"name": "…"}'
/xapi2/data/application/{id}application:updateUpdate
Partial update. Only fields included in the body are touched; everything else is preserved. Same allow-list as create, minus the fields that are immutable post-create.
curl -H "Authorization: Bearer pat_…" \-H "Content-Type: application/json" \-X PATCH https://www.ki-bewerber-management.de/xapi2/data/application/OBJECT_ID \-d '{"name": "…"}'
/xapi2/data/application/{id}application:deleteDelete
Removes the object. It vanishes from every default list immediately and stops being returned by read / list.
curl -H "Authorization: Bearer pat_…" \-X DELETE https://www.ki-bewerber-management.de/xapi2/data/application/OBJECT_ID
Use in CLI
The same endpoints are also exposed via the KI BMS CLI. For scripts, CI, and bulk imports it's usually the faster path.
atscli application list --limit 5atscli application get <id>atscli application create --job-id "Hello"atscli application upsert --unique job_id --csv items.csvatscli application schema # fields & limits
Full command reference, profiles, CSV import, auto-retry, NDJSON streaming → /docs/cli