Timestamp: type: string format: date-time description: UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema. examples: - '2026-10-05T09:30:00Z' PageInfo: type: object description: Cursor pagination state of a list response. Lists are ordered by a stable server-defined key. To read the next page, repeat the request with the same filters and `cursor` set to `next_cursor`. additionalProperties: false required: - has_more - next_cursor properties: has_more: type: boolean description: Whether another page follows this one. next_cursor: type: - string - 'null' minLength: 1 maxLength: 512 pattern: ^[A-Za-z0-9_-]+$ description: Opaque cursor of the next page, or null on the last page. Clients must not parse, build, or store it beyond the current listing. DirectionCode: type: string description: 'Stable code of a professional direction, the group that a specialization belongs to. - development: Development. - infrastructure: Infrastructure. - data: Data. - security: Security. - quality: Quality. Adding a value is a contract change.' enum: - development - infrastructure - data - security - quality SpecializationCode: type: string description: 'Stable code of a specialization. A category is a specialization together with a confirmed grade; programming languages and the technology stack are separate attributes and never form a category of their own, so Backend with Go is the category `backend`, not `go`. Algorithms is a shared assessment module, not a specialization, and has no code here. - backend: Backend (development). - frontend: Frontend (development). - mobile: Mobile (development). - network_engineer: Network Engineer (infrastructure). - devops_sre: DevOps/SRE (infrastructure). - data_analyst: Data Analyst (data). - ds_ml: DS/ML (data). - information_security: Information security (security). - qa: QA (quality). Adding a value is a contract change; renaming or removing one is a breaking change.' enum: - backend - frontend - mobile - network_engineer - devops_sre - data_analyst - ds_ml - information_security - qa GradeCode: type: string description: 'Grade of the MVP scale in ascending order: `intern`, `junior`, `middle`, `senior`. The same codes describe a self-assessed grade, which the candidate states, and a confirmed grade, which only an assessment result establishes. Lead and Architect are planned after the MVP; adding a value is a contract change.' enum: - intern - junior - middle - senior TaskLanguage: type: string description: Programming language in which assessment tasks of a specialization are offered and solved. It is the language of the task bank, not the candidate's platform stack, and it never forms a separate category. Only banks that offer a choice of language define task languages; the first Backend bank offers Python and Go. Adding a value is a contract change. enum: - python - go TestAvailabilityStatus: type: string description: Whether an assessment can start for the specialization. `available` means that a published task bank exists for at least one grade, listed in `TestAvailability.grades`. `in_development` means that no grade of the specialization has a published bank yet; the specialization can still be chosen in the questionnaire, but no assessment starts and no category can be confirmed for it. Presence in the catalog or in demo data never means that a test is ready. enum: - available - in_development TestAvailability: type: object description: Assessment availability of a specialization, derived by the server from the published task banks at the time of the request. The MVP opens an assessment only for a category, a specialization and a grade, that has a published bank. `status` is `available` exactly when `grades` is not empty; for `in_development` both `grades` and `task_languages` are empty. additionalProperties: false required: - status - grades - task_languages - note properties: status: $ref: '#/TestAvailabilityStatus' grades: type: array maxItems: 10 uniqueItems: true description: Grades of the specialization with a published task bank, in ascending order. Only these categories can be assessed and confirmed. items: $ref: '#/GradeCode' task_languages: type: array maxItems: 2 uniqueItems: true description: Task languages that the published bank offers for this specialization. Empty when the bank does not offer a choice of language, as for Network Engineer, or when no bank is published. The questionnaire accepts only these languages for the specialization. items: $ref: '#/TaskLanguage' note: type: - string - 'null' minLength: 1 maxLength: 300 description: Short Russian note for the candidate, for example why the test is not available yet, or null. Plain text; the client shows it as text, never as HTML. CatalogSpecialization: type: object description: Specialization in the catalog with its assessment availability. additionalProperties: false required: - code - title - test_availability properties: code: $ref: '#/SpecializationCode' title: type: string minLength: 1 maxLength: 100 description: Display name in Russian. Plain text. test_availability: $ref: '#/TestAvailability' CatalogDirection: type: object description: Professional direction with its specializations. Each specialization belongs to exactly one direction. additionalProperties: false required: - code - title - specializations properties: code: $ref: '#/DirectionCode' title: type: string minLength: 1 maxLength: 100 description: Display name in Russian. Plain text. specializations: type: array minItems: 1 maxItems: 20 description: Specializations of the direction in display order. items: $ref: '#/CatalogSpecialization' CatalogGrade: type: object description: Grade of the scale with its display name. additionalProperties: false required: - code - title properties: code: $ref: '#/GradeCode' title: type: string minLength: 1 maxLength: 100 description: Display name in Russian. Plain text. SpecializationCatalog: type: object description: Catalog of directions, specializations, and the grade scale that the questionnaire and the assessment use. The catalog is reference data and identical for every caller; it contains no personal data. additionalProperties: false required: - directions - grades properties: directions: type: array minItems: 1 maxItems: 20 description: Directions in display order. items: $ref: '#/CatalogDirection' grades: type: array minItems: 1 maxItems: 10 description: Grade scale in ascending order. items: $ref: '#/CatalogGrade' HealthResponse: type: object additionalProperties: false required: - status properties: status: type: string enum: - ok EmailAddress: type: string format: email minLength: 3 maxLength: 254 description: Account email address. The server compares addresses without regard to letter case and never reveals in a response whether an address belongs to an account. examples: - candidate@example.com NewPassword: type: string minLength: 15 maxLength: 128 description: Password chosen at registration. The server normalizes it to Unicode NFKC, as NIST SP 800-63B-4 recommends, and then requires 15 to 128 Unicode code points; a value that the schema accepts can still fail this check after normalization. The 15-character minimum follows NIST SP 800-63B-4 for a password used as the only authentication factor; there are no composition rules. The upper bound limits the cost of password hashing. Generated client validators count UTF-16 code units, so a password with characters outside the Basic Multilingual Plane can pass the client check and fail on the server; a later client check should count code points. A password on the server blocklist of common or breached passwords answers 400 validation_failed with the pointer `/password`. The value is never returned, logged, or echoed in a problem. LoginPassword: type: string minLength: 1 maxLength: 128 description: Password entered at login. The server applies the same NFKC normalization as at registration before it verifies the hash. Only the hashing bound applies, so a later change of the registration policy does not lock out existing accounts and a login error does not reveal the policy. The value is never returned, logged, or echoed in a problem. AccountScenario: type: string description: 'Scenario chosen at registration: `candidate` looks for an offer and passes the assessment, `employer` represents a company that searches for candidates. The scenario selects the onboarding steps.' enum: - candidate - employer OnboardingStep: type: string description: 'Saved onboarding step that the account returns to after login. The server stores it and advances it as each step completes; clients route by it and never set it directly. - candidate_consents: candidate consents beyond C1, which was given at registration. - candidate_profile: candidate profile. - candidate_questionnaire: candidate questionnaire. - candidate_assessment: the assessment. The expected grade is the `self_assessed_grade` saved in the questionnaire, and this step offers it first; only an assessment result confirms a grade. The first successful SaveMyQuestionnaire moves the account from candidate_questionnaire to this step (planned). - employer_company: company profile of the employer. - completed: onboarding is finished; the client opens the scenario home. Candidate steps follow the order above and end with completed; the employer has employer_company and then completed. New steps may be added as onboarding grows; adding a value is a contract change.' enum: - candidate_consents - candidate_profile - candidate_questionnaire - candidate_assessment - employer_company - completed ConsentPurpose: type: string description: 'Consent whose text the client may read before an account exists. Only the consents given at registration are listed: `c1` is the consent to the processing of personal data.' enum: - c1 ConsentText: type: object description: Currently published consent text. The server stores an acceptance with `text_version` and the hash of exactly this text. additionalProperties: false required: - purpose - text_version - text - published_at properties: purpose: $ref: '#/ConsentPurpose' text_version: $ref: '#/ConsentTextVersion' text: type: string minLength: 1 maxLength: 100000 description: Full consent text in plain UTF-8; paragraphs are separated by an empty line. The client shows it as text, never as HTML. published_at: $ref: '#/Timestamp' ConsentTextVersion: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9._-]+$ description: Identifier of the published consent text that the user saw and accepted. The server stores the acceptance with this version and the hash of its text; the client never sends or receives the hash. examples: - c1-2026-10-01 PersonalDataConsentAcceptance: type: object description: Consent C1 to the processing of personal data, given at registration. The client reads the current text and its version with GetConsentText(c1) and sends that version here. A version that is not the currently published one answers 400 validation_failed with the pointer `/consent_c1/text_version`; the client then reads the text again and asks the user to accept the new version. Unknown fields are rejected, so registration cannot carry any other consent; in particular, C4 is never part of registration. additionalProperties: false required: - text_version - accepted properties: text_version: $ref: '#/ConsentTextVersion' accepted: type: boolean enum: - true description: Explicit acceptance. Only true is valid. RegistrationRequest: type: object description: New account with its scenario and consent C1. additionalProperties: false required: - email - password - scenario - consent_c1 properties: email: $ref: '#/EmailAddress' password: $ref: '#/NewPassword' scenario: $ref: '#/AccountScenario' consent_c1: $ref: '#/PersonalDataConsentAcceptance' EmailVerificationResendRequest: type: object description: Address that should receive a new verification link. additionalProperties: false required: - email properties: email: $ref: '#/EmailAddress' IdentityRequestAccepted: type: object description: Neutral acknowledgement. Its content is identical whether or not the address belongs to an account or is already verified, so the response does not enumerate accounts. The client tells the user to check the mailbox. additionalProperties: false required: - status properties: status: type: string enum: - accepted VerificationToken: type: string minLength: 32 maxLength: 128 pattern: ^[A-Za-z0-9_-]+$ description: 'One-time raw token copied from the verification link. It is request input only: the server stores only its hash and never returns a token.' EmailVerificationRequest: type: object description: Token from the email verification link. additionalProperties: false required: - token properties: token: $ref: '#/VerificationToken' EmailVerificationResult: type: object description: Result of a successful email verification. It does not start a session; the user signs in next and continues from `onboarding_step`. additionalProperties: false required: - email_verified - scenario - onboarding_step properties: email_verified: type: boolean enum: - true description: Always true in a successful response. scenario: $ref: '#/AccountScenario' onboarding_step: $ref: '#/OnboardingStep' LoginRequest: type: object description: Email and password of the account. additionalProperties: false required: - email - password properties: email: $ref: '#/EmailAddress' password: $ref: '#/LoginPassword' CsrfToken: type: string minLength: 32 maxLength: 128 pattern: ^[A-Za-z0-9_-]+$ description: CSRF token bound to the current session. The client keeps it in memory only and sends it in the X-CSRF-Token header of every mutating request that requires a session. It changes when a new session starts. Account: type: object description: Current account view. It never contains password hashes, token hashes, session identifiers, or other storage secrets. additionalProperties: false required: - id - email - email_verified - scenario - onboarding_step - created_at properties: id: type: string format: uuid description: Account identifier. email: $ref: '#/EmailAddress' email_verified: type: boolean description: Whether the address is verified. A session exists only for a verified account, so this is true in every current response. scenario: $ref: '#/AccountScenario' onboarding_step: $ref: '#/OnboardingStep' created_at: $ref: '#/Timestamp' Session: type: object description: 'Current session as the client may see it: the account and the CSRF token. The session identifier itself travels only in the HttpOnly session cookie and never appears in a body.' additionalProperties: false required: - account - csrf_token properties: account: $ref: '#/Account' csrf_token: $ref: '#/CsrfToken' Problem: type: object description: Problem details (RFC 9457) returned with the application/problem+json media type for every error response. `code` is the stable, machine-readable reason; clients branch on it rather than on `title`, `detail`, or the HTTP status alone. The body never contains internal error text, stack traces, SQL, file paths, credentials, contact data, or echoed request values. additionalProperties: false required: - type - title - status - code properties: type: type: string format: uri-reference maxLength: 256 description: URI that identifies the problem type. It has the form `urn:lincodex:problem:` and is an identifier, not a link to dereference. title: type: string minLength: 1 maxLength: 200 description: Short, fixed English summary of the problem type. It does not change between occurrences. status: type: integer format: int32 minimum: 400 maximum: 599 description: HTTP status code generated by the origin server. code: $ref: '#/ProblemCode' detail: type: string maxLength: 1000 description: Safe English explanation of this occurrence. It never contains internal error text or request values. instance: type: string format: uri-reference maxLength: 2048 description: URI reference that identifies this occurrence, when one exists. trace_id: type: string minLength: 1 maxLength: 128 pattern: ^[A-Za-z0-9._-]+$ description: Request identifier, equal to the X-Request-ID response header. Quote it when reporting the problem; it is not a secret. errors: type: array maxItems: 100 description: Field-level reasons for validation_failed. Other codes omit it. items: $ref: '#/ProblemFieldError' ProblemCode: type: string description: 'Stable public error code. Adding a code is a contract change; renaming or removing one is a breaking change. Clients must handle an unknown code by its HTTP status. - validation_failed (400): parameters or body do not match the contract, or a body violates a domain rule such as salary_from <= salary_to; `errors` points at the fields. - verification_token_invalid (400): the email verification token is unknown, already used, or replaced by a newer one; request a new link or sign in. - verification_token_expired (400): the email verification token is past its lifetime; request a new link. - unauthenticated (401): no valid session or credentials. - invalid_credentials (401): the email and password do not match an account; an unknown email and a wrong password are not distinguished. - forbidden (403): the caller is authenticated but not allowed. - email_not_verified (403): the credentials are correct but the email is not verified yet. - csrf_check_failed (403): the request failed cross-site request protection: a missing or wrong X-CSRF-Token or a disallowed Origin. - not_found (404): the route or object does not exist or is not visible. - method_not_allowed (405): the route does not support the method. - idempotency_in_progress (409): a request with the same Idempotency-Key is still being processed. - state_conflict (409): the operation conflicts with the current state of the resource, for example an invitation that was already accepted. - version_conflict (412): If-Match, or an `expected_version` field in the request body, does not match the current version; nothing was changed. - payload_too_large (413): the request body exceeds the limit. - unsupported_media_type (415): the request Content-Type is not accepted. - idempotency_key_reused (422): the Idempotency-Key was already used with a different request. - precondition_required (428): the operation requires If-Match. - rate_limited (429): too many requests; see Retry-After. - internal (500): unexpected server error. - not_implemented (501): the operation is in the contract but not implemented yet.' enum: - validation_failed - verification_token_invalid - verification_token_expired - unauthenticated - invalid_credentials - forbidden - email_not_verified - csrf_check_failed - not_found - method_not_allowed - idempotency_in_progress - state_conflict - version_conflict - payload_too_large - unsupported_media_type - idempotency_key_reused - precondition_required - rate_limited - internal - not_implemented ProblemFieldError: type: object description: One reason why a request field or parameter is invalid. additionalProperties: false required: - in - pointer - code - message properties: in: $ref: '#/ProblemFieldLocation' pointer: type: string maxLength: 1024 pattern: ^(/([^~/]|~[01])*)*$ description: JSON Pointer (RFC 6901). For `body` it points into the request body document, for example `/salary_from`; an empty string means the whole body. For a parameter it is `/` followed by the parameter name, for example `/limit` or `/Idempotency-Key`. code: type: string minLength: 1 maxLength: 64 pattern: ^[a-z][a-z0-9_]*$ description: Stable field reason. Current values are `required` (missing value) and `invalid` (malformed value or a value outside the schema). Clients must tolerate new values. message: type: string minLength: 1 maxLength: 500 description: Fixed English message that never echoes the submitted value. ProblemFieldLocation: type: string description: Part of the request that contains the invalid field. enum: - body - query - path - header - cookie QuestionnaireVersion: type: integer format: int64 minimum: 0 description: Version of the candidate questionnaire. A candidate without a saved questionnaire has version 0; every save that changes the questionnaire advances it by one. examples: - 3 StackTag: type: string minLength: 1 maxLength: 50 pattern: ^\S(?:.*\S)?$ description: 'Free technology tag of the candidate''s stack, for example PostgreSQL, Kubernetes, or Django. A tag is a descriptive attribute: it never forms a category, never selects the task language, and never changes a grade, so a tag such as "Senior" has no effect on any category. It has no leading or trailing whitespace and no line breaks. The server compares tags without regard to letter case. Clients show tags as text, never as HTML.' WorkFormat: type: string description: 'Acceptable work format: `remote`, `office`, or `hybrid`.' enum: - remote - office - hybrid WorkContext: type: object description: Working context of the candidate's search. It holds no personal data such as an address or a city; location, relocation, and salary expectations belong to the candidate profile. additionalProperties: false required: - work_formats properties: work_formats: type: array minItems: 1 maxItems: 3 uniqueItems: true description: Acceptable work formats. items: $ref: '#/WorkFormat' CandidateExperience: type: object description: 'Experience that the candidate states for one specialization, in whole months. It is self-reported context: it never adds assessment points and never confirms a grade.' additionalProperties: false required: - commercial_months - academic_months properties: commercial_months: type: integer format: int32 minimum: 0 maximum: 600 description: Months of commercial work in the specialization. academic_months: type: integer format: int32 minimum: 0 maximum: 600 description: Months of study, internships, or academic projects in the specialization. QuestionnaireSpecialization: type: object description: 'One specialization chosen by the candidate with the candidate''s self-assessment. `self_assessed_grade` is a claim: it influences where the assessment starts and which grade the assessment step offers first, but it adds no points and never becomes a confirmed grade. A confirmed grade, and with it a category, comes only from an assessment result and is never part of the questionnaire; unknown fields such as `confirmed_grade` or `category` are rejected. Task languages and the stack are attributes of the chosen specialization, not categories.' additionalProperties: false required: - specialization - self_assessed_grade - task_languages - stack - experience properties: specialization: $ref: '#/SpecializationCode' self_assessed_grade: $ref: '#/GradeCode' task_languages: type: array maxItems: 2 uniqueItems: true description: Task languages in which the candidate wants to solve assessment tasks of this specialization. Each value must be one of `test_availability.task_languages` of the specialization in the current catalog; any other value answers 400 validation_failed with a pointer to it. Empty when the bank offers no choice of language. items: $ref: '#/TaskLanguage' stack: type: array maxItems: 20 uniqueItems: true description: Technology tags of the candidate in this specialization. items: $ref: '#/StackTag' experience: description: Stated experience, or null when the candidate did not state it. oneOf: - $ref: '#/CandidateExperience' - type: 'null' CandidateQuestionnaire: type: object description: 'Questionnaire of the current candidate: the chosen specializations with self-assessed grades and the working context. It never contains a confirmed grade or a category; those come only from assessment results. A candidate who has not saved the questionnaire yet gets version 0, no specializations, and null `work_context` and `updated_at`.' additionalProperties: false required: - version - specializations - work_context - updated_at properties: version: $ref: '#/QuestionnaireVersion' specializations: type: array maxItems: 2 description: Chosen specializations in the order the candidate gave them, each specialization at most once. Each one is assessed independently. items: $ref: '#/QuestionnaireSpecialization' work_context: description: Working context, or null before the first save. oneOf: - $ref: '#/WorkContext' - type: 'null' updated_at: description: Time of the last change, or null before the first save. oneOf: - $ref: '#/Timestamp' - type: 'null' CandidateQuestionnaireUpdate: type: object description: Complete new state of the questionnaire. It replaces the stored specializations and working context as a whole. Unknown fields are rejected, so a request cannot set a confirmed grade or a category. additionalProperties: false required: - expected_version - specializations - work_context properties: expected_version: $ref: '#/QuestionnaireVersion' specializations: type: array minItems: 1 maxItems: 2 description: One or two chosen specializations. The schema limits the count; the server also requires each specialization to appear at most once and answers a repeated one with 400 validation_failed and the pointer of the repeated item's `specialization`, for example `/specializations/1/specialization`. items: $ref: '#/QuestionnaireSpecialization' work_context: $ref: '#/WorkContext'