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 | withdrawn |
| cv_url | url | max length 2048 |
| job_id | string | max length 64ref →job |
| skills | tags | max count 100item max160 |
| source | string | max length 64 |
| answers | dict | max keys 80 |
| fit_gaps | list | - |
| position | number | - |
| education | list | - |
| fit_flags | tags | - |
| fit_score | number | - |
| source_id | string | max length 64ref →source |
| video_url | url | max length 2048 |
| applied_at | string | max length 32 |
| cv_blob_id | string | max length 64 |
| experience | list | - |
| source_uid | number | - |
| attachments | list | - |
| cv_feedback | enum | enum ok | edited | incomplete |
| candidate_id | string | max length 64ref →candidate |
| cover_letter | string | max length 16000 |
| source_label | string | max length 200 |
| status_token | string | max length 64 |
| fit_breakdown | dict | - |
| fit_reasoning | string | max length 4000 |
| fit_strengths | list | - |
| last_stage_at | string | max length 32 |
| rejected_note | string | max length 2000 |
| source_folder | string | max length 200 |
| stage_history | list | - |
| previous_stage | string | max length 32 |
| source_subject | string | max length 500 |
| 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 |
| source_inbox_id | string | max length 64 |
| cover_letter_url | url | max length 2048 |
| source_followups | list | - |
| source_from_addr | string | max length 320 |
| source_from_name | string | max length 200 |
| source_account_id | string | max length 64 |
| source_message_id | string | max length 400 |
| source_match_score | number | - |
| source_received_at | string | max length 32 |
| source_body_preview | string | max length 2000 |
| source_match_reason | string | max length 400 |
| cover_letter_blob_id | string | max length 64 |
| last_inbound_email_at | string | max length 32 |
| fit_interview_questions | list | - |
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 | ||
| skills | ||
| source | ||
| answers | ||
| fit_gaps | ||
| position | ||
| education | ||
| fit_flags | ||
| fit_score | ||
| source_id | ||
| video_url | ||
| applied_at | ||
| cv_blob_id | ||
| experience | ||
| source_uid | ||
| attachments | ||
| cv_feedback | ||
| candidate_id | ||
| cover_letter | ||
| source_label | ||
| status_token | ||
| fit_breakdown | ||
| fit_reasoning | ||
| fit_strengths | ||
| last_stage_at | ||
| rejected_note | ||
| source_folder | ||
| stage_history | ||
| previous_stage | ||
| source_subject | ||
| fit_computed_at | ||
| rejected_reason | ||
| source_inbox_id | ||
| cover_letter_url | ||
| source_followups | ||
| source_from_addr | ||
| source_from_name | ||
| source_account_id | ||
| source_message_id | ||
| source_match_score | ||
| source_received_at | ||
| source_body_preview | ||
| source_match_reason | ||
| cover_letter_blob_id | ||
| last_inbound_email_at | ||
| fit_interview_questions | ||
| starred |
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://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://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://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://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://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