{ "basePath": "/api/v1", "definitions": { "github_com_Angle-HR_server_internal_admin.AuditLog": { "properties": { "action": { "type": "string" }, "actor_email": { "type": "string" }, "actor_id": { "type": "string" }, "created_at": { "type": "string" }, "id": { "type": "integer" }, "ip": { "type": "string" }, "meta": { "items": { "type": "integer" }, "type": "array" }, "resource_id": { "type": "string" }, "resource_type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_admin.InvitePreview": { "properties": { "email": { "type": "string" }, "expires_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_admin.Permission": { "properties": { "description": { "type": "string" }, "id": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_admin.RoleWithPermissions": { "properties": { "id": { "type": "string" }, "is_system": { "type": "boolean" }, "name": { "type": "string" }, "permissions": { "items": { "type": "string" }, "type": "array" }, "slug": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_admin.StaffMember": { "properties": { "created_at": { "type": "string" }, "email": { "type": "string" }, "id": { "type": "string" }, "invite_pending": { "type": "boolean" }, "is_active": { "type": "boolean" }, "name": { "type": "string" }, "roles": { "items": { "type": "string" }, "type": "array" }, "totp_enabled": { "type": "boolean" }, "updated_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_apidoc.ErrorBody": { "properties": { "code": { "example": "VALIDATION_ERROR", "type": "string" }, "details": { "additionalProperties": {}, "type": "object" }, "message": { "example": "invalid request body", "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope": { "properties": { "error": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorBody" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "github_com_Angle-HR_server_internal_apidoc.Meta": { "properties": { "has_more": { "type": "boolean" }, "next_cursor": { "type": "string" }, "request_id": { "example": "abc123", "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.ActivityPage": { "properties": { "items": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Event" }, "type": "array" }, "next_cursor": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Answer": { "properties": { "file_id": { "description": "FileID is set for upload questions; the file is fetched through the file endpoint.", "type": "string" }, "label": { "type": "string" }, "question_id": { "type": "string" }, "section": { "type": "string" }, "type": { "type": "string" }, "value": { "items": { "type": "integer" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.ApplicantSettings": { "properties": { "reapply_block_available": { "description": "ReapplyBlockAvailable is false when the server has no key for it, so it cannot be turned on.", "type": "boolean" }, "reapply_block_months": { "description": "ReapplyBlockMonths is 0 (off) or 6: a rejected candidate cannot apply to the company again for that long.", "type": "integer" }, "send_status_emails": { "description": "SendStatusEmails sends the candidate an email when they are rejected or hired.", "type": "boolean" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Attachment": { "properties": { "content_type": { "type": "string" }, "filename": { "type": "string" }, "id": { "type": "string" }, "size": { "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.BulkItem": { "properties": { "application_id": { "type": "string" }, "ok": { "type": "boolean" }, "reason": { "description": "Reason says why it was left where it is: not_found, flagged (review it first), final, invalid or changed.", "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.CompareItem": { "properties": { "country": { "type": "string" }, "email": { "type": "string" }, "files": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.File" }, "type": "array" }, "id": { "type": "string" }, "interviews": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Interview" }, "type": "array" }, "name": { "type": "string" }, "stage_id": { "type": "string" }, "status": { "type": "string" }, "submitted_at": { "type": "string" }, "tags": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Tag" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.CompareResult": { "properties": { "applications": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.CompareItem" }, "type": "array" }, "rows": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.CompareRow" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.CompareRow": { "properties": { "file_ids": { "description": "FileIDs has one entry per candidate for upload questions: the file's id, or \"\".", "items": { "type": "string" }, "type": "array" }, "label": { "type": "string" }, "question_id": { "type": "string" }, "section": { "type": "string" }, "type": { "type": "string" }, "values": { "description": "Values has one entry per candidate: the answer, or null when they gave none.", "items": { "items": { "type": "integer" }, "type": "array" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Detail": { "properties": { "answers": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Answer" }, "type": "array" }, "can_decide": { "description": "CanDecide tells the client whether to offer status changes and review decisions.", "type": "boolean" }, "consent_given_at": { "type": "string" }, "country": { "type": "string" }, "decided_at": { "type": "string" }, "disqualify_reason": { "description": "DisqualifyReason is the code of the reason a rejected application was disqualified for, if one was given.", "type": "string" }, "email": { "type": "string" }, "files": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.File" }, "type": "array" }, "flag_count": { "type": "integer" }, "flags": { "items": { "type": "integer" }, "type": "array" }, "followed": { "description": "Followed is true when the caller follows the application.", "type": "boolean" }, "form_version": { "type": "integer" }, "has_files": { "type": "boolean" }, "id": { "type": "string" }, "job_id": { "type": "string" }, "market": { "type": "string" }, "name": { "type": "string" }, "note_count": { "type": "integer" }, "opened": { "type": "boolean" }, "privacy_notice_version": { "type": "string" }, "retention_until": { "type": "string" }, "review": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Review" }, "source": { "type": "string" }, "stage_id": { "description": "StageID is the application's stage in its job's pipeline; empty for a withdrawn application.", "type": "string" }, "status": { "type": "string" }, "status_note": { "type": "string" }, "submitted_at": { "type": "string" }, "tag_ids": { "items": { "type": "string" }, "type": "array" }, "tags": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Tag" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Event": { "properties": { "actor_id": { "type": "string" }, "actor_name": { "type": "string" }, "created_at": { "type": "string" }, "data": { "items": { "type": "integer" }, "type": "array" }, "id": { "type": "integer" }, "type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.File": { "properties": { "content_type": { "type": "string" }, "filename": { "type": "string" }, "id": { "type": "string" }, "question_id": { "type": "string" }, "size_bytes": { "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.FileLink": { "properties": { "expires_at": { "type": "string" }, "filename": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Interview": { "properties": { "application_id": { "type": "string" }, "candidate_name": { "description": "Set on a person's schedule: who the interview is with and for which job.", "type": "string" }, "created_at": { "type": "string" }, "created_by": { "type": "string" }, "duration_minutes": { "type": "integer" }, "ends_at": { "type": "string" }, "id": { "type": "string" }, "interviewer_ids": { "items": { "type": "string" }, "type": "array" }, "job_code": { "type": "string" }, "job_id": { "type": "string" }, "job_title": { "type": "string" }, "kind": { "type": "string" }, "location": { "type": "string" }, "notes": { "type": "string" }, "starts_at": { "type": "string" }, "status": { "type": "string" }, "timezone": { "type": "string" }, "updated_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Message": { "properties": { "attachments": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Attachment" }, "type": "array" }, "body": { "type": "string" }, "created_at": { "type": "string" }, "error": { "description": "Error is a short reason when Status is failed.", "type": "string" }, "id": { "type": "string" }, "scheduled_at": { "type": "string" }, "sender_id": { "type": "string" }, "sent_at": { "type": "string" }, "status": { "type": "string" }, "subject": { "type": "string" }, "template_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.MoveResult": { "properties": { "decided_at": { "type": "string" }, "stage_id": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Note": { "properties": { "author_id": { "type": "string" }, "body": { "type": "string" }, "created_at": { "type": "string" }, "id": { "type": "string" }, "mine": { "type": "boolean" }, "updated_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Offer": { "properties": { "application_id": { "type": "string" }, "body": { "type": "string" }, "compensation": { "type": "string" }, "created_at": { "type": "string" }, "created_by": { "type": "string" }, "decline_reason": { "type": "string" }, "declined_at": { "type": "string" }, "expires_at": { "type": "string" }, "has_document": { "description": "HasDocument is true once the signed document exists.", "type": "boolean" }, "id": { "type": "string" }, "job_id": { "type": "string" }, "sent_at": { "type": "string" }, "signed_at": { "type": "string" }, "signed_name": { "type": "string" }, "start_date": { "type": "string" }, "status": { "type": "string" }, "title": { "type": "string" }, "updated_at": { "type": "string" }, "viewed_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.OfferEvent": { "properties": { "actor_id": { "type": "string" }, "created_at": { "type": "string" }, "data": { "items": { "type": "integer" }, "type": "array" }, "id": { "type": "integer" }, "ip": { "type": "string" }, "type": { "type": "string" }, "user_agent": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.OfferTemplate": { "properties": { "body": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "updated_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Page": { "properties": { "counts": { "additionalProperties": { "type": "integer" }, "type": "object" }, "items": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Summary" }, "type": "array" }, "next_cursor": { "type": "string" }, "stage_counts": { "additionalProperties": { "type": "integer" }, "description": "StageCounts are the applications per stage id for the whole job, whatever the filters.", "type": "object" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Preview": { "properties": { "body": { "type": "string" }, "subject": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.PublicOffer": { "properties": { "body": { "type": "string" }, "can_respond": { "description": "CanRespond is true while the candidate can sign or decline.", "type": "boolean" }, "candidate_name": { "type": "string" }, "company": { "type": "string" }, "compensation": { "type": "string" }, "consent_text": { "type": "string" }, "expires_at": { "type": "string" }, "has_document": { "description": "HasDocument is true once the signed document exists.", "type": "boolean" }, "job_title": { "type": "string" }, "signed_at": { "type": "string" }, "signed_name": { "type": "string" }, "start_date": { "type": "string" }, "status": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Reason": { "properties": { "code": { "type": "string" }, "label": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Result": { "properties": { "decided_at": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Review": { "properties": { "decided_at": { "type": "string" }, "decision": { "type": "string" }, "note": { "type": "string" }, "opened_by_me": { "description": "OpenedByMe is true when the caller opened the application since it was flagged, so they may decide it.", "type": "boolean" }, "reasons": { "items": { "type": "integer" }, "type": "array" }, "status": { "description": "open or done", "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Stage": { "properties": { "count": { "description": "Count is how many applications are in the stage now.", "type": "integer" }, "final": { "description": "Final stages (Hired, Disqualified) end the application.", "type": "boolean" }, "id": { "type": "string" }, "key": { "type": "string" }, "kind": { "type": "string" }, "name": { "type": "string" }, "position": { "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Summary": { "properties": { "country": { "type": "string" }, "email": { "type": "string" }, "flag_count": { "type": "integer" }, "followed": { "description": "Followed is true when the caller follows the application.", "type": "boolean" }, "has_files": { "type": "boolean" }, "id": { "type": "string" }, "market": { "type": "string" }, "name": { "type": "string" }, "note_count": { "type": "integer" }, "opened": { "type": "boolean" }, "source": { "type": "string" }, "stage_id": { "description": "StageID is the application's stage in its job's pipeline; empty for a withdrawn application.", "type": "string" }, "status": { "type": "string" }, "submitted_at": { "type": "string" }, "tag_ids": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Tag": { "properties": { "color": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_applications.Template": { "properties": { "body": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "subject": { "type": "string" }, "updated_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.AuditEvent": { "properties": { "action": { "type": "string" }, "actor_id": { "type": "string" }, "created_at": { "type": "string" }, "diff": { "items": { "type": "integer" }, "type": "array" }, "id": { "type": "integer" }, "job_id": { "type": "string" }, "source": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.BulkDone": { "properties": { "after": { "type": "string" }, "before": { "type": "string" }, "id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.BulkResult": { "properties": { "action": { "type": "string" }, "done": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.BulkDone" }, "type": "array" }, "skipped": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_lifecycle.Skipped" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.Catalog": { "properties": { "currencies": { "items": { "type": "string" }, "type": "array" }, "description_sections": { "items": { "type": "string" }, "type": "array" }, "employment_types": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "experience_ranges": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.CatalogItem" }, "type": "array" }, "industries": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.CatalogItem" }, "type": "array" }, "lawful_bases": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "location_modes": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "markets": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Market" }, "type": "array" }, "max_title_length": { "type": "integer" }, "pay_periods": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "pay_types": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "retention_months": { "items": { "type": "integer" }, "type": "array" }, "seniority_levels": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.CatalogItem" }, "type": "array" }, "travel_frequencies": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "visa_policies": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" }, "workplace_types": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Option" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.CreateRequest": { "properties": { "assessment_url": { "type": "string" }, "closing_date": { "type": "string" }, "custom_industry": { "type": "string" }, "department_id": { "type": "string" }, "description_sections": { "additionalProperties": { "items": { "type": "integer" }, "type": "array" }, "type": "object" }, "employment_type": { "type": "string" }, "experience_range_id": { "type": "string" }, "form_template_id": { "description": "FormTemplateID starts the application form from a saved form template.", "type": "string" }, "industry_id": { "type": "string" }, "lawful_basis": { "type": "string" }, "lia_reference": { "type": "string" }, "location_mode": { "type": "string" }, "location_text": { "type": "string" }, "markets": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.MarketSel" }, "type": "array" }, "pay": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PayPatch" }, "retention_months": { "type": "integer" }, "seniority_level_id": { "type": "string" }, "show_on_career_page": { "type": "boolean" }, "skills": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Skill" }, "type": "array" }, "template_id": { "description": "TemplateID starts the draft from a saved job-details template instead of the caller's default.", "type": "string" }, "title": { "type": "string" }, "travel_frequency": { "type": "string" }, "use_company_address": { "type": "boolean" }, "visa_sponsorship": { "type": "string" }, "workplace_type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.DPIAInput": { "properties": { "reference": { "description": "where the full assessment lives", "type": "string" }, "summary": { "description": "what automated screening the DPIA covers", "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.FormInput": { "properties": { "declarations": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_pkg_formschema.Declaration" }, "type": "array" }, "questions": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_pkg_formschema.FormQuestion" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.FormView": { "properties": { "automated_screening_enabled": { "type": "boolean" }, "declarations": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_pkg_formschema.Declaration" }, "type": "array" }, "job_id": { "type": "string" }, "job_revision": { "type": "integer" }, "questions": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_pkg_formschema.FormQuestion" }, "type": "array" }, "warnings": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Warning" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.JobCounts": { "properties": { "all": { "type": "integer" }, "by_status": { "additionalProperties": { "type": "integer" }, "type": "object" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.JobView": { "properties": { "assessment_url": { "type": "string" }, "closing_date": { "type": "string" }, "completed_sections": { "items": { "type": "string" }, "type": "array" }, "created_at": { "type": "string" }, "created_by": { "type": "string" }, "current_step": { "type": "string" }, "custom_industry": { "type": "string" }, "department_id": { "type": "string" }, "department_name": { "type": "string" }, "description_sections": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Sections" }, "duplicates": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Duplicate" }, "type": "array" }, "employment_type": { "type": "string" }, "experience_range_id": { "type": "string" }, "id": { "type": "string" }, "industry_id": { "type": "string" }, "job_code": { "type": "string" }, "job_number": { "type": "integer" }, "lawful_basis": { "type": "string" }, "lia_reference": { "type": "string" }, "location_mode": { "type": "string" }, "location_text": { "type": "string" }, "markets": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.MarketSel" }, "type": "array" }, "members": { "description": "Members is the hiring team, shown to people who may see the access list.", "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Member" }, "type": "array" }, "pay": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Pay" }, "public_id": { "type": "string" }, "published_at": { "type": "string" }, "retention_months": { "type": "integer" }, "revision": { "type": "integer" }, "seniority_level_id": { "type": "string" }, "show_on_career_page": { "type": "boolean" }, "skills": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Skill" }, "type": "array" }, "status": { "type": "string" }, "title": { "type": "string" }, "travel_frequency": { "type": "string" }, "updated_at": { "type": "string" }, "use_company_address": { "type": "boolean" }, "visa_sponsorship": { "type": "string" }, "warnings": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Warning" }, "type": "array" }, "workplace_type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.MeView": { "properties": { "company_address": { "description": "CompanyAddress is the company's registered address, for \"Same as company address\". Empty when none is set.", "type": "string" }, "company_name": { "type": "string" }, "permissions": { "items": { "type": "string" }, "type": "array" }, "roles": { "items": { "type": "string" }, "type": "array" }, "user_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.MemberInput": { "properties": { "role": { "type": "string" }, "user_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.Option": { "properties": { "label": { "type": "string" }, "value": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.PrivacyContactInput": { "properties": { "dpo_contact": { "type": "string" }, "privacy_contact_email": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.RulesInput": { "properties": { "dpia_scope_confirmed": { "description": "DPIAScopeConfirmed is the job owner's confirmation that this job's screening is covered by the company\nDPIA. Nil leaves it as it is; saving different rules clears it, so it has to be confirmed again.", "type": "boolean" }, "rules": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_pkg_formschema_screening.Rule" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.RulesView": { "properties": { "automated_screening_enabled": { "type": "boolean" }, "dpia_scope_confirmed": { "type": "boolean" }, "rules": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_pkg_formschema_screening.Rule" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.TemplateExport": { "properties": { "kind": { "type": "string" }, "name": { "type": "string" }, "payload": { "items": { "type": "integer" }, "type": "array" }, "version": { "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.TemplateInput": { "properties": { "as_my_default": { "type": "boolean" }, "from_job_id": { "type": "string" }, "kind": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_draft.TransitionResult": { "properties": { "job": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.JobView" }, "warnings": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_gates.Issue" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_gates.Issue": { "properties": { "code": { "type": "string" }, "gate_id": { "type": "string" }, "message": { "type": "string" }, "path": { "type": "string" }, "severity": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_gates.Report": { "properties": { "blocking": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_gates.Issue" }, "type": "array" }, "gates": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_gates.State" }, "type": "array" }, "warnings": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_gates.Issue" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_gates.State": { "properties": { "auto": { "description": "Auto is true when the server answers the gate from the job's own data and nobody confirms it.", "type": "boolean" }, "confirmed": { "type": "boolean" }, "detail": { "type": "string" }, "id": { "type": "string" }, "legal_basis": { "type": "string" }, "market_code": { "type": "string" }, "platform": { "type": "boolean" }, "requirement": { "type": "string" }, "severity": { "type": "string" }, "stale": { "description": "confirmed against an older version of the wording", "type": "boolean" }, "version": { "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.CatalogItem": { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.CompanySetup": { "properties": { "automated_screening_enabled": { "type": "boolean" }, "dpa_accepted": { "type": "boolean" }, "dpa_accepted_at": { "type": "string" }, "dpa_version": { "description": "the version that must be accepted", "type": "string" }, "dpia_recorded_at": { "type": "string" }, "dpia_version": { "description": "0 = not recorded", "type": "integer" }, "dpo_contact": { "type": "string" }, "kyb_status": { "type": "string" }, "privacy_contact_email": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.Department": { "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.ListItem": { "properties": { "applicant_count": { "description": "ApplicantCount is how many people have applied. NewApplicantCount is how many of them nobody on the hiring\nteam has opened yet. Both are null, and ApplicantCountsAvailable is false, when the applications service could\nnot be reached: the counters are unknown, which is not the same as zero.", "type": "integer" }, "applicant_counts_available": { "type": "boolean" }, "closing_date": { "type": "string" }, "created_at": { "type": "string" }, "created_by": { "type": "string" }, "current_step": { "type": "string" }, "department_name": { "type": "string" }, "employment_type": { "type": "string" }, "id": { "type": "string" }, "job_code": { "type": "string" }, "location_mode": { "type": "string" }, "managers": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.ListPerson" }, "type": "array" }, "markets": { "items": { "type": "string" }, "type": "array" }, "new_applicant_count": { "type": "integer" }, "published_at": { "type": "string" }, "revision": { "type": "integer" }, "status": { "type": "string" }, "title": { "type": "string" }, "updated_at": { "type": "string" }, "workplace_type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.ListPerson": { "properties": { "name": { "type": "string" }, "user_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.Member": { "properties": { "email": { "description": "output only", "type": "string" }, "name": { "description": "output only", "type": "string" }, "role": { "type": "string" }, "user_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.Person": { "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "roles": { "items": { "type": "string" }, "type": "array" }, "user_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.Settings": { "properties": { "automated_screening_enabled": { "type": "boolean" }, "automated_screening_enabled_at": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_hiringtypes.Template": { "properties": { "created_by": { "type": "string" }, "id": { "type": "string" }, "is_default": { "type": "boolean" }, "kind": { "type": "string" }, "last_used_at": { "type": "string" }, "name": { "type": "string" }, "payload": { "items": { "type": "integer" }, "type": "array" }, "pinned": { "description": "Pinned templates sort first for the whole company.", "type": "boolean" }, "updated_at": { "type": "string" }, "use_count": { "description": "UseCount is how many drafts were started from this template by id.", "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Duplicate": { "properties": { "id": { "type": "string" }, "job_code": { "type": "string" }, "status": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Market": { "properties": { "code": { "type": "string" }, "currencies": { "items": { "type": "string" }, "type": "array" }, "is_open": { "type": "boolean" }, "min_retention_months": { "type": "integer" }, "name": { "type": "string" }, "warnings": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Warning" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.MarketSel": { "properties": { "city": { "type": "string" }, "market_code": { "type": "string" }, "subdivision": { "type": "string" }, "timezone": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Patch": { "properties": { "assessment_url": { "type": "string" }, "closing_date": { "type": "string" }, "custom_industry": { "type": "string" }, "department_id": { "type": "string" }, "description_sections": { "additionalProperties": { "items": { "type": "integer" }, "type": "array" }, "type": "object" }, "employment_type": { "type": "string" }, "experience_range_id": { "type": "string" }, "industry_id": { "type": "string" }, "lawful_basis": { "type": "string" }, "lia_reference": { "type": "string" }, "location_mode": { "type": "string" }, "location_text": { "type": "string" }, "markets": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.MarketSel" }, "type": "array" }, "pay": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PayPatch" }, "retention_months": { "type": "integer" }, "seniority_level_id": { "type": "string" }, "show_on_career_page": { "type": "boolean" }, "skills": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Skill" }, "type": "array" }, "title": { "type": "string" }, "travel_frequency": { "type": "string" }, "use_company_address": { "type": "boolean" }, "visa_sponsorship": { "type": "string" }, "workplace_type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Pay": { "properties": { "currency": { "type": "string" }, "max": { "type": "integer" }, "min": { "type": "integer" }, "period": { "type": "string" }, "type": { "type": "string" }, "visible": { "type": "boolean" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.PayPatch": { "properties": { "currency": { "type": "string" }, "max": { "type": "integer" }, "min": { "type": "integer" }, "period": { "type": "string" }, "type": { "type": "string" }, "visible": { "type": "boolean" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.PublicJob": { "properties": { "assessment_link_set": { "type": "boolean" }, "closing_date": { "type": "string" }, "company": { "type": "string" }, "department": { "type": "string" }, "description_sections": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Sections" }, "description_text": { "type": "string" }, "employment_type": { "type": "string" }, "experience": { "type": "string" }, "industry": { "type": "string" }, "job_code": { "type": "string" }, "location_mode": { "type": "string" }, "location_text": { "type": "string" }, "locations": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PublicLocation" }, "type": "array" }, "pay": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PublicPay" }, "questions": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PublicQuestion" }, "type": "array" }, "seniority": { "type": "string" }, "skills": { "items": { "type": "string" }, "type": "array" }, "title": { "type": "string" }, "travel_frequency": { "type": "string" }, "visa_sponsorship": { "type": "string" }, "workplace_type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.PublicLocation": { "properties": { "city": { "type": "string" }, "market_code": { "type": "string" }, "subdivision": { "type": "string" }, "timezone": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.PublicPay": { "properties": { "currency": { "type": "string" }, "max": { "type": "integer" }, "min": { "type": "integer" }, "period": { "type": "string" }, "type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.PublicQuestion": { "properties": { "config": { "items": { "type": "integer" }, "type": "array" }, "description": { "type": "string" }, "helper_text": { "type": "string" }, "id": { "type": "string" }, "label": { "type": "string" }, "required": { "type": "boolean" }, "section": { "type": "string" }, "sensitive": { "type": "boolean" }, "system_key": { "type": "string" }, "type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Sections": { "additionalProperties": { "items": { "type": "integer" }, "type": "array" }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Skill": { "properties": { "custom_label": { "type": "string" }, "name": { "description": "resolved label on output; ignored on input", "type": "string" }, "skill_id": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Timezone": { "properties": { "name": { "type": "string" }, "offset": { "type": "string" }, "offset_seconds": { "type": "integer" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_jobs.Warning": { "properties": { "code": { "type": "string" }, "market": { "type": "string" }, "message": { "type": "string" }, "severity": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_lifecycle.Skipped": { "properties": { "id": { "type": "string" }, "reason": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_public.ShareKit": { "properties": { "job_url": { "type": "string" }, "links": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_public.ShareLink" }, "type": "array" } }, "type": "object" }, "github_com_Angle-HR_server_internal_hiring_public.ShareLink": { "properties": { "channel": { "type": "string" }, "label": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_pkg_formschema.Declaration": { "properties": { "category": { "type": "string" }, "legal_condition": { "type": "string" }, "purpose": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_pkg_formschema.FormQuestion": { "properties": { "config": { "items": { "type": "integer" }, "type": "array" }, "description": { "type": "string" }, "helper_text": { "type": "string" }, "id": { "type": "string" }, "knockout": { "items": { "type": "integer" }, "type": "array" }, "label": { "type": "string" }, "locked": { "description": "set by the server: full name and email cannot be removed or made optional", "type": "boolean" }, "position": { "type": "integer" }, "required": { "type": "boolean" }, "section": { "type": "string" }, "special_category": { "type": "string" }, "system_key": { "type": "string" }, "type": { "type": "string" } }, "type": "object" }, "github_com_Angle-HR_server_pkg_formschema_screening.Rule": { "properties": { "id": { "type": "string" }, "operator": { "type": "string" }, "question_id": { "type": "string" }, "reason": { "type": "string" }, "value": { "items": { "type": "integer" }, "type": "array" } }, "type": "object" }, "internal_handler.AdminCatalogItemEnvelope": { "properties": { "data": { "items": { "type": "integer" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_handler.AdminCatalogListEnvelope": { "properties": { "data": { "items": { "items": { "type": "integer" }, "type": "array" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_handler.AdminCatalogUpsertRequest": { "properties": { "description": { "type": "string" }, "emoji": { "type": "string" }, "icon_key": { "type": "string" }, "icon_url": { "type": "string" }, "is_active": { "type": "boolean" }, "label": { "type": "string" }, "max_size": { "type": "integer" }, "min_size": { "type": "integer" }, "name": { "type": "string" }, "region": { "type": "string" }, "slug": { "type": "string" }, "sort_order": { "type": "integer" } }, "type": "object" }, "internal_hiring_apphttp.ActivityEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.ActivityPage" } }, "type": "object" }, "internal_hiring_apphttp.ApplicantSettingsEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.ApplicantSettings" } }, "type": "object" }, "internal_hiring_apphttp.ApplicantSettingsRequest": { "properties": { "reapply_block_months": { "type": "integer" }, "send_status_emails": { "type": "boolean" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Detail" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationPageEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Page" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationReceipt": { "properties": { "received": { "type": "boolean" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationReceiptEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationReceipt" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationRequest": { "properties": { "answers": { "additionalProperties": { "items": { "type": "integer" }, "type": "array" }, "description": "Answers maps a question id to the answer, in the shape that question's type expects.", "type": "object" }, "candidate_country": { "description": "CandidateCountry is the candidate's country, ISO 3166-1 alpha-2. It must belong to one of the job's markets.", "type": "string" }, "consent": { "description": "Consent is required only when the job's lawful basis is consent (see consent_required).", "type": "boolean" }, "privacy_notice_acknowledged": { "type": "boolean" }, "source": { "description": "Source is the share channel the candidate came from (the src of the link); anything else is \"direct\".", "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationResultEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Result" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationReviewRequest": { "properties": { "decision": { "type": "string" }, "message": { "allOf": [ { "$ref": "#/definitions/internal_hiring_apphttp.MessageRequest" } ], "description": "Message is emailed to the candidate with a rejection, instead of the standard email." }, "note": { "type": "string" }, "reason": { "description": "Reason is a disqualification reason code, optional when rejecting.", "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationStatusRequest": { "properties": { "message": { "allOf": [ { "$ref": "#/definitions/internal_hiring_apphttp.MessageRequest" } ], "description": "Message is emailed to the candidate with a hire or a rejection, instead of the standard email." }, "note": { "type": "string" }, "reason": { "description": "Reason is a disqualification reason code, optional with a rejection.", "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.ApplicationTagsRequest": { "properties": { "tag_ids": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.AttachmentEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Attachment" } }, "type": "object" }, "internal_hiring_apphttp.AttachmentsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Attachment" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.BulkMoveEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.BulkItem" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.BulkMoveStageRequest": { "properties": { "application_ids": { "items": { "type": "string" }, "type": "array" }, "message": { "allOf": [ { "$ref": "#/definitions/internal_hiring_apphttp.MessageRequest" } ], "description": "Message is emailed to each candidate (placeholders are filled for each) when the stage is Hired or Disqualified." }, "note": { "type": "string" }, "reason": { "type": "string" }, "stage_id": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.CompareEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.CompareResult" } }, "type": "object" }, "internal_hiring_apphttp.DeclineRequest": { "properties": { "reason": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.EmailSettings": { "properties": { "reply_to": { "description": "ReplyTo is where candidates' replies go. Empty means replies are not read.", "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.EmailSettingsEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_hiring_apphttp.EmailSettings" } }, "type": "object" }, "internal_hiring_apphttp.FileLinkEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.FileLink" } }, "type": "object" }, "internal_hiring_apphttp.InterviewCancelRequest": { "properties": { "note": { "type": "string" }, "notify": { "description": "Notify emails the candidate a calendar cancellation. Needs the company's reply-to address.", "type": "boolean" } }, "type": "object" }, "internal_hiring_apphttp.InterviewEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Interview" } }, "type": "object" }, "internal_hiring_apphttp.InterviewPatchRequest": { "properties": { "duration_minutes": { "type": "integer" }, "interviewer_ids": { "items": { "type": "string" }, "type": "array" }, "invite": { "description": "Invite emails the candidate the updated calendar event.", "type": "boolean" }, "invite_note": { "type": "string" }, "kind": { "type": "string" }, "location": { "type": "string" }, "notes": { "type": "string" }, "starts_at": { "type": "string" }, "timezone": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.InterviewRequest": { "properties": { "duration_minutes": { "description": "DurationMinutes is 15 to 480; 60 when left out.", "type": "integer" }, "interviewer_ids": { "description": "InterviewerIDs are people on the job's team (at most 10).", "items": { "type": "string" }, "type": "array" }, "invite": { "description": "Invite emails the candidate a calendar invite. Needs the company's reply-to address (/hiring/email-settings).", "type": "boolean" }, "invite_note": { "type": "string" }, "kind": { "description": "Kind is video, phone or onsite.", "type": "string" }, "location": { "description": "Location is the https meeting link for video, the address for onsite, and optional for phone.", "type": "string" }, "notes": { "description": "Notes are internal; candidates never see them.", "type": "string" }, "starts_at": { "description": "StartsAt is RFC 3339, with an offset or Z.", "type": "string" }, "timezone": { "description": "Timezone is the IANA zone the interview is planned in, for example Europe/London.", "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.InterviewsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Interview" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.MessageEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Message" } }, "type": "object" }, "internal_hiring_apphttp.MessageRequest": { "properties": { "attachment_ids": { "description": "AttachmentIDs are files uploaded with /email-attachments (at most 3).", "items": { "type": "string" }, "type": "array" }, "body": { "type": "string" }, "schedule_at": { "description": "ScheduleAt sends the message then (RFC 3339), between a minute and 90 days from now. Not with a decision.", "type": "string" }, "subject": { "type": "string" }, "template_id": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.MessagesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Message" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.MoveResultEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.MoveResult" } }, "type": "object" }, "internal_hiring_apphttp.MoveStageRequest": { "properties": { "message": { "allOf": [ { "$ref": "#/definitions/internal_hiring_apphttp.MessageRequest" } ], "description": "Message is emailed to the candidate when the move is to Hired or Disqualified, instead of the standard email." }, "note": { "type": "string" }, "reason": { "description": "Reason is a disqualification reason code (GET /hiring/disqualification-reasons); needed for Disqualified.", "type": "string" }, "stage_id": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.NoteEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Note" } }, "type": "object" }, "internal_hiring_apphttp.NoteRequest": { "properties": { "body": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.NotesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Note" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.OfferEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Offer" } }, "type": "object" }, "internal_hiring_apphttp.OfferEventsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.OfferEvent" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.OfferPatchRequest": { "properties": { "body": { "type": "string" }, "compensation": { "type": "string" }, "start_date": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.OfferRequest": { "properties": { "body": { "description": "Body is the letter. Placeholders: {{candidate_name}}, {{job_title}}, {{company}}, {{sender_name}}, {{start_date}}, {{compensation}}.", "type": "string" }, "compensation": { "type": "string" }, "expires_in_days": { "description": "ExpiresInDays is how long the link works: 7 by default, 30 at most.", "type": "integer" }, "send": { "description": "Send sends the offer to the candidate straight away.", "type": "boolean" }, "start_date": { "description": "StartDate is YYYY-MM-DD.", "type": "string" }, "template_id": { "description": "TemplateID fills the letter from an offer template when body is left out.", "type": "string" }, "title": { "description": "Title defaults to \"Offer of employment: {{job_title}}\".", "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.OfferSendRequest": { "properties": { "expires_in_days": { "type": "integer" } }, "type": "object" }, "internal_hiring_apphttp.OfferTemplateEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.OfferTemplate" } }, "type": "object" }, "internal_hiring_apphttp.OfferTemplateRequest": { "properties": { "body": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.OfferTemplatesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.OfferTemplate" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.OffersEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Offer" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.PreviewEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Preview" } }, "type": "object" }, "internal_hiring_apphttp.PublicOfferEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.PublicOffer" } }, "type": "object" }, "internal_hiring_apphttp.ReasonsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Reason" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.SignRequest": { "properties": { "consent": { "description": "Consent must be true: the candidate agrees to sign electronically (consent_text of the offer).", "type": "boolean" }, "full_name": { "description": "FullName is typed by the candidate: it is their signature.", "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.StageEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Stage" } }, "type": "object" }, "internal_hiring_apphttp.StageNameRequest": { "properties": { "name": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.StageOrderRequest": { "properties": { "stage_ids": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.StagesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Stage" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.TagEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Tag" } }, "type": "object" }, "internal_hiring_apphttp.TagRequest": { "properties": { "color": { "description": "Color is gray (default), red, orange, yellow, green, teal, blue, purple or pink.", "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.TagsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Tag" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.TemplateEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Template" } }, "type": "object" }, "internal_hiring_apphttp.TemplateRequest": { "properties": { "body": { "description": "Body is plain text. Blank lines start a new paragraph. Placeholders: {{candidate_name}}, {{job_title}},\n{{company}}, {{sender_name}}.", "type": "string" }, "name": { "type": "string" }, "subject": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.TemplatesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_applications.Template" }, "type": "array" } }, "type": "object" }, "internal_hiring_apphttp.UploadRequest": { "properties": { "content_type": { "description": "ContentType must be one the question accepts, e.g. application/pdf for a CV.", "type": "string" }, "filename": { "type": "string" }, "question_id": { "description": "QuestionID is the file question the upload answers.", "type": "string" }, "size_bytes": { "type": "integer" } }, "type": "object" }, "internal_hiring_apphttp.UploadTarget": { "properties": { "expires_at": { "type": "string" }, "headers": { "additionalProperties": { "type": "string" }, "type": "object" }, "max_bytes": { "type": "integer" }, "method": { "type": "string" }, "token": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "internal_hiring_apphttp.UploadTargetEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_hiring_apphttp.UploadTarget" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.AcceptRequest": { "properties": { "version": { "type": "string" } }, "type": "object" }, "internal_hiring_hiringhttp.AuditListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.AuditEvent" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.BulkEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.BulkResult" } }, "type": "object" }, "internal_hiring_hiringhttp.BulkRequest": { "properties": { "action": { "type": "string" }, "ids": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "internal_hiring_hiringhttp.CatalogEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.Catalog" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.CompanySetupEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.CompanySetup" } }, "type": "object" }, "internal_hiring_hiringhttp.ConfirmRequest": { "properties": { "confirmed": { "type": "boolean" } }, "type": "object" }, "internal_hiring_hiringhttp.DepartmentEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Department" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.DepartmentRequest": { "properties": { "name": { "example": "Customer Support", "type": "string" } }, "type": "object" }, "internal_hiring_hiringhttp.DepartmentsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Department" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.FormEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.FormView" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.GatesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_gates.State" }, "type": "array" } }, "type": "object" }, "internal_hiring_hiringhttp.JobCountsEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.JobCounts" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.JobEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.JobView" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.JobListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.ListItem" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.MarketsRequest": { "properties": { "location_mode": { "type": "string" }, "markets": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.MarketSel" }, "type": "array" } }, "type": "object" }, "internal_hiring_hiringhttp.MeEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.MeView" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.MembersEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Member" }, "type": "array" } }, "type": "object" }, "internal_hiring_hiringhttp.MembersRequest": { "properties": { "members": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.MemberInput" }, "type": "array" } }, "type": "object" }, "internal_hiring_hiringhttp.PeopleEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Person" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.PreviewEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PublicJob" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.PublicCompanyData": { "properties": { "about": { "type": "string" }, "jobs": { "items": { "$ref": "#/definitions/internal_hiring_hiringhttp.PublicCompanyJob" }, "type": "array" }, "logo_url": { "type": "string" }, "name": { "type": "string" }, "next_cursor": { "type": "string" }, "slug": { "type": "string" }, "teams": { "description": "Teams are the departments with an open job, for the Team filter.", "items": { "type": "string" }, "type": "array" }, "total": { "description": "Total counts the open jobs that match the filters, across all pages.", "type": "integer" }, "website": { "type": "string" } }, "type": "object" }, "internal_hiring_hiringhttp.PublicCompanyEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_hiring_hiringhttp.PublicCompanyData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.PublicCompanyJob": { "properties": { "closing_date": { "type": "string" }, "employment_type": { "type": "string" }, "location": { "type": "string" }, "public_id": { "type": "string" }, "published_at": { "type": "string" }, "team": { "type": "string" }, "title": { "type": "string" }, "url": { "type": "string" }, "workplace_type": { "type": "string" } }, "type": "object" }, "internal_hiring_hiringhttp.PublicJobData": { "properties": { "accepting": { "type": "boolean" }, "consent_required": { "type": "boolean" }, "job": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.PublicJob" }, "markets": { "items": { "type": "string" }, "type": "array" }, "privacy_contact_email": { "type": "string" }, "privacy_notice_url": { "type": "string" }, "privacy_notice_version": { "type": "string" }, "public_id": { "type": "string" }, "state": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "internal_hiring_hiringhttp.PublicJobEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_hiring_hiringhttp.PublicJobData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.ReportEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_gates.Report" } }, "type": "object" }, "internal_hiring_hiringhttp.RulesEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.RulesView" } }, "type": "object" }, "internal_hiring_hiringhttp.SettingsEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Settings" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.SettingsRequest": { "properties": { "automated_screening_enabled": { "type": "boolean" } }, "type": "object" }, "internal_hiring_hiringhttp.ShareKitEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_public.ShareKit" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.SkillsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.CatalogItem" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.TemplateDuplicateRequest": { "properties": { "name": { "example": "Support roles (copy)", "type": "string" } }, "type": "object" }, "internal_hiring_hiringhttp.TemplateEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Template" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.TemplateExportEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.TemplateExport" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.TemplatePatchRequest": { "properties": { "name": { "example": "Support roles", "type": "string" }, "pinned": { "example": true, "type": "boolean" } }, "type": "object" }, "internal_hiring_hiringhttp.TemplatesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_hiringtypes.Template" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.TimezonesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Timezone" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_hiring_hiringhttp.TransitionEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.TransitionResult" } }, "type": "object" }, "internal_identityhttp.AdminAcceptInviteRequest": { "properties": { "name": { "type": "string" }, "password": { "type": "string" }, "token": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminAuditListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.AuditLog" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminCompanyItem": { "properties": { "company_id": { "type": "string" }, "created_at": { "type": "string" }, "kind": { "type": "string" }, "legal_name": { "type": "string" }, "owner_email": { "type": "string" }, "region": { "type": "string" }, "verification_status": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminCompanyListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_identityhttp.AdminCompanyItem" }, "type": "array" } }, "type": "object" }, "internal_identityhttp.AdminCreateRoleRequest": { "properties": { "name": { "type": "string" }, "permissions": { "items": { "type": "string" }, "type": "array" }, "slug": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminCreateStaffRequest": { "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "roles": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "internal_identityhttp.AdminDeleteCompanyData": { "properties": { "already_deleted": { "type": "boolean" }, "company_id": { "type": "string" }, "deleted_at": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminDeleteCompanyEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AdminDeleteCompanyData" } }, "type": "object" }, "internal_identityhttp.AdminInvitePreviewEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.InvitePreview" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminLoginRequest": { "properties": { "email": { "example": "admin@anglehr.local", "type": "string" }, "password": { "example": "changeme123", "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminMeEnvelope": { "properties": { "data": { "additionalProperties": {}, "type": "object" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminPatchRoleRequest": { "properties": { "name": { "type": "string" }, "permissions": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "internal_identityhttp.AdminPatchStaffRequest": { "properties": { "is_active": { "type": "boolean" }, "name": { "type": "string" }, "roles": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "internal_identityhttp.AdminPermissionsEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.Permission" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminReactivateCompanyData": { "properties": { "already_active": { "type": "boolean" }, "company_id": { "type": "string" }, "reactivated_at": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminReactivateCompanyEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AdminReactivateCompanyData" } }, "type": "object" }, "internal_identityhttp.AdminRoleEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.RoleWithPermissions" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminRolesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.RoleWithPermissions" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminSessionData": { "properties": { "csrf_token": { "type": "string" }, "user": { "additionalProperties": {}, "type": "object" } }, "type": "object" }, "internal_identityhttp.AdminStaffEnvelope": { "properties": { "data": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.StaffMember" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminStaffListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_admin.StaffMember" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminTokenEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AdminSessionData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminUserDetailEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.adminUserDetail" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminUserListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_identityhttp.adminUserListItem" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminUserPatchRequest": { "properties": { "deleted": { "type": "boolean" } }, "type": "object" }, "internal_identityhttp.AdminVerificationDetail": { "properties": { "address": { "$ref": "#/definitions/internal_identityhttp.KYBAddress" }, "address_type": { "type": "string" }, "attempts": { "type": "integer" }, "case_type": { "enum": [ "business", "individual" ], "type": "string" }, "country_code": { "type": "string" }, "identifiers": { "additionalProperties": { "type": "string" }, "type": "object" }, "legal_name": { "type": "string" }, "organization_id": { "type": "string" }, "region": { "type": "string" }, "registration_number": { "type": "string" }, "status": { "type": "string" }, "submitted_at": { "type": "string" }, "tier": { "type": "integer" } }, "type": "object" }, "internal_identityhttp.AdminVerificationDetailEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationDetail" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminVerificationItem": { "properties": { "case_type": { "description": "CaseType is \"business\" (company verification) or \"individual\" (identity review of a personal organization;\nlabel it in the console).", "enum": [ "business", "individual" ], "type": "string" }, "country_code": { "type": "string" }, "id": { "type": "string" }, "organization_id": { "type": "string" }, "region": { "type": "string" }, "submitted_at": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminVerificationListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationItem" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminVerificationReviewData": { "properties": { "failure_reason": { "type": "string" }, "organization_id": { "type": "string" }, "status": { "enum": [ "verified", "failed" ], "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminVerificationReviewEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationReviewData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AdminVerificationReviewRequest": { "properties": { "decision": { "enum": [ "approve", "reject" ], "type": "string" }, "reason": { "enum": [ "number_not_found", "name_mismatch", "address_mismatch", "inactive_entity", "wrong_country" ], "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminVerifyCompanyData": { "properties": { "company_id": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AdminVerifyCompanyEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AdminVerifyCompanyData" } }, "type": "object" }, "internal_identityhttp.AdminVerifyCompanyRequest": { "properties": { "note": { "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthAcceptInviteRequest": { "properties": { "first_name": { "example": "Jerry", "type": "string" }, "last_name": { "example": "Oluwasegun", "type": "string" }, "password": { "example": "secure-password-1", "type": "string" }, "token": { "example": "opaque-invite-token", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthCreateOrgInviteData": { "properties": { "email": { "example": "member@example.com", "type": "string" }, "expires_at": { "example": "2026-08-24T12:00:00Z", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthCreateOrgInviteEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthCreateOrgInviteData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthCreateOrgInviteRequest": { "properties": { "email": { "example": "member@example.com", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthForgotPasswordRequest": { "properties": { "email": { "example": "jerry@example.com", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthInviteData": { "properties": { "email": { "example": "member@example.com", "type": "string" }, "expires_at": { "example": "2026-08-24T12:00:00Z", "type": "string" }, "organization_name": { "example": "ANGLE", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthInviteEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthInviteData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthLoginOTPRequest": { "properties": { "email": { "example": "jerry@example.com", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthLoginOTPVerifyRequest": { "properties": { "code": { "example": "224879", "type": "string" }, "verification_session_id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthLoginRequest": { "properties": { "email": { "example": "jerry@example.com", "type": "string" }, "password": { "example": "secure-password-1", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthLoginTOTPRequest": { "properties": { "code": { "example": "123456", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthMeData": { "properties": { "account_type": { "example": "business", "type": "string" }, "country_id": { "type": "string" }, "csrf_token": { "description": "CSRFToken is the session's synchronizer token; clients call /auth/me on page load to obtain it.", "example": "2Yb7vZk0n1l3o9Qm5r8s4tA6uC1dE3fGhIjKlMnOpQw", "type": "string" }, "email": { "example": "jerry@example.com", "type": "string" }, "email_verified": { "example": true, "type": "boolean" }, "first_name": { "type": "string" }, "id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" }, "last_name": { "type": "string" }, "legal_full_name": { "type": "string" }, "onboarding": { "$ref": "#/definitions/internal_identityhttp.OnboardingProgressSummary" }, "permissions": { "description": "Permissions are everything those roles allow, so a client can show only the actions the caller may take.", "items": { "type": "string" }, "type": "array" }, "region": { "example": "uk", "type": "string" }, "roles": { "description": "Roles are the caller's company roles; empty until they belong to a company.", "items": { "type": "string" }, "type": "array" }, "totp_enabled": { "example": false, "type": "boolean" } }, "type": "object" }, "internal_identityhttp.AuthMeEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthMeData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthMessageData": { "properties": { "message": { "example": "logged out", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthMessageEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthMessageData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthResendVerificationRequest": { "properties": { "verification_session_id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthResetPasswordRequest": { "properties": { "password": { "example": "new-secure-password", "type": "string" }, "token": { "example": "opaque-reset-token", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthSessionData": { "properties": { "csrf_token": { "description": "CSRFToken must be sent as X-CSRF-Token on every POST/PUT/PATCH/DELETE to an authenticated route.", "example": "2Yb7vZk0n1l3o9Qm5r8s4tA6uC1dE3fGhIjKlMnOpQw", "type": "string" }, "onboarding": { "$ref": "#/definitions/internal_identityhttp.OnboardingProgressSummary" }, "user": { "$ref": "#/definitions/internal_identityhttp.AuthSessionUser" } }, "type": "object" }, "internal_identityhttp.AuthSessionEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthSessionData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthSessionUser": { "properties": { "account_type": { "example": "business", "type": "string" }, "email": { "example": "jerry@example.com", "type": "string" }, "email_verified": { "example": true, "type": "boolean" }, "id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" }, "region": { "example": "uk", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthSignupData": { "properties": { "code_expires_in_seconds": { "example": 300, "type": "integer" }, "email": { "example": "jerry@example.com", "type": "string" }, "resend_available_in_seconds": { "example": 30, "type": "integer" }, "verification_session_id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthSignupEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthSignupData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthSignupPatchRequest": { "properties": { "email": { "example": "newemail@example.com", "type": "string" }, "verification_session_id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthSignupRequest": { "properties": { "email": { "example": "jerry@example.com", "type": "string" }, "password": { "example": "secure-password-1", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthTOTPConfirmRequest": { "properties": { "code": { "example": "123456", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthTOTPDisableRequest": { "properties": { "code": { "example": "123456", "type": "string" }, "password": { "example": "secure-password-1", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthTOTPEnrollData": { "properties": { "otpauth_url": { "example": "otpauth://totp/OpenHR:jerry@example.com?secret=...", "type": "string" }, "secret": { "example": "JBSWY3DPEHPK3PXP", "type": "string" } }, "type": "object" }, "internal_identityhttp.AuthTOTPEnrollEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPEnrollData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_identityhttp.AuthVerifyEmailRequest": { "properties": { "code": { "example": "224879", "type": "string" }, "verification_session_id": { "example": "550e8400-e29b-41d4-a716-446655440000", "type": "string" } }, "type": "object" }, "internal_identityhttp.KYBAddress": { "properties": { "city": { "type": "string" }, "country": { "type": "string" }, "line1": { "type": "string" }, "line2": { "type": "string" }, "post_code": { "type": "string" }, "region": { "type": "string" } }, "type": "object" }, "internal_identityhttp.OnboardingProgressSummary": { "properties": { "completed_steps": { "example": [ "verify_email", "profile" ], "items": { "type": "string" }, "type": "array" }, "current_step": { "example": "profile", "type": "string" }, "next_step": { "example": "compliance", "type": "string" }, "status": { "enum": [ "in_progress", "completed" ], "example": "in_progress", "type": "string" } }, "type": "object" }, "internal_identityhttp.adminUserDetail": { "properties": { "account_type": { "type": "string" }, "completed_steps": { "items": { "type": "string" }, "type": "array" }, "country_id": { "type": "string" }, "created_at": { "type": "string" }, "deleted_at": { "type": "string" }, "email": { "type": "string" }, "email_verified_at": { "type": "string" }, "first_name": { "type": "string" }, "last_name": { "type": "string" }, "legal_full_name": { "type": "string" }, "onboarding_completed_at": { "type": "string" }, "onboarding_step": { "type": "string" }, "organization_legal_name": { "type": "string" }, "region": { "type": "string" }, "region_source": { "type": "string" }, "registry_id": { "type": "string" }, "updated_at": { "type": "string" }, "user_id": { "type": "string" } }, "type": "object" }, "internal_identityhttp.adminUserListItem": { "properties": { "created_at": { "type": "string" }, "email": { "type": "string" }, "id": { "type": "string" }, "region": { "type": "string" }, "updated_at": { "type": "string" }, "user_id": { "type": "string" } }, "type": "object" }, "internal_orghttp.AcceptRequest": { "properties": { "version": { "type": "string" } }, "type": "object" }, "internal_orghttp.AddressSearchData": { "properties": { "suggestions": { "items": { "$ref": "#/definitions/internal_orghttp.AddressSuggestion" }, "type": "array" } }, "type": "object" }, "internal_orghttp.AddressSearchEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.AddressSearchData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.AddressSearchRequest": { "properties": { "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "query": { "example": "10 Downing", "type": "string" } }, "type": "object" }, "internal_orghttp.AddressSuggestion": { "properties": { "city": { "example": "London", "type": "string" }, "description": { "example": "10 Downing Street, London, UK", "type": "string" }, "formatted_address": { "example": "10 Downing Street, London SW1A 2AA, UK", "type": "string" }, "line_1": { "example": "10 Downing Street", "type": "string" }, "line_2": { "type": "string" }, "place_id": { "example": "ChIJ...", "type": "string" }, "post_code": { "example": "SW1A 2AA", "type": "string" }, "state_or_county": { "example": "Greater London", "type": "string" } }, "type": "object" }, "internal_orghttp.BusinessEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.BusinessResponse" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.BusinessRequest": { "properties": { "bin_number": { "example": "BIN-123456789", "type": "string" }, "business_registered_address": { "example": "1 High Street, London, UK", "type": "string" }, "business_type_id": { "example": "61000000-0000-4000-8000-000000000001", "type": "string" }, "company_role_id": { "example": "60000000-0000-4000-8000-000000000001", "type": "string" }, "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "industry_id": { "example": "62000000-0000-4000-8000-000000000001", "type": "string" }, "legal_business_name": { "example": "Oped Technologies Ltd", "type": "string" }, "legal_full_name": { "example": "Oped Oped", "type": "string" } }, "type": "object" }, "internal_orghttp.BusinessResponse": { "properties": { "bin_number": { "type": "string" }, "business_registered_address": { "type": "string" }, "business_type_id": { "type": "string" }, "company_role_id": { "type": "string" }, "country_id": { "type": "string" }, "industry_id": { "type": "string" }, "legal_business_name": { "type": "string" }, "legal_full_name": { "type": "string" }, "session": { "$ref": "#/definitions/internal_orghttp.RegionReissue" }, "user_id": { "type": "string" } }, "type": "object" }, "internal_orghttp.BusinessType": { "properties": { "id": { "example": "61000000-0000-4000-8000-000000000001", "type": "string" }, "name": { "example": "Early-stage startup", "type": "string" }, "slug": { "example": "early-stage-startup", "type": "string" } }, "type": "object" }, "internal_orghttp.BusinessTypeListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.BusinessType" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.CompanyRole": { "properties": { "icon_key": { "example": "building", "type": "string" }, "id": { "example": "60000000-0000-4000-8000-000000000001", "type": "string" }, "name": { "example": "Founder / CEO", "type": "string" }, "slug": { "example": "founder-ceo", "type": "string" } }, "type": "object" }, "internal_orghttp.CompanyRoleListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.CompanyRole" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.CompanySetup": { "properties": { "automated_screening_enabled": { "type": "boolean" }, "dpa_accepted": { "type": "boolean" }, "dpa_accepted_at": { "type": "string" }, "dpa_version": { "type": "string" }, "dpia_recorded_at": { "type": "string" }, "dpia_version": { "type": "integer" }, "dpo_contact": { "type": "string" }, "kyb_status": { "type": "string" }, "privacy_contact_email": { "type": "string" } }, "type": "object" }, "internal_orghttp.CompanySetupEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.CompanySetup" } }, "type": "object" }, "internal_orghttp.CountriesEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.CountryResponse" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.CountryResponse": { "properties": { "icon_key": { "example": "flag-uk", "type": "string" }, "id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "name": { "example": "United Kingdom", "type": "string" }, "region": { "enum": [ "uk", "us", "africa", "eu", "asia" ], "example": "uk", "type": "string" }, "slug": { "example": "united-kingdom", "type": "string" } }, "type": "object" }, "internal_orghttp.HiringFrustration": { "properties": { "description": { "type": "string" }, "emoji": { "type": "string" }, "id": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "internal_orghttp.HiringFrustrationListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.HiringFrustration" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.HiringTool": { "properties": { "icon_url": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "internal_orghttp.HiringToolListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.HiringTool" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.IdentificationRequirementField": { "properties": { "format_hint": { "example": "8 digits, or SC/NI prefix + 6 digits", "type": "string" }, "key": { "example": "registration_number", "type": "string" }, "label": { "example": "Company Registration Number (CRN)", "type": "string" }, "pattern": { "example": "^(\\d{8}|(SC|NI)\\d{6})$", "type": "string" }, "placeholder": { "example": "12345678", "type": "string" }, "required": { "example": true, "type": "boolean" } }, "type": "object" }, "internal_orghttp.IdentificationRequirementsData": { "properties": { "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "country_slug": { "example": "united-kingdom", "type": "string" }, "fields": { "items": { "$ref": "#/definitions/internal_orghttp.IdentificationRequirementField" }, "type": "array" } }, "type": "object" }, "internal_orghttp.IdentificationRequirementsEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.IdentificationRequirementsData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.IndividualEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.IndividualResponse" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.IndividualRequest": { "properties": { "business_type_id": { "example": "61000000-0000-4000-8000-000000000001", "type": "string" }, "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "first_name": { "example": "Jerry", "type": "string" }, "industry_id": { "example": "62000000-0000-4000-8000-000000000001", "type": "string" }, "last_name": { "example": "Oluwasegun", "type": "string" }, "no_of_employees": { "example": 10, "type": "integer" } }, "type": "object" }, "internal_orghttp.IndividualResponse": { "properties": { "business_type_id": { "type": "string" }, "country_id": { "type": "string" }, "first_name": { "type": "string" }, "industry_id": { "type": "string" }, "last_name": { "type": "string" }, "no_of_employees": { "type": "integer" }, "session": { "$ref": "#/definitions/internal_orghttp.RegionReissue" }, "user_id": { "type": "string" } }, "type": "object" }, "internal_orghttp.Industry": { "properties": { "emoji": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "internal_orghttp.IndustryListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.Industry" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.KYBAddress": { "properties": { "city": { "type": "string" }, "country": { "type": "string" }, "line1": { "type": "string" }, "line2": { "type": "string" }, "post_code": { "type": "string" }, "region": { "type": "string" } }, "type": "object" }, "internal_orghttp.KYBChangeCountryRequest": { "properties": { "country_code": { "example": "KE", "type": "string" } }, "type": "object" }, "internal_orghttp.KYBConfirmAddressRequest": { "properties": { "address_type": { "enum": [ "registered", "trading" ], "type": "string" } }, "type": "object" }, "internal_orghttp.KYBRetryRequest": { "properties": { "legal_name": { "type": "string" }, "registration_number": { "type": "string" } }, "type": "object" }, "internal_orghttp.KYBStatusData": { "properties": { "address_confirmable": { "type": "boolean" }, "can_publish": { "type": "boolean" }, "can_retry": { "type": "boolean" }, "checked_at": { "type": "string" }, "country_code": { "type": "string" }, "display": { "enum": [ "verified", "pending_review", "action_required", "failed", "not_started" ], "type": "string" }, "failure_reason": { "type": "string" }, "kind": { "description": "Kind is \"business\" (company verification) or \"individual\" (manual identity review of a personal organization).", "enum": [ "business", "individual" ], "type": "string" }, "light_retry": { "type": "boolean" }, "name_confirmable": { "type": "boolean" }, "registered_address": { "type": "string" }, "registry_name": { "type": "string" }, "status": { "enum": [ "not_started", "pending", "verified", "failed" ], "type": "string" }, "tier": { "type": "integer" }, "verified_at": { "type": "string" } }, "type": "object" }, "internal_orghttp.KYBStatusEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.KYBStatusData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.KYBSubmitRequest": { "properties": { "address": { "$ref": "#/definitions/internal_orghttp.KYBAddress" }, "address_type": { "enum": [ "registered", "trading" ], "type": "string" }, "country_code": { "example": "GB", "type": "string" }, "identifiers": { "additionalProperties": { "type": "string" }, "type": "object" }, "legal_name": { "example": "Acme Ltd", "type": "string" }, "registration_number": { "example": "01234567", "type": "string" } }, "type": "object" }, "internal_orghttp.OnboardingIndustry": { "properties": { "emoji": { "example": "💻", "type": "string" }, "id": { "example": "62000000-0000-4000-8000-000000000001", "type": "string" }, "name": { "example": "Tech / Software", "type": "string" }, "slug": { "example": "tech-software", "type": "string" } }, "type": "object" }, "internal_orghttp.OnboardingIndustryListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.OnboardingIndustry" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.OnboardingProgressSummary": { "properties": { "completed_steps": { "example": [ "verify_email", "profile" ], "items": { "type": "string" }, "type": "array" }, "current_step": { "example": "profile", "type": "string" }, "next_step": { "example": "compliance", "type": "string" }, "status": { "enum": [ "in_progress", "completed" ], "example": "in_progress", "type": "string" } }, "type": "object" }, "internal_orghttp.PrivacyContactInput": { "properties": { "dpo_contact": { "type": "string" }, "privacy_contact_email": { "type": "string" } }, "type": "object" }, "internal_orghttp.ProductAddressData": { "properties": { "city": { "type": "string" }, "country_id": { "type": "string" }, "entry_mode": { "type": "string" }, "formatted_address": { "type": "string" }, "identification": { "additionalProperties": { "type": "string" }, "type": "object" }, "line_1": { "type": "string" }, "line_2": { "type": "string" }, "onboarding": { "$ref": "#/definitions/internal_orghttp.OnboardingProgressSummary" }, "post_code": { "type": "string" }, "session": { "$ref": "#/definitions/internal_orghttp.RegionReissue" }, "state_or_county": { "type": "string" }, "verification_status": { "enum": [ "unverified", "verified", "failed" ], "example": "unverified", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductAddressEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProductAddressData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.ProductAddressRequest": { "properties": { "city": { "example": "London", "type": "string" }, "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "entry_mode": { "enum": [ "search", "manual" ], "example": "manual", "type": "string" }, "formatted_address": { "type": "string" }, "identification": { "additionalProperties": { "type": "string" }, "type": "object" }, "line_1": { "example": "10 Downing Street", "type": "string" }, "line_2": { "type": "string" }, "post_code": { "example": "SW1A 2AA", "type": "string" }, "state_or_county": { "example": "Greater London", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductAddressState": { "properties": { "city": { "type": "string" }, "country_id": { "type": "string" }, "entry_mode": { "type": "string" }, "formatted_address": { "type": "string" }, "identification": { "additionalProperties": { "type": "string" }, "type": "object" }, "line_1": { "type": "string" }, "line_2": { "type": "string" }, "post_code": { "type": "string" }, "state_or_county": { "type": "string" }, "verification_status": { "type": "string" } }, "type": "object" }, "internal_orghttp.ProductBusinessData": { "properties": { "business_type_id": { "description": "BusinessTypeID is empty (omitted) for an individual that did not send one.", "type": "string" }, "employee_count": { "type": "integer" }, "industry_id": { "type": "string" }, "onboarding": { "$ref": "#/definitions/internal_orghttp.OnboardingProgressSummary" } }, "type": "object" }, "internal_orghttp.ProductBusinessEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProductBusinessData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.ProductBusinessRequest": { "properties": { "business_type_id": { "example": "61000000-0000-4000-8000-000000000001", "type": "string" }, "employee_count": { "example": 25, "type": "integer" }, "industry_id": { "example": "62000000-0000-4000-8000-000000000001", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductBusinessState": { "properties": { "business_type_id": { "type": "string" }, "employee_count": { "type": "integer" }, "industry_id": { "type": "string" } }, "type": "object" }, "internal_orghttp.ProductComplianceData": { "properties": { "business_type_id": { "description": "BusinessTypeID is empty (omitted) for an individual that did not send one.", "type": "string" }, "employee_count": { "type": "integer" }, "industry_id": { "type": "string" }, "onboarding": { "$ref": "#/definitions/internal_orghttp.OnboardingProgressSummary" } }, "type": "object" }, "internal_orghttp.ProductComplianceEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProductComplianceData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.ProductComplianceRequest": { "properties": { "business_type_id": { "example": "61000000-0000-4000-8000-000000000001", "type": "string" }, "employee_count": { "example": 25, "type": "integer" }, "industry_id": { "example": "62000000-0000-4000-8000-000000000001", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductComplianceState": { "properties": { "business_type_id": { "type": "string" }, "employee_count": { "type": "integer" }, "industry_id": { "type": "string" } }, "type": "object" }, "internal_orghttp.ProductOnboardingCompleteData": { "properties": { "organization": { "allOf": [ { "$ref": "#/definitions/internal_orghttp.ProductOrganizationStub" } ], "description": "Organization is the personal organization an individual account got (absent for business accounts)." }, "redirect_url": { "example": "/dashboard", "type": "string" }, "status": { "example": "completed", "type": "string" }, "workspace": { "$ref": "#/definitions/internal_orghttp.ProductWorkspaceStub" } }, "type": "object" }, "internal_orghttp.ProductOnboardingCompleteEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProductOnboardingCompleteData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.ProductOnboardingStatusData": { "properties": { "account_type": { "example": "business", "type": "string" }, "address": { "$ref": "#/definitions/internal_orghttp.ProductAddressState" }, "business": { "allOf": [ { "$ref": "#/definitions/internal_orghttp.ProductBusinessState" } ], "description": "deprecated: use compliance" }, "completed_steps": { "items": { "type": "string" }, "type": "array" }, "compliance": { "$ref": "#/definitions/internal_orghttp.ProductComplianceState" }, "current_step": { "example": "identification_address", "type": "string" }, "next_step": { "example": "compliance", "type": "string" }, "profile": { "$ref": "#/definitions/internal_orghttp.ProductProfileState" }, "status": { "enum": [ "in_progress", "completed" ], "example": "in_progress", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductOnboardingStatusEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProductOnboardingStatusData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.ProductOrganizationStub": { "properties": { "id": { "type": "string" }, "kind": { "enum": [ "individual", "business" ], "example": "individual", "type": "string" }, "verification_status": { "enum": [ "not_started", "pending", "verified", "failed" ], "example": "pending", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductProfileData": { "properties": { "account_type": { "example": "business", "type": "string" }, "company_role_id": { "type": "string" }, "country_id": { "type": "string" }, "first_name": { "type": "string" }, "last_name": { "type": "string" }, "legal_business_name": { "type": "string" }, "legal_full_name": { "type": "string" }, "onboarding": { "$ref": "#/definitions/internal_orghttp.OnboardingProgressSummary" }, "region": { "example": "uk", "type": "string" }, "session": { "$ref": "#/definitions/internal_orghttp.RegionReissue" } }, "type": "object" }, "internal_orghttp.ProductProfileEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProductProfileData" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.ProductProfileRequest": { "properties": { "account_type": { "enum": [ "individual", "business" ], "example": "business", "type": "string" }, "company_role_id": { "example": "60000000-0000-4000-8000-000000000001", "type": "string" }, "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "first_name": { "example": "Jerry", "type": "string" }, "last_name": { "example": "Oluwasegun", "type": "string" }, "legal_business_name": { "example": "ANGLE", "type": "string" }, "legal_full_name": { "example": "Jerry Oluwasegun", "type": "string" } }, "type": "object" }, "internal_orghttp.ProductProfileState": { "properties": { "account_type": { "type": "string" }, "company_role_id": { "type": "string" }, "country_id": { "type": "string" }, "first_name": { "type": "string" }, "last_name": { "type": "string" }, "legal_business_name": { "type": "string" }, "legal_full_name": { "type": "string" } }, "type": "object" }, "internal_orghttp.ProductWorkspaceStub": { "properties": { "id": { "example": "770e8400-e29b-41d4-a716-446655440000", "type": "string" }, "slug": { "example": "angle", "type": "string" } }, "type": "object" }, "internal_orghttp.ProfileData": { "properties": { "about": { "type": "string" }, "display_name": { "type": "string" }, "legal_name": { "description": "LegalName is shown on the careers page when DisplayName is empty.", "type": "string" }, "logo_url": { "type": "string" }, "slug": { "description": "Slug is the careers page address: /company/\u003cslug\u003e. Empty until the owner chooses one.", "type": "string" }, "suggested_slug": { "description": "SuggestedSlug is offered while Slug is empty.", "type": "string" }, "website": { "type": "string" } }, "type": "object" }, "internal_orghttp.ProfileEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.ProfileData" } }, "type": "object" }, "internal_orghttp.ProfileInput": { "properties": { "about": { "type": "string" }, "display_name": { "type": "string" }, "logo_url": { "type": "string" }, "slug": { "type": "string" }, "website": { "type": "string" } }, "type": "object" }, "internal_orghttp.RegionReissue": { "properties": { "csrf_token": { "example": "2Yb7vZk0n1l3o9Qm5r8s4tA6uC1dE3fGhIjKlMnOpQw", "type": "string" }, "region": { "example": "uk", "type": "string" } }, "type": "object" }, "internal_orghttp.Role": { "properties": { "emoji": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "internal_orghttp.RoleListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.Role" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.SlugCheckData": { "properties": { "available": { "type": "boolean" }, "reason": { "description": "Reason is why not, when Available is false.", "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "internal_orghttp.SlugCheckEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.SlugCheckData" } }, "type": "object" }, "internal_orghttp.TeamSize": { "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "max_size": { "type": "integer" }, "min_size": { "type": "integer" } }, "type": "object" }, "internal_orghttp.TeamSizeListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.TeamSize" }, "type": "array" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.VerifyAddressEnvelope": { "properties": { "data": { "$ref": "#/definitions/internal_orghttp.VerifyAddressResponse" }, "meta": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.Meta" } }, "type": "object" }, "internal_orghttp.VerifyAddressRequest": { "properties": { "city": { "example": "London", "type": "string" }, "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "entry_mode": { "enum": [ "search", "manual" ], "example": "search", "type": "string" }, "formatted_address": { "type": "string" }, "line_1": { "example": "10 Downing Street", "type": "string" }, "line_2": { "type": "string" }, "place_id": { "example": "ChIJ...", "type": "string" }, "post_code": { "example": "SW1A 2AA", "type": "string" }, "state_or_county": { "example": "Greater London", "type": "string" } }, "type": "object" }, "internal_orghttp.VerifyAddressResponse": { "properties": { "city": { "example": "London", "type": "string" }, "country_id": { "example": "a1b2c3d4-e5f6-4789-a012-3456789abcde", "type": "string" }, "entry_mode": { "enum": [ "search", "manual" ], "example": "search", "type": "string" }, "failure_reason": { "enum": [ "not_verifiable", "invalid_address" ], "example": "not_verifiable", "type": "string" }, "formatted_address": { "type": "string" }, "line_1": { "example": "10 Downing Street", "type": "string" }, "line_2": { "type": "string" }, "post_code": { "example": "SW1A 2AA", "type": "string" }, "state_or_county": { "example": "Greater London", "type": "string" }, "verification_status": { "enum": [ "verified", "failed", "unverified" ], "example": "verified", "type": "string" } }, "type": "object" }, "internal_orghttp.WaitlistBusinessType": { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "internal_orghttp.WaitlistBusinessTypeListEnvelope": { "properties": { "data": { "items": { "$ref": "#/definitions/internal_orghttp.WaitlistBusinessType" }, "type": "array" }, "has_more": { "type": "boolean" }, "next_cursor": { "type": "string" }, "request_id": { "example": "abc123", "type": "string" } }, "type": "object" } }, "host": "localhost:8081", "info": { "contact": {}, "description": "Product API for OpenHR: accounts, onboarding, hiring and applications.\nInteractive docs (Scalar) are served at `/` in non-production environments.\nProduct flow: signup → verify email (6-digit OTP, 5 min expiry) → profile → address → [business] → complete.\nAuthentication is a server-side session in an HttpOnly cookie (`__Host-openhr_session`, or `openhr_session` when COOKIE_SECURE=false); there are no bearer tokens.\nLogin, verify-email, login/otp/verify, login/totp and accept-invite return `csrf_token` in the body; `GET /auth/me` returns it again on page load. Every POST/PUT/PATCH/DELETE on an authenticated route must send it as `X-CSRF-Token` (403 `CSRF_INVALID` otherwise). Browsers must call with credentials included.\nAdmin ops console APIs live under `/api/v1/admin` and use a separate cookie (`__Host-openhr_admin_session`) and CSRF token.", "title": "OpenHR API", "version": "1.0" }, "paths": { "/admin/audit-logs": { "get": { "description": "Newest first. Filter by actor, action, entity (resource_type and resource_id) and time. The ip is returned as stored. Page with limit and offset; meta.has_more says whether another page follows. Needs audit:read.", "parameters": [ { "description": "Actor UUID", "in": "query", "name": "actor_id", "type": "string" }, { "description": "Action filter", "in": "query", "name": "action", "type": "string" }, { "description": "Resource type", "in": "query", "name": "resource_type", "type": "string" }, { "description": "Resource id (with resource_type)", "in": "query", "name": "resource_id", "type": "string" }, { "description": "On or after this time (RFC 3339 or YYYY-MM-DD)", "in": "query", "name": "from", "type": "string" }, { "description": "Before this time (RFC 3339), or up to the end of this day (YYYY-MM-DD)", "in": "query", "name": "to", "type": "string" }, { "description": "Page size (default 50, max 100)", "in": "query", "name": "limit", "type": "integer" }, { "description": "Offset", "in": "query", "name": "offset", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminAuditListEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List admin audit logs", "tags": [ "admin/audit" ] } }, "/admin/auth/accept-invite": { "post": { "consumes": [ "application/json" ], "description": "Sets name and password for an invited admin and starts an admin cookie session.", "parameters": [ { "description": "Accept payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminAcceptInviteRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminTokenEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Accept admin invite", "tags": [ "admin/auth" ] } }, "/admin/auth/invite/{token}": { "get": { "description": "Validates an invite token and returns the invited email and expiry.", "parameters": [ { "description": "Invite token", "in": "path", "name": "token", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminInvitePreviewEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Preview admin invite", "tags": [ "admin/auth" ] } }, "/admin/auth/login": { "post": { "consumes": [ "application/json" ], "description": "Authenticates an admin user and starts an admin cookie session (separate from the product session) and returns the CSRF token. An admin with TOTP enabled gets no session: the response is {totp_required:true, expires_in:300} plus the single-use admin pre-auth cookie, and POST /admin/auth/login/totp completes the login. When ADMIN_TOTP_REQUIRED is on and the admin has not enrolled, the session is issued with totp_enrollment_required:true and every route except /admin/auth/{me,totp/enroll,totp/confirm} answers 403 TOTP_ENROLLMENT_REQUIRED until they enrol.", "parameters": [ { "description": "Login payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminLoginRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminTokenEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Admin login", "tags": [ "admin/auth" ] } }, "/admin/auth/login/totp": { "post": { "consumes": [ "application/json" ], "description": "Completes login for an admin who has TOTP enabled. Requires the single-use admin pre-auth cookie set by POST /admin/auth/login (valid 5 minutes, separate from the product pre-auth) plus a valid authenticator code, then starts the admin session (MFA satisfied) and returns the CSRF token. A wrong code keeps the pre-auth alive; five wrong codes in five minutes lock the admin's TOTP checks for fifteen (429 too_many_attempts).", "parameters": [ { "description": "Code", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthLoginTOTPRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminTokenEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Complete admin login with TOTP", "tags": [ "admin/auth" ] } }, "/admin/auth/logout": { "post": { "description": "Revokes the admin session and clears the admin cookies. Idempotent.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } } }, "summary": "Admin logout", "tags": [ "admin/auth" ] } }, "/admin/auth/me": { "get": { "description": "Returns the authenticated admin profile, roles, and permissions.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminMeEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Admin profile", "tags": [ "admin/auth" ] } }, "/admin/auth/refresh": { "post": { "description": "Removed: admin sessions are server-side with a sliding idle timeout. Always returns 410 SESSION_REFRESH_REMOVED.", "produces": [ "application/json" ], "responses": { "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Admin token refresh (removed)", "tags": [ "admin/auth" ] } }, "/admin/auth/totp/confirm": { "post": { "consumes": [ "application/json" ], "description": "Validates a code from the authenticator app and enables TOTP. Every other session of the admin is revoked and the caller gets a fresh session (MFA satisfied) with a new CSRF token in the body.", "parameters": [ { "description": "Code", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPConfirmRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminTokenEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Confirm admin TOTP enrolment", "tags": [ "admin/auth" ] } }, "/admin/auth/totp/disable": { "post": { "consumes": [ "application/json" ], "description": "Disables TOTP for the signed-in admin after checking the password and a current authenticator code, and signs the admin out everywhere. Refused (403) while ADMIN_TOTP_REQUIRED is on: a superadmin can reset another admin instead.", "parameters": [ { "description": "Password and code", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPDisableRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Disable own admin TOTP", "tags": [ "admin/auth" ] } }, "/admin/auth/totp/enroll": { "post": { "description": "Generates a new authenticator secret and otpauth URL for the signed-in admin (stored encrypted, not active until confirmed). Allowed for a session that still has to enrol when ADMIN_TOTP_REQUIRED is on. 409 when TOTP is already enabled.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPEnrollEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Start admin TOTP enrolment", "tags": [ "admin/auth" ] } }, "/admin/catalogs/{type}": { "get": { "parameters": [ { "description": "Catalog type", "in": "path", "name": "type", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_handler.AdminCatalogListEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List catalog entries", "tags": [ "admin/catalogs" ] }, "post": { "consumes": [ "application/json" ], "parameters": [ { "description": "Catalog type", "in": "path", "name": "type", "required": true, "type": "string" }, { "description": "Create payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_handler.AdminCatalogUpsertRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_handler.AdminCatalogItemEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Create catalog entry", "tags": [ "admin/catalogs" ] } }, "/admin/catalogs/{type}/{id}": { "patch": { "consumes": [ "application/json" ], "parameters": [ { "description": "Catalog type", "in": "path", "name": "type", "required": true, "type": "string" }, { "description": "Entry UUID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Patch payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_handler.AdminCatalogUpsertRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_handler.AdminCatalogItemEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Update catalog entry", "tags": [ "admin/catalogs" ] } }, "/admin/companies": { "get": { "description": "The organizations of one region, or of every region when `region` is empty, newest first, with their verification status. `q` matches the legal name or the owner's email. Needs ORG_APPLY=grpc.", "parameters": [ { "description": "uk, us, eu, africa or asia", "in": "query", "name": "region", "type": "string" }, { "description": "Legal name or owner email", "in": "query", "name": "q", "type": "string" }, { "description": "not_started, pending, verified or failed", "in": "query", "name": "status", "type": "string" }, { "description": "business or individual", "in": "query", "name": "kind", "type": "string" }, { "description": "Page size (default 50, at most 100)", "in": "query", "name": "limit", "type": "integer" }, { "description": "Rows to skip", "in": "query", "name": "offset", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminCompanyListEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List companies and personal organizations", "tags": [ "admin/companies" ] } }, "/admin/companies/{id}": { "delete": { "consumes": [ "application/json" ], "description": "Superadmin only. Org marks the company deleted and emits org.company.deleted.v1; applications and hiring remove their data when they consume it. Repeating it is harmless. Needs ORG_APPLY=grpc.", "parameters": [ { "description": "Company ID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Company region (uk, us, eu, africa, asia)", "in": "query", "name": "region", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminDeleteCompanyEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Delete a company", "tags": [ "admin/companies" ] } }, "/admin/companies/{id}/reactivate": { "post": { "consumes": [ "application/json" ], "description": "Superadmin only. Org clears the deletion and emits org.company.reactivated.v1. Data applications and hiring removed when the company was deleted does not come back. Repeating it is harmless. Needs ORG_APPLY=grpc.", "parameters": [ { "description": "Company ID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Company region (uk, us, eu, africa, asia)", "in": "query", "name": "region", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminReactivateCompanyEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Reactivate a deleted company", "tags": [ "admin/companies" ] } }, "/admin/companies/{id}/verify": { "post": { "consumes": [ "application/json" ], "description": "Verifies any organization that is not verified yet, whatever state its case is in, including one that never submitted details. The note says what was checked and is kept in the case history with the reviewer. A review item still open is closed. The company gets no email. Needs ORG_APPLY=grpc.", "parameters": [ { "description": "Company ID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Company region (uk, us, eu, africa, asia)", "in": "query", "name": "region", "required": true, "type": "string" }, { "description": "What was checked", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminVerifyCompanyRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminVerifyCompanyEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Verify a company or individual by hand", "tags": [ "admin/companies" ] } }, "/admin/permissions": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminPermissionsEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List permission catalog", "tags": [ "admin/roles" ] } }, "/admin/roles": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminRolesEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List roles and permissions", "tags": [ "admin/roles" ] }, "post": { "consumes": [ "application/json" ], "parameters": [ { "description": "Role payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminCreateRoleRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminRoleEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Create role", "tags": [ "admin/roles" ] } }, "/admin/roles/{id}": { "delete": { "parameters": [ { "description": "Role UUID", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "204": { "description": "No Content" } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Delete role", "tags": [ "admin/roles" ] }, "patch": { "consumes": [ "application/json" ], "parameters": [ { "description": "Role UUID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Patch payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminPatchRoleRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminRoleEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Update role", "tags": [ "admin/roles" ] } }, "/admin/staff": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminStaffListEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List admin staff", "tags": [ "admin/staff" ] }, "post": { "consumes": [ "application/json" ], "description": "Creates an inactive staff user and emails an invite token to set name and password.", "parameters": [ { "description": "Invite payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminCreateStaffRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminStaffEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Invite admin staff", "tags": [ "admin/staff" ] } }, "/admin/staff/{id}": { "patch": { "consumes": [ "application/json" ], "parameters": [ { "description": "Staff UUID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Patch payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminPatchStaffRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminStaffEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Update admin staff", "tags": [ "admin/staff" ] } }, "/admin/staff/{id}/resend-invite": { "post": { "parameters": [ { "description": "Staff UUID", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminStaffEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Resend staff invite", "tags": [ "admin/staff" ] } }, "/admin/staff/{id}/totp/reset": { "post": { "description": "Superadmin only (role superadmin plus admins:write). Clears the target admin's authenticator, revokes all their sessions and lifts their TOTP lockout, so they enrol again at next login (forced when ADMIN_TOTP_REQUIRED is on). Audited as admin.totp.reset. Resetting yourself is refused: use disable.", "parameters": [ { "description": "Staff id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Reset an admin's TOTP", "tags": [ "admin/staff" ] } }, "/admin/users": { "get": { "parameters": [ { "description": "Region filter", "in": "query", "name": "region", "type": "string" }, { "description": "Search email", "in": "query", "name": "q", "type": "string" }, { "description": "Page size", "in": "query", "name": "limit", "type": "integer" }, { "description": "Offset", "in": "query", "name": "offset", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminUserListEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List product users", "tags": [ "admin/users" ] } }, "/admin/users/{id}": { "get": { "parameters": [ { "description": "Registry UUID or regional user UUID", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminUserDetailEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Get product user detail", "tags": [ "admin/users" ] }, "patch": { "consumes": [ "application/json" ], "description": "Soft-delete or restore a regional account (`deleted: true|false`).", "parameters": [ { "description": "Registry UUID", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Patch payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminUserPatchRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminUserDetailEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Update product user", "tags": [ "admin/users" ] } }, "/admin/verification": { "get": { "parameters": [ { "description": "Page size (max 100)", "in": "query", "name": "limit", "type": "integer" }, { "description": "Offset", "in": "query", "name": "offset", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationListEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "List pending company verification reviews", "tags": [ "admin/verification" ] } }, "/admin/verification/{organizationID}": { "get": { "description": "Returns the submitted details from the organization's region so the operator can compare them with the government portal.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "organizationID", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationDetailEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Get a pending company verification review", "tags": [ "admin/verification" ] } }, "/admin/verification/{organizationID}/review": { "post": { "consumes": [ "application/json" ], "description": "Records the operator's decision. A rejection needs a valid failure reason and emails the owner.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "organizationID", "required": true, "type": "string" }, { "description": "Decision", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationReviewRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AdminVerificationReviewEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "AdminSessionCookie": [] } ], "summary": "Approve or reject a company verification", "tags": [ "admin/verification" ] } }, "/auth/accept-invite": { "post": { "consumes": [ "application/json" ], "description": "Creates or links a product user, joins the organization, marks onboarding complete, and starts a cookie session (response carries csrf_token).", "parameters": [ { "description": "Accept invite payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthAcceptInviteRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSessionEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Accept product organization invite", "tags": [ "auth" ] } }, "/auth/forgot-password": { "post": { "consumes": [ "application/json" ], "description": "Always returns 200. When the email exists, enqueues a reset link (token TTL 1 hour).", "parameters": [ { "description": "Forgot password payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthForgotPasswordRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Request password reset", "tags": [ "auth" ] } }, "/auth/invite/{token}": { "get": { "description": "Returns invite preview for a raw invite token. Public; no session required.", "parameters": [ { "description": "Invite token", "in": "path", "name": "token", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthInviteEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Load product organization invite", "tags": [ "auth" ] } }, "/auth/login": { "post": { "consumes": [ "application/json" ], "description": "Authenticates a verified user and starts a cookie session (or an MFA pre-auth session when TOTP is enabled). When credentials are valid but email is unverified, returns 403 with a new verification session in error.details.", "parameters": [ { "description": "Login payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthLoginRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSessionEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Login", "tags": [ "auth" ] } }, "/auth/login/otp/request": { "post": { "consumes": [ "application/json" ], "description": "Sends a 6-digit sign-in code. Separate from signup email verification. Always answers 200 with a session, even for unknown or unverified emails (no code is sent for those and verification fails like a wrong code).", "parameters": [ { "description": "Login OTP request", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthLoginOTPRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSignupEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Request passwordless login OTP", "tags": [ "auth" ] } }, "/auth/login/otp/verify": { "post": { "consumes": [ "application/json" ], "description": "Exchanges a login OTP for a cookie session and csrf_token (or an MFA pre-auth cookie when TOTP is enabled).", "parameters": [ { "description": "Login OTP verify", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthLoginOTPVerifyRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSessionEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Verify passwordless login OTP", "tags": [ "auth" ] } }, "/auth/login/totp": { "post": { "consumes": [ "application/json" ], "description": "Completes login for a TOTP-enabled user. Requires the single-use MFA pre-auth cookie set by login (valid 5 minutes) plus a valid authenticator code, then issues the full session cookie and returns the CSRF token.", "parameters": [ { "description": "Login TOTP payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthLoginTOTPRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSessionEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Complete login with TOTP", "tags": [ "auth" ] } }, "/auth/logout": { "post": { "description": "Revokes the caller's session and clears the session cookies. Idempotent: succeeds without a session.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Logout", "tags": [ "auth" ] } }, "/auth/me": { "get": { "description": "Returns the authenticated product user, onboarding progress, and the caller's company roles and permissions (empty until they belong to a company).", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMeEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Current product user", "tags": [ "auth" ] } }, "/auth/refresh": { "post": { "description": "Removed: sessions are server-side with a sliding idle timeout, so there is nothing to refresh. Always returns 410 SESSION_REFRESH_REMOVED. Call GET /auth/me to check the session.", "produces": [ "application/json" ], "responses": { "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Refresh (removed)", "tags": [ "auth" ] } }, "/auth/resend-verification": { "post": { "consumes": [ "application/json" ], "description": "Sends a new OTP for an existing unverified signup. Rate-limited to once every 30 seconds per session.", "parameters": [ { "description": "Resend payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthResendVerificationRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSignupEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Resend verification code", "tags": [ "auth" ] } }, "/auth/reset-password": { "post": { "consumes": [ "application/json" ], "description": "Sets a new password using a forgot-password token and revokes all of the user's sessions.", "parameters": [ { "description": "Reset password payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthResetPasswordRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Reset password", "tags": [ "auth" ] } }, "/auth/signup": { "patch": { "consumes": [ "application/json" ], "description": "Changes the email on an unverified signup and invalidates the prior OTP.", "parameters": [ { "description": "Email update payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSignupPatchRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSignupEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Update signup email", "tags": [ "auth" ] }, "post": { "consumes": [ "application/json" ], "description": "Creates an unverified account in the global holding area (no regional database yet) and enqueues a 6-digit verification email. The account is assigned a real region once onboarding is given a country. OTP expires in 300 seconds.", "parameters": [ { "description": "Signup payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSignupRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSignupEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Product signup", "tags": [ "auth" ] } }, "/auth/totp/confirm": { "post": { "consumes": [ "application/json" ], "description": "Validates a code from the authenticator app and enables TOTP.", "parameters": [ { "description": "Confirm payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPConfirmRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Confirm TOTP enrollment", "tags": [ "auth" ] } }, "/auth/totp/disable": { "post": { "consumes": [ "application/json" ], "description": "Disables TOTP after validating password and current authenticator code.", "parameters": [ { "description": "Disable payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPDisableRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthMessageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Disable TOTP", "tags": [ "auth" ] } }, "/auth/totp/enroll": { "post": { "description": "Generates a new TOTP secret and otpauth URI. Call confirm to enable.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthTOTPEnrollEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Enroll TOTP authenticator", "tags": [ "auth" ] } }, "/auth/verify-email": { "post": { "consumes": [ "application/json" ], "description": "Validates the 6-digit OTP and starts a cookie session and returns onboarding status plus the CSRF token.", "parameters": [ { "description": "Verification payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthVerifyEmailRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthSessionEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Verify email", "tags": [ "auth" ] } }, "/business-types": { "get": { "description": "Returns business type options for onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.WaitlistBusinessTypeListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List business types", "tags": [ "waitlist/reference" ] } }, "/countries": { "get": { "description": "Returns active countries for product onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.CountriesEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List countries", "tags": [ "waitlist/reference" ] } }, "/hiring-frustrations": { "get": { "description": "Returns active hiring frustration options for onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.HiringFrustrationListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List hiring frustrations", "tags": [ "waitlist/reference" ] } }, "/hiring-tools": { "get": { "description": "Returns active hiring tool options for onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.HiringToolListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List hiring tools", "tags": [ "waitlist/reference" ] } }, "/hiring/applicant-settings": { "get": { "description": "Whether rejected candidates are blocked from reapplying (0 or 6 months) and whether candidates are emailed when rejected or hired.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicantSettingsEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Candidate settings", "tags": [ "hiring" ] }, "put": { "consumes": [ "application/json" ], "description": "Needs job.retention.set. Blocking reapplications (6 months) cannot be turned on while the server has no key for it.", "parameters": [ { "description": "Settings", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicantSettingsRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicantSettingsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change candidate settings", "tags": [ "hiring" ] } }, "/hiring/catalog": { "get": { "description": "Fixed lists (employment type, pay, travel, visa, lawful basis, currencies, retention options), seniority, experience, industries and every market with its warnings and whether it is open.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.CatalogEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Job form pick lists", "tags": [ "hiring" ] } }, "/hiring/departments": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.DepartmentsEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List departments", "tags": [ "hiring" ] }, "post": { "consumes": [ "application/json" ], "description": "Names are unique per company ignoring case; adding an existing name returns the existing department.", "parameters": [ { "description": "Department", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.DepartmentRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.DepartmentEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Add a department", "tags": [ "hiring" ] } }, "/hiring/disqualification-reasons": { "get": { "description": "The codes a rejection or a move to Disqualified takes as `reason`.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ReasonsEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Disqualification reasons", "tags": [ "hiring" ] } }, "/hiring/email-settings": { "get": { "description": "The reply-to address of emails sent to candidates.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.EmailSettingsEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Candidate email settings", "tags": [ "hiring" ] }, "put": { "consumes": [ "application/json" ], "description": "Needs job.manage_any. An empty `reply_to` clears it: candidates are then told replies are not read. OpenHR does not read replies; they go to this address.", "parameters": [ { "description": "Settings", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.EmailSettings" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.EmailSettingsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change candidate email settings", "tags": [ "hiring" ] } }, "/hiring/email-templates": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TemplatesEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "The company's email templates", "tags": [ "hiring" ] }, "post": { "consumes": [ "application/json" ], "description": "Needs job.manage_any. Names are unique, ignoring case; at most 50 templates. Unknown placeholders are refused.", "parameters": [ { "description": "Template", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TemplateRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Create an email template", "tags": [ "hiring" ] } }, "/hiring/email-templates/{template_id}": { "delete": { "description": "Needs job.manage_any.", "parameters": [ { "description": "Template id", "in": "path", "name": "template_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Delete an email template", "tags": [ "hiring" ] }, "put": { "consumes": [ "application/json" ], "description": "Needs job.manage_any. Messages already sent keep their text.", "parameters": [ { "description": "Template id", "in": "path", "name": "template_id", "required": true, "type": "string" }, { "description": "Template", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TemplateRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Replace an email template", "tags": [ "hiring" ] } }, "/hiring/interviews/mine": { "get": { "description": "The scheduled interviews the caller takes, soonest first, across jobs they can see. From now to 30 days ahead by default.", "parameters": [ { "description": "Start (RFC 3339 or YYYY-MM-DD)", "in": "query", "name": "from", "type": "string" }, { "description": "End, exclusive (RFC 3339 or YYYY-MM-DD)", "in": "query", "name": "to", "type": "string" }, { "description": "At most this many (50 by default, 200 at most)", "in": "query", "name": "limit", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "My interviews", "tags": [ "hiring" ] } }, "/hiring/me": { "get": { "description": "The signed-in person's company roles and the permissions they add up to, such as job.export. Use it to show or hide actions; the server still checks every request.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.MeEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "My hiring roles and permissions", "tags": [ "hiring" ] } }, "/hiring/offer-templates": { "get": { "description": "The company's reusable offer letters.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferTemplatesEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Offer templates", "tags": [ "hiring" ] }, "post": { "consumes": [ "application/json" ], "description": "Needs job.manage_any. Placeholders: {{candidate_name}}, {{job_title}}, {{company}}, {{sender_name}}, {{start_date}}, {{compensation}}. At most 30.", "parameters": [ { "description": "Template", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferTemplateRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferTemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Add an offer template", "tags": [ "hiring" ] } }, "/hiring/offer-templates/{template_id}": { "delete": { "description": "Needs job.manage_any. Offers already made keep their text.", "parameters": [ { "description": "Template id", "in": "path", "name": "template_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Delete an offer template", "tags": [ "hiring" ] }, "put": { "consumes": [ "application/json" ], "description": "Needs job.manage_any. Offers already made keep their text.", "parameters": [ { "description": "Template id", "in": "path", "name": "template_id", "required": true, "type": "string" }, { "description": "Template", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferTemplateRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferTemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change an offer template", "tags": [ "hiring" ] } }, "/hiring/people": { "get": { "description": "Members of the caller's company, with their roles, for the \"add people to this job\" picker. Search matches the name or email. Returns at most 50 people. Needs job.collaborator.add or job.collaborator.add_limited.", "parameters": [ { "description": "Part of a name or email", "in": "query", "name": "q", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.PeopleEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List the company's people", "tags": [ "hiring" ] } }, "/hiring/settings": { "get": { "description": "Company-level switches. Automated screening (knockout questions) is off until the company's legal contact turns it on.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.SettingsEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Hiring settings", "tags": [ "hiring" ] }, "put": { "consumes": [ "application/json" ], "description": "Needs form.automated_screening.enable (Legal).", "parameters": [ { "description": "Settings", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.SettingsRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.SettingsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change hiring settings", "tags": [ "hiring" ] } }, "/hiring/skills": { "get": { "parameters": [ { "description": "Start of the skill name", "in": "query", "name": "q", "type": "string" }, { "description": "Most results (default 20, max 50)", "in": "query", "name": "limit", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.SkillsEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Search skills", "tags": [ "hiring" ] } }, "/hiring/tags": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TagsEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "The company's tags", "tags": [ "hiring" ] }, "post": { "consumes": [ "application/json" ], "description": "Needs job.manage_any. Names are unique, ignoring case.", "parameters": [ { "description": "Tag", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TagRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TagEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Create a tag", "tags": [ "hiring" ] } }, "/hiring/tags/{tag_id}": { "delete": { "description": "Needs job.manage_any. The tag is removed from every application.", "parameters": [ { "description": "Tag id", "in": "path", "name": "tag_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Delete a tag", "tags": [ "hiring" ] } }, "/hiring/templates": { "get": { "description": "Company templates plus the caller's own default setup.", "parameters": [ { "description": "job_details or application_form", "enum": [ "job_details", "application_form" ], "in": "query", "name": "kind", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplatesEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List templates", "tags": [ "templates" ] }, "post": { "consumes": [ "application/json" ], "description": "The template is made from an existing job, so it always matches what the builders produce. Set as_my_default to keep the setup for the caller's future jobs (\"Keep this setup\"); otherwise name it to share it with the company. Titles and closing dates are never saved, and pay and retention only when the caller may set them.", "parameters": [ { "description": "Template", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.TemplateInput" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Save a job's setup as a template", "tags": [ "templates" ] } }, "/hiring/templates/{id}": { "delete": { "parameters": [ { "description": "Template id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "additionalProperties": { "type": "boolean" }, "type": "object" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Delete a template", "tags": [ "templates" ] }, "patch": { "consumes": [ "application/json" ], "description": "Send name, pinned or both. Only company templates can be changed; a personal default cannot. Pinned templates list first for the whole company.", "parameters": [ { "description": "Template id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Changes", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplatePatchRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Rename or pin a template", "tags": [ "templates" ] } }, "/hiring/templates/{id}/duplicate": { "post": { "consumes": [ "application/json" ], "description": "Copies a company template. Without a name the copy is called \"\u003cname\u003e (copy)\".", "parameters": [ { "description": "Template id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Copy name", "in": "body", "name": "body", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplateDuplicateRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplateEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Duplicate a template", "tags": [ "templates" ] } }, "/hiring/templates/{id}/export": { "get": { "description": "Returns a company template's kind, name and payload in a portable form.", "parameters": [ { "description": "Template id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TemplateExportEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Export a template", "tags": [ "templates" ] } }, "/hiring/timezones": { "get": { "description": "Time zones with their current UTC offset, for jobs that are open to a time zone rather than a place.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TimezonesEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Time zones", "tags": [ "hiring" ] } }, "/industries": { "get": { "description": "Returns active industry options for onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.IndustryListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List industries", "tags": [ "waitlist/reference" ] } }, "/jobs": { "get": { "description": "Newest updated first unless sort and order say otherwise. People who can only see assigned jobs get the jobs they created or were added to. Each row carries the workplace type, published and closing dates and the hiring managers. applicant_count is the number of applications received and new_applicant_count the number nobody has opened yet.", "parameters": [ { "description": "Comma-separated statuses, e.g. draft,published", "in": "query", "name": "status", "type": "string" }, { "description": "Only this department", "in": "query", "name": "department_id", "type": "string" }, { "description": "Search the title or department name", "in": "query", "name": "q", "type": "string" }, { "description": "Only jobs created by this user id", "in": "query", "name": "created_by", "type": "string" }, { "description": "Only jobs this user id is on the hiring team of", "in": "query", "name": "assignee", "type": "string" }, { "description": "full_time, part_time, contract or internship", "in": "query", "name": "employment_type", "type": "string" }, { "description": "onsite, hybrid or remote", "in": "query", "name": "workplace_type", "type": "string" }, { "description": "anywhere, specific_area or specific_timezone", "in": "query", "name": "location_mode", "type": "string" }, { "description": "Two-letter market code, e.g. UK", "in": "query", "name": "market", "type": "string" }, { "description": "Created on or after this date (YYYY-MM-DD)", "in": "query", "name": "created_from", "type": "string" }, { "description": "Created on or before this date (YYYY-MM-DD)", "in": "query", "name": "created_to", "type": "string" }, { "description": "updated_at (default) or created_at", "in": "query", "name": "sort", "type": "string" }, { "description": "desc (default) or asc", "in": "query", "name": "order", "type": "string" }, { "description": "next_cursor from the previous page", "in": "query", "name": "cursor", "type": "string" }, { "description": "Page size (default 25, max 100)", "in": "query", "name": "limit", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobListEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List jobs", "tags": [ "jobs" ] }, "post": { "consumes": [ "application/json" ], "description": "All fields are optional, so the page can create a draft the first time the user saves. The draft starts from the caller's saved default setup and the standard application form unless template_id or form_template_id say otherwise.", "parameters": [ { "description": "Job fields", "in": "body", "name": "body", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.CreateRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Create a draft job", "tags": [ "jobs" ] } }, "/jobs/audit": { "get": { "description": "The company's audit events, newest first: job changes written by hiring (source hiring) and application events written by the applications service (source applications: received, viewed, file_downloaded, status_changed). Needs the job.audit.view permission. Rows carry ids and the stored diff only, never candidate data. Page with next_cursor.", "parameters": [ { "description": "Only this job (the entity)", "in": "query", "name": "job_id", "type": "string" }, { "description": "Only events by this user id", "in": "query", "name": "actor_id", "type": "string" }, { "description": "Exact action, e.g. job.published", "in": "query", "name": "action", "type": "string" }, { "description": "On or after this time (RFC 3339 or YYYY-MM-DD)", "in": "query", "name": "from", "type": "string" }, { "description": "Before this time (RFC 3339), or up to the end of this day (YYYY-MM-DD)", "in": "query", "name": "to", "type": "string" }, { "description": "next_cursor from the previous page", "in": "query", "name": "cursor", "type": "string" }, { "description": "Page size (default 50, max 100)", "in": "query", "name": "limit", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.AuditListEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Job audit trail", "tags": [ "jobs" ] } }, "/jobs/bulk": { "post": { "consumes": [ "application/json" ], "description": "Pause, resume, close, reopen, archive or move to draft, for up to 100 jobs. Resume and reopen run the publish checks for each job; a job that fails them is skipped with the reasons. Not all-or-nothing: each job is changed on its own, and the ones that could not be are listed with the reason. The result carries each job's earlier status so the client can offer undo.", "parameters": [ { "description": "Action and job ids", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.BulkRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.BulkEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change several jobs at once", "tags": [ "jobs" ] } }, "/jobs/counts": { "get": { "description": "The numbers for the status tabs, in one call instead of loading every job. Takes the same filters as the jobs list (search, department, creator, assignee, employment and workplace type, location mode, market, created dates); status, cursor, limit and sort are ignored. Every status is present, zero when there are none, and all is the total. People who can only see assigned jobs are counted on those jobs only.", "parameters": [ { "description": "Search title or department", "in": "query", "name": "q", "type": "string" }, { "description": "Only this department", "in": "query", "name": "department_id", "type": "string" }, { "description": "Only jobs created by this user id", "in": "query", "name": "created_by", "type": "string" }, { "description": "Only jobs this user id is on the hiring team of", "in": "query", "name": "assignee", "type": "string" }, { "description": "full_time, part_time, contract or internship", "in": "query", "name": "employment_type", "type": "string" }, { "description": "onsite, hybrid or remote", "in": "query", "name": "workplace_type", "type": "string" }, { "description": "anywhere, specific_area or specific_timezone", "in": "query", "name": "location_mode", "type": "string" }, { "description": "Two-letter market code, e.g. UK", "in": "query", "name": "market", "type": "string" }, { "description": "Created on or after this date (YYYY-MM-DD)", "in": "query", "name": "created_from", "type": "string" }, { "description": "Created on or before this date (YYYY-MM-DD)", "in": "query", "name": "created_to", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobCountsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Count jobs per status", "tags": [ "jobs" ] } }, "/jobs/export": { "get": { "description": "Every job the caller may see, newest first, or only the jobs in ids. CSV is the default; format=json returns the same rows as on the jobs list. Needs job.export.", "parameters": [ { "description": "Comma-separated statuses", "in": "query", "name": "status", "type": "string" }, { "description": "Comma-separated job ids; only these jobs are exported", "in": "query", "name": "ids", "type": "string" }, { "description": "csv (default) or json", "in": "query", "name": "format", "type": "string" } ], "produces": [ "text/csv", "application/json" ], "responses": { "200": { "description": "CSV", "schema": { "type": "string" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Export jobs as CSV or JSON", "tags": [ "jobs" ] } }, "/jobs/{id}": { "delete": { "description": "Only drafts can be deleted. Everything else is closed or archived instead.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "additionalProperties": { "type": "boolean" }, "type": "object" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Delete a draft", "tags": [ "jobs" ] }, "get": { "description": "Returns the job with warnings (market rules, pay advice, possible duplicates). The ETag header carries the revision to send back in If-Match.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Get a job", "tags": [ "jobs" ] }, "patch": { "consumes": [ "application/json" ], "description": "\"Save as draft\": send only the fields that changed. Formats are checked, required fields are not. Pay needs job.salary_range.set and retention needs job.retention.set.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "Fields to change", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Patch" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Save a draft", "tags": [ "jobs" ] } }, "/jobs/{id}/application-form": { "get": { "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.FormEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Get the application form", "tags": [ "application-form" ] }, "put": { "consumes": [ "application/json" ], "description": "Replaces the whole form. Full name and email are locked, the CV accepts PDF only, questions about current or past pay are refused, knockout rules need automated screening enabled for the company, and special category questions need a declaration and a lawful basis on the job. A knockout flags a candidate for a person to review; it never rejects anyone.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "Form", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.FormInput" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.FormEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Save the application form", "tags": [ "application-form" ] } }, "/jobs/{id}/applications": { "get": { "description": "Newest first, 25 per page by default (100 at most). Rows carry no answers. `status` can be repeated or comma separated; `new=true` lists applications nobody has opened. `counts` are for the whole job, whatever the filters. Seen by people who can see the job.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "collectionFormat": "csv", "description": "received, in_review, flagged, rejected, hired or withdrawn", "in": "query", "items": { "type": "string" }, "name": "status", "type": "array" }, { "description": "Where the candidate came from", "in": "query", "name": "source", "type": "string" }, { "description": "Search name or email", "in": "query", "name": "q", "type": "string" }, { "description": "Only applications nobody has opened", "in": "query", "name": "new", "type": "boolean" }, { "description": "Only applications in this stage id", "in": "query", "name": "stage", "type": "string" }, { "description": "Only applications with this tag id", "in": "query", "name": "tag", "type": "string" }, { "description": "Only applications the caller follows", "in": "query", "name": "followed", "type": "boolean" }, { "description": "next_cursor of the previous page", "in": "query", "name": "cursor", "type": "string" }, { "description": "Page size", "in": "query", "name": "limit", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationPageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List a job's applications", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/bulk/stage": { "post": { "consumes": [ "application/json" ], "description": "Up to 100 applications. Each is its own change; the answer says per application whether it moved, and why not (not_found, flagged, final, changed). Flagged applications are never moved in bulk: they are decided one by one through their review.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Applications and stage", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.BulkMoveStageRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.BulkMoveEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Move several applications to a stage", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/compare": { "get": { "description": "2 to 4 applications of the job side by side: each candidate's tags, files and interviews, and a row per question with every candidate's answer. Answers to special category questions are never included. Opening is audited as usual, but a comparison does not make the caller the reviewer of a flagged application.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Comma separated application ids (2 to 4)", "in": "query", "name": "ids", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.CompareEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Compare applications", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}": { "get": { "description": "Returns the answers (special category answers are never returned), the files, the flags and the review. Opening is recorded in the job's audit log; the first opening takes the application out of the job's new count. Whoever may decide a flagged application and opens it becomes its reviewer.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Open an application", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/activity": { "get": { "description": "The timeline, newest first: arrival, stage and status changes, notes added, edited or deleted (never their text) and tag changes. 30 per page by default (100 at most).", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "next_cursor of the previous page", "in": "query", "name": "cursor", "type": "string" }, { "description": "Page size", "in": "query", "name": "limit", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ActivityEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "An application's activity", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/email-attachments": { "get": { "description": "Files uploaded for this candidate that no email uses yet.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.AttachmentsEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Uploaded files waiting to be sent", "tags": [ "jobs" ] }, "post": { "consumes": [ "multipart/form-data" ], "description": "Multipart form with one `file` part. PDF, Word (.docx), PNG, JPEG or text, up to 5 MB; the content must match the name and passes a malware scan, or the file is refused. The file is not sent yet: pass its id in `attachment_ids` when sending an email (at most 3 files per email). Up to 10 files can wait on an application. Same permission as emailing the candidate.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "The file", "in": "formData", "name": "file", "required": true, "type": "file" } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.AttachmentEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "413": { "description": "Request Entity Too Large", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Upload a file to send to a candidate", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/email-attachments/{attachment_id}": { "delete": { "description": "Only a file no email uses yet.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "File id", "in": "path", "name": "attachment_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Remove an uploaded file", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/emails": { "get": { "description": "Newest first, with scheduled ones that have not gone out. Seen by people who can see the job.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.MessagesEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Emails sent to an application's candidate", "tags": [ "jobs" ] }, "post": { "consumes": [ "application/json" ], "description": "Sends now, or at `schedule_at`. The message always goes to the application's candidate: there is no recipient field. Placeholders are filled in before it is saved, so the history shows what the candidate got. At most 10 messages to one candidate and 500 by one company in 24 hours. Needs to be the job's creator, a hiring manager or recruiter on it, or job.manage_any. Not for candidates who withdrew.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Message", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.MessageRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.MessageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Email the candidate", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/emails/preview": { "post": { "consumes": [ "application/json" ], "description": "Fills the placeholders for this candidate and returns the subject and body, without sending anything.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Message", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.MessageRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.PreviewEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Preview an email to the candidate", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/emails/{message_id}": { "delete": { "description": "Only a message that has not gone out yet.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Message id", "in": "path", "name": "message_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Cancel a scheduled email", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/files/{file_id}": { "get": { "description": "Returns a link that works for 5 minutes and downloads the file under its original name. The request is recorded in the job's audit log. Ask again for a new link.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "File id", "in": "path", "name": "file_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.FileLinkEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Get a download link for an application's file", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/follow": { "delete": { "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Unfollow an application", "tags": [ "jobs" ] }, "put": { "description": "Stars the application for the caller. Repeating it is harmless.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Follow an application", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/interviews": { "get": { "description": "Soonest first. Seen by people who can see the job.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewsEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "An application's interviews", "tags": [ "jobs" ] }, "post": { "consumes": [ "application/json" ], "description": "Needs to be the job's creator, a hiring manager or recruiter on it, or job.manage_any. Interviewers must be on the job's team. With `invite` the candidate gets an email with a calendar event in the same step. At most 10 scheduled interviews per application. Not for decided applications.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Interview", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Schedule an interview", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/interviews/{interview_id}": { "patch": { "consumes": [ "application/json" ], "description": "Reschedule it, change where it is or who takes it. Only a scheduled interview. With `invite` the candidate gets the updated calendar event, which replaces the earlier one.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Interview id", "in": "path", "name": "interview_id", "required": true, "type": "string" }, { "description": "Changes", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewPatchRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change an interview", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/interviews/{interview_id}/cancel": { "post": { "consumes": [ "application/json" ], "description": "Only a scheduled interview. With `notify` the candidate gets a calendar cancellation.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Interview id", "in": "path", "name": "interview_id", "required": true, "type": "string" }, { "description": "Options", "in": "body", "name": "body", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewCancelRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Cancel an interview", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/interviews/{interview_id}/complete": { "post": { "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Interview id", "in": "path", "name": "interview_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.InterviewEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Mark an interview as held", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/notes": { "get": { "description": "Newest first. Internal: candidates never see them. Seen by people who can see the job.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.NotesEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "An application's notes", "tags": [ "jobs" ] }, "post": { "consumes": [ "application/json" ], "description": "Anyone who can see the job can add one; interviewers leave their feedback this way. At most 4,000 characters.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Note", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.NoteRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.NoteEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Add a note", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/notes/{note_id}": { "delete": { "description": "Only the author can.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Note id", "in": "path", "name": "note_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Delete a note", "tags": [ "jobs" ] }, "patch": { "consumes": [ "application/json" ], "description": "Only the author can.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Note id", "in": "path", "name": "note_id", "required": true, "type": "string" }, { "description": "Note", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.NoteRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.NoteEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Edit a note", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/offers": { "get": { "description": "Newest first. An offer nobody answered by its expiry shows as expired. Seen by people who can see the job.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OffersEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "An application's offers", "tags": [ "jobs" ] }, "post": { "consumes": [ "application/json" ], "description": "Saves a draft, or sends it with `send`. The candidate must be in review. One live offer per application. The letter is filled in from placeholders when it is saved and is fixed once sent. The candidate gets an email with a single-use link that works until the offer expires; signing it hires the candidate.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Offer", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Make an offer", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/offers/{offer_id}": { "patch": { "consumes": [ "application/json" ], "description": "Only a draft: a sent offer is fixed, so withdraw it and make a new one.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Offer id", "in": "path", "name": "offer_id", "required": true, "type": "string" }, { "description": "Changes", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferPatchRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a draft offer", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/offers/{offer_id}/audit": { "get": { "description": "Created, sent, viewed, signed, declined, expired and withdrawn, with the time, IP address and browser of whoever acted. Oldest first.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Offer id", "in": "path", "name": "offer_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferEventsEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "An offer's audit trail", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/offers/{offer_id}/document": { "get": { "description": "A short-lived link to the signed PDF: the letter, the signature and the audit trail. Only for a signed offer.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Offer id", "in": "path", "name": "offer_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.FileLinkEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "The signed offer", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/offers/{offer_id}/send": { "post": { "consumes": [ "application/json" ], "description": "Sends a draft, or sends an unanswered offer again: the new email carries a new link and the earlier link stops working.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Offer id", "in": "path", "name": "offer_id", "required": true, "type": "string" }, { "description": "Options", "in": "body", "name": "body", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferSendRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.OfferEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Send an offer", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/offers/{offer_id}/withdraw": { "post": { "description": "Takes back an offer that is not signed, declined or expired. Its link stops working at once.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Offer id", "in": "path", "name": "offer_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Withdraw an offer", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/review": { "post": { "consumes": [ "application/json" ], "description": "`proceed` moves it to in_review; `reject` rejects it. The person deciding must be the last to have opened the application (GET it first), so every flagged candidate is looked at by a person before they are decided. There is no bulk version.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Decision", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationReviewRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationResultEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Decide a flagged application", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/stage": { "post": { "consumes": [ "application/json" ], "description": "To an open stage, a received application becomes in_review (unless the stage is Applied). To Hired or Disqualified the application is decided: it ends, its retention clock starts and the candidate is emailed unless the company turned that off. Disqualified needs a reason. A flagged application is moved only after its review; a decided one never moves.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Stage", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.MoveStageRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.MoveResultEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Move an application to a stage", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/status": { "post": { "consumes": [ "application/json" ], "description": "received to in_review or withdrawn; in_review to rejected, hired or withdrawn; flagged to withdrawn only. A flagged application is decided through its review. rejected, hired and withdrawn are final and start the retention clock. A rejection or hire emails the candidate unless the company turned that off. Needs to be the job's creator, a hiring manager or recruiter on it, or job.manage_any.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "New status", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationStatusRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationResultEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change an application's status", "tags": [ "jobs" ] } }, "/jobs/{id}/applications/{app_id}/tags": { "put": { "consumes": [ "application/json" ], "description": "Replaces the tags: send the full list. At most 10. Needs to be the job's creator, a hiring manager or recruiter on it, or job.manage_any.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Application id", "in": "path", "name": "app_id", "required": true, "type": "string" }, { "description": "Tags", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationTagsRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.TagsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Set an application's tags", "tags": [ "jobs" ] } }, "/jobs/{id}/archive": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/jobs/{id}/close": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/jobs/{id}/compliance": { "get": { "description": "The gates that apply to the job's markets, special categories and screening, with where each stands. Gates marked auto are answered from the job's own details.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.GatesEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List a job's compliance gates", "tags": [ "jobs" ] } }, "/jobs/{id}/compliance/{gate_id}": { "put": { "consumes": [ "application/json" ], "description": "The confirmation is the company's own and is written to the append-only compliance log against the caller. A confirmation stops counting when the gate's wording changes.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Gate id, e.g. uk-lawful", "in": "path", "name": "gate_id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "Confirmation", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.ConfirmRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.GatesEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Confirm or withdraw a compliance gate", "tags": [ "jobs" ] } }, "/jobs/{id}/details": { "put": { "consumes": [ "application/json" ], "description": "Same body as PATCH, but the required fields (title, department, hiring option, travel, visa, employment type and, for people who can set pay, pay) must be present once applied. Moves the draft to the application form step.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "Fields to change", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_jobs.Patch" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Save and continue on the job details step", "tags": [ "jobs" ] } }, "/jobs/{id}/disqualification-rules": { "get": { "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.RulesEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Get a job's screening rules", "tags": [ "jobs" ] }, "put": { "consumes": [ "application/json" ], "description": "Replaces the rules. A rule flags a candidate for a person to review; it never rejects anyone. Rules count as automated screening, so they need Legal to have enabled screening for the company and, before publishing, the company DPIA and this job's DPIA scope confirmation.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "Rules", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.RulesInput" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.RulesEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Set a draft's screening rules", "tags": [ "jobs" ] } }, "/jobs/{id}/duplicate": { "post": { "description": "Copies the details and application form into a new draft owned by the caller. The copy has no team, no screening rules, no confirmations and no public id.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Duplicate a job", "tags": [ "jobs" ] } }, "/jobs/{id}/duplicates/dismiss": { "post": { "description": "Records in the audit log that the user saw the warning and kept going. The warning still shows if the job is opened again.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "additionalProperties": { "type": "boolean" }, "type": "object" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Acknowledge the duplicate-job warning", "tags": [ "jobs" ] } }, "/jobs/{id}/markets": { "put": { "consumes": [ "application/json" ], "description": "Replaces the places a job is open to. Closed markets are rejected, an anywhere job takes no places, and the retention period is raised to the strictest minimum of the chosen markets. The response carries the market warnings.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "Markets", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.MarketsRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.JobEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Set the hiring option and markets", "tags": [ "jobs" ] } }, "/jobs/{id}/members": { "get": { "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.MembersEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "List a job's hiring team", "tags": [ "jobs" ] }, "put": { "consumes": [ "application/json" ], "description": "Replaces the team (the Permissions step). The creator already has access and is not listed. Team members see the job and its candidates but gain no edit rights. HR 2 can add and remove viewers on its own jobs only.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" }, { "description": "The whole team", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.MembersRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.MembersEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Set a job's hiring team", "tags": [ "jobs" ] } }, "/jobs/{id}/pause": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/jobs/{id}/preview": { "get": { "description": "The candidate-facing view, built the same way as the live page. It never contains knockout rules, the lawful basis, retention or the assessment link.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.PreviewEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Preview the posting", "tags": [ "jobs" ] } }, "/jobs/{id}/publish": { "post": { "description": "Runs every publish check inside the same transaction as the status change: a verified company, an accepted DPA, a privacy contact, complete details, an open market, a lawful basis, the screening prerequisites and every required compliance gate. People who may not publish submit the job for approval instead. A blocked publish returns 422 with every issue.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Publish a job", "tags": [ "jobs" ] } }, "/jobs/{id}/publish-check": { "get": { "description": "The dry run of publishing: the same checks, nothing written. Blocking issues stop a publish; warnings do not. Also lists the compliance gates that apply and where each stands.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.ReportEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Check whether a job can publish", "tags": [ "jobs" ] } }, "/jobs/{id}/reopen": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/jobs/{id}/resume": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/jobs/{id}/share-kit": { "get": { "description": "The job's public link and ready-made share links for WhatsApp, X, Facebook, LinkedIn, Telegram and email. Each link carries its channel as src, so applications show which link brought the candidate. Available once the job has been published.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.ShareKitEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Share kit", "tags": [ "jobs" ] } }, "/jobs/{id}/stages": { "get": { "description": "Applied, Shortlisted, Interview, Offer, Hired and Disqualified, plus the company's custom stages, in order, each with the number of applications in it. The default stages are created the first time they are needed.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StagesEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "A job's pipeline stages", "tags": [ "jobs" ] }, "post": { "consumes": [ "application/json" ], "description": "The new stage goes right before Hired. A job has at most 20 stages and names are unique within it. Needs to be the job's creator, a hiring manager or recruiter on it, or job.manage_any.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Stage", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StageNameRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StageEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Add a custom stage", "tags": [ "jobs" ] } }, "/jobs/{id}/stages/order": { "put": { "consumes": [ "application/json" ], "description": "List every open stage once with Applied first. Hired and Disqualified always stay last. Returns the pipeline.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Order", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StageOrderRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StagesEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Reorder the open stages", "tags": [ "jobs" ] } }, "/jobs/{id}/stages/{stage_id}": { "delete": { "description": "Only an empty custom stage can be removed.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Stage id", "in": "path", "name": "stage_id", "required": true, "type": "string" } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Remove a custom stage", "tags": [ "jobs" ] }, "patch": { "consumes": [ "application/json" ], "description": "Applied, Hired and Disqualified keep their names.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Stage id", "in": "path", "name": "stage_id", "required": true, "type": "string" }, { "description": "Name", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StageNameRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.StagesEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Rename a stage", "tags": [ "jobs" ] } }, "/jobs/{id}/to-draft": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/jobs/{id}/withdraw": { "post": { "description": "One path per action: pause, resume, close, reopen, archive, to-draft and withdraw. Pause, close and move-to-draft take a job off every board. Resume and reopen run the publish checks again. HR 2 can change only the jobs it created. Which statuses allow which action is in the status rules of the lifecycle package.", "parameters": [ { "description": "Job id", "in": "path", "name": "id", "required": true, "type": "string" }, { "description": "Revision the client loaded", "in": "header", "name": "If-Match", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.TransitionEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "422": { "description": "Unprocessable Entity", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change a job's status", "tags": [ "jobs" ] } }, "/onboarding/address": { "put": { "consumes": [ "application/json" ], "description": "Saves business registry identification and workspace address. Business accounts only.", "parameters": [ { "description": "Address payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.ProductAddressRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProductAddressEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Upsert identification and address", "tags": [ "onboarding/address" ] } }, "/onboarding/address/search": { "post": { "consumes": [ "application/json" ], "description": "Returns address autocomplete suggestions for a partial query and country.", "parameters": [ { "description": "Address search payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.AddressSearchRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.AddressSearchEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "501": { "description": "Not Implemented", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Search addresses", "tags": [ "onboarding/address" ] } }, "/onboarding/address/verify": { "post": { "consumes": [ "application/json" ], "description": "Verifies a search or manual address payload. Returns verification_status and optional failure_reason (not_verifiable shows manual entry).", "parameters": [ { "description": "Address verification payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.VerifyAddressRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.VerifyAddressEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "501": { "description": "Not Implemented", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Verify address", "tags": [ "onboarding/address" ] } }, "/onboarding/business": { "post": { "consumes": [ "application/json" ], "deprecated": true, "description": "Deprecated: prefer stepped PUT /onboarding/profile → address → PUT /onboarding/business (type/industry/employees) → complete. This one-shot includes KYB-oriented fields (BIN, registered address) and does not advance onboarding progress.", "parameters": [ { "description": "Business onboarding payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.BusinessRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_orghttp.BusinessEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Submit business onboarding (deprecated)", "tags": [ "onboarding/business" ] }, "put": { "consumes": [ "application/json" ], "deprecated": true, "description": "Deprecated: use PUT /onboarding/compliance. Saves business type, industry, and employee count.", "parameters": [ { "description": "Business payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.ProductBusinessRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProductBusinessEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Upsert business compliance (deprecated)", "tags": [ "onboarding/business" ] } }, "/onboarding/business-types": { "get": { "description": "Returns business type options for the compliance step.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.BusinessTypeListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List business types", "tags": [ "onboarding/reference" ] } }, "/onboarding/company-roles": { "get": { "description": "Returns company role options for business profile step.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.CompanyRoleListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List company roles", "tags": [ "onboarding/reference" ] } }, "/onboarding/complete": { "post": { "description": "Finalizes onboarding after all mandatory steps are done. Sets onboarding_completed_at and enqueues an onboarding_complete welcome email.", "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_orghttp.ProductOnboardingCompleteEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Complete onboarding", "tags": [ "onboarding/session" ] } }, "/onboarding/compliance": { "put": { "consumes": [ "application/json" ], "description": "Saves business type, industry, and employee count for individual or business accounts.", "parameters": [ { "description": "Compliance payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.ProductComplianceRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProductComplianceEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Upsert compliance", "tags": [ "onboarding/compliance" ] } }, "/onboarding/identification-requirements": { "get": { "description": "Returns country-specific business identification field labels, formats, and validation patterns.", "parameters": [ { "description": "Country UUID", "in": "query", "name": "country_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.IdentificationRequirementsEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Get business identification requirements", "tags": [ "onboarding/reference" ] } }, "/onboarding/individual": { "post": { "consumes": [ "application/json" ], "deprecated": true, "description": "Deprecated: prefer the stepped flow PUT /onboarding/profile then address/complete. Saves first name, last name, country, business type, industry, and employee count on the user row only.", "parameters": [ { "description": "Individual onboarding payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.IndividualRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_orghttp.IndividualEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Submit individual onboarding (deprecated)", "tags": [ "onboarding/individual" ] } }, "/onboarding/industries": { "get": { "description": "Returns product onboarding industry options.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.OnboardingIndustryListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List onboarding industries", "tags": [ "onboarding/reference" ] } }, "/onboarding/profile": { "put": { "consumes": [ "application/json" ], "description": "Saves account type and profile fields for individual or business accounts.", "parameters": [ { "description": "Profile payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.ProductProfileRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProductProfileEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Upsert profile", "tags": [ "onboarding/profile" ] } }, "/onboarding/status": { "get": { "description": "Returns current step, completed steps, and saved draft fields.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProductOnboardingStatusEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Get onboarding status", "tags": [ "onboarding/session" ] } }, "/organization/agreements": { "get": { "description": "Verification status, the DPA version to accept and whether it is accepted, the privacy contact and the DPIA.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.CompanySetupEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Show the company's publishing requirements", "tags": [ "organization" ] }, "post": { "consumes": [ "application/json" ], "description": "Only a Founder or Legal can. The version must be the current one shown by GET.", "parameters": [ { "description": "Version", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.AcceptRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.CompanySetupEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Accept the terms and data processing agreement", "tags": [ "organization" ] } }, "/organization/dpia": { "put": { "consumes": [ "application/json" ], "description": "Legal records the data protection impact assessment before the first screening job publishes. Each call stores a new version.", "parameters": [ { "description": "Where the assessment is kept and what it covers", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_hiring_draft.DPIAInput" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.CompanySetupEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Record the company's DPIA", "tags": [ "jobs" ] } }, "/organization/privacy-contact": { "put": { "consumes": [ "application/json" ], "description": "The address applicants are told to write to, and an optional DPO contact. Needed before publishing.", "parameters": [ { "description": "Contact", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.PrivacyContactInput" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.CompanySetupEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Set the privacy contact", "tags": [ "organization" ] } }, "/organization/profile": { "get": { "description": "The careers page address, name, about text, website and logo. Anyone in the company can read it.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProfileEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Show the company's public profile", "tags": [ "organization" ] }, "put": { "consumes": [ "application/json" ], "description": "Replaces the profile; a field left empty is cleared. The slug is the careers page address and is unique across all companies. Founder and HR 1.", "parameters": [ { "description": "Profile", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.ProfileInput" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.ProfileEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change the company's public profile", "tags": [ "organization" ] } }, "/organization/profile/slug-check": { "get": { "description": "Says whether the company can take the address: well formed, not reserved and not used by another company.", "parameters": [ { "description": "Address to check", "in": "query", "name": "slug", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.SlugCheckEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Check a careers page address", "tags": [ "organization" ] } }, "/organization/verification": { "get": { "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.KYBStatusEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Get company verification status", "tags": [ "organization/verification" ] }, "post": { "consumes": [ "application/json" ], "description": "First submission or a full resubmission after a failure. Tier 1 countries are checked immediately; others are queued for manual review (status pending).", "parameters": [ { "description": "Verification form", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.KYBSubmitRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.KYBStatusEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Submit company verification", "tags": [ "organization/verification" ] } }, "/organization/verification/change-country": { "post": { "consumes": [ "application/json" ], "description": "Clears the registration number and country identifiers, keeps name and address, and returns the status to not_started.", "parameters": [ { "description": "Country", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.KYBChangeCountryRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.KYBStatusEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Change the registration country", "tags": [ "organization/verification" ] } }, "/organization/verification/confirm-address": { "post": { "consumes": [ "application/json" ], "description": "Accepts an address_mismatch warning once the user says whether the address is registered or trading.", "parameters": [ { "description": "Address type", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.KYBConfirmAddressRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.KYBStatusEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Confirm which address was entered", "tags": [ "organization/verification" ] } }, "/organization/verification/confirm-name": { "post": { "description": "One-click fix for a name_mismatch: the registry's legal name replaces what was typed and the check runs again.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.KYBStatusEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Confirm the registry's company name", "tags": [ "organization/verification" ] } }, "/organization/verification/retry": { "post": { "consumes": [ "application/json" ], "description": "Light retry for number_not_found and name_mismatch failures. Country and address are reused.", "parameters": [ { "description": "Retry form", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_orghttp.KYBRetryRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.KYBStatusEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Retry verification with name and number only", "tags": [ "organization/verification" ] } }, "/organizations/invites": { "post": { "consumes": [ "application/json" ], "description": "Organization owners invite a member by email. Sends an invite email with a token.", "parameters": [ { "description": "Invite payload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_identityhttp.AuthCreateOrgInviteRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_identityhttp.AuthCreateOrgInviteEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "security": [ { "SessionCookie": [] } ], "summary": "Create organization invite", "tags": [ "auth" ] } }, "/public/companies/{slug}": { "get": { "description": "The company's public profile and its open jobs, newest first, with filters and cursor paging. Only published jobs that are shown on the career page and are inside their closing date are listed. No sign-in.", "parameters": [ { "description": "Careers page address", "in": "path", "name": "slug", "required": true, "type": "string" }, { "description": "Department name", "in": "query", "name": "team", "type": "string" }, { "description": "onsite, hybrid or remote", "in": "query", "name": "workplace_type", "type": "string" }, { "description": "full_time, part_time, contract or internship", "in": "query", "name": "employment_type", "type": "string" }, { "description": "Text in the job's location", "in": "query", "name": "location", "type": "string" }, { "description": "Text in the job title", "in": "query", "name": "q", "type": "string" }, { "description": "Page size, default 20, at most 50", "in": "query", "name": "limit", "type": "integer" }, { "description": "next_cursor of the previous page", "in": "query", "name": "cursor", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.PublicCompanyEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Company careers page", "tags": [ "jobs" ] } }, "/public/jobs/{public_id}": { "get": { "description": "The job and its application form as a candidate sees it. No sign-in. Knockout rules, the lawful basis and the assessment link are never included. Closed, paused and archived jobs say so in state.", "parameters": [ { "description": "Public job id", "in": "path", "name": "public_id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_hiringhttp.PublicJobEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Public job", "tags": [ "jobs" ] } }, "/public/jobs/{public_id}/applications": { "post": { "consumes": [ "application/json" ], "description": "Sends an application. No sign-in. The answers are checked against the form that was frozen when the job was published. A failed knockout or screening rule flags the application for a person to review; it never rejects it. Applying again with the same email returns the same success and changes nothing. Rate limited.", "parameters": [ { "description": "Public job id", "in": "path", "name": "public_id", "required": true, "type": "string" }, { "description": "A random 8 to 64 character key; a retry with the same key never creates a second application", "in": "header", "name": "Idempotency-Key", "type": "string" }, { "description": "Application", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.ApplicationReceiptEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Apply for a job", "tags": [ "jobs" ] } }, "/public/jobs/{public_id}/uploads": { "post": { "consumes": [ "application/json" ], "description": "Returns a one-time URL to PUT a file to (a CV, for example). Only the file types and size the question allows are accepted: a CV is PDF only, 5 MB on the free plan and 10 MB on paid plans. Send the file with PUT and exactly the returned headers within the time shown, then give the token as the answer to the question when applying. The file is scanned for malware when the application is submitted; a file that fails is discarded. No sign-in. Rate limited.", "parameters": [ { "description": "Public job id", "in": "path", "name": "public_id", "required": true, "type": "string" }, { "description": "File to upload", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.UploadRequest" } } ], "produces": [ "application/json" ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.UploadTargetEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "410": { "description": "Gone", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "429": { "description": "Too Many Requests", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "503": { "description": "Service Unavailable", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Get an upload URL", "tags": [ "jobs" ] } }, "/public/offers/{token}": { "get": { "description": "The offer behind the link in the candidate's email. No sign-in: the token in the link is the credential. Opening it is recorded as a view. `can_respond` says whether it can still be signed or declined.", "parameters": [ { "description": "Token from the link", "in": "path", "name": "token", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.PublicOfferEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Read an offer", "tags": [ "offers" ] } }, "/public/offers/{token}/decline": { "post": { "consumes": [ "application/json" ], "description": "The candidate says no, with an optional reason the company can read. The link works once.", "parameters": [ { "description": "Token from the link", "in": "path", "name": "token", "required": true, "type": "string" }, { "description": "Reason", "in": "body", "name": "body", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.DeclineRequest" } } ], "produces": [ "application/json" ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Decline an offer", "tags": [ "offers" ] } }, "/public/offers/{token}/document": { "get": { "description": "A short-lived link to the signed PDF, for the candidate who signed. The link of the email stops working once signed, so this is for the page shown right after signing.", "parameters": [ { "description": "Token from the link", "in": "path", "name": "token", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.FileLinkEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "The signed offer", "tags": [ "offers" ] } }, "/public/offers/{token}/sign": { "post": { "consumes": [ "application/json" ], "description": "The candidate types their full name and agrees to sign electronically. The time is the server's. The offer's terms are fixed; the signature, the hash of the letter, the consent, the IP address and the browser go into the audit trail, a signed PDF is made, and the candidate is hired. The link works once.", "parameters": [ { "description": "Token from the link", "in": "path", "name": "token", "required": true, "type": "string" }, { "description": "Signature", "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/internal_hiring_apphttp.SignRequest" } } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_hiring_apphttp.PublicOfferEnvelope" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "Sign an offer", "tags": [ "offers" ] } }, "/roles": { "get": { "description": "Returns active role options for onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.RoleListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List roles", "tags": [ "waitlist/reference" ] } }, "/team-sizes": { "get": { "description": "Returns team size band options for onboarding.", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_orghttp.TeamSizeListEnvelope" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_Angle-HR_server_internal_apidoc.ErrorEnvelope" } } }, "summary": "List team sizes", "tags": [ "waitlist/reference" ] } } }, "securityDefinitions": { "AdminSessionCookie": { "description": "Admin session cookie (`__Host-openhr_admin_session`). Unsafe methods also need the `X-CSRF-Token` header.", "in": "header", "name": "Cookie", "type": "apiKey" }, "SessionCookie": { "description": "Product session cookie (`__Host-openhr_session`). Set by the server on login; sent automatically by browsers. Unsafe methods also need the `X-CSRF-Token` header.", "in": "header", "name": "Cookie", "type": "apiKey" } }, "swagger": "2.0", "tags": [ { "description": "Reference data for waitlist and onboarding forms: countries.", "name": "waitlist/reference", "x-displayName": "Reference" }, { "description": "Product signup, email verification OTP (not for passwordless login), password login, passwordless login OTP (/auth/login/otp/*), TOTP MFA, password reset, logout, /auth/me, and product org invites.", "name": "auth", "x-displayName": "Auth" }, { "description": "Product onboarding catalog endpoints (business types, industries, company roles, identification requirements). Separate from waitlist reference data.", "name": "onboarding/reference", "x-displayName": "Reference" }, { "description": "Canonical profile step: account type (`individual` or `business`) and profile fields via PUT /onboarding/profile. Individual accounts set region from country_id.", "name": "onboarding/profile", "x-displayName": "Profile" }, { "description": "Business identification and workspace address. POST /onboarding/address/search and POST /onboarding/address/verify accept payloads directly. Uses ADDRESS_SEARCH_MODE and ADDRESS_VERIFY_MODE passthrough in non-prod.", "name": "onboarding/address", "x-displayName": "Address" }, { "description": "Canonical compliance step: PUT /onboarding/compliance (business_type_id, industry_id, employee_count) for individual and business accounts.", "name": "onboarding/compliance", "x-displayName": "Compliance" }, { "description": "Deprecated alias for PUT /onboarding/compliance. POST /onboarding/business is deprecated (KYB-oriented one-shot).", "name": "onboarding/business", "x-displayName": "Business" }, { "description": "Deprecated one-shot POST /onboarding/individual. Prefer PUT /onboarding/profile with account_type individual.", "name": "onboarding/individual", "x-displayName": "Individual" }, { "description": "Onboarding progress and completion. Individual: verify_email → profile → compliance → complete. Business: verify_email → profile → identification_address → compliance → complete.", "name": "onboarding/session", "x-displayName": "Session" }, { "description": "Admin console login, invite acceptance, token refresh, and current admin profile with RBAC permissions.", "name": "admin/auth", "x-displayName": "Auth" }, { "description": "Product account directory via global registry and regional accounts.", "name": "admin/users", "x-displayName": "Users" }, { "description": "CMS for waitlist and product onboarding catalog tables.", "name": "admin/catalogs", "x-displayName": "Catalogs" }, { "description": "Fluvio job inspection and retry for the email queue.", "name": "admin/jobs", "x-displayName": "Jobs" }, { "description": "Invite and manage admin staff users and role assignments.", "name": "admin/staff", "x-displayName": "Staff" }, { "description": "Create and manage custom roles, assign permissions from the seeded catalog.", "name": "admin/roles", "x-displayName": "Roles" }, { "description": "Immutable audit trail of admin mutations.", "name": "admin/audit", "x-displayName": "Audit" }, { "description": "KYB review queue: list organizations by verification status, view a case, and approve or reject it.", "name": "admin/verification", "x-displayName": "Verification" }, { "description": "KYB business verification for the signed-in organization: submit, retry, confirm name or address, and change country.", "name": "organization/verification", "x-displayName": "Business verification" }, { "description": "Draft jobs: create, save as draft, save and continue, markets and warnings, preview, duplicate-job warning and delete (drafts only).", "name": "jobs", "x-displayName": "Jobs" }, { "description": "The application form builder: question types, locked name and email, knockout rules and special category declarations.", "name": "application-form", "x-displayName": "Application form" }, { "description": "Saved job setups: company templates and a user's own default (Keep this setup).", "name": "templates", "x-displayName": "Templates" }, { "description": "Pick lists for the job form (catalog, time zones, skills), departments and company hiring settings.", "name": "hiring", "x-displayName": "Hiring setup" } ], "x-tagGroups": [ { "name": "Waitlist", "tags": [ "waitlist/reference" ] }, { "name": "Onboarding", "tags": [ "auth", "onboarding/reference", "onboarding/profile", "onboarding/address", "onboarding/compliance", "onboarding/business", "onboarding/individual", "onboarding/session", "organization/verification" ] }, { "name": "Admin", "tags": [ "admin/auth", "admin/users", "admin/catalogs", "admin/jobs", "admin/staff", "admin/roles", "admin/audit", "admin/verification" ] }, { "name": "Hiring", "tags": [ "jobs", "application-form", "templates", "hiring" ] } ] }