{"openapi":"3.1.0","info":{"title":"Lovelio API","version":"1.0.0","description":"Recruitment automation API. Create jobs, manage candidates, run ad-hoc actions, integrate with your tools.\n\nREST errors use success: false, data (usually null), meta.request_id and error with code, message, docs and request_id. Unknown paths return JSON 404 ROUTE_NOT_FOUND; unsupported methods return JSON 405 METHOD_NOT_ALLOWED with Allow. HEAD has no body and OPTIONS retains HTTP preflight behavior. See https://lovelio.ai/docs/agents/error-handling for recovery examples. These conventions apply to /api/v1 and its /v1 alias, not OAuth or MCP. Use the sandbox base URL shown in the portal; staging keys belong on staging. Browser apps call their own backend, which stores credentials and calls Lovelio.\n\n**1.0.0 (2026-08-18):** Initial public API baseline. Covers the complete recruiter workflow across clients, jobs, candidates, applications, assessments, screens, submissions, interviews, references, placements, search, email, webhooks, reporting, and automation actions.","contact":{"email":"api@lovelio.ai","url":"https://lovelio.ai/docs"},"license":{"name":"Proprietary"}},"servers":[{"url":"https://us.lovelio.ai/api/v1","description":"Production (US (N. California))"},{"url":"https://eu.lovelio.ai/api/v1","description":"Production (EU (London))"},{"url":"https://anz.lovelio.ai/api/v1","description":"Production (ANZ (Sydney))"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key, sent as Authorization: Bearer <key>. Three key types: sk_live_ (production), sk_test_ (development - same workspace, same data, marked as a test key; use a separate workspace if you need isolated test data), and sk_trial_ (issued at signup, expires 14 days later - swap to a live key from Settings > API keys). Keys are server-generated, shown once at creation, and scoped per permission (or admin for everything). The regional /api/mcp endpoint also accepts these keys through the Authorization header, with the same scopes and record access. Current key status and scopes are rechecked on every request. Lovelio Connect apps authenticate with the OAuth access token from the connect flow instead (Authorization: Bearer lc_at_...; personal MCP clients use mcp_at_...) - it carries exactly the scopes the agency approved, enforced on every request. Personal actions use the current membership role and record access; direct account administration requires an admin. Consultant OAuth scopes also follow the current agency rule. Additional scopes require fresh consent. Money is gated at FIELD level, not route level: the three scopes placements:financials:read, clients:financials:read and marketplace:financials:read unlock salary, fee, contract rates, expected GP, commission percents, the client fee schedule and split-fee deal amounts. Without them those fields return null and everything else on the record still comes through - a read never 403s for want of a money scope. admin satisfies all three. A key or connection that acts as a person also carries that person's money view: when their user type has \"See everyone's billings and GP\" switched off (Settings > Permissions), money fields come back null on every record that is not their own (a placement they own or share credit on, a job they own and its placements, their own listings and deals), totals count their own placements only, and a write to money on someone else's placement returns a validation error. A company key with no person behind it sees every figure its scopes allow. A fourth field gate, placements:contracting:read, unlocks the timesheet and payroll hand-off on a contract placement: the client's payment terms and how the contractor is paid (Australia: PAYG or ABN, and the ABN). Requesting any of them puts a Connect app in the elevated review tier. See /docs/agents/build-an-integration."},"appOAuth2":{"type":"oauth2","description":"How a Lovelio Connect app gets a token for an agency that is not its own. Authorization code with PKCE (S256 only - a plain or absent code_challenge is refused), plus the client secret at the token endpoint. Credentials are issued in the developer portal: a client ID (lc_client_) safe to publish and a client secret (lc_secret_) shown once. The exchange returns an access token (lc_at_, 3600 seconds) and a refresh token (lc_rt_) that rotates on every use. The granted scope can be narrower than the requested scope - read the scope field on the response. Connect partner apps require an agency admin to consent and cannot request accounts:write or the admin wildcard. Personal MCP connections support every explicit V1 scope, with consultant grants capped to the agency rule and subject to admin approval. Actions use the connected person's current role and record access. Direct account administration requires an admin. Connected agents cannot mint replacement API keys. A connection waiting for an admin returns 403 CONNECTION_PENDING_APPROVAL on every call, with a message naming the workspace, until it is approved; the tokens stay valid, so do not refresh or reconnect, just try again after the person says it is approved. The URLs below are this region's; use the domain of the agency's own region. Runnable connection and callback source in five languages is printed in the portal against your own client. See /docs/agents/build-an-integration.","flows":{"authorizationCode":{"authorizationUrl":"https://us.lovelio.ai/api/oauth/authorize","tokenUrl":"https://us.lovelio.ai/api/oauth/token","refreshUrl":"https://us.lovelio.ai/api/oauth/token","scopes":{"jobs:read":"Read jobs","jobs:write":"Write jobs","candidates:read":"Read candidates","candidates:write":"Write candidates","applications:read":"Read applications","applications:write":"Write applications","interviews:read":"Read interviews","interviews:write":"Write interviews","calls:read":"Read recorded calls, their transcripts and summaries","calls:write":"Book calls","placements:read":"Read placements","placements:write":"Write placements","placements:financials:read":"Read placement fees, salaries and commission splits","placements:contracting:read":"Read payment terms and how each contractor is paid, for timesheets and payroll","quotas:read":"Read quotas","clients:read":"Read clients","clients:write":"Write clients","clients:financials:read":"Read your fee schedule for each client","submissions:read":"Read submissions","submissions:write":"Write submissions","talent_pools:read":"Read talent pools","talent_pools:write":"Write talent pools","documents:read":"Read documents","documents:write":"Write documents","emails:read":"Read emails","emails:write":"Write emails","forms:read":"Read forms","forms:write":"Write forms","activities:read":"Read notes, calls and other activity on any record","activities:write":"Write notes, calls and other activity on any record","analytics:read":"Read analytics","keys:read":"Read your recruiter DNA profile","keys:write":"Write your recruiter DNA profile","integrations:read":"Read integrations","integrations:write":"Write integrations","marketplace:read":"Read marketplace activity","marketplace:write":"Write marketplace activity","marketplace:financials:read":"Read split-fee deal money","webhooks:read":"Read webhooks","webhooks:write":"Write webhooks","accounts:read":"Read account details"}}}}},"schemas":{"DuplicateCandidateBrief":{"type":"object","description":"One of the two records in a duplicate pair.","properties":{"id":{"type":"string","description":"Candidate id, cnd_ prefixed."},"name":{"type":"string"},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"application_count":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"DuplicateClientBrief":{"type":"object","description":"One of the two clients in a duplicate pair.","properties":{"id":{"type":"string","description":"Client id, cli_ prefixed."},"name":{"type":"string"},"website":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"job_count":{"type":"integer","description":"Jobs on this client. The one with more jobs is usually the one to keep."},"created_at":{"type":"string","format":"date-time"}}},"HealthCheck":{"type":"object","description":"One probe behind GET /health.","properties":{"status":{"type":"string","enum":["ok","failed","stale","unknown"],"description":"On tenant_db or platform_db, failed makes the endpoint answer 503. On inngest_sync every status is information only."},"detail":{"type":"string","description":"Plain sentence saying what the probe found."},"duration_ms":{"type":"integer","description":"How long the probe took, in milliseconds."}}},"EvidenceJudgment":{"type":"object","properties":{"status":{"type":"string","enum":["supported","contradicted","not_established","uncertain"]},"probability":{"type":"number","minimum":0,"maximum":1},"quote":{"type":["string","null"]},"contradiction_quote":{"type":["string","null"]},"evaluated_at":{"type":"string"},"source":{"type":"object","properties":{"type":{"type":"string","enum":["original_cv","candidate_record"]},"candidate_id":{"type":"string"},"hash":{"type":"string"},"start":{"type":["integer","null"]},"end":{"type":["integer","null"]}}}}},"EvidenceEvaluation":{"type":"object","properties":{"id":{"type":"string"},"task_id":{"type":["string","null"]},"status":{"type":"string"},"scope_type":{"type":"string","enum":["selection","talent_pool","job_applicants","import_batch","search","all"]},"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"term":{"type":"string"},"label":{"type":"string"},"predicate":{"type":["object","null"],"additionalProperties":true,"description":"Complete shared search predicate, including explicit OR alternatives, numeric bounds, polarity and time windows. Interpret the whole predicate, never only the short label."},"strength":{"type":"string","enum":["must","nice","exclude"]}}}},"rows":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string"},"name":{"type":["string","null"]},"status":{"type":"string","enum":["pending","complete","missing_source","too_long","failed","stale"]},"scope_match":{"type":"string","enum":["matched","not_established","unchecked"]},"source_hash":{"type":["string","null"]},"cache_hits":{"type":"integer","minimum":0},"error":{"type":["string","null"]},"checks":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EvidenceJudgment"}}}}},"progress":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"evaluated":{"type":"integer","minimum":0},"pending":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"missing_source":{"type":"integer","minimum":0},"too_long":{"type":"integer","minimum":0},"stale":{"type":"integer","minimum":0},"cache_hits":{"type":"integer","minimum":0},"excluded":{"type":"integer","minimum":0},"unfinished_imports":{"type":"integer","minimum":0},"complete":{"type":"boolean"}}},"next_cursor":{"type":["string","null"]},"sources_checked":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"error":{"type":["string","null"]},"result_url":{"type":"string"}}},"EvidencePack":{"type":"object","properties":{"id":{"type":"string"},"purpose":{"type":"string","enum":["submission","interview_preparation","job_comparison"]},"compact":{"type":"object","properties":{"positive_quote_budget":{"type":"integer","minimum":0},"omitted_passages":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string"},"check_id":{"type":"string"}}}},"full_evidence_url":{"type":"string"}}},"context":{"type":"object","properties":{"as_of":{"type":"string"},"job":{"type":["object","null"],"properties":{"id":{"type":"string"},"title":{"type":"string"}}},"client_dna":{"type":["string","null"]},"client_dna_included":{"type":"boolean"},"preferences":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string"},"values":{"type":"object","additionalProperties":true}}}}}},"evaluation":{"$ref":"#/components/schemas/EvidenceEvaluation"},"coverage":{"type":"object","properties":{"sources_checked":{"type":"array","items":{"type":"string"}},"sources_not_checked":{"type":"array","items":{"type":"string"}},"complete":{"type":"boolean"}}}}},"DistributionBoard":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"provider":{"type":"string","nullable":true,"description":"The integration provider serving this board, when it comes from a provider catalogue."},"regions":{"type":"array","items":{"type":"string"}},"industries":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string"}},"pricing":{"type":"string","enum":["free","paid","mixed"],"nullable":true,"description":"What Lovelio states this board costs. null means Lovelio does not price it - the board bills on your own contract with it, so nothing is claimed. An unpriced board never auto-publishes from a rule: like a paid board, it is parked for confirmation."},"capabilities":{"type":"object","properties":{"edit":{"type":"boolean"},"expire":{"type":"boolean"},"applyBack":{"type":"boolean"},"statusQuery":{"type":"boolean"}}},"monthly_post_limit":{"type":"integer","nullable":true,"description":"Your monthly posting cap for this board (null = unlimited). Set in Settings; enforced atomically at publish - a post past the cap is rejected with error code quota_exceeded."},"posts_used_this_month":{"type":"integer","description":"Posts consumed on this board in the current calendar month (company timezone)."},"posts_remaining_this_month":{"type":"integer","nullable":true,"description":"Posts left this month (null = unlimited). Never negative."}}},"DistributionRule":{"type":"object","properties":{"id":{"type":"string","example":"drule_..."},"name":{"type":"string"},"filter":{"type":"object","description":"Every set field must equal the job's value; an empty filter matches every job. country is an ISO 3166 alpha-2 code (a country name is normalised to one on write). job_type is the contract basis: Permanent, Contract or Temporary. team_id is the job's team; category is the older free-text form of the same axis, matched against the team name.","properties":{"country":{"type":"string","example":"AU"},"category":{"type":"string"},"job_type":{"type":"string","enum":["Permanent","Contract","Temporary"]},"team_id":{"type":"string"}}},"target_board_slugs":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"JobBoardPosting":{"type":"object","properties":{"id":{"type":"string","example":"post_..."},"job_id":{"type":"string","nullable":true},"job_ad_id":{"type":"string","nullable":true},"board_slug":{"type":"string"},"status":{"type":"string","enum":["pending","publishing","live","expired","rejected","error"]},"url":{"type":"string","nullable":true},"external_id":{"type":"string","nullable":true},"error_code":{"type":"string","nullable":true},"error_message":{"type":"string","nullable":true},"published_at":{"type":"string","format":"date-time","nullable":true},"updated_at":{"type":"string","format":"date-time"}}},"Error":{"type":"object","required":["success","data","meta","error"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"description":"Usually null. Some errors include structured recovery details, such as remaining draft fields."},"meta":{"$ref":"#/components/schemas/Meta"},"error":{"type":"object","required":["code","message","docs","request_id"],"properties":{"code":{"type":"string","example":"VALIDATION_ERROR"},"message":{"type":"string","example":"url is required."},"field":{"type":"string","example":"url"},"docs":{"type":"string","format":"uri","example":"https://lovelio.ai/docs/agents/error-handling"},"request_id":{"type":"string","description":"Same request ID as meta.request_id."}}}}},"Meta":{"type":"object","required":["request_id"],"properties":{"request_id":{"type":"string","example":"req_abc123def456"},"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}},"CandidateSearchResult":{"type":"object","description":"What the faceted search core returns for a candidate query. Identical for POST /candidates/search and POST /search with entity_type=candidates - the two doors run the same function.","properties":{"entity_type":{"type":"string","enum":["candidates"],"description":"Present on POST /search responses so a client can branch; absent from POST /candidates/search, which only ever searches candidates."},"interpretation":{"type":"object","description":"How the engine read the query.","properties":{"intent":{"type":"string","nullable":true,"description":"The soft ask used for semantic ranking."},"facets":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"Plain-English label, as shown on the in-app chips."},"kind":{"type":"string","description":"What the facet checks (role, skill, location, employer, ...). \"unsupported\" means the engine understood the ask but cannot filter on it yet."},"strength":{"type":"string","enum":["must","nice","exclude"],"description":"must filters, nice ranks, exclude removes."}}}}}},"total_count":{"type":"integer","description":"Count of candidates matching every hard requirement. With CV evidence gates, this is the confirmed count: people their work history proves plus people confirmed within the reading budget; otherwise it is the database count. Consult verification and notes for unread candidates and limits."},"ranked_pool_size":{"type":"integer","description":"How many of those were ranked - the depth pagination can reach."},"verification":{"type":"object","description":"Present when the engine reads CV evidence for a requirement. This can include skill, industry, education, responsibility or other requirements, alongside kind `verified`; returned facets retain their original meaning. The default reading budget is 200 candidates per search. A person whose work history already proves the requirement (for a sector, a job at an employer with a sourced profile in that sector) is confirmed without a read and does not use the budget. When CV evidence gates a hard requirement, `total_count` is the confirmed count. `not_checked` counts candidates beyond the budget or whose read failed; `no_cv` counts missing CV text. Notes explain limits. Unread or uncertain evidence does not establish a match.","properties":{"cvs_read":{"type":"integer","description":"How many CVs were read."},"confirmed":{"type":"integer","description":"How many people were confirmed, by a CV read or by their work history."},"confirmed_from_records":{"type":"integer","description":"The part of `confirmed` their work history proved with no CV read. These people never use the reading budget."},"not_checked":{"type":"integer","description":"How many of the pool a bigger `verified_budget` would reach: past the budget, or a read that failed this time."},"no_cv":{"type":"integer","description":"How many people inside the budget have no CV text on file. No budget reaches them."}}},"page":{"type":"integer"},"page_size":{"type":"integer"},"has_more":{"type":"boolean"},"notes":{"type":"array","description":"Anything the engine could not do properly (a degraded plan, a truncated scan), plus `also_named` when a one-word query is also a name people carry (\"Baker\"): the results answer the job, skill or place, and the note counts the people named Baker; query `named Baker` to get them. An empty array means everything ran as interpreted.","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"External candidate id (cnd_...).","example":"cnd_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"current_job_title":{"type":"string","nullable":true},"current_employer":{"type":"string","nullable":true},"match_score":{"type":"integer","description":"The engine's deterministic feature score, 0-100. Decides the order."},"band":{"type":"string","enum":["strong","good","partial"],"description":"Requirement-coverage band."},"coverage":{"type":"object","properties":{"matched":{"type":"integer"},"total":{"type":"integer"}},"description":"Requirements this candidate evidences, out of the total asked."}}}},"mentioned_in_cv":{"type":"object","description":"People who did NOT match, kept separate. Present only when the query names a company and somebody's CV mentions it while their employment history does not. Never add this `total_count` to the top-level one: measured on a 9,378-candidate book, roughly half of these people did work at the company and it was never captured, and roughly half never worked there at all (\"founded by ex-McKinsey partners\", \"in competition with Bain\"). They carry no match_score or band because there is nothing to score. Only ever produced for employer requirements - a company name is a rare distinctive token in prose, a job title is not.","properties":{"total_count":{"type":"integer","description":"Real database count of the whole tier, which can exceed the rows returned."},"facet_labels":{"type":"array","items":{"type":"string"},"description":"Which interpretation facets these people reached by a CV mention rather than by employment history."},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"cnd_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"current_job_title":{"type":"string","nullable":true},"current_employer":{"type":"string","nullable":true}}}}}}}},"EntitySearchResult":{"type":"object","description":"What POST /search returns for applications, jobs and interviews: structured rows plus a plain-language reading of the query.","properties":{"entity_type":{"type":"string","enum":["applications","jobs","interviews"]},"interpretation":{"type":"string","description":"Human-readable description of the search","example":"Showing active jobs"},"results":{"type":"array","description":"One row per match. Application and interview rows carry `candidate_name` and `job_title` beside `candidate_id` and `job_id`.","items":{"type":"object"}},"total_count":{"type":"integer"},"page":{"type":"integer"},"page_size":{"type":"integer"},"has_more":{"type":"boolean"},"degraded":{"type":"boolean","description":"True when the AI could not fully interpret the query and fell back to keyword search"},"degraded_reason":{"type":"string","description":"Human-readable explanation of why the search was degraded"},"unsupported_concepts":{"type":"array","items":{"type":"string"},"description":"Concepts in the query that the system does not yet support (e.g. call tracking)"},"suggested_alternatives":{"type":"array","items":{"type":"string"},"description":"Alternative queries the system can answer"}}},"JobContract":{"type":"object","nullable":true,"description":"A contract job's terms. Null on a job with none. The pay rate is compensation (quoted per compensation.period); the charge rate is what the client pays, shares that period, and never appears in a job ad.","properties":{"start_date":{"type":"string","format":"date","nullable":true,"example":"2026-11-14","description":"When the contract starts. Job matching ranks people free by this date higher (it never filters anyone out)."},"duration":{"type":"object","nullable":true,"properties":{"value":{"type":"integer","minimum":1,"example":6},"unit":{"type":"string","enum":["weeks","months"]}}},"openings":{"type":"integer","nullable":true,"minimum":1,"maximum":500,"example":5,"description":"How many contractors the client needs."},"openings_filled":{"type":"integer","description":"Placements on this job that have not fallen off. Present when openings is set."},"charge_rate":{"type":"object","nullable":true,"properties":{"min":{"type":"number","nullable":true,"minimum":0},"max":{"type":"number","nullable":true,"minimum":0}},"description":"What the client pays, in the job currency and compensation.period. Internal only. Null on a job the acting person does not own when their user type has \"See everyone's billings and GP\" off."},"engagement_type":{"type":"string","nullable":true,"enum":["payg","abn","inside_ir35","outside_ir35"],"description":"How the contractor is engaged. Australian jobs take payg or abn; UK jobs take inside_ir35 or outside_ir35; jobs elsewhere take any. Moving a job to a country that does not offer the stored type clears it."}}},"JobContractInput":{"type":"object","nullable":true,"description":"Contract terms to set. Only the keys sent change; a key sent as null clears it, and contract: null clears every term. charge_rate.min must not exceed charge_rate.max (checked against the stored value when only one is sent). The charge rate never appears in a job ad.","properties":{"start_date":{"type":"string","format":"date","nullable":true},"duration":{"type":"object","nullable":true,"properties":{"value":{"type":"integer","minimum":1},"unit":{"type":"string","enum":["weeks","months"]}}},"openings":{"type":"integer","nullable":true,"minimum":1,"maximum":500},"charge_rate":{"type":"object","nullable":true,"properties":{"min":{"type":"number","nullable":true,"minimum":0},"max":{"type":"number","nullable":true,"minimum":0}}},"engagement_type":{"type":"string","nullable":true,"enum":["payg","abn","inside_ir35","outside_ir35"],"description":"Must be one the job's country offers: payg or abn in Australia, inside_ir35 or outside_ir35 in the UK. Anything else returns 422."}}},"Job":{"type":"object","properties":{"id":{"type":"string","example":"job_550e8400e29b41d4a716446655440000"},"account_id":{"type":"string"},"url":{"type":"string","format":"uri","example":"https://us.lovelio.ai/jobs/550e8400-e29b-41d4-a716-446655440000","description":"Opens this job in Lovelio, on the agency's own regional domain. A signed-out user signs in first and lands on it; a user without access to it sees not found. Stable for the life of the record."},"title":{"type":"string","example":"Senior Software Engineer"},"status":{"type":"string","enum":["draft","active","on_hold","closed","filled"],"description":"Every new job is active on creation, whatever the mode: mode decides only whether its ad publishes. draft is a legacy status kept on jobs created before 2026-10-12; publishing the ad sets one active. Move freely between active, on_hold, and closed. filled is set automatically when a hire is accepted. draft and filled cannot be set by hand."},"client":{"type":"object","nullable":true,"description":"The client this job is for. Every job created in-product gets one; jobs created via this API may omit it.","properties":{"id":{"type":"string","example":"cli_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."}}},"client_contact":{"type":"object","nullable":true,"description":"The contact at the client for this job. Always belongs to the job's client.","properties":{"id":{"type":"string","example":"cct_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."}}},"team":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true}}},"owner_ids":{"type":"array","items":{"type":"string","example":"usr_550e8400e29b41d4a716446655440000"},"description":"The consultants who own this job (usr_). A job can have several owners and each one sees it as theirs; the first owner's mailbox sends the job's automatic emails. Empty when the job has no owner. Change the list with the set_job_owners action on POST /batch."},"hiring_manager":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true}}},"location":{"type":"object","nullable":true,"description":"Structured job location. `type` is the workplace model. `city`, `country`, and `country_code` come from a Google Places city pick and are null for fully-remote roles.","properties":{"type":{"type":"string","enum":["on_site","hybrid","remote"]},"city":{"type":"string","nullable":true,"example":"Sydney"},"country":{"type":"string","nullable":true,"example":"Australia"},"country_code":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2 country code","example":"AU"}}},"employment_type":{"type":"string","enum":["full_time","part_time","contract"],"nullable":true},"contract":{"$ref":"#/components/schemas/JobContract"},"compensation":{"type":"object","properties":{"base_min":{"type":"number","nullable":true,"minimum":0,"description":"Lower end of the salary band. Must not exceed base_max."},"base_max":{"type":"number","nullable":true,"minimum":0,"description":"Upper end of the salary band. Must be at least base_min."},"ote":{"type":"number","nullable":true,"description":"Older name of ote_amount, kept for existing readers."},"super_percent":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set."},"super_amount":{"type":"number","nullable":true,"minimum":0,"description":"Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent."},"ote_amount":{"type":"number","nullable":true,"minimum":0,"description":"On-target earnings, INCLUDING base. The package takes the larger of OTE and base."},"bonus_amount":{"type":"number","nullable":true,"minimum":0,"description":"Bonus on top of base."},"package_total":{"type":"number","nullable":true,"description":"Read-only. The salary midpoint plus what sits on top of it: the larger of OTE and base, plus super, plus bonus (lib/fees/packageTotal.ts is the one derivation). What a percent fee is taken of when the client's terms price on the package."},"currency":{"type":"string","example":"USD"},"period":{"type":"string","enum":["year","day","hour"],"description":"How base_min/base_max are quoted. Contract and temp roles default to hour, everything else to year; day is only ever set explicitly. Jobs created before 6.2.0 report year."}}},"description":{"type":"string","nullable":true},"spec":{"type":"object","nullable":true,"properties":{"summary":{"type":"string"},"responsibilities":{"type":"array","items":{"type":"string"}},"requirements":{"type":"array","items":{"type":"string"}},"nice_to_have":{"type":"array","items":{"type":"string"}}}},"assessment_criteria":{"type":"array","items":{"type":"object"},"description":"AI-generated criteria for assessing candidates."},"interview_plan":{"type":"object","nullable":true,"description":"AI-generated interview plan."},"job_ad":{"type":"string","nullable":true,"description":"Associated job ad ID."},"share_links":{"type":"object","nullable":true,"description":"Shareable URLs for the job."},"stats":{"type":"object","nullable":true,"description":"Application statistics. List responses carry { total_applications }; GET /jobs/{id} adds one count per pipeline stage."},"target_start_date":{"type":"string","format":"date","nullable":true},"compensation_research":{"type":"object","nullable":true,"description":"Market compensation research data."},"default_interview_format":{"type":"string","enum":["video","phone","in_person","technical","panel"],"default":"video","description":"Default interview format used when scheduling. \"video\" auto-injects a Google Meet link when the interviewer has Google Calendar connected. \"phone\" puts the interviewer phone in the event description. \"in_person\" puts the job location in the description."},"ai_screen_enabled":{"type":"boolean","deprecated":true,"description":"Retired. The AI voice screen no longer exists, so this is always false."},"ai_screen_focus":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Focus areas that shape the questions drafted for a phone screen. Read-only; nothing sets it any more."},"is_evergreen":{"type":"boolean","default":false,"description":"Always-open pipeline job (\"people we always need\"). Works like any open job (matching, ads, applications) but is excluded from performance metrics: billing forecast, client fill rate and momentum, active-job analytics, and no-applicant nudges. Settable on create and via PATCH."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Client":{"type":"object","description":"A company the agency recruits for - a record inside the account, never a tenant. Creating one with a website kicks off AI enrichment (logo, industry, locations) and an automatic Client DNA build from the client's public footprint.","properties":{"id":{"type":"string","example":"cli_550e8400e29b41d4a716446655440000"},"account_id":{"type":"string"},"url":{"type":"string","format":"uri","example":"https://us.lovelio.ai/clients/550e8400-e29b-41d4-a716-446655440000","description":"Opens this client in Lovelio, on the agency's own regional domain. A signed-out user signs in first and lands on it; a user without access to it sees not found. Stable for the life of the record."},"name":{"type":"string","example":"Acme Pty Ltd"},"website":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true,"description":"The company main phone or switchboard. Contact phone numbers live on client contacts."},"domain":{"type":"string","nullable":true,"description":"Normalised bare domain, e.g. \"acme.com\". Derived from website."},"logo_url":{"type":"string","nullable":true},"industry":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"locations":{"type":"array","items":{"type":"string"}},"address":{"type":"string","nullable":true,"description":"One-line postal address, shown on the client's terms document."},"fee_schedule":{"type":"object","description":"The fee terms in force: the client's own terms, or the agency standard (is_standard: true). Bands are slabs - the whole salary is charged at the rate of the band it lands in. Changing a client's terms goes through the set_client_fee_terms action (admin-only), never a PATCH. This is the agency's price list: the whole object is null without the clients:financials:read scope.","properties":{"currency":{"type":"string","example":"AUD"},"fee_basis":{"type":"string","enum":["package","base"],"description":"What the percent applies to: total salary package or base salary."},"tiers":{"type":"array","description":"Slab bands, ascending. Salaries from `from` upward (until the next band) pay `percent` on the whole salary.","items":{"type":"object","properties":{"from":{"type":"number"},"percent":{"type":"number"}}}},"minimum_fee":{"type":"number","nullable":true},"contract_margin_percent":{"type":"number","nullable":true,"description":"Agreed margin percentage for contract or temp engagements. Separate from permanent placement fee bands."},"guarantee_days":{"type":"integer","nullable":true},"guarantee_remedy":{"type":"string","enum":["replacement","refund_full","refund_pro_rata","refund_half","replacement_or_refund_half","none"]},"guarantee_notes":{"type":"string","nullable":true},"payment_terms_days":{"type":"integer","nullable":true},"is_standard":{"type":"boolean","description":"True when the client is on the agency standard (no approved variation)."},"version":{"type":"integer","description":"Schedule version - increments on every approved change."}}},"notes":{"type":"string","nullable":true},"default_invoice_contact_id":{"type":"string","nullable":true,"example":"cct_550e8400e29b41d4a716446655440000","description":"The contact who gets the invoice for this client's placements. New placements pre-fill it as their invoice contact."},"company_facts":{"type":"object","nullable":true,"description":"Facts about the company from its LinkedIn company page, looked up once when the client is added with a website. Read only. Null until the lookup has found the company, and fields the consultant typed are never overwritten.","properties":{"headcount":{"type":"integer","nullable":true,"example":140},"headcount_range":{"type":"string","nullable":true,"example":"51-200"},"founded_year":{"type":"integer","nullable":true,"example":1998},"head_office":{"type":"object","properties":{"city":{"type":"string","nullable":true,"example":"Brisbane"},"region":{"type":"string","nullable":true,"example":"Queensland"},"country_code":{"type":"string","nullable":true,"example":"AU"}}},"company_type":{"type":"string","nullable":true,"example":"Privately Held","description":"Ownership as LinkedIn lists it, e.g. \"Privately Held\", \"Public Company\". Treat unknown values as text."},"specialties":{"type":"array","items":{"type":"string"}},"linkedin_industry":{"type":"string","nullable":true,"description":"LinkedIn's industry label. Kept apart from industry, which Lovelio reads from the client's own website."},"linkedin_url":{"type":"string","nullable":true}}},"enrichment_status":{"type":"string","enum":["none","pending","complete","failed"],"description":"Website enrichment progress. \"none\" for clients created without a website."},"dna_status":{"type":"string","enum":["none","building","complete","failed"],"description":"Client DNA build progress. Assessments for this client's jobs use the DNA once complete."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ClientSite":{"type":"object","description":"A client workplace. A contract placement names one as work_site_id, and the site's country decides which contractor payroll fields Lovelio collects.","properties":{"id":{"type":"string","example":"site_550e8400e29b41d4a716446655440000"},"client_id":{"type":"string"},"label":{"type":"string","nullable":true,"description":"\"Head office\", \"Parramatta warehouse\". Optional."},"street":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"region":{"type":"string","nullable":true,"description":"State, province or county. An Australian site (country AU) always carries the state code: NSW, VIC, QLD, SA, WA, TAS, ACT or NT. It decides which state's public holidays apply. Free text everywhere else: Auckland, Greater London."},"postcode":{"type":"string","nullable":true},"country":{"type":"string","description":"ISO 3166-1 alpha-2, upper case. Required."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ClientContact":{"type":"object","description":"A person at the client: hiring manager, HR, finance. Contacts receive submissions and sit on jobs, always scoped to their client.","properties":{"id":{"type":"string","example":"cct_550e8400e29b41d4a716446655440000"},"client_id":{"type":"string","example":"cli_550e8400e29b41d4a716446655440000"},"url":{"type":"string","format":"uri","example":"https://us.lovelio.ai/contacts/550e8400-e29b-41d4-a716-446655440000","description":"Opens this contact in Lovelio, on the agency's own regional domain. It opens the client record on this contact. A signed-out user signs in first and lands on it; a user without access to it sees not found. Stable for the life of the record."},"person_id":{"type":"string","nullable":true,"example":"cnd_550e8400e29b41d4a716446655440000","description":"The person behind this contact - a candidate id. One human can hold both a candidate record and contact roles; this is the same id GET /candidates serves them under."},"name":{"type":"string","description":"The person's name. It lives on the person record and is shared across every role they hold, so renaming it here renames them everywhere."},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"reports_to":{"type":"string","nullable":true,"example":"cct_550e8400e29b41d4a716446655440000","description":"Another contact (cct_ id) on the same client this person reports to. Builds the client org chart."},"is_primary":{"type":"boolean","description":"One primary per client; setting a new primary demotes the old one."},"origin":{"type":"string","enum":["relationship","works_here"],"description":"\"relationship\" - somebody put this person on the client, and they are who the agency deals with. \"works_here\" - derived automatically because the person's own employment record says they work there; these are listed separately in the app, carry no work email, and are never the recipient of a submission or an interview invitation. A consultant promotes one to \"relationship\" by hand."},"notes":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"CandidateImport":{"type":"object","properties":{"id":{"type":"string","example":"imp_550e8400e29b41d4a716446655440000"},"status":{"type":"string","enum":["uploading","processing","complete","cancelled"]},"file_count":{"type":"integer"},"created_at":{"type":"string","format":"date-time","nullable":true},"completed_at":{"type":"string","format":"date-time","nullable":true},"counts":{"type":"object","properties":{"pending":{"type":"integer"},"processing":{"type":"integer"},"imported":{"type":"integer","description":"New candidates created."},"merged":{"type":"integer","description":"Existing candidates updated (matched by email)."},"failed":{"type":"integer","description":"Files that could not be read."}}},"failures":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"reason":{"type":"string","description":"Human-readable reason the file was skipped."}}}},"role_matches":{"type":"array","nullable":true,"description":"How the imported candidates compare with the open roles - embedding similarity only, no assessments. Null until matching has run.","items":{"type":"object","properties":{"job_id":{"type":"string"},"job_title":{"type":"string"},"strong_count":{"type":"integer"},"matches":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string"},"name":{"type":"string"},"score":{"type":"integer","description":"0-100 similarity to the role description."}}}}}}}}},"Candidate":{"type":"object","properties":{"id":{"type":"string","example":"cnd_550e8400e29b41d4a716446655440000"},"account_id":{"type":"string"},"url":{"type":"string","format":"uri","example":"https://us.lovelio.ai/candidates/550e8400-e29b-41d4-a716-446655440000","description":"Opens this candidate in Lovelio, on the agency's own regional domain. A signed-out user signs in first and lands on it; a user without access to it sees not found. Stable for the life of the record."},"first_name":{"type":"string","example":"Jane","description":"Given name. Stored as written when it was supplied separately, so a two-word given name (\"Mary Anne\") stays whole. A name only ever written whole splits after its first word."},"last_name":{"type":"string","example":"Smith","description":"Family name: the stored last name, or everything after the first word of a name only ever written whole."},"name":{"type":"string","example":"Jane Smith"},"email":{"type":"string","format":"email","nullable":true},"phone":{"type":"string","nullable":true},"mobile":{"type":"string","nullable":true,"example":"+61412345678","description":"A mobile number in international form, for a two-factor code. Null when the phone on file is not a mobile, or its country cannot be told (the US and Canada never read as mobile). A local number reads in the candidate's own country."},"location":{"type":"object","nullable":true,"description":"Where the candidate lives, coarsened to suburb (or city) and state - \"Balmain, NSW\". Never a street address, whatever precision the record was captured at.","properties":{"city":{"type":"string"}}},"linkedin_url":{"type":"string","nullable":true},"current_title":{"type":"string","nullable":true,"description":"Current job title. Auto-populated from parsed CV; editable on the candidate record. Indexed and searchable. PATCH accepts current_title or current_job_title interchangeably."},"current_company":{"type":"string","nullable":true,"description":"Current employer. Auto-populated from parsed CV; editable on the candidate record. Indexed and searchable. PATCH accepts current_company or current_employer interchangeably."},"years_experience":{"type":"integer","nullable":true,"description":"Estimated years of experience from work history."},"skills":{"type":"array","items":{"type":"string"}},"education":{"type":"array","items":{"type":"object","properties":{"degree":{"type":"string","nullable":true},"institution":{"type":"string"},"year":{"type":"integer","nullable":true}}}},"parsed_profile":{"$ref":"#/components/schemas/ParsedProfile"},"cv_url":{"type":"string","nullable":true,"description":"Signed link to the candidate's current CV, valid for 5 minutes. The file is private: fetch the candidate again for a fresh link. Null when there is no CV."},"status":{"type":"string","example":"active"},"availability":{"type":"string","enum":["unknown","available","passive","not_available"]},"source":{"type":"string","nullable":true,"description":"How the candidate entered the system, e.g. 'bulk_import' for candidates created by a CV import."},"tags":{"type":"array","items":{"type":"string"},"description":"Flat labels the agency put on this candidate, alphabetical. Tags are deduplicated case-insensitively, so the label comes back with the spelling the tag was first created with."},"do_not_approach":{"type":"boolean","description":"Off-limits flag. Flagged candidates are excluded from search, matching and suggestions."},"contact_only":{"type":"boolean","description":"True while this person exists only as a client contact: searchable, but not yet in a candidate process. Flips false the moment they enter one (application, talent pool, or a deliberate candidate create)."},"rating":{"type":"integer","nullable":true,"minimum":1,"maximum":5,"description":"The agency's 1-5 star rating on the candidate. Null = not yet rated."},"open_to_work":{"type":"boolean","nullable":true,"description":"Open-to-work flag, from a LinkedIn sighting or a consultant's toggle. Null = never captured either way."},"salary_expectation":{"type":"string","nullable":true,"description":"Captured salary expectation, verbatim (\"145k + super\"). Null = never captured."},"salary_expectation_annual":{"type":"number","nullable":true,"description":"Normalized annual figure derived from salary_expectation, when parseable."},"salary_currency":{"type":"string","nullable":true,"description":"Currency code when the expectation stated one (AUD, USD, GBP, EUR, NZD)."},"notice_period":{"type":"string","nullable":true,"description":"Captured notice period, verbatim (\"4 weeks\")."},"notice_period_days":{"type":"integer","nullable":true,"description":"Normalized days derived from notice_period (0 = immediately available)."},"work_rights":{"type":"string","nullable":true,"description":"Captured right-to-work statement, verbatim (\"Australian citizen\")."},"work_rights_status":{"type":"string","nullable":true,"enum":["citizen","permanent_resident","visa_holder","requires_sponsorship"],"description":"Normalized status derived from work_rights."},"salary_expectation_amount":{"type":"number","nullable":true,"description":"Amount in the candidate's own period derived from salary_expectation (850 for \"850/day\")."},"salary_expectation_period":{"type":"string","nullable":true,"enum":["year","day","hour"],"description":"Period derived from salary_expectation. Day and hour rates never fabricate an annual figure."},"preferred_roles":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Roles the candidate said they want next. Null = never captured."},"preferred_seniority":{"type":"string","nullable":true,"enum":["intern","junior","mid","senior","staff","lead","principal","head","director","vp","c_suite"],"description":"Seniority level the candidate wants."},"work_types":{"type":"array","items":{"type":"string","enum":["permanent","contract","temp","part_time"]},"nullable":true,"description":"Work types the candidate is open to."},"open_to_relocation":{"type":"boolean","nullable":true,"description":"Whether the candidate said they would relocate. Null = never captured."},"available_from":{"type":"string","format":"date","nullable":true,"description":"Stated availability date. Complements notice_period in availability search."},"availability_source":{"type":"string","nullable":true,"enum":["contract_end","candidate_reply","consultant","contractor_page"],"description":"Where available_from came from: the end date of a contract the agency placed them in, the candidate's own reply to an availability ask, a consultant, or the contractor's own page. Null = not confirmed (an imported or older date)."},"availability_confirmed_at":{"type":"string","format":"date-time","nullable":true,"description":"When that source last stated available_from. A date confirmed more than 7 days ago is treated as stale and asked about again."},"preferred_locations":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Places the candidate said they want to work. Gazetteer-resolved for search."},"applications":{"type":"array","items":{"type":"object","properties":{"job_id":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"application_id":{"type":"string"},"stage":{"type":"string","description":"Current pipeline stage of the application."},"status":{"type":"string","deprecated":true,"description":"Deprecated alias for stage. Read stage instead."}}},"description":"Summary of all applications for this candidate."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"enriched_at":{"type":"string","format":"date-time","nullable":true}}},"Application":{"type":"object","description":"A candidate on a job. Deleting a candidate deletes their applications: they leave every list and GET /applications/{id} returns 404.","properties":{"id":{"type":"string","example":"app_550e8400e29b41d4a716446655440000"},"job_id":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"candidate_id":{"type":"string"},"candidate_name":{"type":"string","nullable":true},"candidate_email":{"type":"string","nullable":true},"candidate_phone":{"type":"string","nullable":true},"candidate_location":{"type":"object","nullable":true,"description":"Coarsened to suburb (or city) and state - never a street address.","properties":{"city":{"type":"string"}}},"candidate_linkedin_url":{"type":"string","nullable":true},"candidate_cv_url":{"type":"string","nullable":true,"description":"Signed link to the candidate's current CV, valid for 5 minutes. The file is private: fetch the application again for a fresh link. Null when there is no CV."},"candidate_skills":{"type":"array","items":{"type":"string"}},"current_title":{"type":"string","nullable":true,"description":"Snapshot of the candidate current_title at the moment they applied. Never updated after insert."},"current_company":{"type":"string","nullable":true,"description":"Snapshot of the candidate current_company at the moment they applied. Never updated after insert."},"stage":{"type":"string","enum":["funnel","maybe","yes","no","screen","submitted","client_interview","references","offer","placed","rejected","withdrew"]},"status":{"type":"string","deprecated":true,"description":"Deprecated alias for stage. Use stage instead."},"source":{"type":"string","nullable":true,"description":"Canonical source category: Careers Page, Job Board, Referral, Talent Pool, Database Search, Social, Agency, Direct, Imported, Web Search, or Other."},"source_detail":{"type":"string","nullable":true,"description":"Granular sub-source within the category - the exact board, referrer, pool, or search query."},"assessment":{"type":"object","nullable":true,"properties":{"job_fit_score":{"type":"number","minimum":0,"maximum":100},"hm_fit_score":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Client Fit (alignment with the client's DNA). Null when the job's client has no completed Client DNA, or when the job fit landed at or below the company's job-fit reject line - Client Fit is only scored for candidates above that line, and fills in when a consultant first opens the assessment (or via the complete_assessment action)."},"overall_recommendation":{"type":"string","enum":["strong_hire","hire","hold","talent_pool","reject"]},"summary":{"type":"string","nullable":true,"description":"Consultant summary. Empty string while deferred: summaries are written when the job fit clears the company's reject line, and otherwise on the first consultant look (or via the complete_assessment action)."},"alternative_teams":{"type":"array","items":{"type":"string"}},"alternative_roles":{"type":"array","items":{"type":"string"}},"confidence_score":{"type":"number","nullable":true,"minimum":0,"maximum":1,"description":"How complete and internally consistent the evidence was."},"confidence_factors":{"type":"array","items":{"type":"string"},"description":"Evidence factors that raised or lowered confidence."},"criteria_scores":{"type":"array","items":{"type":"object","properties":{"criterion":{"type":"string","nullable":true},"block":{"type":"string","nullable":true},"scoring_type":{"type":"string","nullable":true},"pass":{"type":"boolean","nullable":true},"scale_score":{"type":"number","nullable":true},"ai_reasoning":{"type":"string","nullable":true}}}},"version":{"type":"integer"},"assessed_at":{"type":"string","format":"date-time","nullable":true}}},"phone_screen_score":{"type":"number","nullable":true,"minimum":0,"maximum":100},"parsed_profile":{"$ref":"#/components/schemas/ParsedProfile"},"notes":{"type":"string","nullable":true},"reference_summary":{"type":"string","nullable":true,"description":"AI-consolidated summary across all referee responses. Populated when the final expected referee has submitted their form."},"reference_flags":{"type":"array","nullable":true,"description":"Structured red flags detected in referee responses. Medium/high severity flags automatically enqueue a reference_red_flag review.","items":{"type":"object","properties":{"type":{"type":"string","enum":["integrity","performance","interpersonal","other"]},"referee":{"type":"string"},"quote":{"type":"string"},"severity":{"type":"string","enum":["low","medium","high"]}}}},"reference_summary_generated_at":{"type":"string","format":"date-time","nullable":true},"expected_reference_count":{"type":"integer","description":"How many referees Lovelio waits for before generating the reference summary. Defaults to 2 and is overwritten when the candidate submits their contacts."},"referee_details_submitted_at":{"type":"string","format":"date-time","nullable":true,"description":"When the candidate submitted their referee contacts through the Request References form."},"applied_at":{"type":"string","format":"date-time"},"status_updated_at":{"type":"string","format":"date-time"}}},"ReviewQueueItem":{"type":"object","properties":{"id":{"type":"string","example":"rev_550e8400e29b41d4a716446655440000"},"application_id":{"type":"string","nullable":true},"review_type":{"type":"string","enum":["score_review","reference_red_flag","chase_escalation","hm_no_response","withdrawal","strong_match","candidate_stalled","scorecard_no_decision","candidate_replied","interview_invite_no_response","interview_booked","reference_returned","referee_details_returned","guarantee_ending","onboarding_completed","submission_no_response","placement_starting","rejection_due","cross_match","spec_match","client_interview_requested","client_passed","offer_no_placement","interview_confirmed","interview_rescheduled","interview_cancelled","interview_outcome_due","interview_no_show","client_question_unanswered","spec_wants_more","agent_needs_a_person"]},"priority":{"type":"string","enum":["urgent","high","normal","low"]},"title":{"type":"string"},"description":{"type":"string","nullable":true},"action_required":{"type":"string","nullable":true},"resolved":{"type":"boolean"},"resolved_at":{"type":"string","format":"date-time","nullable":true},"snoozed_until":{"type":"string","format":"date-time","nullable":true,"description":"If set to a future time, the item is hidden from the default GET listing until this moment passes."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Submission":{"type":"object","description":"A submission of candidates on a job, sent to the job's client contact as a private tokenised link. The contact requests interviews, passes with a reason, or asks questions; every response updates the pipeline and notifies the consultant.","properties":{"id":{"type":"string","example":"sub_550e8400e29b41d4a716446655440000"},"job_id":{"type":"string"},"job_title":{"type":"string","nullable":true,"description":"The job's title, embedded so list consumers never need a lookup per row."},"client_id":{"type":"string"},"client_name":{"type":"string","nullable":true,"description":"The client's name, embedded so list consumers never need a lookup per row. Null when the client is deleted."},"client_deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."},"client_contact_id":{"type":"string"},"status":{"type":"string","enum":["pending","viewed","partially_responded","completed","expired","revoked"]},"title":{"type":"string","nullable":true},"email_subject":{"type":"string","nullable":true,"description":"The subject line the client contact received. Null on submissions sent before subjects were editable (2026-08-16); those fall back to the generated default when resent."},"greeting":{"type":"string","nullable":true,"description":"The opening line the client contact received, no trailing comma (e.g. \"Hi Brett\"). Null on submissions sent before the greeting was stored (2026-08-16); those fall back to \"Hi {first name}\" when resent."},"headline":{"type":"string","nullable":true,"description":"The headline at the top of the client review page, in the consultant's own words. Null means the generated default (\"Hi {first name}, {n} candidates for your review.\")."},"intro_body":{"type":"string","nullable":true,"description":"What the consultant wrote above the candidates, in their own words, shown in the email and on the review page. Null means the generated default (\"I am delighted to submit {first names} for your role of {job title}. Please see specific details below...\" signed off by the consultant)."},"message":{"type":"string","nullable":true,"description":"Legacy covering note, kept on submissions sent before intro_body existed (2026-08-16). It renders under the default intro. Write intro_body instead."},"identity_visibility":{"type":"string","enum":["full","first_name","anonymous"],"description":"How much of each candidate the client sees on the review link. full: name, LinkedIn, employers and schools. first_name: first name only, no surname and no LinkedIn. anonymous: no name (each candidate is \"Candidate A\", \"Candidate B\"), no LinkedIn, and employers and schools withheld. Redaction is applied server-side before the payload leaves, and to the email as well as the page."},"url":{"type":"string","nullable":true,"description":"The client-facing review link. Anyone with the link can respond. Expires with the submission. Null when the submission was sent outside Lovelio, or when the stored link can no longer be read back."},"sent_outside":{"type":"boolean","description":"True when the consultant sent the candidate to the client outside Lovelio and logged it here (adding a candidate at stage submitted). Nothing was emailed and there is no review link: url is null and it cannot be resent."},"expires_at":{"type":"string","format":"date-time","description":"7 days from send; resending extends it."},"first_viewed_at":{"type":"string","format":"date-time","nullable":true},"completed_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/SubmissionItem"}}}},"SubmissionItem":{"type":"object","properties":{"id":{"type":"string","example":"sbi_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string"},"candidate_name":{"type":"string","nullable":true},"candidate_deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."},"application_id":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true,"description":"The client-facing pitch for this candidate. AI-drafted when not supplied, consultant-editable before send."},"response":{"type":"string","nullable":true,"enum":["interview_requested","rejected",null],"description":"The client's verdict. Null until they respond."},"response_note":{"type":"string","nullable":true},"response_rating":{"type":"integer","nullable":true,"minimum":1,"maximum":5,"description":"Retired on 2026-08-16 in favour of availability_slots. Still returned for submissions answered before then; null on everything since."},"availability_slots":{"type":"array","description":"When the client can meet the candidate. Captured on the review portal in their own words (\"5pm tomorrow, Thursday morning\"), converted to real instants, and confirmed by them on screen before sending. Empty until they request an interview, and empty when they requested one without offering times.","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time","description":"The absolute instant."},"tz":{"type":"string","example":"Australia/Sydney","description":"The IANA zone the client was reading the clock in."},"label":{"type":"string","example":"Mon 17 Aug, 5:00 pm","description":"What the client saw when they confirmed it."},"approximate":{"type":"boolean","description":"True when they named a part of the day rather than an hour (\"Thursday morning\"). `start` is then that period's start."}}}},"rejection_reason":{"type":"string","nullable":true,"enum":["skills_mismatch","experience","location","salary","culture","other",null]},"wants_more_candidates":{"type":"boolean","nullable":true,"description":"On a pass: whether the client wants to see more candidates for the role. Asked as a required yes/no on the review portal. Null when the verdict came through a door that never asked (an email reply, a consultant-keyed phone verdict). Also carried on the submission.responded webhook payload."},"responded_at":{"type":"string","format":"date-time","nullable":true},"viewed_at":{"type":"string","format":"date-time","nullable":true},"quotes":{"type":"array","description":"The candidate's own words from a recorded call, shown to the client under the pitch. Verbatim from the transcript, never edited; a quote the identity level would have to change is left out.","items":{"type":"object","properties":{"call_id":{"type":"string"},"start_seq":{"type":"integer","minimum":0},"end_seq":{"type":"integer","minimum":0},"start_ms":{"type":"integer","nullable":true},"said_at":{"type":"string","format":"date-time","nullable":true},"text":{"type":"string"}}}}}},"JobLead":{"type":"object","description":"A company whose careers page one recruiter watches. Lovelio reads it overnight.","properties":{"id":{"type":"string","description":"Starts cwt_."},"company":{"type":"string"},"domain":{"type":"string","nullable":true},"careers_url":{"type":"string","nullable":true},"client_id":{"type":"string","nullable":true,"description":"Set when the company is already a client."},"added_by":{"type":"string"},"watched_since":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string"},"last_read_at":{"type":"string","format":"date-time","nullable":true},"open_jobs":{"type":"integer"},"new_jobs":{"type":"integer"},"new_overnight":{"type":"integer"},"new_job_titles":{"type":"array","items":{"type":"string"}},"floats":{"type":"object","nullable":true,"properties":{"best_fit":{"type":"integer","nullable":true},"fits_pending_for":{"type":"array","items":{"type":"string"},"description":"cad_ ids still being matched."},"draft_ready":{"type":"boolean"},"last_sent":{"type":"object","nullable":true,"properties":{"who":{"type":"string","description":"Only on colleague_sent."},"status":{"type":"string","description":"Only on fits.float."},"count":{"type":"integer"},"to":{"type":"string","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true}}},"colleague_sent":{"type":"object","nullable":true,"properties":{"who":{"type":"string","description":"Only on colleague_sent."},"status":{"type":"string","description":"Only on fits.float."},"count":{"type":"integer"},"to":{"type":"string","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true}}}}}}},"JobLeadDetail":{"allOf":[{"$ref":"#/components/schemas/JobLead"},{"type":"object","properties":{"new_ads":{"type":"array","items":{"$ref":"#/components/schemas/CareersAd"}},"outside_patch":{"type":"array","items":{"$ref":"#/components/schemas/CareersAd"},"description":"New ads outside the recruiter's patch. Shown, never matched."},"still_open":{"type":"array","items":{"$ref":"#/components/schemas/CareersAd"}}}}]},"CareersAd":{"type":"object","properties":{"id":{"type":"string","description":"Starts cad_. Pass it as site_job_id to draft_careers_float."},"title":{"type":"string"},"location":{"type":"string","nullable":true},"employment_type":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"first_seen_at":{"type":"string","format":"date-time","nullable":true},"job_id":{"type":"string","nullable":true,"description":"Set when the ad was turned into a Lovelio job."},"fits":{"type":"object","nullable":true,"description":"People in your database who fit this ad. New ads only.","properties":{"count":{"type":"integer"},"excluded":{"type":"integer"},"people":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string"},"name":{"type":"string"},"title":{"type":"string","nullable":true},"employer":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"why":{"type":"string","description":"Why this person fits the ad."}}}},"float":{"type":"object","nullable":true,"properties":{"who":{"type":"string","description":"Only on colleague_sent."},"status":{"type":"string","description":"Only on fits.float."},"count":{"type":"integer"},"to":{"type":"string","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true}}},"colleague_sent":{"type":"object","nullable":true,"properties":{"who":{"type":"string","description":"Only on colleague_sent."},"status":{"type":"string","description":"Only on fits.float."},"count":{"type":"integer"},"to":{"type":"string","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true}}}}}}},"CareersFloat":{"type":"object","description":"A float drafted for one new careers ad: anonymous profiles of up to five people, an email and who it goes to. Only a person sends it.","properties":{"id":{"type":"string","description":"Starts cfl_."},"job_lead_id":{"type":"string"},"ad_id":{"type":"string"},"status":{"type":"string","enum":["shortlist","ready","sent","discarded"],"description":"shortlist: people still being picked. ready: a draft waiting for a person to check and send."},"company":{"type":"string"},"job_title":{"type":"string"},"job_location":{"type":"string","nullable":true},"is_client":{"type":"boolean"},"drafted_at":{"type":"string","format":"date-time","nullable":true},"suggestions":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string"},"name":{"type":"string"},"title":{"type":"string","nullable":true},"employer":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"why":{"type":"string","description":"Why this person fits the ad."}}}},"excluded":{"type":"integer"},"picked":{"type":"array","items":{"type":"string"},"description":"cnd_ ids, at most five."},"profiles":{"type":"object","additionalProperties":{"type":"object"},"description":"Anonymous profile per picked candidate, keyed by cnd_ id."},"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"title":{"type":"string","nullable":true},"email":{"type":"string"}}}},"contacts_without_email":{"type":"integer"},"recipient_contact_id":{"type":"string","nullable":true},"subject":{"type":"string"},"greeting":{"type":"string"},"body":{"type":"string"},"sent_at":{"type":"string","format":"date-time","nullable":true},"sent_to":{"type":"string","nullable":true},"sent_count":{"type":"integer","nullable":true}}},"KeyMovement":{"type":"object","properties":{"id":{"type":"string","description":"Starts kmv_."},"kind":{"type":"string"},"created_at":{"type":"string","format":"date-time","nullable":true},"person":{"type":"string"},"what_happened":{"type":"string"},"why_they_matter":{"type":"string","nullable":true},"candidate_id":{"type":"string","nullable":true},"client_contact_id":{"type":"string","nullable":true},"application_id":{"type":"string","nullable":true},"job_id":{"type":"string","nullable":true},"client_id":{"type":"string","nullable":true},"url":{"type":"string","description":"Opens the record in Lovelio."}}},"Spec":{"type":"object","description":"A spec (Float in AU/NZ): a speculative submission - one FULLY ANONYMOUS candidate profile sent to one client contact with no job, with the agency's terms of business attached as a PDF. The contact opens the profile page and answers with one click (interested / question / not right now). Interest converts to a real job + application via the convert_spec batch op. The agency can take a spec back while it is still with the client via the withdraw_spec batch op: status becomes revoked and the client link stops opening. The candidate's name and current employer are scrubbed server-side from every client-facing field.","properties":{"id":{"type":"string","example":"spc_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string"},"client_id":{"type":"string"},"client_contact_id":{"type":"string"},"status":{"type":"string","enum":["sent","viewed","interested","passed","converted","expired","revoked"]},"anonymous_profile":{"type":"object","description":"The client-facing profile, exactly as approved by the consultant (and scrubbed of identifying details).","properties":{"headline":{"type":"string","example":"Senior Quantity Surveyor - Tier 1 commercial"},"chips":{"type":"array","items":{"type":"string"}},"pitch":{"type":"string"},"why_client":{"type":"string","nullable":true}}},"email_subject":{"type":"string"},"terms_attached":{"type":"boolean","description":"Whether the agency terms of business PDF rode along as an email attachment."},"terms_url":{"type":"string","nullable":true,"description":"The client's living terms of business page, linked in every float email - the introduction record. Null only for floats sent before 2026-08-30."},"candidate_aware":{"type":"boolean","description":"The honest record: does the candidate know they were specced?"},"url":{"type":"string","nullable":true,"description":"The client-facing profile link. Anyone with the link can respond. Expires with the spec (30 days). Null only when the stored link can no longer be read back."},"sent_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"first_viewed_at":{"type":"string","format":"date-time","nullable":true},"responded_at":{"type":"string","format":"date-time","nullable":true},"response":{"type":"string","nullable":true,"enum":["interested","passed",null]},"response_note":{"type":"string","nullable":true},"response_rating":{"type":"integer","nullable":true,"minimum":1,"maximum":5,"description":"The client's 1-5 rating, captured when they mark interest. Null if not rated."},"wants_more":{"type":"boolean","nullable":true,"description":"Does this client want to see more people? Answered by a required yes/no on either response dialog, or set true when they send a brief through the standing box on the profile page. Null means no door has asked them."},"wants_more_note":{"type":"string","nullable":true,"description":"The client's brief in their own words (\"two more BDMs before Christmas\"). Appended across sends and never rewritten. Null when they only answered the yes/no."},"wants_more_at":{"type":"string","format":"date-time","nullable":true,"description":"When they last asked for more people."},"converted_job_id":{"type":"string","nullable":true},"converted_application_id":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"Interview":{"type":"object","properties":{"id":{"type":"string","example":"ivw_550e8400e29b41d4a716446655440000"},"application_id":{"type":"string","nullable":true},"job":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"title":{"type":"string","nullable":true}}},"candidate":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."}}},"round":{"type":"integer","description":"Interview round number (1-based)."},"format":{"type":"string","enum":["phone","video","in_person","technical","panel"],"description":"Interview format."},"flavour":{"type":"string","enum":["internal","client"],"description":"internal = the agency's own screen (default); booking one moves a yes application to screen. client = the candidate meets the client; booking one moves a submitted application to client_interview."},"submission_id":{"type":"string","nullable":true,"description":"The submission this client interview came from, when booked off client feedback (sub_ id)."},"status":{"type":"string","enum":["scheduled","completed","no_show","cancelled"],"description":"Current interview status. Passed and failed interviews both read completed - see outcome for the actual result."},"outcome":{"type":"string","enum":["pending","passed","failed","no_show","cancelled"],"description":"The interview result. Unlike status, this distinguishes a pass from a fail."},"scheduled_at":{"type":"string","format":"date-time","nullable":true},"candidate_confirmed_at":{"type":"string","format":"date-time","nullable":true,"description":"Set when the candidate confirms attendance (e.g. replying YES to the WhatsApp confirmation). Null = not confirmed yet. Read-only."},"client_confirmed_at":{"type":"string","format":"date-time","nullable":true,"description":"Set when a client contact confirms attendance from their own confirmation link. Independent of candidate_confirmed_at - either can be set without the other. Null = they have not told us. Read-only."},"duration_minutes":{"type":"integer","nullable":true},"video_link":{"type":"string","nullable":true},"location":{"type":"string","nullable":true,"description":"Where an in-person interview happens. Rides the calendar invite's LOCATION line and the invitation emails."},"interviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string","nullable":true}}}},"client_contacts":{"type":"array","description":"Client-side attendees on a client interview (cct_ ids). They receive the calendar invite and .ics at booking; they never constrain the offered times.","items":{"type":"object","properties":{"id":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"email":{"type":"string"}}}},"notes_for_candidate":{"type":"string","nullable":true},"notes_for_interviewer":{"type":"string","nullable":true},"feedback":{"type":"object","nullable":true,"description":"Structured interview feedback (JSONB). Populated by the unified interview form on submit: { recommendation, feedback, scores, decision_criteria, section_breakdown }."},"reminder_sent_at":{"type":"string","format":"date-time","nullable":true,"description":"Set by the interview-reminder cron when the 24h reminder emails are sent."},"feedback_requested_at":{"type":"string","format":"date-time","nullable":true,"description":"First time the hiring manager was asked for feedback after the interview ended."},"feedback_chase_count":{"type":"integer","description":"Number of feedback requests that have been sent. Caps at 3, after which the item is enqueued as an hm_no_response review."},"google_event_id":{"type":"string","nullable":true,"description":"Google Calendar event id when the interviewer has a connected calendar. Changes made in Google Calendar flow back to this row."},"calendar_provider":{"type":"string","nullable":true,"enum":["google",null],"description":"Which calendar provider is authoritative for this interview."},"created_at":{"type":"string","format":"date-time"}}},"Outreach":{"type":"object","description":"A message to a candidate that the agency recorded. Lovelio drafts outreach and stores what you tell it you sent; it never sends on your behalf.","properties":{"id":{"type":"string","example":"otr_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string"},"job_id":{"type":"string","nullable":true},"platform":{"type":"string","enum":["email","linkedin","whatsapp"]},"subject":{"type":"string","nullable":true,"description":"Email only."},"body":{"type":"string"},"status":{"type":"string","enum":["draft","sent","replied","no_response"]},"sent_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"ContractorReportGroup":{"type":"object","description":"Live contracts added up for the whole agency, a team or a consultant.","properties":{"label":{"type":"string","example":"Find Sydney"},"contracts":{"type":"integer"},"working_this_week":{"type":"integer","description":"Working at least one day this week."},"gp_this_week":{"type":"array","nullable":true,"items":{"type":"object","properties":{"currency":{"type":"string","nullable":true},"amount":{"type":"number"}}},"description":"One line per currency. Null without placements:financials:read."},"gp_next_13_weeks":{"type":"array","nullable":true,"items":{"type":"object","properties":{"currency":{"type":"string","nullable":true},"amount":{"type":"number"}}},"description":"One line per currency. Null without placements:financials:read."},"gp_by_week":{"type":"array","nullable":true,"items":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","nullable":true},"amount":{"type":"number"}}},"description":"One line per currency."},"description":"One entry per week in week_starts. Null without placements:financials:read."},"ending_in_13_weeks":{"type":"integer"},"with_document_issues":{"type":"integer","nullable":true,"description":"Contractors with at least one document to chase. Null when the documents could not be read."},"missing_rates":{"type":"integer","description":"Contracts with no rates or start date, left out of the money."},"money_hidden":{"type":"integer","description":"Other consultants' contracts, left out of the money when the acting user cannot see everyone's billings and GP."}}},"Call":{"type":"object","description":"One recorded call: a meeting the notetaker sat in, a phone call (Aircall), a recording someone uploaded or an AI voice screen. Linked to the candidate, job, application, interview, client and contact it was about.","properties":{"id":{"type":"string","example":"call_550e8400e29b41d4a716446655440000"},"source":{"type":"string","nullable":true,"enum":["notetaker","video_room","phone","upload","ai_screen","logged","desktop"],"description":"Where the call came from. upload is a recording uploaded on the web or through POST /calls/uploads. ai_screen is an older AI voice screen (retired). logged is a call a consultant wrote down: no recording, no transcript. desktop is recorded by Lovelio for desktop on the consultant's computer. Null for a source this API version does not know yet."},"platform":{"type":"string","nullable":true,"enum":["zoom","google_meet","microsoft_teams","lovelio","phone","aircall","in_person","other"],"description":"aircall is a phone call through Aircall (source phone). Null for a platform this API version does not know yet."},"call_type":{"type":"string","nullable":true,"description":"What the call was for: candidate_screen, client_briefing, reference, interview_debrief, business_development, interview or client_interview. Shapes the write-up. Null when not set."},"title":{"type":"string","nullable":true},"status":{"type":"string","nullable":true,"enum":["scheduled","live","processing","ready","failed","cancelled"],"description":"ready once the transcript is in."},"started_at":{"type":"string","format":"date-time","nullable":true},"ended_at":{"type":"string","format":"date-time","nullable":true},"duration_seconds":{"type":"integer","nullable":true},"language":{"type":"string","nullable":true},"owner_id":{"type":"string","nullable":true,"description":"The consultant who owns the call (usr_)."},"candidate_id":{"type":"string","nullable":true},"candidate_name":{"type":"string","nullable":true},"candidate_deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."},"job_id":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"application_id":{"type":"string","nullable":true},"interview_id":{"type":"string","nullable":true},"client_id":{"type":"string","nullable":true},"client_contact_id":{"type":"string","nullable":true},"recording":{"type":"object","properties":{"status":{"type":"string","enum":["none","copying","stored","failed","deleted"],"description":"stored while the recording is kept; deleted after 24 months."},"mime_type":{"type":"string","nullable":true},"delete_after":{"type":"string","format":"date-time","nullable":true}}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"CallDetail":{"allOf":[{"$ref":"#/components/schemas/Call"},{"type":"object","properties":{"recording":{"type":"object","description":"As on Call, plus url.","properties":{"url":{"type":"string","nullable":true,"description":"A signed link to the recording, valid for one hour. Null when there is no stored recording."}}},"participants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The speaker (cpt_). Name a voice with POST /calls/{id}/speakers."},"role":{"type":"string","enum":["consultant","candidate","client_contact","other"]},"name":{"type":"string","nullable":true},"named":{"type":"boolean","description":"true when someone at the agency said who this voice is; false when the name came with the recording."},"phone":{"type":"string","nullable":true,"description":"The number this person rang from or was rung on, on a phone call."},"user_id":{"type":"string","nullable":true},"candidate_id":{"type":"string","nullable":true},"client_contact_id":{"type":"string","nullable":true},"talk_ms":{"type":"integer","description":"How long this person spoke, in milliseconds."}}}},"transcript":{"type":"array","description":"Every line in order, one speaker per line.","items":{"type":"object","properties":{"seq":{"type":"integer","description":"The line number, for make_call_clip."},"participant_id":{"type":"string","nullable":true,"description":"The speaker (cpt_), as in participants."},"speaker":{"type":"string"},"role":{"type":"string","enum":["consultant","candidate","client_contact","other"]},"start_ms":{"type":"integer","nullable":true,"description":"Offset from the start of the recording."},"end_ms":{"type":"integer","nullable":true},"text":{"type":"string"}}}},"writeup":{"type":"object","nullable":true,"description":"The call write-up. Drafted once when the transcript is in, never sent anywhere; edited marks a consultant has changed it.","properties":{"kind":{"type":"string","nullable":true,"enum":["candidate","client"],"description":"Whether the call was written up about a candidate or a client."},"summary":{"type":"string","nullable":true},"strengths":{"type":"array","items":{"type":"string"}},"concerns":{"type":"array","items":{"type":"string"}},"next_steps":{"type":"array","items":{"type":"string"}},"client_summary_draft":{"type":"string","nullable":true,"description":"A draft summary for the client. Never sent by Lovelio."},"salary_expectation":{"type":"string","nullable":true},"notice_period":{"type":"string","nullable":true},"work_rights":{"type":"string","nullable":true},"availability":{"type":"string","nullable":true},"sections":{"type":"array","description":"Notes under the headings for this call type.","items":{"type":"object","properties":{"heading":{"type":"string"},"body":{"type":"string"}}}},"facts":{"type":"array","description":"What the candidate stated, each with the words that stated it. Only facts actually said.","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"quote":{"type":"string","nullable":true,"description":"The words on the call this came from, exactly as transcribed."},"start_ms":{"type":"integer","nullable":true,"description":"Where in the recording they were said."}}}},"job_brief":{"type":"object","nullable":true,"description":"The role a client briefed on the call. Null when no role was briefed. POST /batch with draft_job_from_call turns it into a job draft.","properties":{"title":{"type":"string","nullable":true},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"quote":{"type":"string","nullable":true,"description":"The words on the call this came from, exactly as transcribed."},"start_ms":{"type":"integer","nullable":true,"description":"Where in the recording they were said."}}}},"must_haves":{"type":"array","items":{"type":"string"}},"nice_to_haves":{"type":"array","items":{"type":"string"}},"not_needed":{"type":"array","items":{"type":"string"}}}},"edited":{"type":"boolean"},"generated_at":{"type":"string","format":"date-time","nullable":true},"updated_at":{"type":"string","format":"date-time","nullable":true}}},"actions":{"type":"array","description":"What Lovelio suggests doing after the call. Nothing runs on its own: POST /batch with do_call_action does or dismisses one.","items":{"type":"object","properties":{"id":{"type":"string","example":"cac_550e8400e29b41d4a716446655440000"},"kind":{"type":"string","enum":["mark_yes","email_candidate","email_contact","reminder","book_call","save_fee","add_contact","dna_note"]},"title":{"type":"string"},"detail":{"type":"string","nullable":true},"payload":{"type":"object","additionalProperties":true,"description":"What doing it would send, e.g. subject and body for an email, percent for a fee."},"quote":{"type":"string","nullable":true,"description":"The words on the call this came from, exactly as transcribed."},"start_ms":{"type":"integer","nullable":true,"description":"Where in the recording they were said."},"status":{"type":"string","enum":["open","done","dismissed"]},"done_at":{"type":"string","format":"date-time","nullable":true}}}}}}]},"JobOpportunity":{"type":"object","description":"A role or a candidate lead being worked on Jobs > Opportunities before a job exists. Not a BD opportunity (/opportunities). Lovelio never moves its stage by itself: it suggests a move with the evidence, and a person accepts it in Lovelio.","properties":{"id":{"type":"string","description":"opp_ id."},"kind":{"type":"string","enum":["role","candidate"],"description":"role: a client may have a job. candidate: a person to place, with a role in mind."},"title":{"type":"string","description":"The role's title, or the person's name on a candidate opportunity."},"role_title":{"type":"string","nullable":true,"description":"The role being worked towards. A candidate opportunity needs one before it can become a job."},"stage":{"type":"string","enum":["new","talking","keen","terms","won","lost","parked"],"description":"won means it became a job (converted_job_id)."},"client":{"type":"object","nullable":true,"properties":{"id":{"type":"string","description":"cli_ id."},"name":{"type":"string","nullable":true}}},"contact":{"type":"object","nullable":true,"description":"The person to call.","properties":{"id":{"type":"string","description":"cct_ id."},"name":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"email":{"type":"string","nullable":true}}},"candidate_id":{"type":"string","nullable":true,"description":"cnd_ id, on a candidate opportunity."},"owner_id":{"type":"string","nullable":true,"description":"usr_ id of the consultant working it."},"salary_min":{"type":"number","nullable":true},"salary_max":{"type":"number","nullable":true},"currency":{"type":"string","nullable":true},"possible_fee":{"type":"object","nullable":true,"description":"Priced from the client's fee terms on every read. Requires the clients:financials:read scope - null without it. Null when there is no client, salary or terms to price it, and always null when money_hidden.","properties":{"amount":{"type":"number","nullable":true},"percent":{"type":"number","nullable":true},"basis_figure":{"type":"number","nullable":true,"description":"The figure the percent is taken of."}}},"money_hidden":{"type":"boolean","description":"True when the possible fee is withheld: the key lacks clients:financials:read, or the opportunity is someone else's and the acting user's user type sees only their own."},"source":{"type":"string","enum":["manual","call","email","careers_watch","key_movement","float","agent"]},"source_detail":{"type":"string","nullable":true},"last_contact_at":{"type":"string","format":"date-time","nullable":true},"next_contact":{"type":"object","nullable":true,"description":"When to make the next contact, in the agency's timezone. Null once Won, Lost or Parked.","properties":{"due_on":{"type":"string","format":"date"},"section":{"type":"string","enum":["today","week","new","later"]},"days_until":{"type":"integer","description":"Negative when overdue."}}},"reason_to_call":{"type":"string","description":"The one fact to know before calling: what has happened since the last contact, else when that was."},"suggestion":{"type":"object","nullable":true,"description":"A stage move real contact points at, waiting for a person to accept or dismiss it in Lovelio. Agents can read it; only a person settles it.","properties":{"id":{"type":"string","description":"opq_ id."},"to_stage":{"type":"string","enum":["talking","keen","terms","won"],"description":"won means convert to a job."},"label":{"type":"string","description":"What accepting it does, for example Move to Keen."},"quote":{"type":"string","nullable":true,"description":"The contact's own words."},"evidence":{"type":"string","description":"The evidence in one line: the quote, or the call or email it came from."},"said_by":{"type":"string","nullable":true},"said_at":{"type":"string","format":"date-time"},"source_type":{"type":"string","enum":["email","call","logged_call"]},"job":{"type":"string","nullable":true,"description":"On a convert: the job it would open."},"blocked":{"type":"string","nullable":true,"description":"On a convert: what it still needs before a person can accept it."}}},"converted_job_id":{"type":"string","nullable":true,"description":"job_ id, once Won."},"stage_changed_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"JobOpportunityTimelineEntry":{"type":"object","properties":{"type":{"type":"string","description":"What happened, for example created, stage_changed or updated."},"text":{"type":"string"},"actor":{"type":"string","description":"Who did it, and through which channel when not the web app."},"at":{"type":"string","format":"date-time"}}},"Placement":{"type":"object","description":"The agency's win: a candidate placed with a client for a fee. Created against an application (moves it to placed) or logged directly with candidate_id + client_id.","properties":{"id":{"type":"string","example":"pla_550e8400e29b41d4a716446655440000"},"number":{"type":"integer","nullable":true,"example":1042,"description":"The agency's own placement number: each agency counts its placements from 1 in the order they were made, and a number is never reused. Key a timesheet or payroll assignment to it. Null only for a moment while a release rolls out."},"reference":{"type":"string","nullable":true,"example":"P-1042","description":"The number as people read it out: P- then the number."},"candidate_id":{"type":"string"},"candidate_name":{"type":"string","nullable":true,"description":"The candidate's name, embedded so list consumers never need a lookup per row. Null when the candidate is deleted."},"candidate_first_name":{"type":"string","nullable":true,"example":"Jane","description":"The candidate's first_name, the same value the candidate endpoints return, so a two-word given name (\"Mary Anne\") stays whole."},"candidate_last_name":{"type":"string","nullable":true,"example":"Smith","description":"The candidate's last_name, the same value the candidate endpoints return."},"candidate_mobile":{"type":"string","nullable":true,"example":"+61412345678","description":"A mobile number in international form, for a two-factor code. Null when the phone on file is not a mobile, or its country cannot be told (the US and Canada never read as mobile). A local number reads in the work country, then the candidate's own."},"candidate_deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."},"client_id":{"type":"string"},"client_name":{"type":"string","nullable":true,"description":"The client's name, embedded so list consumers never need a lookup per row. Null when the client is deleted."},"client_deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."},"job_id":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"application_id":{"type":"string","nullable":true},"salary":{"type":"number","nullable":true,"description":"First-year BASE salary. Requires the placements:financials:read scope - null without it."},"package":{"type":"object","nullable":true,"description":"What sits on top of base and the resulting package total. Null without the placements:financials:read scope.","properties":{"super_percent":{"type":"number","nullable":true},"super_amount":{"type":"number","nullable":true},"ote_amount":{"type":"number","nullable":true,"description":"On-target earnings, including base."},"bonus_amount":{"type":"number","nullable":true},"total":{"type":"number","nullable":true,"description":"The larger of OTE and base, plus super, plus bonus. What a percent fee is taken of when the client's terms price on the package."}}},"currency":{"type":"string","nullable":true,"description":"ISO 4217 code the placement was billed in. Fixed at write time and never re-derived - changing an agency or user default does not relabel existing placements."},"fee":{"type":"object","description":"The placement fee. amount is the single billing figure: for percent fees it is the fee basis figure * percent / 100, computed at write time, where the basis is the client's fee_basis (base salary, or the package total); for fixed fees it is the amount as entered. The whole object is null without the placements:financials:read scope.","properties":{"type":{"type":"string","enum":["percent","fixed"]},"percent":{"type":"number","nullable":true},"amount":{"type":"number","nullable":true}}},"placement_type":{"type":"string","enum":["permanent","contract"],"description":"Perm or contract. Defaults from the job's employment_type on create. A perm placement's value is its fee amount; a contract placement's value is its expected GP."},"offer_date":{"type":"string","format":"date","nullable":true,"description":"When the candidate accepted. Defaults to the recorded acceptance date, otherwise today. Never uses the date the offer was made."},"contract":{"type":"object","nullable":true,"description":"Contract terms - present only when placement_type is contract. expected_gp defaults to margin (charge_rate - pay_rate) times the working units between start_date and end_date, and can be set directly; an explicit value always wins.","properties":{"end_date":{"type":"string","format":"date","nullable":true},"charge_rate":{"type":"number","nullable":true,"description":"Requires the placements:financials:read scope - null without it."},"pay_rate":{"type":"number","nullable":true,"description":"Requires the placements:financials:read scope - null without it."},"rate_period":{"type":"string","enum":["hourly","daily","weekly"],"nullable":true},"on_cost_percent":{"type":"number","nullable":true,"description":"Employer on-cost as a percent of pay, set only for a worker on the agency's payroll (null means the worker invoices the agency), up to six decimals so a stacked Australian on-cost (super, then payroll tax and workers comp on pay plus super) lands on the cent. Requires the placements:financials:read scope - null without it."},"on_cost_amount":{"type":"number","nullable":true,"description":"Employer on-cost as an amount per rate_period, for a worker on the agency's payroll. A placement carries on_cost_percent or on_cost_amount, never both; both null means the worker invoices the agency. Requires the placements:financials:read scope - null without it."},"expected_gp":{"type":"number","nullable":true,"description":"Expected gross profit over the initial term, in the placement's currency. Requires the placements:financials:read scope - null without it."},"plan":{"type":"string","enum":["asked","extending","finishing","perm"],"nullable":true,"description":"What happens on end_date: asked (the client has been asked about extending), extending (will be extended: the client agreed and only the paperwork is left) or finishing. perm appears only on contracts saved with the retired Going perm plan; going perm is now a conversion (converted_on). A plan answers one end date, so moving end_date (an extension) makes this null until a plan is set for the new date. Set it with PATCH contract_plan."},"state":{"type":"string","enum":["starting","running","no_plan","asked","extending","perm","finishing","extended","finished"],"description":"Where the contract stands today, the same state the Contractors page shows. starting: not started yet. finished: end_date has passed, or the placement fell off or completed. perm: a conversion is recorded (converted_on) and the contract is still running. asked, extending, finishing: the current plan. extended: the end date moved later and the old end is still ahead. no_plan: ends inside the next 8 weeks with no plan. running: ends later, or has no end date."},"extended_from":{"type":"string","format":"date","nullable":true,"description":"The end date before the latest extension, while that date is still ahead. Null once it passes or when there is no extension."},"end_reason":{"type":"string","enum":["client_ended","contractor_left","converted"],"nullable":true,"description":"Why the contract ended before its agreed end date: client_ended, contractor_left, or converted (the contractor went perm with the client). Null when it runs to end_date. Extending the contract clears it."},"converted_on":{"type":"string","format":"date","nullable":true,"description":"The day the contractor started perm with the client. The contract ends the day before (end_date)."},"next_contact_on":{"type":"string","format":"date","nullable":true,"description":"The day the consultant picked to contact the contractor next, or null. On that day the consultant gets a reminder from 8am their time, and it sits in their calendar. A date still to come keeps the contractor off the check-in list until then."},"conversion":{"type":"object","nullable":true,"description":"Present when converted_on is set. The conversion fee is included in expected_gp. Both figures require the placements:financials:read scope - null without it.","properties":{"salary":{"type":"number","nullable":true,"description":"The perm salary."},"fee":{"type":"number","nullable":true,"description":"The fee charged for the conversion."}}},"rate_history":{"type":"array","nullable":true,"description":"Every stretch of rates over the contract, oldest first. The last entry is the current charge_rate and pay_rate, running to end_date. A rate change from a date keeps the earlier rates for the weeks they applied, and expected_gp adds each stretch up. Requires the placements:financials:read scope - null without it.","items":{"type":"object","properties":{"from":{"type":"string","format":"date","nullable":true},"to":{"type":"string","format":"date","nullable":true},"charge_rate":{"type":"number","nullable":true},"pay_rate":{"type":"number","nullable":true},"rate_period":{"type":"string","enum":["hourly","daily","weekly"],"nullable":true}}}}}},"credits":{"type":"array","description":"The credit split: who this win counts for, at what percent. Always totals 100. Defaults to the placement owner at 100%. user_id is the consultant's usr_ id, the one GET /accounts/{id}/users lists. WHO is credited always comes through; `percent` is null without the placements:financials:read scope.","items":{"type":"object","properties":{"user_id":{"type":"string","example":"usr_550e8400e29b41d4a716446655440000"},"role":{"type":"string","enum":["candidate_consultant","job_owner","business_development","other"],"nullable":true},"percent":{"type":"number"}}}},"start_date":{"type":"string","format":"date","nullable":true},"contracting":{"type":"object","nullable":true,"description":"The timesheet and payroll hand-off. Present only when placement_type is contract; null on a perm placement. The country of the WORKPLACE (work_site.country) decides which contractor fields Lovelio collects, whoever the contractor is and wherever the agency is: an Australian site carries the Australian fields, a country with no pack yet returns contractor null. work_site and timesheet_approvers come with placements:read. payment_terms_days and contractor need the placements:contracting:read scope and are null without it. Lovelio never holds a tax file number or bank details; collect those from the contractor yourself.","properties":{"work_country":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2 of the workplace, copied from the site when the placement was logged. Picks the contractor field set."},"work_site":{"$ref":"#/components/schemas/ClientSite","nullable":true,"description":"Where the work happens. One of the client's sites (GET /clients/{id}/sites)."},"timesheet_approvers":{"type":"array","description":"Who approves the contractor's timesheets, first approver first. Each is a contact on the placement's client with an email. The order is the role: the first is primary, the second secondary, any more additional.","items":{"type":"object","properties":{"contact_id":{"type":"string","example":"cct_550e8400e29b41d4a716446655440000"},"role":{"type":"string","enum":["primary","secondary","additional"],"description":"From the order: first primary, second secondary, the rest additional. Change it by reordering timesheet_approver_contact_ids."},"name":{"type":"string","nullable":true},"first_name":{"type":"string","nullable":true,"description":"Read off name: the first word. Names are stored whole."},"last_name":{"type":"string","nullable":true,"description":"Read off name: everything after the first word."},"email":{"type":"string","nullable":true},"mobile":{"type":"string","nullable":true,"example":"+61412345678","description":"A mobile number in international form, for a two-factor code. Null when the phone on file is not a mobile, or its country cannot be told (the US and Canada never read as mobile). A local number reads in the work country."},"deleted":{"type":"boolean","description":"True when the record was deleted: its id stays, and its name and contact details read null."}}}},"position":{"type":"object","nullable":true,"description":"The payroll partner's Position the agency picked for this contract, in the partner's own id. Null until picked.","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"rate_template":{"type":"object","nullable":true,"description":"The payroll partner's Rate template the agency picked for this contract, in the partner's own id. Null until picked.","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"payroll_approval":{"type":"object","nullable":true,"description":"An admin at the agency approved this contract or temp placement for payroll. Null while it waits. The moment it is set, placement.approved fires once, carrying this placement: that is the payroll partner's trigger. Later edits arrive on placement.updated as usual; approval is never undone by an edit. Set by a person in Lovelio, never through the API.","properties":{"approved_at":{"type":"string","format":"date-time"},"approved_by":{"type":"object","nullable":true,"description":"Null when that person has since been removed.","properties":{"user_id":{"type":"string"},"name":{"type":"string","nullable":true}}}}},"payment_terms_days":{"type":"integer","nullable":true,"description":"The client's payment terms in force, off their fee schedule. Requires placements:contracting:read - null without it."},"contractor":{"type":"object","nullable":true,"description":"The contractor's payroll-facing details for the work country. Keys are exactly the fields Lovelio collects for that country, every one present and null when not yet on file. Null when the work country has no field set yet, and null without placements:contracting:read. Australia (AU): payment_type, abn, entity_name and gst_registered.","properties":{"payment_type":{"type":"string","enum":["payg","abn"],"nullable":true,"description":"Australia: paid PAYG through the agency, or invoicing under their own ABN."},"abn":{"type":"string","nullable":true,"description":"Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn."},"entity_name":{"type":"string","nullable":true,"maxLength":200,"example":"Smith Consulting Pty Ltd","description":"Australia, ABN only: the legal entity the ABN belongs to, as on the ABN register. A recipient-created tax invoice (RCTI) is issued to it. Dropped when payment_type is payg."},"gst_registered":{"type":"string","enum":["yes","no"],"nullable":true,"description":"Australia, ABN only: whether the entity is registered for GST, which decides the GST line on an RCTI. Writes also take true or false. Dropped when payment_type is payg."}}}}},"guarantee_days":{"type":"integer","nullable":true,"description":"Guarantee period in days from start_date. Defaults from the client's fee schedule when omitted on create."},"status":{"type":"string","enum":["pending_start","started","fell_off","completed"],"description":"Lifecycle: pending_start until the candidate starts, started while inside (or past) the guarantee, fell_off when they leave during the guarantee, completed when the guarantee is cleared."},"notes":{"type":"string","nullable":true},"billing":{"type":"object","description":"Who accounts bills and how: the details the agency's own accounts system needs. Set them with hiring_manager_contact_id, invoice_contact_id, po_number and invoice_notes on create or PATCH.","properties":{"hiring_manager":{"type":"object","nullable":true,"description":"The client contact who hired. Defaults to the job's client contact.","properties":{"id":{"type":"string","example":"cct_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true}}},"invoice_contact":{"type":"object","nullable":true,"description":"The client contact who gets the invoice. Defaults to the client's default_invoice_contact_id.","properties":{"id":{"type":"string","example":"cct_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true}}},"po_number":{"type":"string","nullable":true},"invoice_notes":{"type":"string","nullable":true}}},"invoice":{"type":"object","nullable":true,"description":"The draft invoice in the agency's connected Xero, and whether it is paid. Lovelio makes a draft when a perm placement with a fee is logged, dated on the start date, and updates it while it is still a draft; the agency approves and sends it from Xero. Lovelio never approves, sends or chases an invoice. Null until the placement goes to Xero. Send one by hand with the send_placement_to_xero action.","properties":{"provider":{"type":"string","enum":["xero"]},"status":{"type":"string","nullable":true,"enum":["draft","submitted","authorised","paid","voided","deleted"],"description":"The invoice's status in Xero. Null while the draft is being made. Treat a value you do not recognise as unknown."},"number":{"type":"string","nullable":true,"example":"INV-0042"},"amount":{"type":"number","nullable":true,"description":"The invoice total. Null without the financial scope."},"currency":{"type":"string","nullable":true,"example":"AUD"},"amount_due":{"type":"number","nullable":true,"description":"What is still owed. Null without the financial scope."},"paid_at":{"type":"string","format":"date-time","nullable":true},"synced_at":{"type":"string","format":"date-time","nullable":true,"description":"When Lovelio last read the invoice from Xero."}}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"QuotaPlan":{"type":"object","description":"The agency's quota plan - one per agency, auto-created with defaults on first read (zero setup). Read-only over the API; plan defaults are managed in Settings > Quotas.","properties":{"cadence":{"type":"string","enum":["monthly","quarterly","yearly"]},"currency":{"type":"string","description":"ISO 4217 code targets are measured in. One currency per plan; other currencies are reported as their own lines, never converted."},"recognition_basis":{"type":"string","enum":["offer_accepted","start_date"],"description":"When a placement counts: when the offer was accepted, or when the candidate starts (default)."},"include_permanent":{"type":"boolean"},"include_contract":{"type":"boolean","description":"Contract placements count their expected GP; perm placements count the fee."},"extensions_rule":{"type":"string","enum":["extension_start","not_counted"]},"quarter_start_month":{"type":"integer","minimum":1,"maximum":12,"description":"First month of the cycle. 1 = Jan/Apr/Jul/Oct quarters; 7 = an Australian financial year."},"lock_closed_periods":{"type":"boolean"}}},"QuotaPeriod":{"type":"object","description":"One quota period - a month, quarter or year in the agency's own timezone, auto-created as time passes. Locking a period freezes its figures; later changes to counted placements post as adjustments to the current open period.","properties":{"id":{"type":"string","example":"qpd_550e8400e29b41d4a716446655440000"},"label":{"type":"string","example":"Q3 2026"},"start_date":{"type":"string","format":"date","description":"Inclusive."},"end_date":{"type":"string","format":"date","description":"Inclusive."},"status":{"type":"string","enum":["open","published","locked"]},"agency_target":{"type":"number","nullable":true,"description":"The agency-wide target. Null when none is set (targets are never required) AND null for any key whose data scope is not the whole agency - it is an agency-wide disclosure and travels with the agency block. Also null for a key acting as a person whose user type has \"See everyone's billings and GP\" off."},"locked_at":{"type":"string","format":"date-time","nullable":true}}},"QuotaMoney":{"type":"array","description":"Money as one line per currency, largest first. Lovelio never converts between currencies. currency is null only when the underlying records named no currency at all.","items":{"type":"object","properties":{"currency":{"type":"string","nullable":true},"amount":{"type":"number"}}}},"QuotaBoardRow":{"type":"object","properties":{"user_id":{"type":"string","example":"usr_550e8400e29b41d4a716446655440000","description":"The consultant's usr_ id - the same id placement credits carry."},"name":{"type":"string"},"booked":{"$ref":"#/components/schemas/QuotaMoney"},"placements":{"type":"integer","description":"Placements carrying a credit for this consultant in the period."},"target":{"type":"number","nullable":true,"description":"Null = no target set."},"money_hidden":{"type":"boolean","description":"True when the acting user may not see this row's money (Settings > Permissions, \"See everyone's billings and GP\" off): booked is empty and target null. Absent otherwise."}}},"MarketplaceListing":{"type":"object","description":"An anonymised job or candidate on the cross-agency split marketplace. The client or candidate is never identified; the posting agency always is. Browse serves only these pre-scrubbed snapshots - never another tenant's source records. Listings hard-expire after 30 days (renewal re-attests the listing is still real).","properties":{"id":{"type":"string","example":"mkl_550e8400e29b41d4a716446655440000"},"kind":{"type":"string","enum":["job","candidate"]},"status":{"type":"string","enum":["live","paused","filled","expired","withdrawn"]},"headline":{"type":"string","description":"Anonymised headline, e.g. \"Senior auditor, top-tier firm, Melbourne\"."},"chips":{"type":"array","items":{"type":"string"},"description":"Up to 6 anonymised fact chips."},"pitch":{"type":"string","description":"The anonymised pitch. Deterministically scrubbed and moderated before it crosses tenants."},"location":{"type":"string","nullable":true},"agency":{"type":"object","description":"The posting agency - always visible (anonymity protects clients and candidates, never the trading agencies).","properties":{"name":{"type":"string"},"location":{"type":"string","nullable":true}}},"salary_min":{"type":"number","nullable":true},"salary_max":{"type":"number","nullable":true},"currency":{"type":"string","nullable":true},"fee_percent":{"type":"number","nullable":true,"description":"The declared fee basis (percent of first-year salary)."},"owner_share_percent":{"type":"integer","enum":[50,60,70,80],"description":"The split the owner keeps. Lovelio takes 0% - the fee is split between the two agencies, full stop."},"partner_share_percent":{"type":"integer","description":"Always 100 - owner_share_percent."},"mine":{"type":"boolean","description":"True when your agency owns this listing."},"source_job_id":{"type":"string","nullable":true,"description":"The job behind your own listing (job_). Always null on other agencies' listings."},"source_candidate_id":{"type":"string","nullable":true,"description":"The candidate behind your own listing (cnd_). Always null on other agencies' listings."},"expires_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time","nullable":true}}},"MarketplaceIntro":{"type":"object","description":"A candidate submitted to a job listing, or a request on a candidate listing. Reveal-on-accept: until the listing owner accepts, the intro carries only the scrubbed anonymous profile - identity exists nowhere the other tenant can read.","properties":{"id":{"type":"string","example":"mki_550e8400e29b41d4a716446655440000"},"listing_id":{"type":"string","nullable":true},"listing_headline":{"type":"string"},"kind":{"type":"string","enum":["submission","request"]},"direction":{"type":"string","enum":["received","sent"],"description":"received = an intro on your listing; sent = an intro your agency made."},"status":{"type":"string","enum":["pending","accepted","declined","withdrawn","expired"]},"from_agency":{"type":"object","properties":{"name":{"type":"string"},"consultant":{"type":"string","nullable":true}}},"candidate_id":{"type":"string","nullable":true,"description":"Your own candidate record behind an intro you SENT (cnd_). Always null on received intros - reveal happens on the deal, not the intro."},"anonymous_profile":{"type":"object","nullable":true,"properties":{"headline":{"type":"string"},"chips":{"type":"array","items":{"type":"string"}},"pitch":{"type":"string"}}},"note":{"type":"string","nullable":true},"job_ad":{"type":"object","nullable":true,"description":"The job ad the sender shared with the note: its title and public careers page link, stamped when the intro was made. Always the ad, never the job record; the client is never named.","properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"}}},"fit_summary":{"type":"string","nullable":true,"description":"AI facts-to-check against your listing (received submissions only). Facts, never verdicts."},"attested_relationship":{"type":"boolean","description":"The submitter attested they interviewed the candidate and the candidate agreed to be represented."},"decline_reason":{"type":"string","nullable":true},"prior_knowledge":{"type":"boolean","nullable":true,"description":"Stamped at accept time: whether the receiving agency already knew the candidate (checked BEFORE the reveal)."},"responded_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"MarketplaceDeal":{"type":"object","description":"The contract moment of a split: an immutable snapshot written when an intro is accepted (split, fee basis, salary band, terms version, revealed identity, 12-month introduction protection), then the SHARED money record once the placement lands - both agencies read identical numbers here. Lovelio takes no fee, moves no money, and arbitrates no disputes; the deal makes the numbers unambiguous.","properties":{"id":{"type":"string","example":"mkd_550e8400e29b41d4a716446655440000"},"intro_id":{"type":"string","nullable":true},"listing_id":{"type":"string","nullable":true},"listing_kind":{"type":"string","enum":["job","candidate"]},"listing_headline":{"type":"string"},"status":{"type":"string","enum":["connected","in_progress","placed","dead"],"description":"Derived from the real pipeline: client-side stages read as in_progress, a placement as placed, a dead application kills an unplaced deal, and moving that application out of Rejected or Withdrew reopens a deal the pipeline killed (a deal closed by hand through closed_at stays closed)."},"role":{"type":"string","enum":["owner","partner"],"description":"Your side of this deal: owner listed it, partner made the intro."},"counterpart_agency":{"type":"string","description":"The other agency on the deal."},"owner_share_percent":{"type":"integer","enum":[50,60,70,80]},"your_share_percent":{"type":"integer"},"fee_percent":{"type":"number","nullable":true},"salary_min":{"type":"number","nullable":true},"salary_max":{"type":"number","nullable":true},"currency":{"type":"string","nullable":true},"terms_version":{"type":"string","description":"The Split Terms version both agencies accepted."},"revealed":{"type":"object","nullable":true,"description":"The identity snapshot written once at accept: candidate name and contact, plus both consultants' contacts."},"revealed_at":{"type":"string","format":"date-time","nullable":true},"protection_ends_at":{"type":"string","format":"date-time","description":"The 12-month introduction protection window."},"placement_id":{"type":"string","nullable":true,"description":"The owner's placement record (pla_). Null for the partner - the deal itself carries the shared money snapshot."},"placement_status":{"type":"string","nullable":true,"enum":["pending_start","started","fell_off","completed",null]},"placed_salary":{"type":"number","nullable":true,"description":"Requires the marketplace:financials:read scope - null without it."},"placed_fee_amount":{"type":"number","nullable":true,"description":"Requires the marketplace:financials:read scope - null without it."},"placed_currency":{"type":"string","nullable":true,"description":"The placement's real currency - render placed money in this. `currency` stays the listing's asking currency."},"partner_share_amount":{"type":"number","nullable":true,"description":"Requires the marketplace:financials:read scope - null without it."},"your_share_amount":{"type":"number","nullable":true,"description":"Your side of the placed fee, per the locked split. Requires the marketplace:financials:read scope - null without it."},"placed_start_date":{"type":"string","format":"date","nullable":true},"owner_marked_paid_at":{"type":"string","format":"date-time","nullable":true,"description":"The paid/received handshake: the placing agency's stamp."},"partner_marked_received_at":{"type":"string","format":"date-time","nullable":true,"description":"The paid/received handshake: the receiving agency's stamp."},"closed_at":{"type":"string","format":"date-time","nullable":true,"description":"Set when an unplaced deal was deliberately closed."},"closed_by":{"type":"string","nullable":true,"enum":["you","counterpart",null],"description":"Which side closed it, from your point of view."},"closed_reason":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"Webhook":{"type":"object","properties":{"id":{"type":"string","example":"whk_550e8400e29b41d4a716446655440000"},"account_id":{"type":"string","example":"acc_550e8400e29b41d4a716446655440000"},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","paused"]},"created_at":{"type":"string","format":"date-time"}}},"ParsedProfile":{"type":"object","nullable":true,"description":"Structured representation of a parsed CV/resume.","properties":{"summary":{"type":"string","nullable":true},"experience":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","nullable":true},"company":{"type":"string","nullable":true},"start_date":{"type":"string","nullable":true},"end_date":{"type":"string","nullable":true},"is_current":{"type":"boolean"},"description":{"type":"string","nullable":true}}}},"education":{"type":"array","items":{"type":"object","properties":{"institution":{"type":"string","nullable":true},"degree":{"type":"string","nullable":true},"start_date":{"type":"string","nullable":true},"end_date":{"type":"string","nullable":true}}}},"skills":{"type":"array","items":{"type":"string"}},"parsed_at":{"type":"string","format":"date-time","nullable":true}}},"Task":{"type":"object","description":"The 202 acknowledgement of an async operation. Poll poll_url, which returns a TaskStatus.","properties":{"task_id":{"type":"string","example":"tsk_550e8400e29b41d4a716446655440000"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"resource_id":{"type":"string","nullable":true},"estimated_seconds":{"type":"integer"},"poll_url":{"type":"string"}}},"TaskStatus":{"type":"object","description":"What GET /tasks/{id} returns while polling. Richer than the 202 Task: it names the operation and carries the result or error once the task finishes. It has no estimated_seconds.","properties":{"task_id":{"type":"string","example":"tsk_550e8400e29b41d4a716446655440000"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"operation":{"type":"string","enum":["create_job","describe_job","describe_email","publish_job_ad","distribute_job","enrich_account","parse_candidate_cv","assess_application","schedule_interview"]},"resource_id":{"type":"string","nullable":true},"result":{"type":"object","nullable":true,"description":"Operation-specific result payload once status is completed."},"error":{"type":"object","nullable":true,"description":"Error detail once status is failed."},"started_at":{"type":"string","format":"date-time","nullable":true},"completed_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"poll_url":{"type":"string"}}},"Activity":{"type":"object","properties":{"id":{"type":"string","example":"act_abc123"},"account_id":{"type":"string","example":"acc_abc123"},"resource_type":{"type":"string","enum":["job","job_ad","candidate","application","interview","placement"]},"resource_id":{"type":"string","example":"app_abc123"},"action":{"type":"string","example":"application.stage_changed"},"activity_type":{"type":"string","enum":["created","updated","note_added","deleted","stage_changed","applied","assessment_completed","automation_ran","email_sent","email_failed","email_skipped","resume_parsed","interview_requested","interview_scheduled","interview_cancelled","interview_form_generated","interview_form_completed","placement_created","placement_status_changed","cafe_added","talent_pool_added","talent_pool_removed","talent_pool_pulse","review_enqueued","form_submitted","references_requested","references_received","call_logged","document_added","document_removed","record_shared"]},"actor_type":{"type":"string","enum":["user","bot","system","automation","api"]},"actor_id":{"type":"string","nullable":true},"actor_email":{"type":"string","nullable":true},"description":{"type":"string"},"metadata":{"type":"object","description":"Activity-specific data (scores, field changes, etc.)"},"created_at":{"type":"string","format":"date-time"}}},"Document":{"type":"object","description":"A file attached to any record. Documents are polymorphic: the same endpoints serve candidates, clients, contacts, jobs, placements, talent pools and more.","properties":{"id":{"type":"string","example":"doc_abc123"},"account_id":{"type":"string","example":"acc_abc123"},"record_type":{"type":"string","enum":["candidate","client","client_contact","job","job_ad","application","interview","placement","submission","spec","spec_submission","bd_target","job_opportunity","talent_pool","team","hiring_manager"],"description":"The kind of record this document is filed against."},"record_id":{"type":"string","example":"cnd_abc123","description":"External ID of the record it belongs to."},"file_name":{"type":"string","example":"Jane Smith CV 2026.pdf"},"content_type":{"type":"string","example":"application/pdf"},"size_bytes":{"type":"integer","nullable":true},"source":{"type":"string","enum":["upload","migration","cv","contractor_page"],"description":"How it got here: 'upload' a person added it, 'migration' it came from a previous ATS, 'cv' it is the file the candidate's CV pointer resolves to, 'contractor_page' the contractor sent it on their own page."},"is_cv":{"type":"boolean","description":"Candidates only: this is the current CV, the file the resume parser and cv_url read."},"uploaded_by_email":{"type":"string","nullable":true},"source_created_at":{"type":"string","format":"date-time","nullable":true,"description":"The date the document had in the system it came from, when known. Imported documents sort by this, not by the day the import ran."},"scan_status":{"type":"string","enum":["pending","clean","infected","failed"],"nullable":true,"description":"Every stored file is checked for viruses in its own region, usually within a minute. 'pending' not checked yet, 'clean' nothing found, 'infected' a virus was found and the file can never be downloaded (delete it), 'failed' it could not be checked and cannot be downloaded. null for a file stored before checking began; it downloads as before."},"created_at":{"type":"string","format":"date-time"}}},"Form":{"type":"object","properties":{"id":{"type":"string","example":"frm_550e8400e29b41d4a716446655440000"},"name":{"type":"string","example":"Phone Screen"},"category":{"type":"string","enum":["screening","assessment","interview","onboarding","compliance"]},"description":{"type":"string","nullable":true},"ai_augmentation_enabled":{"type":"boolean"},"is_default":{"type":"boolean"},"question_count":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"FormQuestion":{"type":"object","properties":{"id":{"type":"string","example":"fqu_550e8400e29b41d4a716446655440000"},"order_index":{"type":"integer"},"question_text":{"type":"string"},"question_type":{"type":"string","enum":["text","rating","yes_no","multiple_choice"]},"options":{"type":"array","items":{"type":"string"},"nullable":true},"scoring_weight":{"type":"number","nullable":true},"flag_mode":{"type":"string","enum":["red","green","neutral"],"nullable":true},"required":{"type":"boolean"}}},"FormInstanceQuestion":{"type":"object","required":["id","question_text","question_type","required"],"properties":{"id":{"type":"string","description":"fiq_ id."},"question_text":{"type":"string"},"question_type":{"type":"string","enum":["text","rating","yes_no","multiple_choice"]},"options":{"type":"array","items":{"type":"string"},"nullable":true},"scoring_weight":{"type":"number","nullable":true},"flag_mode":{"type":"string","enum":["red","green","neutral"],"nullable":true},"ai_generated":{"type":"boolean","nullable":true},"required":{"type":"boolean"},"minutes":{"type":"integer","nullable":true,"description":"Estimated minutes for this reference question."},"why_asked":{"type":"string","nullable":true,"description":"Why Lovelio included this question."}}},"FormResponse":{"type":"object","required":["id","question_id"],"properties":{"id":{"type":"string","description":"frs_ id."},"question_id":{"type":"string","description":"fiq_ id."},"response_text":{"type":"string","nullable":true},"response_rating":{"type":"number","nullable":true},"response_boolean":{"type":"boolean","nullable":true},"response_choice":{"type":"string","nullable":true},"ai_suggested_score":{"type":"number","nullable":true},"final_score":{"type":"number","nullable":true},"flag":{"type":"string","nullable":true}}},"FormInstance":{"type":"object","required":["id","instance_type","status"],"properties":{"id":{"type":"string","example":"fin_550e8400e29b41d4a716446655440000"},"form_id":{"type":"string"},"instance_type":{"type":"string","enum":["screening","reference","interview","feedback"]},"status":{"type":"string","enum":["draft","sent","opened","started","completed"]},"job_application_id":{"type":"string","nullable":true},"referee_id":{"type":"string","nullable":true},"candidate_referee_id":{"type":"string","nullable":true,"description":"The public ref_ record when this is a reference."},"interview_id":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true,"enum":["email","phone",null]},"taken_by":{"type":"string","nullable":true,"description":"usr_ id of the consultant taking a phone reference."},"call_started_at":{"type":"string","format":"date-time","nullable":true},"call_ended_at":{"type":"string","format":"date-time","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true},"opened_at":{"type":"string","format":"date-time","nullable":true},"completed_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"questions":{"type":"array","items":{"$ref":"#/components/schemas/FormInstanceQuestion"}},"responses":{"type":"array","items":{"$ref":"#/components/schemas/FormResponse"}}}},"Referee":{"type":"object","properties":{"id":{"type":"string","example":"ref_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string"},"name":{"type":"string","example":"Sarah Manager"},"email":{"type":"string","format":"email","nullable":true},"phone":{"type":"string","nullable":true,"description":"Mobile number."},"job_title":{"type":"string","nullable":true},"company":{"type":"string","nullable":true,"description":"Where the candidate and referee worked together."},"relationship":{"type":"string","nullable":true},"worked_from":{"type":"string","nullable":true,"description":"Start of the period they worked together, YYYY-MM."},"worked_to":{"type":"string","nullable":true,"description":"End of the period they worked together, YYYY-MM."},"how_worked_together":{"type":"string","nullable":true},"source":{"type":"string","enum":["manual","resume_parse","candidate_submitted"],"description":"How the referee was added."},"submitted_at":{"type":"string","format":"date-time","nullable":true,"description":"When the candidate submitted this referee contact via the Request References form. This is contact submission, not proof that the referee replied or that a report is complete."},"created_at":{"type":"string","format":"date-time"}}},"Paper":{"type":"object","description":"A document the agency has checked for a person: right to work, a police check, a licence, insurance. It lives on the person and counts in one country, so their next contract there re-uses it.","properties":{"id":{"type":"string","example":"ppr_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string","description":"cnd_ id."},"placement_id":{"type":"string","nullable":true,"description":"pla_ id. Set only for an engagement document, which answers one contract (public liability for one engagement)."},"country":{"type":"string","example":"AU","description":"ISO country code the document counts in."},"kind":{"type":"string","example":"police_check","description":"The document word: right_to_work, police_check, wwcc, white_card, forklift_licence, public_liability and so on."},"name":{"type":"string","nullable":true,"example":"National police check","description":"The kind's name in that country."},"details":{"type":"string","nullable":true,"description":"What the document says: a visa subclass, a licence number, a card class."},"issued_on":{"type":"string","format":"date","nullable":true,"description":"The date on the document."},"expires_on":{"type":"string","format":"date","nullable":true,"description":"The printed expiry."},"counts_until":{"type":"string","format":"date","nullable":true,"description":"The last day it counts: the printed expiry, or the date on the document plus the kind's rule (an Australian police check counts for 12 months), whichever comes first. Null when it never ends."},"document_id":{"type":"string","nullable":true,"description":"doc_ id of the file on the candidate that shows it."},"checked_at":{"type":"string","format":"date-time","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true,"description":"When the contractor sent it on their own page. Set with no checked_at, it is waiting to be checked: save it to mark it checked."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"PlacementPapers":{"type":"object","description":"What one contract needs and where each document stands. Derived fresh on every read from the job, the pay route and the country rules; the same check the placement screen shows.","properties":{"placement_id":{"type":"string","description":"pla_ id."},"candidate_id":{"type":"string","description":"cnd_ id."},"candidate_name":{"type":"string"},"client_name":{"type":"string","nullable":true},"placement_status":{"type":"string","enum":["pending_start","started","fell_off","completed"]},"start_date":{"type":"string","format":"date","nullable":true},"end_date":{"type":"string","format":"date","nullable":true,"description":"The contract end date. Null for an open-ended contract."},"country":{"type":"string","nullable":true,"description":"The country whose rules apply: the workplace, else the agency."},"rules_label":{"type":"string","example":"Australian rules","description":"\"Basics only\" for a country Lovelio has no rules for."},"summary":{"type":"string","description":"The whole answer in one plain paragraph, ready to relay."},"requirements":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string","enum":["right_to_work","pay","job"],"description":"Why it is needed: everyone working, the pay route (an ABN contractor carries insurance), or the job asks for it."},"why":{"type":"string","description":"One sentence saying why."},"scope":{"type":"string","enum":["person","placement"],"description":"person: one document serves every contract in the country. placement: this contract only."},"lasts_months":{"type":"integer","nullable":true,"description":"How long one counts from its own date, when the rules say so."},"status":{"type":"string","enum":["current","missing","expired","ends_first","to_check","not_needed"],"description":"current for the whole contract; missing; expired; ends_first: stops counting before the contract ends; to_check: the contractor sent it on their page and no one has checked it yet; not_needed: marked not needed for this contract."},"waived":{"type":"object","nullable":true,"description":"Set when marked not needed for this contract.","properties":{"by_name":{"type":"string","nullable":true},"at":{"type":"string","format":"date-time"}}},"paper":{"type":"object","nullable":true,"description":"The document on file for it, if any.","properties":{"id":{"type":"string","description":"ppr_ id."},"details":{"type":"string","nullable":true},"issued_on":{"type":"string","format":"date","nullable":true},"expires_on":{"type":"string","format":"date","nullable":true},"counts_until":{"type":"string","format":"date","nullable":true},"checked_by_name":{"type":"string","nullable":true},"checked_at":{"type":"string","format":"date-time","nullable":true},"sent_at":{"type":"string","format":"date-time","nullable":true},"document_id":{"type":"string","nullable":true,"description":"doc_ id."},"placement_id":{"type":"string","nullable":true,"description":"pla_ id, for an engagement document."}}}}}}}},"PaperWaiverResult":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"placement_id":{"type":"string","description":"pla_ id."},"kind":{"type":"string"},"waived":{"type":"boolean"},"waived_at":{"type":"string","format":"date-time","nullable":true}}}}},"ClientDna":{"type":"object","required":["id","status","hiring_dna_version"],"properties":{"id":{"type":"string","description":"dna_ id."},"status":{"type":"string"},"final_reflection":{"type":"string","nullable":true},"reanalysis_status":{"type":"string","nullable":true},"reanalysis_error":{"type":"string","nullable":true},"last_reanalysed_at":{"type":"string","format":"date-time","nullable":true},"hiring_dna_version":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"BulkUpdateEmailOptions":{"type":"object","description":"Stops the emails a stage move can send. Leave it out and a move to rejected emails the candidate where that email applies (a real applicant), and a move to withdrew sends the withdrawal acknowledgement.","properties":{"skipRejectionEmail":{"type":"boolean","description":"true moves to rejected without emailing the candidate."},"skipWithdrawalAck":{"type":"boolean","description":"true moves to withdrew without sending the acknowledgement."}}},"InterviewContext":{"type":"object","required":["id","candidate","job","scorecards","consolidated","nextMoves"],"properties":{"id":{"type":"string","description":"ivw_ id."},"scheduledAt":{"type":"string","format":"date-time","nullable":true},"whenLabel":{"type":"string"},"durationMinutes":{"type":"integer","nullable":true},"type":{"type":"string","nullable":true},"round":{"type":"integer"},"flavour":{"type":"string","enum":["internal","client"]},"outcome":{"type":"string"},"location":{"type":"string","nullable":true},"videoLink":{"type":"string","nullable":true,"description":"The meeting link. Null on a video interview means the client has not sent it yet."},"candidate":{"type":"object","properties":{"id":{"type":"string","nullable":true},"name":{"type":"string"},"photoUrl":{"type":"string","nullable":true},"email":{"type":"string","nullable":true}}},"job":{"type":"object","properties":{"id":{"type":"string","nullable":true},"title":{"type":"string","nullable":true}}},"clientName":{"type":"string","nullable":true},"applicationId":{"type":"string","nullable":true},"applicationStage":{"type":"string","nullable":true},"refereeMinRequired":{"type":"integer","description":"How many references this application asked the candidate for. 2 when the application never set one."},"inviteSkips":{"type":"array","description":"Interviewers whose booking invite was not sent: the \"Interview confirmation - interviewer\" automation was off (template_disabled) or switched on after the booking (record_predates_enablement). Only a candidate booking from their link asks that automation; an interview the consultant books always sends its invites.","items":{"type":"object","properties":{"kind":{"type":"string","enum":["user","client_contact"]},"id":{"type":"string"},"reason":{"type":"string","enum":["template_disabled","record_predates_enablement"]}}}},"clientContactNames":{"type":"array","items":{"type":"string"}},"clientContact":{"type":"object","nullable":true,"description":"The first client contact on the invite with a record behind them - the person the emailed feedback form goes to. Null on internal interviews.","properties":{"id":{"type":"string","description":"cct_ id."},"name":{"type":"string","nullable":true}}},"prepUrl":{"type":"string","nullable":true,"description":"The client interviewer feedback link. Legacy name - it carries no prep."},"scorecards":{"type":"array","items":{"type":"object","properties":{"instanceId":{"type":"string","nullable":true},"prepUrl":{"type":"string","nullable":true},"person":{"type":"object"},"status":{"type":"string","enum":["not_started","in_progress","submitted"]},"submittedAt":{"type":"string","format":"date-time","nullable":true},"recommendation":{"type":"string","nullable":true},"overall":{"type":"number","nullable":true},"areas":{"type":"array","items":{"type":"object"}},"feedback":{"type":"string","nullable":true}}}},"consolidated":{"type":"object","description":"Deterministic roll-up of all submitted interviewer cards."},"nextMoves":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"label":{"type":"string"}}}},"feedbackCalls":{"type":"object","description":"Where the two post-interview debriefs are up to on a client-flavour interview, phone and emailed channels combined. Both 'none' on internal interviews. 'awaiting_reply' means the emailed form is out and unanswered.","properties":{"client":{"type":"string","enum":["none","started","awaiting_reply","logged"]},"candidate":{"type":"string","enum":["none","started","awaiting_reply","logged"]}}},"notetaker":{"type":"object","nullable":true,"description":"The meeting notetaker on an agency-run Google Meet, Microsoft Teams or Zoom interview. state: booked (joinAt is when it joins, the meeting start), in_call, processing (the meeting ended, the transcript is on its way), ready (transcript carries the whole transcript; the interviewer's scorecard has a draft to review), failed (it could not join or record), over_cap (this month's notetaker hours are used up). Null when the notetaker is off, on a client interview, with no Meet, Teams or Zoom link, or on a cancelled interview.","properties":{"state":{"type":"string","enum":["booked","in_call","processing","ready","failed","over_cap"]},"joinAt":{"type":"string","format":"date-time"},"transcript":{"type":"string"}},"required":["state"]}}},"EmailTemplate":{"type":"object","description":"Merged view of a canonical email template and its per-company override (if any).","properties":{"template_key":{"type":"string","example":"application_acknowledgement"},"name":{"type":"string"},"category":{"type":"string","enum":["candidate","hiring_manager","referee","forms"]},"trigger":{"type":"string"},"description":{"type":"string"},"variables":{"type":"array","items":{"type":"string"}},"default_instructions":{"type":"string"},"ai_instructions":{"type":"string","nullable":true,"description":"Per-company override of the default_instructions. null when no override exists."},"enabled":{"type":"boolean","description":"Whether Lovelio should send this template. Defaults to true."},"has_override":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time","nullable":true}}},"WorkflowRules":{"type":"object","description":"Per-company configuration for how Lovelio scores, triages, and follows up on applications.","properties":{"ai_assessment_job_fit_advance":{"type":"integer","minimum":0,"maximum":100,"description":"Job Fit score at or above which a new application receives the AI verdict \"yes\" (UI label: Yes). Default 75. Both the Job Fit and Client Fit advance bars must be cleared for a verdict of yes. The AI never moves state - humans action verdicts from the inbox."},"ai_assessment_job_fit_reject":{"type":"integer","minimum":0,"maximum":100,"description":"Job Fit score at or below which a new application receives the AI verdict \"no\" (default 50). Lovelio does not auto-reject; a human must confirm."},"ai_assessment_hm_fit_advance":{"type":"integer","minimum":0,"maximum":100,"description":"Client Fit score (alignment with the client's DNA; the field name is historical) at or above which a new application receives the AI verdict \"yes\". Default 60. Both the Job Fit and Client Fit advance bars must be cleared for a verdict of yes."},"ai_assessment_hm_fit_reject":{"type":"integer","minimum":0,"maximum":100,"description":"Client Fit score at or below which a new application receives the AI verdict \"no\" (default 50)."},"screen_advance_threshold":{"type":"integer","minimum":0,"maximum":100,"description":"Phone screen score at or above which Lovelio recommends submitting the candidate to the client. Recommendations never move a candidate automatically."},"screen_reject_threshold":{"type":"integer","minimum":0,"maximum":100,"description":"Phone screen score at or below which Lovelio recommends parking the candidate."},"submission_chase_days":{"type":"integer","minimum":1,"maximum":14,"description":"Days of client silence on a submission before the consultant gets a follow-up prompt. Applies only when feedback_requests is \"on\". The follow-up email is always reviewed and sent by a person, never automatically."},"hm_interview_feedback_deadline_hours":{"type":"integer","minimum":1,"maximum":720,"description":"Hours after a scheduled interview before the interviewer gets a feedback nudge. Applies only when feedback_requests is \"on\"."},"referee_details_chase_days":{"type":"integer","minimum":0,"maximum":60},"referee_details_escalate_days":{"type":"integer","minimum":0,"maximum":60},"referee_form_chase_days":{"type":"integer","minimum":1,"maximum":14,"description":"Days between follow-up emails to referees who have not completed their reference. Two follow-ups, then the referee is flagged unresponsive. Applies only when feedback_requests is \"on\"."},"default_expected_reference_count":{"type":"integer","minimum":1,"maximum":5,"description":"Default number of referees requested per candidate. Adjustable per request."},"hot_candidate_job_fit_threshold":{"type":"integer","minimum":50,"maximum":100,"description":"Job-fit score at or above which a candidate qualifies as hot. Combined with company-fit threshold via AND. Default 80."},"hot_candidate_company_fit_threshold":{"type":"integer","minimum":50,"maximum":100,"description":"Company-fit score at or above which a candidate qualifies as hot. Combined with job-fit threshold via AND. Default 80."},"auto_reject_no_enabled":{"type":"boolean","description":"When true (default), applications sitting in the \"no\" stage past auto_reject_no_days surface a rejection prompt on the dashboard. The drafted rejection email is always reviewed and sent by a person, never automatically."},"auto_reject_no_days":{"type":"integer","minimum":1,"maximum":14,"description":"Days an application sits in the \"no\" stage before the rejection prompt appears. Default 3, so a candidate is never rejected the same day they apply."},"feedback_requests":{"type":"string","enum":["off","on"],"description":"Whether Lovelio requests feedback on its own. Default \"off\" for every agency: no client reply prompts, interview feedback nudges, referee details requests or referee follow-ups fire until it is \"on\". The wait fields (submission_chase_days, hm_interview_feedback_deadline_hours, referee_details_chase_days, referee_details_escalate_days, referee_form_chase_days) only apply when it is \"on\"."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"CalendarEvent":{"type":"object","properties":{"id":{"type":"string","example":"cal_550e8400e29b41d4a716446655440000"},"title":{"type":"string","example":"Interview: Alex Morgan"},"notes":{"type":"string","nullable":true},"event_type":{"type":"string","enum":["interview","phone_screen","reminder","deadline","meeting"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time","nullable":true},"all_day":{"type":"boolean"},"application_id":{"type":"string","nullable":true},"job_id":{"type":"string","nullable":true},"candidate_id":{"type":"string","nullable":true},"assigned_to":{"type":"string","nullable":true,"description":"User ID the event is assigned to."},"created_by":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"meeting_url":{"type":"string","nullable":true,"description":"The Google Meet or Microsoft Teams link, once the calendar has made it."},"video_platform":{"type":"string","nullable":true,"enum":["google_meet","microsoft_teams","zoom",null]},"record":{"type":"boolean","nullable":true,"description":"The event's Record switch. Null follows the owner's call settings."}}},"Account":{"type":"object","properties":{"id":{"type":"string","example":"acc_550e8400e29b41d4a716446655440000"},"company_name":{"type":"string","example":"Acme Corp"},"slug":{"type":"string","example":"acme-corp"},"domain":{"type":"string","nullable":true},"logo_url":{"type":"string","nullable":true},"brand_colours":{"type":"array","items":{"type":"string"}},"location":{"type":"string","nullable":true},"tone_of_voice":{"type":"string","nullable":true},"comped":{"type":"boolean","example":false,"description":"The account is comped: not billed, and its AI credits are not metered. Set by Lovelio only."},"seats":{"type":"integer","nullable":true,"description":"Retired on 2026-09-12 with per-seat pricing. Always null. Users are free and uncounted on every band."},"plan_tier":{"type":"string","enum":["premium"],"example":"premium","description":"Legacy field. Lovelio has one plan with everything included, so this always reads premium."},"plan_status":{"type":"string","enum":["trialing","active","past_due","cancelled"],"example":"trialing"},"email_verified":{"type":"boolean"},"status":{"type":"string","example":"active"},"website_url":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"enriched_at":{"type":"string","format":"date-time","nullable":true},"brand_voice_prompt":{"type":"string","nullable":true},"mission":{"type":"string","nullable":true,"description":"Company mission - 1-2 sentences. Auto-extracted from the company website on signup; editable in the dashboard."},"what_we_do":{"type":"string","nullable":true,"description":"What problems the company solves and for whom - 1-2 sentences. Auto-extracted; editable."},"why_join":{"type":"string","nullable":true,"description":"Bullet list of reasons to work at the company. Auto-extracted; editable."},"benefits":{"type":"string","nullable":true,"description":"Bullet list of tangible benefits and perks. Auto-extracted; editable. Job ad generation never invents items not in this block."},"company_values":{"type":"string","nullable":true,"description":"Bullet list of cultural anchors / values that define how the team works."},"role_intelligence":{"type":"object","nullable":true,"description":"Operational role data. Known keys: rolesWePlaceInput (string), rolesWePlace (object mapping specialisation/group name to bullet list of role titles), roleIntelligence (object mapping role title to { salaryRange, keySkills[], seniority[] }), roleTemplates (object mapping role title to JD template text)."},"onboarding_completed_at":{"type":"string","format":"date-time","nullable":true,"description":"Set when the account holder finishes the in-app onboarding wizard. Null means the next dashboard visit will force the wizard."},"onboarding_answers":{"type":"object","description":"Raw answers captured by onboarding, merged and additive. Keys: logoConfirmed (boolean), mailbox_provider (\"microsoft\" or \"google\", which mail system the agency runs on), and the first-screen answers: email_provider, email_provider_inferred (present when Lovelio answered email_provider itself and did not ask, holding why, for example \"signed_in\" for a Google or Microsoft sign-in), ats_today, ats_import, client_websites (string array), patch_step, people_count (older sign-ups only; the size is now chosen with the plan), standard_fee_percent (number; also sets the agency standard fee), finds_new_clients (boolean; true starts a one-time find of companies like the agency's clients, put on the careers watch of the person who answered). A null value is an older skipped answer; no question can be skipped now."},"timezone":{"type":"string","example":"Europe/London","description":"IANA timezone used for company-wide scheduled work like the weekly digest. Defaults to UTC; automatically populated from Brandfetch / Firecrawl / the first admin browser on signup."},"timezone_source":{"type":"string","enum":["default","manual","address","brandfetch","firecrawl","browser"],"description":"How the timezone was set. \"manual\" means an admin or API partner set it explicitly and no automated process will overwrite it."},"is_demo":{"type":"boolean","description":"True for throwaway demo accounts (self-serve walk-in demos and Connect sandboxes). Always false for real customer accounts created via /v1/accounts/signup."}}},"User":{"type":"object","properties":{"id":{"type":"string","example":"usr_550e8400e29b41d4a716446655440000","description":"The one id for this person everywhere in the API: interviewer_ids, hiring_manager_id, owner_id, credits and activities all carry it. A user still on a pending invite has a different id until they accept. Any usr_ id an older response gave you is still accepted."},"account_id":{"type":"string"},"name":{"type":"string","example":"Alex Morgan"},"first_name":{"type":"string","nullable":true,"example":"Alex"},"last_name":{"type":"string","nullable":true,"example":"Morgan"},"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["admin","team_leader","recruiter","resourcer"]},"team_ids":{"type":"array","items":{"type":"string"},"description":"The team the accepted member sits on. Always [] while their invite is pending."},"status":{"type":"string","example":"active"},"slack_user_id":{"type":"string","nullable":true},"whatsapp_number":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"ApiKey":{"type":"object","properties":{"id":{"type":"string","example":"key_550e8400e29b41d4a716446655440000"},"account_id":{"type":"string"},"name":{"type":"string","example":"Production key"},"prefix":{"type":"string","example":"sk_live_abc"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","example":"active"},"key_type":{"type":"string","example":"live"},"last_used_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"Team":{"type":"object","properties":{"id":{"type":"string","example":"tem_550e8400e29b41d4a716446655440000"},"account_id":{"type":"string"},"name":{"type":"string","example":"Engineering"},"parent_team_id":{"type":"string","nullable":true,"description":"Parent team this team nests under in the org chart, or null at top level."},"created_at":{"type":"string","format":"date-time"}}},"TalentPool":{"type":"object","properties":{"id":{"type":"string","example":"pool_550e8400e29b41d4a716446655440000"},"name":{"type":"string","example":"Engineering"},"slug":{"type":"string","example":"engineering"},"eligibility":{"type":"string","nullable":true,"example":"AI engineers in Sydney","description":"Plain-English description of who belongs. When auto_add_enabled is true this is the AI matcher input - judged semantically (related skills, adjacent titles, locations), not by keywords."},"auto_add_enabled":{"type":"boolean","description":"When true, every new candidate is AI-matched against eligibility when their profile lands in the bank (and again on assessment), auto-adding on a match. Pools with a score floor only match assessed candidates."},"min_job_fit":{"type":"integer","nullable":true,"minimum":0,"maximum":100,"description":"Optional AI assessment score floor gating the match."},"min_hm_fit":{"type":"integer","nullable":true,"minimum":0,"maximum":100,"description":"Optional Client Fit score floor gating the match (the field name is historical)."},"description":{"type":"string","nullable":true},"keep_warm_enabled":{"type":"boolean","description":"When true, members get a monthly check-in email asking whether they are still looking (one-click answers: interested, tempted with a note, or not interested). Setting it to true starts the emails for everyone in the pool, including people already in it, once they have been in the pool 7 days. Members who answer not interested are never emailed again."},"cover_color":{"type":"string","nullable":true,"enum":["cyan","green","lime","amber","orange",null],"description":"Chosen cover-tile colour for the dashboard. Null falls back to a colour derived from the pool name."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ScheduledEmail":{"type":"object","properties":{"id":{"type":"string","example":"sem_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string"},"application_id":{"type":"string","nullable":true},"job_id":{"type":"string","nullable":true},"thread_id":{"type":"string","nullable":true},"email_message_id":{"type":"string","nullable":true},"created_by":{"type":"string","nullable":true},"to_address":{"type":"string"},"cc_addresses":{"type":"array","items":{"type":"string"}},"bcc_addresses":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"body_html":{"type":"string","nullable":true},"body_text":{"type":"string","nullable":true},"status":{"type":"string","enum":["draft","scheduled","sending","sent","cancelled","failed"]},"scheduled_at":{"type":"string","format":"date-time"},"sent_at":{"type":"string","format":"date-time","nullable":true},"cancelled_at":{"type":"string","format":"date-time","nullable":true},"last_error":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string","example":"dlv_550e8400e29b41d4a716446655440000"},"webhook_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","example":"delivered"},"attempts":{"type":"integer"},"last_response_code":{"type":"integer","nullable":true},"last_error":{"type":"string","nullable":true},"next_retry_at":{"type":"string","format":"date-time","nullable":true},"payload":{"type":"object"},"created_at":{"type":"string","format":"date-time"}}}},"parameters":{"limit":{"name":"limit","in":"query","description":"Rows per page. Clamped to the 1-100 range rather than rejected, so asking for 500 returns 100 - read meta.has_more and page with the cursor. Unparseable values fall back to 25.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},"after":{"name":"after","in":"query","schema":{"type":"string"},"description":"meta.next_cursor from the previous page, passed unchanged. Leave it out for the first page. A value Lovelio did not issue is a 422 VALIDATION_ERROR, never page 1 again."},"createdAfter":{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored."},"createdBefore":{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored."},"idempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"},"description":"Unique key for one logical mutation, scoped to the account. Completed results expire after 24 hours; uncertain executions retain their safety reservation until reconciled. The key is claimed before side effects. Identical completed retries replay the saved response. Concurrent retries return 409 IDEMPOTENCY_IN_PROGRESS. Changed JSON, form fields, record ids, filenames, content types, or file bytes return 409 IDEMPOTENCY_KEY_REUSED. Random multipart boundaries do not affect matching."}},"headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when window resets"},"X-Idempotency-Operation-ID":{"schema":{"type":"string","format":"uuid"},"description":"Durable operation identity for replay or reconciliation."}}},"paths":{"/evidence/evaluations":{"post":{"summary":"Check candidate evidence","operationId":"evaluateCandidateEvidence","tags":["Candidate Evidence"],"description":"Check original evidence against requirements using the same search core as Lovelio. Group membership is snapshotted. Work continues after disconnection. Read result_url until complete and follow next_cursor for every candidate. Supported, contradicted, not established and uncertain are distinct; missing or failed processing never means a candidate failed a requirement. Does not rank, reject or move candidates. A job scope additionally requires jobs:read; a pool scope requires talent_pools:read. Cache reuse validates original source hashes. Only original CVs and structured candidate records are checked; email, notes and calls are not checked.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scope"],"additionalProperties":false,"properties":{"scope":{"description":"The candidate group to snapshot. Explicit IDs accept up to 1,000; group selectors enumerate their complete membership. Search uses the shared facet state, not only its displayed page.","oneOf":[{"type":"object","required":["type","candidate_ids"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["selection"]},"candidate_ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string"}}}},{"type":"object","required":["type","pool_id"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["talent_pool"]},"pool_id":{"type":"string"}}},{"type":"object","required":["type","job_id"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["job_applicants"]},"job_id":{"type":"string"}}},{"type":"object","required":["type","batch_id"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["import_batch"]},"batch_id":{"type":"string"}}},{"type":"object","required":["type","state"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["search"]},"state":{"type":"object","required":["facets"],"properties":{"facets":{"type":"array","items":{"type":"object","additionalProperties":true}},"intent":{"type":"string"},"boosts":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}},{"type":"object","required":["type"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["all"]}}}]},"checks":{"type":"array","maxItems":12,"items":{"type":"object","required":["id","term"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":100},"term":{"type":"string","minLength":2,"maxLength":500},"label":{"type":"string","maxLength":150},"strength":{"type":"string","enum":["must","nice","exclude"]}}},"description":"Explicit ad hoc checks. Supply checks or job_id. Full compiled job requirements are never truncated to this limit."},"job_id":{"type":"string","description":"Compile every structured requirement for this job through the shared search core."},"source_policy":{"type":"string","enum":["original_cv"],"default":"original_cv"}}}}}},"responses":{"200":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"evaluation_id":{"type":"string"},"pack_id":{"type":"string"},"task_id":{"type":["string","null"]},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"]},"reused":{"type":"boolean"},"result_url":{"type":"string"},"ui_url":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"202":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"evaluation_id":{"type":"string"},"pack_id":{"type":"string"},"task_id":{"type":["string","null"]},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"]},"reused":{"type":"boolean"},"result_url":{"type":"string"},"ui_url":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Invalid group or checks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/evidence/evaluations/{id}":{"get":{"summary":"Read an evidence review","operationId":"getEvidenceEvaluation","tags":["Candidate Evidence"],"description":"Check original evidence against requirements using the same search core as Lovelio. Group membership is snapshotted. Work continues after disconnection. Read result_url until complete and follow next_cursor for every candidate. Supported, contradicted, not established and uncertain are distinct; missing or failed processing never means a candidate failed a requirement. Does not rank, reject or move candidates. A job scope additionally requires jobs:read; a pool scope requires talent_pools:read. Cache reuse validates original source hashes. Only original CVs and structured candidate records are checked; email, notes and calls are not checked.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EvidenceEvaluation"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review not found or no longer accessible.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate access limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]}},"/evidence/packs":{"post":{"summary":"Prepare a compact evidence pack","operationId":"prepareEvidencePack","tags":["Candidate Evidence"],"description":"Check original evidence against requirements using the same search core as Lovelio. Group membership is snapshotted. Work continues after disconnection. Read result_url until complete and follow next_cursor for every candidate. Supported, contradicted, not established and uncertain are distinct; missing or failed processing never means a candidate failed a requirement. Does not rank, reject or move candidates. A job scope additionally requires jobs:read; a pool scope requires talent_pools:read. Cache reuse validates original source hashes. Only original CVs and structured candidate records are checked; email, notes and calls are not checked. Packs preserve every requirement and conflicting quote within each candidate page. Purpose labels the downstream workflow. No submission or email is sent.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scope","purpose"],"additionalProperties":false,"properties":{"scope":{"description":"The candidate group to snapshot. Explicit IDs accept up to 1,000; group selectors enumerate their complete membership. Search uses the shared facet state, not only its displayed page.","oneOf":[{"type":"object","required":["type","candidate_ids"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["selection"]},"candidate_ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string"}}}},{"type":"object","required":["type","pool_id"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["talent_pool"]},"pool_id":{"type":"string"}}},{"type":"object","required":["type","job_id"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["job_applicants"]},"job_id":{"type":"string"}}},{"type":"object","required":["type","batch_id"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["import_batch"]},"batch_id":{"type":"string"}}},{"type":"object","required":["type","state"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["search"]},"state":{"type":"object","required":["facets"],"properties":{"facets":{"type":"array","items":{"type":"object","additionalProperties":true}},"intent":{"type":"string"},"boosts":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}},{"type":"object","required":["type"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["all"]}}}]},"checks":{"type":"array","maxItems":12,"items":{"type":"object","required":["id","term"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":100},"term":{"type":"string","minLength":2,"maxLength":500},"label":{"type":"string","maxLength":150},"strength":{"type":"string","enum":["must","nice","exclude"]}}},"description":"Explicit ad hoc checks. Supply checks or job_id. Full compiled job requirements are never truncated to this limit."},"job_id":{"type":"string","description":"Compile every structured requirement for this job through the shared search core."},"source_policy":{"type":"string","enum":["original_cv"],"default":"original_cv"},"purpose":{"type":"string","enum":["submission","interview_preparation","job_comparison"]}}}}}},"responses":{"200":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"evaluation_id":{"type":"string"},"pack_id":{"type":"string"},"task_id":{"type":["string","null"]},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"]},"reused":{"type":"boolean"},"result_url":{"type":"string"},"ui_url":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"202":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"evaluation_id":{"type":"string"},"pack_id":{"type":"string"},"task_id":{"type":["string","null"]},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"]},"reused":{"type":"boolean"},"result_url":{"type":"string"},"ui_url":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/evidence/packs/{id}":{"get":{"summary":"Read an evidence pack","operationId":"getEvidencePack","tags":["Candidate Evidence"],"description":"Check original evidence against requirements using the same search core as Lovelio. Group membership is snapshotted. Work continues after disconnection. Read result_url until complete and follow next_cursor for every candidate. Supported, contradicted, not established and uncertain are distinct; missing or failed processing never means a candidate failed a requirement. Does not rank, reject or move candidates. A job scope additionally requires jobs:read; a pool scope requires talent_pools:read. Cache reuse validates original source hashes. Only original CVs and structured candidate records are checked; email, notes and calls are not checked.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EvidencePack"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Pack not found or no longer accessible.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate access limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]}},"/commands/resolve":{"post":{"summary":"Resolve an everyday command","operationId":"resolveCommand","tags":["Commands"],"description":"Resolve common navigation, record opening and process launch requests without a chat generation. Returns a destination, process link, disambiguation choices, or a chat fallback. Does not control the caller browser or persist a business action. My needs an authenticated acting user. Resource lookups require their respective read scopes; inaccessible records are never returned.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"additionalProperties":false,"properties":{"message":{"type":"string","minLength":1,"maxLength":500},"context":{"type":"object","additionalProperties":false,"properties":{"application_id":{"type":"string","description":"Current application typed ID, checked against live access."},"record_type":{"type":"string","enum":["candidate","client_contact"]},"record_id":{"type":"string","description":"Current candidate or client contact typed ID."}}}}}}}},"responses":{"200":{"description":"Permission-checked result. Candidate rows count against the agent access allowance.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"kind":{"type":"string","enum":["navigate","process","clarify","chat","blocked"]},"path":{"type":"string"},"href":{"type":["string","null"],"description":"Native Lovelio URL that opens the existing process form. No business action has run."},"process":{"type":"string"},"application_id":{"type":"string"},"target":{"type":"object","properties":{"record_type":{"type":"string"},"record_id":{"type":"string"},"record_name":{"type":"string"},"client_id":{"type":"string"}}},"label":{"type":"string"},"message":{"type":"string"},"prompt":{"type":"string"},"options":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":[]}],"x-required-scopes":[]}},"/health":{"get":{"summary":"Health check","operationId":"getHealth","tags":["System"],"security":[],"description":"Live health of this region, built for an external uptime monitor polling once a minute. Runs three probes in parallel, each cut off at 4 seconds (a failed database read is tried once more before it counts): one read on the tenant database (tenant_db), one read on the shared platform database (platform_db), and the age of the last hourly Inngest sync (inngest_sync). 200 when agencies can use the region; 503 when the tenant or platform database fails a read, with the failing database named in plain words in error.message. inngest_sync (\"ok\", \"failed\", \"stale\" after three hours, or \"unknown\" when no sync is recorded yet) is reported for a person reading the body and never fails the check. Never cached. Call this on a regional host (us, eu or anz.lovelio.ai); the website host answers with a JSON error naming the regional base URLs.","responses":{"200":{"description":"Both databases answered. data: { status: \"operational\", version, timestamp, checks: { tenant_db, platform_db, inngest_sync } }, each check { status: \"ok\" | \"failed\" | \"stale\" | \"unknown\", detail, duration_ms }; only inngest_sync can be other than ok on a 200.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true},"data":{"type":"object","properties":{"status":{"type":"string","example":"operational"},"version":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"checks":{"type":"object","properties":{"tenant_db":{"$ref":"#/components/schemas/HealthCheck"},"platform_db":{"$ref":"#/components/schemas/HealthCheck"},"inngest_sync":{"$ref":"#/components/schemas/HealthCheck"}}}}}}}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"503":{"description":"The tenant or platform database failed a read. Same data shape with status \"degraded\"; error.code is UNHEALTHY and error.message names the failing probe in plain words.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"data":{"type":"object","properties":{"status":{"type":"string","example":"degraded"},"checks":{"type":"object"}}},"error":{"type":"object","properties":{"code":{"type":"string","example":"UNHEALTHY"},"message":{"type":"string","example":"tenant_db: Tenant database refused a read: connection refused"}}}}}}}}}},"post":{"summary":"Health check (POST)","operationId":"postHealth","tags":["System"],"security":[],"description":"Same as GET. POST is accepted so this endpoint can be used as a webhook test target.","responses":{"200":{"description":"Both databases answered."},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"503":{"description":"A database failed a read. See GET /health.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/accounts/signup":{"post":{"summary":"Create account","operationId":"createAccount","tags":["Accounts"],"security":[],"description":"Public, unauthenticated signup. Takes a work email: a personal address (Gmail, Outlook.com and the like) or a throwaway inbox (Yopmail and its domains) is refused with 422. The email domain becomes the agency's website and the domain every teammate's login is held to. The agency name is company_name when given, otherwise a guess from the email domain. Call it once, on the one regional host that suits the agency; never try several hosts, because each region is a separate database. Returns 202 with a trial API key (key_type \"trial\", admin scopes, 14-day expiry). The 14-day free trial starts at once with no card; trial_ends_at says when it ends, and an admin chooses a plan at card_url any time. One free trial per work email domain: a domain that has already had one gets trial_ends_at null and every call with the key answers 402 PREMIUM_REQUIRED until a plan is chosen. Writes also stay blocked with 403 EMAIL_NOT_VERIFIED until the customer clicks the verification email. The trial_api_key is shown exactly once. Enrichment (branding, logo, timezone) starts with the trial, and an account.enriched webhook fires when it completes; enrichment_task_id is always null. IP rate limit: 3 signups/hour, 5/day.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"A work email address. Personal addresses are refused."},"company_name":{"type":"string","description":"The agency name, up to 120 characters. Optional."},"source":{"type":"string","description":"Where the signup came from (e.g. \"claude-agent\"). Defaults to \"api\"."}}}}}},"responses":{"202":{"description":"Account created (or, for an existing unverified account with the same email, re-acknowledged WITHOUT a new key - duplicate signups are a no-op). When the email already has an account in ANOTHER region, nothing is created and data is { account_id, status: \"exists_in_other_region\", region, api_base_url, message }: call that host instead. A new account also returns region and api_base_url, the host its key works on. data: { account_id, status: \"pending_verification\", trial_api_key (new accounts only, shown once), email_verified: false, message, trial_ends_at, card_url, enrichment_task_id (always null) }.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"account_id":{"type":"string"},"status":{"type":"string","example":"pending_verification"},"trial_api_key":{"type":"string","description":"sk_trial_ key, 14-day expiry. Shown only once; an account admin can mint replacements via POST /accounts/{id}/api-keys."},"email_verified":{"type":"boolean"},"message":{"type":"string"},"trial_ends_at":{"type":"string","format":"date-time","nullable":true,"description":"When the 14-day free trial ends. Null when this email domain has already had its free trial: the key answers 402 until a plan is chosen."},"trial_status":{"type":"string","enum":["active","domain_already_used"],"description":"active: the free trial is running. domain_already_used: no free days, the key answers 402 until a plan is chosen at card_url."},"card_url":{"type":"string","description":"Where an admin signs in and chooses a plan, during the trial or after it."},"enrichment_task_id":{"type":"string","nullable":true,"description":"Always null: enrichment starts with the trial and fires account.enriched."}}}}}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Another account already claims this email, or (for a work email) its domain (error.code CONFLICT).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Missing or invalid email, or a throwaway inbox such as Yopmail (error.field email).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (3/hour, 5/day per IP). Retry-After header set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}}}}},"/accounts/verify-email":{"post":{"summary":"Verify account email","operationId":"verifyAccountEmail","tags":["Accounts"],"security":[],"description":"Completes signup by redeeming the token from the verification email. No authentication required - the token is the credential. Tokens are single-use and expire; a used or expired token returns 409 / 422.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Verification token from the email link."}}}}}},"responses":{"200":{"description":"Email verified, account active","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"account_id":{"type":"string"},"email_verified":{"type":"boolean"},"status":{"type":"string","example":"active"}}}}}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Token already used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Token missing, invalid, or expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/accounts/me":{"get":{"summary":"Get current account","operationId":"getMyAccount","tags":["Accounts"],"responses":{"200":{"description":"Account details","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"company_name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string","nullable":true},"logo_url":{"type":"string","nullable":true},"brand_colours":{"type":"array","items":{"type":"string"}},"brand_voice_prompt":{"type":"string","nullable":true},"mission":{"type":"string","nullable":true},"what_we_do":{"type":"string","nullable":true},"why_join":{"type":"string","nullable":true},"benefits":{"type":"string","nullable":true},"company_values":{"type":"string","nullable":true},"role_intelligence":{"type":"object","nullable":true,"description":"Operational role data. Keys: rolesWePlaceInput, rolesWePlace, roleIntelligence, roleTemplates."},"onboarding_completed_at":{"type":"string","format":"date-time","nullable":true,"description":"Set when the account holder finishes the in-app onboarding wizard (or programmatically via PATCH). Null means the next dashboard visit will force the wizard."},"onboarding_answers":{"type":"object","description":"Raw answers captured by onboarding, merged and additive. Keys: logoConfirmed (boolean), mailbox_provider (\"microsoft\" or \"google\", which mail system the agency runs on), and the first-screen answers: email_provider, email_provider_inferred (present when Lovelio answered email_provider itself and did not ask, holding why, for example \"signed_in\" for a Google or Microsoft sign-in), ats_today, ats_import, client_websites (string array), patch_step, people_count (older sign-ups only; the size is now chosen with the plan), standard_fee_percent (number; also sets the agency standard fee), finds_new_clients (boolean; true starts a one-time find of companies like the agency's clients, put on the careers watch of the person who answered). A null value is an older skipped answer; no question can be skipped now."},"timezone":{"type":"string","example":"Europe/London","description":"IANA timezone used for company-wide scheduled work."},"timezone_source":{"type":"string","enum":["default","manual","address","brandfetch","firecrawl","browser"]},"comped":{"type":"boolean","description":"Not billed, and AI credits are not metered."},"seats":{"type":"integer","nullable":true,"description":"Retired on 2026-09-12. Always null."},"plan_tier":{"type":"string","enum":["premium"],"description":"Legacy field. Lovelio has one plan; always premium."},"plan_status":{"type":"string","enum":["trialing","active","past_due","cancelled"]},"email_verified":{"type":"boolean"},"status":{"type":"string"},"website_url":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"enriched_at":{"type":"string","format":"date-time","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]}},"/accounts/{id}":{"get":{"summary":"Get account","operationId":"getAccount","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Account details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Account"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]},"patch":{"summary":"Update account","operationId":"updateAccount","tags":["Accounts"],"description":"Update mutable fields on the account. Partners can also mark onboarding as complete to bypass the in-app wizard.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"company_name":{"type":"string"},"tone_of_voice":{"type":"string","nullable":true},"logo_url":{"type":"string","nullable":true},"website_url":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"onboarding_completed_at":{"description":"Pass true to mark onboarding complete (server sets NOW()), false/null to clear it, or an ISO 8601 timestamp to set it exactly.","oneOf":[{"type":"boolean"},{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string","example":"America/New_York","description":"IANA timezone (e.g. \"Europe/London\"). Setting this marks timezone_source as \"manual\" so automated enrichment will not overwrite it."}}}}}},"responses":{"200":{"description":"Updated account","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Account"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/jobs":{"get":{"summary":"List jobs","operationId":"listJobs","tags":["Jobs"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","active","on_hold","closed","filled"]}},{"name":"client_id","in":"query","description":"Filter to jobs for one client (cli_ id).","schema":{"type":"string"}},{"name":"team_id","in":"query","schema":{"type":"string"}},{"name":"title","in":"query","description":"Case-insensitive substring match on the job title.","schema":{"type":"string"}},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/createdBefore"}],"responses":{"200":{"description":"Paginated list of jobs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Job"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"post":{"summary":"Create job (async)","operationId":"createJob","tags":["Jobs"],"description":"Creates a job and triggers AI enrichment (description, criteria, interview questions). Returns 202 with a task ID to poll.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["title","client_id"],"properties":{"title":{"type":"string"},"mode":{"type":"string","enum":["draft","active"],"description":"Decides the job ad only; the job itself is always active. draft: the ad stays Draft and nothing is public until it is published. active (default): the ad publishes to the careers page."},"source":{"type":"string","description":"Provenance label stored on the create task. Defaults to \"api\"."},"source_context":{"type":"string","nullable":true,"description":"Free-text context stored alongside source."},"compensation_research":{"type":"boolean","default":false,"description":"When true, the create task also runs compensation research for the role."},"client_id":{"type":"string","description":"Required. The client this job is for (cli_ id). Every job belongs to a client - for the agency's own internal hiring, pass the agency self-client id. Omitting it returns 422."},"client_contact_id":{"type":"string","description":"Contact at the client (cct_ id). Must belong to client_id."},"employment_type":{"type":"string","enum":["full_time","part_time","contract"],"description":"Basis of the role. Omit to leave unset. Any other value returns 422."},"contract":{"$ref":"#/components/schemas/JobContractInput"},"compensation":{"type":"object","description":"Salary band for the role, plus what sits on top of base. package_total is derived and never sent.","properties":{"base_min":{"type":"number","nullable":true,"minimum":0,"description":"Must not exceed base_max."},"base_max":{"type":"number","nullable":true,"minimum":0,"description":"Must be at least base_min."},"super_percent":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set."},"super_amount":{"type":"number","nullable":true,"minimum":0,"description":"Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent."},"ote_amount":{"type":"number","nullable":true,"minimum":0,"description":"On-target earnings, INCLUDING base. The package takes the larger of OTE and base."},"bonus_amount":{"type":"number","nullable":true,"minimum":0,"description":"Bonus on top of base."},"currency":{"type":"string","description":"ISO 4217 code. When omitted it is derived, in order, from the country in `location`, the client company's own location, then the acting user's personal currency preference, then the instance default (ANZ: AUD, US: USD, EU: GBP). Signup IP country and placement fee terms do not set job salary currency."},"period":{"type":"string","enum":["year","day","hour"],"description":"How base_min/base_max are quoted. Omit and the work type decides: employment_type contract gives hour, anything else year. Day rates are never inferred - send day to get one."}}},"success_in_90_days":{"type":"string","nullable":true,"description":"What great looks like 90 days in. Feeds AI enrichment of the job criteria."},"location":{"type":"object","description":"Structured location. `type` is one of `on_site`, `hybrid`, `remote`. For remote roles, city/country/country_code optionally define where candidates must be based.","properties":{"type":{"type":"string","enum":["on_site","hybrid","remote"]},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2"}}},"team_id":{"type":"string"},"hiring_manager_id":{"type":"string"},"default_interview_format":{"type":"string","enum":["video","phone","in_person","technical"],"default":"video","description":"Default interview format used when auto-booking interviews on stage transition."},"is_evergreen":{"type":"boolean","default":false,"description":"Create as an always-open pipeline job, excluded from performance metrics."}}}}}},"responses":{"202":{"description":"Job creation queued. Returns a Task: `resource_id` is the created job's id (job_), `task_id` is the create_job task - poll `poll_url` for enrichment progress.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Task"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/jobs/from-description":{"post":{"summary":"Draft a job from a natural-language description (streaming)","operationId":"draftJobFromDescription","tags":["Jobs"],"description":"Takes a sentence or two describing a role (\"senior backend engineer in London, 120k, lead the payments rewrite\") and streams a structured JobDraft back via Server-Sent Events. Pass client_id to write the draft in that client's voice, grounded in the client profile and Client DNA; the client is never named or otherwise identified in the copy (agencies keep their client list confidential). The output is funnelled through the shared anti-AI-tics post-processor so the copy does not read like generic AI output. The response Content-Type is text/event-stream; each event is `data: <json>\\n\\n` where <json> is one of `{type:\"meta\",review_token,draft_id}`, `{type:\"field_start\",field}`, `{type:\"token\",field,text}`, `{type:\"field_end\",field,value}`, `{type:\"complete\",draft,review_token,lint:{offenders}}`, or `{type:\"error\",message}`. The stream terminates with `data: [DONE]\\n\\n`. This endpoint stages a draft only - call POST /jobs/from-description/{review_token}/confirm to promote it to a real job (which enqueues the same asynchronous create_job task as POST /jobs).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["description"],"properties":{"description":{"type":"string","minLength":10,"maxLength":4000,"description":"Natural-language description of the role.","example":"Senior backend engineer in London, £120k-£140k, leading our payments rewrite."},"autopublish":{"type":"boolean","default":false,"description":"If true, confirming the draft publishes the job ad to the careers page immediately. Defaults to false: the job ad is still generated, but stays in Draft status until published."},"source":{"type":"string","enum":["dashboard","slack","mcp","api"],"default":"api","description":"Caller self-identification for attribution. Does not affect behaviour."},"client_id":{"type":"string","description":"The client this job is for (cli_ id). The draft is written in the client's voice using the client profile and Client DNA, and the client is stored on the draft so /confirm does not need to pass it again. The client is never named in the generated copy. Every job needs a client by confirm time - supply it here (recommended) or via PATCH before confirming."}}}}}},"responses":{"200":{"description":"SSE stream of DraftEvent messages. The final `complete` event carries the full draft and a review_token to pass to /confirm.","content":{"text/event-stream":{"schema":{"type":"string","description":"Server-Sent Events. See operation description for the DraftEvent shape.","example":"data: {\"type\":\"meta\",\"review_token\":\"jdr_ABC...\",\"draft_id\":\"...\"}\n\ndata: {\"type\":\"field_start\",\"field\":\"title\"}\n\ndata: {\"type\":\"token\",\"field\":\"title\",\"text\":\"Senior\"}\n\n...\n\ndata: [DONE]\n\n"}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Missing or invalid description, or client_id does not match a client in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/from-description/{review_token}/confirm":{"post":{"summary":"Confirm a staged draft and create the job (async)","operationId":"confirmJobDraft","tags":["Jobs"],"description":"Promotes a draft staged by POST /jobs/from-description into a real job. Enqueues the same create_job task runner that POST /jobs uses, so assessment criteria, interview questions, and job ad generation happen asynchronously. Returns 202 Accepted with a task_id to poll. The caller may override the draft (for example after editing fields in a dashboard or Slack modal) by passing `draft` in the body; omit to use the streamed draft verbatim. Every job belongs to a client: supply client_id when staging the draft (POST /jobs/from-description) or via PATCH /jobs/from-description/{review_token} before confirming.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"},"description":"The review_token emitted in the `meta` and `complete` SSE events from the draft endpoint."},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"draft":{"type":"object","description":"Optional edited draft to persist instead of the one originally streamed.","properties":{"title":{"type":"string"},"summary":{"type":"string"},"responsibilities":{"type":"array","items":{"type":"string"}},"requirements":{"type":"array","items":{"type":"string"}},"nice_to_haves":{"type":"array","items":{"type":"string"}},"benefits":{"type":"array","items":{"type":"string"},"description":"Candidate-facing benefits (medical, leave, perks). Drawn only from the recruiter's description or the client's profile - never the agency's own benefits."},"location":{"type":"string","nullable":true,"description":"Denormalised display string (\"Sydney, Australia\" or \"Remote\"). Structured siblings on the draft object are location_type, location_city, location_country, location_country_code."},"location_type":{"type":"string","enum":["In Office","Hybrid","Remote"],"nullable":true},"location_city":{"type":"string","nullable":true},"location_country":{"type":"string","nullable":true},"location_country_code":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2"},"compensation":{"type":"object","nullable":true,"properties":{"base_min":{"type":"number","nullable":true},"base_max":{"type":"number","nullable":true},"currency":{"type":"string"},"period":{"type":"string","enum":["Per Year","Per Day","Per Hour"],"description":"How the figures are quoted on the draft. Omitted means the work type decides at confirm."}}},"employment_type":{"type":"string","enum":["full_time","part_time","contract"],"nullable":true},"contract":{"type":"object","nullable":true,"description":"Contract terms read from the description, as stored on the job at confirm: start_date, duration_value, duration_unit (weeks or months), openings, charge_rate_min, charge_rate_max, engagement_type. Only the terms found are present.","additionalProperties":true}}},"mode":{"type":"string","enum":["draft","active"],"description":"Whether the job ad publishes. Defaults to the autopublish flag provided at draft time. The job is active either way. Both modes generate a job ad; active publishes it to the careers page, draft leaves the ad in Draft status."},"team_id":{"type":"string","description":"Optional team ID to attach (tem_...)."},"hiring_manager_id":{"type":"string","description":"Optional hiring manager user ID (usr_...)."}}}}}},"responses":{"202":{"description":"Job creation queued. task_id returned in data.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Task"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps - the client is missing (the only mandatory field since 4.1.0; team, location, compensation, and employment type are optional and editable on the created job). Standard error envelope: success false, error `{ code: \"draft_has_gaps\", message }`, and data `{ code, gaps: string[], review_token }` for machines. Set client_id via PATCH /jobs/from-description/{review_token} (updates.client_id), or pass client_id in this confirm body, and retry. There is no `force` bypass. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/from-description/{review_token}":{"get":{"summary":"Get the current state of a staged job draft","operationId":"getJobDraft","tags":["Jobs"],"description":"Poll the streaming job draft while the describe-a-job task is running, or after it completes to inspect the final draft and any remaining gaps. Returns the draft fields produced so far, structured selections (team_id / hiring_manager_id), skipped gaps, a suggested team, the lint offenders list, and the task_status (`queued` | `processing` | `completed` | `failed`). Consumers typically poll until `task_status === \"completed\"` and `gaps` is empty before calling confirm.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object","nullable":true},"structured":{"type":"object"},"skipped_gaps":{"type":"array","items":{"type":"string"}},"suggested_team_id":{"type":"string","nullable":true},"gaps":{"type":"array","items":{"type":"string","enum":["client_id","title","team_id","hiring_manager_id","location","compensation","employment_type"]},"description":"client_id is the only gap confirm refuses on."},"task_status":{"type":"string"},"lint":{"type":"object","properties":{"offenders":{"type":"array","items":{"type":"string"}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Draft not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"patch":{"summary":"Update a staged job draft (fill gaps)","operationId":"updateJobDraft","tags":["Jobs"],"description":"Fill one or more gaps on an in-progress draft. Every update triggers an AI summary rewrite so the draft reads coherently as structured fields are added. Pass only the fields you want to change in `updates`. Use `skip` to mark gaps as deliberately blank (the confirm endpoint only refuses while client_id is unfilled - it cannot be skipped).","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"object","properties":{"title":{"type":"string"},"client_id":{"type":"string","description":"Client (cli_ id) the job is for - the one mandatory gap. Must belong to the account."},"client_name":{"type":"string","description":"Optional display name override for the client."},"team_id":{"type":"string"},"team_name":{"type":"string"},"hiring_manager_id":{"type":"string"},"hiring_manager_name":{"type":"string"},"location":{"type":"object","properties":{"display":{"type":"string"},"type":{"type":"string","enum":["on_site","hybrid","remote"]},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true}}},"compensation":{"type":"object","properties":{"base_min":{"type":"number","nullable":true,"minimum":0,"description":"Must not exceed base_max."},"base_max":{"type":"number","nullable":true,"minimum":0,"description":"Must be at least base_min."},"currency":{"type":"string"},"period":{"type":"string","enum":["Per Year","Per Day","Per Hour"],"description":"How the figures are quoted. Omit and the work type decides when the draft is confirmed."}}},"employment_type":{"type":"string","enum":["full_time","part_time","contract"]},"contract":{"$ref":"#/components/schemas/JobContractInput"}}},"skip":{"type":"array","items":{"type":"string"},"description":"Gap fields to mark as skipped."}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/from-description/{review_token}/revise":{"post":{"summary":"Apply a free-text revision to a staged draft","operationId":"reviseJobDraft","tags":["Jobs"],"description":"Apply a natural-language instruction (\"make it punchier\", \"move to Sydney and bump salary to AUD 180k\") to a staged draft. Applies the company brand voice + anti-AI-tics guardrails. Resolves team / hiring manager names against the company's lists so structured fields update alongside the prose.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string","description":"The change the user wants, in their own words."}}}}}},"responses":{"200":{"description":"Updated draft","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object"},"structured":{"type":"object"},"gaps":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Invalid instruction or draft in a non-revisable state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}/ad":{"get":{"summary":"Get the latest job ad","operationId":"getJobAd","tags":["Jobs"],"description":"Fetch the most recent published job ad for a job. Every job created via the describe-a-job flow gets an auto-generated ad on the careers page; this endpoint reads it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Job ad","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"job_id":{"type":"string"},"title":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"status":{"type":"string"},"published":{"type":"boolean"},"published_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No ad exists for this job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"patch":{"summary":"Update a job ad","operationId":"updateJobAd","tags":["Jobs"],"description":"Edit a job ad's title, description, or published state. Accepts any subset of the three fields.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"published":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated ad","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No ad exists for this job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}/ad/rewrite":{"post":{"summary":"AI-rewrite a job ad","operationId":"rewriteJobAd","tags":["Jobs"],"description":"Apply a natural-language instruction to rewrite an existing ad. Applies the company brand voice + anti-AI-tics guardrails. Returns the new ad body; the DB is updated in place.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string"}}}}}},"responses":{"200":{"description":"Rewritten ad","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"job_ad_id":{"type":"string"},"description":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No ad exists for this job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}/social-draft":{"get":{"summary":"Get a job's LinkedIn + X post drafts","operationId":"getSocialDraft","tags":["Jobs"],"description":"Fetch the auto-generated LinkedIn and X (Twitter) social post drafts for a job, plus the OG image URL used for unfurl previews.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Social draft","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"job_id":{"type":"string"},"linkedin":{"type":"string","nullable":true},"twitter":{"type":"string","nullable":true},"og_image_url":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"patch":{"summary":"Update a job's social post text","operationId":"updateSocialDraft","tags":["Jobs"],"description":"Edit the LinkedIn and/or X post text. og_image_url is preserved automatically.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"linkedin":{"type":"string"},"twitter":{"type":"string"}}}}}},"responses":{"200":{"description":"Updated social draft","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}":{"get":{"summary":"Get job","operationId":"getJob","tags":["Jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Job details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Job"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"patch":{"summary":"Update job","operationId":"updateJob","tags":["Jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"string","enum":["active","on_hold","closed","filled"]},"location":{"type":"object","description":"Structured location. `type` is one of `on_site`, `hybrid`, `remote`. For remote roles, city/country/country_code optionally define where candidates must be based.","properties":{"type":{"type":"string","enum":["on_site","hybrid","remote"]},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2"}}},"employment_type":{"type":"string","enum":["full_time","part_time","contract"]},"contract":{"$ref":"#/components/schemas/JobContractInput"},"compensation":{"type":"object","properties":{"base_min":{"type":"number","minimum":0,"description":"Must not exceed base_max."},"base_max":{"type":"number","minimum":0,"description":"Must be at least base_min."},"super_percent":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set."},"super_amount":{"type":"number","nullable":true,"minimum":0,"description":"Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent."},"ote_amount":{"type":"number","nullable":true,"minimum":0,"description":"On-target earnings, INCLUDING base. The package takes the larger of OTE and base."},"bonus_amount":{"type":"number","nullable":true,"minimum":0,"description":"Bonus on top of base."},"currency":{"type":"string"},"period":{"type":"string","enum":["year","day","hour"],"description":"How base_min/base_max are quoted. Only ever changed when sent - changing employment_type never re-labels figures already on the job."}}},"client_id":{"type":"string","nullable":true,"description":"The client this job is for (cli_ id). Setting or clearing it also clears client_contact_id unless a matching contact is sent in the same request."},"client_contact_id":{"type":"string","nullable":true,"description":"Contact at the client (cct_ id). Must belong to the job's client."},"team_id":{"type":"string","nullable":true},"hiring_manager_id":{"type":"string","nullable":true},"default_interview_format":{"type":"string","enum":["video","phone","in_person","technical"],"description":"Default interview format used when auto-booking interviews on stage transition."},"is_evergreen":{"type":"boolean","description":"Mark or unmark the job as an always-open pipeline job (excluded from performance metrics)."}}}}}},"responses":{"200":{"description":"Updated job","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Job"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]},"delete":{"summary":"Delete job","operationId":"deleteJob","tags":["Jobs"],"description":"Soft deletes a job that has no job ads or applications yet. The record is hidden from all queries but not permanently removed. A job with live ads or applications is never deleted: the call returns 409 and the message says to close the job instead (POST /jobs/{id}/close), which takes its ads offline. Only an owner of the job or an admin can delete it; anyone else gets 403. Requires jobs:write scope.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The acting user is neither an owner of the job nor an admin (error.code PERMISSION_DENIED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The job has job ads or applications and cannot be deleted (error.code CONFLICT). Close it with POST /jobs/{id}/close instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}/close":{"post":{"summary":"Close or pause job","operationId":"closeJob","tags":["Jobs"],"description":"Records the close reason for Recruiter DNA, takes every live job ad and board posting offline, and starts the silver-medalist sweep for terminal closes. on_hold and budget_frozen pause the job and do not run the sweep.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["filled","closed","cancelled","on_hold","budget_frozen"],"default":"cancelled"}}}}}},"responses":{"200":{"description":"Job closed or paused","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string","description":"job_ id."},"status":{"type":"string","enum":["filled","closed","on_hold"]},"reason":{"type":"string","enum":["filled","closed","cancelled","on_hold","budget_frozen"]},"closed_at":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}/reopen":{"post":{"summary":"Reopen job","operationId":"reopenJob","tags":["Jobs"],"description":"Reopen a closed or filled job. Sets status to active. Requires jobs:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"200":{"description":"Job reopened","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["active"]},"reopened_at":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Job is already active. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Plan job limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/jobs/{id}/summary":{"get":{"summary":"AI job summary","operationId":"getJobSummary","tags":["Jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"AI-generated role summary","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/jobs/{id}/ranking":{"get":{"summary":"Stack-ranked interviewed candidates for a job","operationId":"getJobRanking","tags":["Jobs"],"description":"Returns every interviewed candidate on a job ordered by aggregate scorecard score (highest first). Aggregate score is the straight arithmetic mean of the candidate's form_submissions scores on this job. Per-criterion scores are normalised to 0-100 (pass/fail -> 100/0, scale 1-5 -> linear). Pure read, no side effects.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ranked candidate list","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"job_id":{"type":"string","example":"job_550e8400e29b41d4a716446655440000"},"rankings":{"type":"array","items":{"type":"object","properties":{"candidate":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true}}},"application_id":{"type":"string"},"aggregate_score":{"type":"number","minimum":0,"maximum":100,"description":"Mean of form_submissions.score for this application."},"interview_count":{"type":"integer","description":"Number of scored form submissions."},"latest_stage":{"type":"string","enum":["funnel","maybe","yes","no","screen","submitted","client_interview","references","offer","placed","rejected","withdrew"]},"per_criterion":{"type":"array","items":{"type":"object","properties":{"criterion_name":{"type":"string"},"score_0_100":{"type":"number","minimum":0,"maximum":100},"reasoning":{"type":"string"}}}},"recommendation":{"type":"string","nullable":true,"enum":["strong_hire","hire","hold","talent_pool","reject",null]},"last_interviewed_at":{"type":"string","format":"date-time","nullable":true}}}},"generated_at":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/jobs/{id}/free-candidates":{"get":{"summary":"Who is free for a contract job","operationId":"getJobFreeCandidates","tags":["Jobs"],"description":"Everyone who meets a contract job's requirements and is free by its start date, best fit first. The same list the job page shows, ranked by the one search core with the start date as a must. Each candidate carries a freshness line (\"Free from 16 Nov, Priya confirmed 3 days ago\") and whether a person confirmed the date in the last 7 days. Returns the best 25; total_count says how many fit in all. 422 when the job is not a contract job or has no start date. Pure read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The free list","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"job_id":{"type":"string","example":"job_550e8400e29b41d4a716446655440000"},"job_title":{"type":"string"},"start_date":{"type":"string","format":"date","description":"The date everyone on the list is free by."},"total_count":{"type":"integer","description":"Everyone who fits and is free by the start date. The list holds the best 25."},"to_ask":{"type":"integer","description":"Listed candidates Lovelio can reach (an email, or WhatsApp) whose free date no person confirmed in the last 7 days."},"candidates":{"type":"array","items":{"type":"object","properties":{"candidate_id":{"type":"string","example":"cnd_550e8400e29b41d4a716446655440000"},"name":{"type":"string"},"current_job_title":{"type":"string","nullable":true},"current_employer":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"score":{"type":"number","description":"Fit score from the search core, 0-100."},"available_from":{"type":"string","format":"date","nullable":true},"availability_source":{"type":"string","nullable":true,"enum":["contract_end","candidate_reply","consultant","contractor_page"]},"availability_confirmed_at":{"type":"string","format":"date-time","nullable":true},"freshness":{"type":"string","nullable":true,"description":"Plain-English line: the free date and who confirmed it when."},"recently_confirmed":{"type":"boolean","description":"A person confirmed the free date in the last 7 days."},"has_email":{"type":"boolean"},"can_whatsapp":{"type":"boolean","description":"They agreed to WhatsApp, have a number it can use, were not asked on WhatsApp in the last 7 days, and the agency has WhatsApp asks switched on: the ask is drafted for WhatsApp."},"whatsapp_after_hours":{"type":"boolean","description":"It is outside 8am to 6pm on a weekday, their time, so a WhatsApp ask would be refused right now."}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"The job is not a contract job, or it has no start date.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]}},"/jobs/{id}/share-bundle":{"get":{"summary":"Get share-ready content bundle for a job","operationId":"getJobShareBundle","tags":["Jobs"],"description":"Returns ready-to-share content: a pre-composed X post (under 260 chars), a LinkedIn post (300-400 chars), the public careers URL, an OG image URL, and a short email summary. All copy is adjusted to the company brand voice and passes the anti-AI-tics linter (no em dashes, no banned phrases). Response is cached server-side for 60 seconds. Use this to push share content to a customer Slack bot, an employee feed, or any programmatic amplification surface without logging into the dashboard.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Share bundle","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"x_text":{"type":"string","description":"Pre-composed X / Twitter post copy, under 260 chars."},"linkedin_text":{"type":"string","description":"Pre-composed LinkedIn post copy, 300-400 chars."},"careers_url":{"type":"string","format":"uri","description":"Public careers page URL for the role."},"image_url":{"type":"string","format":"uri","nullable":true,"description":"The agency's share card (OG image) to attach when sharing - reflects the design set in Settings > Brand. Agency-branded, never the client."},"email_summary":{"type":"string","description":"Two-sentence summary for email fallbacks."},"source":{"type":"object","properties":{"brand_voice_applied":{"type":"boolean"},"generated_at":{"type":"string","format":"date-time"},"cached":{"type":"boolean","description":"True when returned from the persisted social_draft; false when freshly generated on this call."}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/job-ads":{"get":{"summary":"List job ads","operationId":"listJobAds","tags":["Job Ads"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Filter to one job (job_ id)."},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","live","paused","expired"]},"description":"Filter by ad status. \"publishing\" is still accepted as an older name for draft. Any other value is a 422, never silently ignored."}],"responses":{"200":{"description":"Paginated job ads","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Invalid status filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"post":{"summary":"Create job ad","operationId":"createJobAd","tags":["Job Ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string","description":"External ID of the job this ad advertises."},"channels":{"type":"array","items":{"type":"string","enum":["careers_page","jobs_widget","referio","linkedin","x","amplifiers"]},"description":"Distribution channels. Include \"referio\" to post to the referral marketplace (requires a referral_fee)."},"content":{"type":"object","properties":{"headline":{"type":"string"},"body":{"type":"string"}}},"referral_fee":{"type":"number","description":"Fee paid for a successful Referio referral. Required when posting to the referio channel; Referio enforces a US$5,000 minimum."},"referral_fee_currency":{"type":"string","description":"ISO 4217 currency for referral_fee. Defaults to the ad currency."},"expires_at":{"type":"string","format":"date-time","nullable":true}}}}}},"responses":{"202":{"description":"Job ad queued for generation and publishing. Poll data.poll_url; data.resource_id is the job_ad id.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Task"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/job-ads/{id}":{"get":{"summary":"Get job ad","operationId":"getJobAd","tags":["Job Ads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"description":"status is draft, live, paused or expired. shareable_url is the public careers page address, and is null unless the ad is live.","responses":{"200":{"description":"Job ad details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"delete":{"summary":"Delete job ad","operationId":"deleteJobAd","tags":["Job Ads"],"description":"Soft deletes a job ad. The ad is removed from the careers page and hidden from all queries. Requires jobs:write scope. To edit ad copy, use PATCH /jobs/{id}/ad.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Job ad not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/job-ads/{id}/expire":{"post":{"summary":"Expire job ad","operationId":"expireJobAd","tags":["Job Ads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"200":{"description":"Expired","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/clients":{"get":{"summary":"List clients","operationId":"listClients","tags":["Clients"],"description":"Lists clients, newest first. Pass q to search them in plain words instead (\"fintechs in London we have placed with this year\", \"construction clients with open jobs\", \"acme.com\"): the same search as the Clients page and the search_clients action. A q that is exactly one of your client names (case and accents aside) finds by name only. Results are ranked by name match, fit and how recently you worked with them, one page of up to limit, no cursor. A q search never costs AI credits. Each result then carries fit_reason, and meta.companies_you_know lists companies your candidates have worked at that are not clients yet.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"q","in":"query","description":"Plain-words search of your clients: industries, places, size, ownership, founded, open jobs, placed or contacted windows, \"mine\", fees and contacts, or a name or domain. Ranked; ignores after.","schema":{"type":"string","maxLength":400}},{"name":"search","in":"query","description":"Case-insensitive substring match on the client name. Searched for literally: % and _ match those characters, not any text.","schema":{"type":"string"}},{"name":"domain","in":"query","description":"Exact match on the normalised bare domain.","schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of clients, or one ranked page when q is set","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Client"},{"type":"object","properties":{"fit_reason":{"type":"string","nullable":true,"description":"Only with q: why this client fits the search, in plain words."}}}]}},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"},{"type":"object","properties":{"companies_you_know":{"type":"array","description":"Only with q: companies your candidates have worked at that fit and are not clients yet.","items":{"type":"object","properties":{"name":{"type":"string"},"people":{"type":"integer","description":"How many of your candidates work there now."},"industry":{"type":"string","nullable":true},"what_they_sell":{"type":"string","nullable":true},"home_country":{"type":"string","nullable":true}}}}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]},"post":{"summary":"Create client","operationId":"createClient","tags":["Clients"],"description":"Creates a client. Provide a website and Lovelio fills in the rest asynchronously: logo, industry, locations, and Client DNA built from the client's public footprint. Same write path as the in-product flow. Requires clients:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Required if website is omitted."},"website":{"type":"string","description":"Providing this kicks off enrichment + Client DNA."},"phone":{"type":"string","description":"Company main phone or switchboard."},"industry":{"type":"string"},"description":{"type":"string"},"locations":{"type":"array","items":{"type":"string"},"description":"Office locations as City, Country."},"address":{"type":"string"},"contacts":{"type":"array","description":"Contacts to create with the client in the same resumable action.","items":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"title":{"type":"string"},"notes":{"type":"string"},"is_primary":{"type":"boolean"}},"required":["name"]}},"operation_key":{"type":"string","description":"Optional caller key for safely resuming a partially completed client-and-contacts create."},"notes":{"type":"string"},"allow_duplicate":{"type":"boolean","description":"By default a create matching an existing client by name or domain is refused with a message naming the existing record's owner. Set true to create a second record deliberately."},"terms":{"type":"object","description":"Initial agreed terms (importing your book) - becomes the client's fee schedule v1. Later changes go through the set_client_fee_terms action.","properties":{"standard_fee_percent":{"type":"number","description":"A flat percent - becomes a single permanent fee band."},"contract_margin_percent":{"type":"number","description":"Agreed margin percentage for contract or temp engagements."},"payment_terms_days":{"type":"integer"},"guarantee_days":{"type":"integer"}}}}}}}},"responses":{"201":{"description":"Created client (enrichment_status \"pending\" when a website was given)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Client"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/clients/{id}":{"get":{"summary":"Get client","operationId":"getClient","tags":["Clients"],"description":"A client that was merged into another answers with the client it became, so an id stored before a merge keeps working for reads. The `id` in the response is the merged client's. Writes to the old id return 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Client"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]},"patch":{"summary":"Update client","operationId":"updateClient","tags":["Clients"],"description":"The agency self-client (your own agency's record, used for internal hires) is readable but not editable over the API - PATCH returns 409, like DELETE.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string","description":"Also refreshes the normalised domain. Adding a website to a client that was never enriched kicks off enrichment + Client DNA, same as providing it at create time (enrichment_status returns \"pending\")."},"phone":{"type":"string","nullable":true,"description":"Company main phone or switchboard."},"industry":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"locations":{"type":"array","items":{"type":"string"}},"address":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"logo_url":{"type":"string","nullable":true},"default_invoice_contact_id":{"type":"string","nullable":true,"description":"The contact who gets the invoice for this client's placements (cct_ id of a contact on this client). New placements pre-fill it as their invoice contact. Null clears it."}}}}}},"responses":{"200":{"description":"Updated client","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Client"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The agency self-client cannot be edited through the API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]},"delete":{"summary":"Delete client","operationId":"deleteClient","tags":["Clients"],"description":"Soft deletes a client that has nothing live on it. Every job belongs to a client, so a client with open jobs (Draft, Active or On Hold) or standing placements (pending start or started) is never deleted: the call returns 409 and the message lists what blocks it. Close the jobs (POST /jobs/{id}/close) and mark the placements complete or fell off, then retry. The agency self-client is never deletable. Requires clients:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The client has open jobs or standing placements, or is the agency self-client (error.code CONFLICT). The message names the jobs and counts the placements.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]}},"/clients/duplicates":{"get":{"summary":"Find duplicate clients","operationId":"findClientDuplicates","tags":["Clients"],"description":"Pairs of clients that look like one company, the strongest reason per pair. `match_type` says why and `tier` says how sure: `name_domain` (same name and website), `name_linkedin` (same name and LinkedIn company page) and `name_phone` (same name and phone number) are `exact`; `domain` (same website), `linkedin` (same LinkedIn company page), `name` (same name) and `org` (already known to Lovelio as one organisation) are `possible` matches to check. Names match ignoring case, punctuation and company suffixes; phone numbers match on their last nine digits. A pair someone marked \"Not the same company\" in Lovelio is left out, as is your own agency. A pair is listed only when the key can open both clients. Merge a pair with `POST /clients/merge`.\n\nPagination: Returns one computed duplicate-review report, not a stored row collection. No after cursor is accepted.","responses":{"200":{"description":"Duplicate pairs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"client_1":{"$ref":"#/components/schemas/DuplicateClientBrief"},"client_2":{"$ref":"#/components/schemas/DuplicateClientBrief"},"match_type":{"type":"string","enum":["name_domain","name_linkedin","name_phone","domain","linkedin","name","org"]},"tier":{"type":"string","enum":["exact","possible"]}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]}},"/clients/merge":{"post":{"summary":"Merge clients","operationId":"mergeClients","tags":["Clients"],"description":"Folds `merge_id` into `keep_id`. Every job, contact, placement, note, document and Client DNA note moves to the kept client; nothing is deleted. Where the two disagree on a field the kept client's value stands, and its blanks are filled from the other. Two contacts with the same email become one. The merged-away id keeps working for reads: `GET /clients/{id}` answers with the kept client. Your own agency's client cannot be merged. Admins and team leaders only: a key acting for a recruiter gets 403. Requires clients:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["keep_id","merge_id"],"properties":{"keep_id":{"type":"string","description":"The client to keep (cli_...)."},"merge_id":{"type":"string","description":"The duplicate to fold into it (cli_...)."}}}}}},"responses":{"200":{"description":"Merged","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"merged":{"type":"boolean"},"kept_id":{"type":"string"},"removed_id":{"type":"string"},"jobs_moved":{"type":"integer"},"contacts_moved":{"type":"integer"},"placements_moved":{"type":"integer"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The acting user may not merge clients, or cannot open one of the two.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"One of the two clients was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"keep_id or merge_id missing, malformed or the same, or one is the agency self-client.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/clients/{id}/dna":{"get":{"summary":"Get Client DNA","operationId":"getClientDna","tags":["Clients"],"description":"Returns the Client DNA that assessments, phone screens, interview forms and job ads use: the reflection, five traits and append-only refinement notes.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"cli_ id."}],"responses":{"200":{"description":"Client DNA, or dna null while it is not available.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"dna":{"allOf":[{"$ref":"#/components/schemas/ClientDna"}],"nullable":true},"traits":{"type":"array","items":{"type":"object"}},"addendums":{"type":"array","items":{"type":"object"}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]},"post":{"summary":"Add Client DNA note","operationId":"addClientDnaNote","tags":["Clients"],"description":"Appends a meeting, call or text note and queues the shared Client DNA reanalysis. Existing notes never change.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"cli_ id."},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"source":{"type":"string","enum":["text","voice","meeting"],"default":"text"}}}}}},"responses":{"201":{"description":"Note stored and reanalysis queued.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"addendum_id":{"type":"string"},"status":{"type":"string","enum":["reanalysing"]}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]}},"/clients/{id}/sites":{"get":{"summary":"List client sites","operationId":"listClientSites","tags":["Clients"],"description":"The client's workplaces. A contract placement names one as work_site_id; the site's country decides which contractor payroll fields Lovelio collects. Addresses are not money: clients:read is enough.\n\nPagination: Returns the complete site list for one client. No after cursor is accepted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sites, oldest first","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ClientSite"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]},"post":{"summary":"Add client site","operationId":"createClientSite","tags":["Clients"],"description":"Add a workplace to the client. The same address on the same client is handed back (200) rather than duplicated, so a sync can send it every run.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["country"],"properties":{"label":{"type":"string"},"street":{"type":"string"},"city":{"type":"string"},"region":{"type":"string","description":"Australia: the state. Send the code or the name in any spelling (\"New South Wales\", \"nsw\", \"N.S.W.\", \"Sydney\"); it is stored as the code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT)."},"postcode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2."}}}}}},"responses":{"200":{"description":"The site","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ClientSite"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"No country, neither a street nor a city, or an Australian region that names no state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]}},"/clients/{id}/contacts":{"get":{"summary":"List client contacts","operationId":"listClientContacts","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Contacts at this client, primary first","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ClientContact"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"],"description":"Pagination: Returns the complete contact list for one client. No after cursor is accepted."},"post":{"summary":"Add client contact","operationId":"addClientContact","tags":["Clients"],"description":"Lovelio resolves the person behind the contact: a matching email, LinkedIn URL or phone links the new contact to an existing person record. A person already on this client's contact list is returned as-is rather than duplicated (still 201).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string","description":"Digits with an optional leading + country code; spaces, hyphens, dots and parentheses allowed. Rejected with a validation error otherwise."},"title":{"type":"string"},"reports_to":{"type":"string","description":"Another contact (cct_ id) on this client this person reports to. Must belong to the same client."},"is_primary":{"type":"boolean"},"notes":{"type":"string"}}}}}},"responses":{"201":{"description":"Created contact","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ClientContact"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Validation error - e.g. phone is not a valid phone number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]}},"/clients/{id}/contacts/{contactId}":{"patch":{"summary":"Update client contact","operationId":"updateClientContact","tags":["Clients"],"description":"Patching name renames the person, not just this contact - the new name shows everywhere that person appears.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true,"description":"Digits with an optional leading + country code; spaces, hyphens, dots and parentheses allowed. Rejected with a validation error otherwise."},"title":{"type":"string","nullable":true},"reports_to":{"type":"string","nullable":true,"description":"Another contact (cct_ id) on the same client this person reports to. Send null to clear. Cannot be the contact itself."},"is_primary":{"type":"boolean"},"notes":{"type":"string","nullable":true}}}}}},"responses":{"200":{"description":"Updated contact","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ClientContact"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Validation error - e.g. phone is not a valid phone number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]},"delete":{"summary":"Delete client contact","operationId":"deleteClientContact","tags":["Clients"],"description":"Soft deletes a contact. Any job pointing at it keeps the reference cleared by the composite FK rules on the job side.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Contact not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:write"]}],"x-required-scopes":["clients:write"]}},"/submissions":{"get":{"summary":"List submissions","operationId":"listSubmissions","tags":["Submissions"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Filter to one job (job_ id)."},{"name":"client_id","in":"query","schema":{"type":"string"},"description":"Filter to one client (cli_ id)."},{"name":"status","in":"query","schema":{"type":"string","enum":["pending","viewed","partially_responded","completed","expired","revoked"]}}],"responses":{"200":{"description":"Paginated list of submissions, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Submission"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["submissions:read"]}],"x-required-scopes":["submissions:read"]},"post":{"summary":"Create and send a submission","operationId":"createSubmission","tags":["Submissions"],"description":"Creates a submission on a job and emails the client contact a tokenised review link. Items without a summary get an AI-drafted one. Candidates still in triage (funnel/maybe/yes/no) move to the submitted stage automatically; candidates already client-side keep their stage. The contact defaults to the job's contact, then the client's primary contact. Anyone already sent to this client for this job is refused with a 400 naming them - pass allow_resubmit: true to send anyway. identity_visibility controls how much of each candidate the client sees, one level for the whole send. Same write path as the in-product flow. Requires submissions:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["job_id","items"],"properties":{"job_id":{"type":"string"},"items":{"type":"array","items":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string"},"summary":{"type":"string","description":"Client-facing pitch. Omit to have AI draft it. Plain text with light formatting: blank lines start a new paragraph, lines starting \"- \" become a bullet list, \"1. \" a numbered list, and **word** renders bold in the email and on the review page."},"quotes":{"type":"array","maxItems":3,"description":"Up to 3 runs of the candidate's own words from a recorded call with them, sent verbatim under the pitch. Every line in the run must be the candidate speaking and the call must be one the key can see, or the send is refused. Lovelio copies the words from the transcript; you name the lines.","items":{"type":"object","required":["call_id","start_seq"],"properties":{"call_id":{"type":"string","description":"call_ id"},"start_seq":{"type":"integer","minimum":0,"description":"First transcript line"},"end_seq":{"type":"integer","minimum":0,"description":"Last transcript line. Defaults to start_seq. At most 40 lines."}}}}}}},"client_contact_id":{"type":"string","description":"Must belong to the job's client. Defaults to the job's contact, then the primary contact."},"title":{"type":"string"},"greeting":{"type":"string","description":"Opening line of the email, no trailing comma (e.g. \"Hi Brett\"). Defaults to \"Hi {first name}\"."},"email_subject":{"type":"string","description":"Subject line of the email. Defaults to \"Candidates for the role of {job title}\", singular for a submission of one. Stored on the submission, so a resend repeats it rather than generating a different line."},"headline":{"type":"string","description":"The headline at the top of the client review page - the largest line the contact reads. Defaults to \"Hi {first name}, {n} candidates for your review.\". Stored on the submission, so a resend shows the page the client first read."},"intro_body":{"type":"string","description":"Everything said above the candidates, in the consultant's own words, shown in the email and on the review page. Defaults to \"I am delighted to submit {first names} for your role of {job title}. Please see specific details below. I look forward to your feedback when you have time to review.\" signed off by the consultant. Stored on the submission, so a resend repeats what the client first read. Plain text with light formatting: blank lines start a new paragraph, lines starting \"- \" become a bullet list, \"1. \" a numbered list, and **word** renders bold."},"message":{"type":"string","description":"Legacy covering note. It renders under the DEFAULT intro and is ignored when intro_body is set. Use intro_body instead."},"allow_resubmit":{"type":"boolean","default":false,"description":"Send even when a candidate on the list has already gone to this client for this job. Off by default so the same CV is never sent twice by accident."},"identity_visibility":{"type":"string","enum":["full","first_name","anonymous"],"default":"full","description":"How much of each candidate the client sees. full: the whole profile. first_name: first name only, surname and LinkedIn removed. anonymous: no name, no LinkedIn, and employers and schools withheld. One level for the whole send."},"attach_cv":{"type":"boolean","description":"Attach each candidate's current CV to the email, for clients whose mail strips links. Leave it out to follow the last choice made for this client; true or false is remembered for the next send. Refused unless identity_visibility is full, since a CV shows the name. A candidate with no CV, or one not yet scanned clean, refuses the send by name. Up to 10 candidates."}}}}}},"responses":{"201":{"description":"Created submission. email_sent false means the link works but the email failed - resend from the product.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/Submission"},{"type":"object","properties":{"email_sent":{"type":"boolean"},"cv_attached":{"type":"boolean","description":"Whether each candidate's CV went with the email."}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["submissions:write"]}],"x-required-scopes":["submissions:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/submissions/{id}":{"get":{"summary":"Get submission","operationId":"getSubmission","tags":["Submissions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Submission with per-candidate response state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Submission"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Submission not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["submissions:read"]}],"x-required-scopes":["submissions:read"]}},"/specs":{"get":{"summary":"List specs","operationId":"listSpecs","tags":["Specs"],"description":"Specs (Floats in AU/NZ): speculative submissions - one anonymous candidate profile sent to one client contact with no job. Requires submissions:read.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"candidate_id","in":"query","schema":{"type":"string"},"description":"Filter to one candidate (cnd_ id)."},{"name":"client_id","in":"query","schema":{"type":"string"},"description":"Filter to one client (cli_ id)."},{"name":"status","in":"query","schema":{"type":"string","enum":["sent","viewed","interested","passed","converted","expired","revoked"]}}],"responses":{"200":{"description":"Paginated list of specs, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Spec"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["submissions:read"]}],"x-required-scopes":["submissions:read"]},"post":{"summary":"Create and send a spec","operationId":"createSpec","tags":["Specs"],"description":"Sends a spec: a short personal email to the client contact with the pitch inline, a link to the anonymous profile page, and the agency terms of business attached (when uploaded in Settings > Company). The candidate's name and current employer are scrubbed server-side from every client-facing field, and a candidate can never be specced to their own employer (422). Same write path as the in-product guided modal. Requires submissions:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["candidate_id","client_id","client_contact_id","headline","pitch","email_subject","email_body"],"properties":{"candidate_id":{"type":"string"},"client_id":{"type":"string"},"client_contact_id":{"type":"string","description":"Must belong to the client."},"headline":{"type":"string","description":"Anonymous profile title, e.g. \"Senior Quantity Surveyor - Tier 1 commercial\"."},"pitch":{"type":"string","description":"Why this person is worth meeting. Employers generalised, never named."},"chips":{"type":"array","items":{"type":"string"},"description":"Up to 6 short facts (years, sector, location)."},"why_client":{"type":"string","description":"Why this candidate fits THIS client - shown on their private page."},"email_subject":{"type":"string"},"email_greeting":{"type":"string","description":"Opening line of the email, no trailing comma (e.g. \"Hi Brett\"). Defaults to \"Hi {first name}\"."},"email_body":{"type":"string","description":"Short personal note. The profile button and signature are added automatically."},"attach_terms":{"type":"boolean","default":true},"candidate_aware":{"type":"boolean","default":false,"description":"The honest record: does the candidate know?"}}}}}},"responses":{"201":{"description":"Created spec. email_sent false means the profile link works but the email failed - share it directly.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/Spec"},{"type":"object","properties":{"email_sent":{"type":"boolean"}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["submissions:write"]}],"x-required-scopes":["submissions:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/specs/{id}":{"get":{"summary":"Get spec","operationId":"getSpec","tags":["Specs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Spec with its response state and conversion links","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Spec"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Spec not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["submissions:read"]}],"x-required-scopes":["submissions:read"]}},"/candidates":{"get":{"summary":"List candidates","operationId":"listCandidates","tags":["Candidates"],"description":"The list includes people who exist only as client contacts (contact_only: true) - a hiring manager is a future candidate. Filter with the contact_only param to narrow either way.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"email","in":"query","description":"Exact (case-insensitive) email lookup.","schema":{"type":"string"}},{"name":"tag","in":"query","schema":{"type":"string"}},{"name":"location_city","in":"query","description":"Case-insensitive substring match on location.","schema":{"type":"string"}},{"name":"do_not_approach","in":"query","description":"Filter by the off-limits flag. Omit to list all candidates - the list includes flagged candidates by default.","schema":{"type":"boolean"}},{"name":"contact_only","in":"query","description":"Role filter. true = only people who exist purely as client contacts; false = only the candidate pool. Omit to list everyone.","schema":{"type":"boolean"}},{"name":"rating","in":"query","description":"Exact star rating 1-5.","schema":{"type":"integer","minimum":1,"maximum":5}},{"name":"min_rating","in":"query","description":"Minimum star rating 1-5 (\"4 and up\" = 4). Unrated candidates never match.","schema":{"type":"integer","minimum":1,"maximum":5}},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/createdBefore"}],"responses":{"200":{"description":"Paginated candidates","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Candidate"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]},"post":{"summary":"Create candidate","operationId":"createCandidate","tags":["Candidates"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"name":{"type":"string","description":"Full name. Alternatively pass first_name + last_name."},"first_name":{"type":"string","description":"Given name, stored as written, so a two-word given name (\"Mary Anne\") stays whole. Kept when first_name and last_name together make up name (or name is omitted); otherwise name is stored and split after its first word."},"last_name":{"type":"string","description":"Family name, stored as written alongside first_name."},"email":{"type":"string"},"phone":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"location":{"type":"object","description":"Where the candidate lives. Stored as one \"City, Region, Country\" line.","properties":{"city":{"type":"string"},"region":{"type":"string","description":"State or region"},"country":{"type":"string","description":"Country name or ISO code"}}},"skills":{"type":"array","items":{"type":"string"}},"resume_url":{"type":"string","nullable":true,"description":"A URL Lovelio can download the CV from. Lovelio copies the file into its own private storage and queues an async parse (employment history, skills, education); cv_url stays null until the copy lands. Sending one draws on the account CV allowance: 200 CVs until the first payment on the account goes through, then 5,000 per rolling 30 days, shared with bulk import and /candidates/from-cv, refused with 403 QUOTA_EXCEEDED past it. Creating a candidate WITHOUT a resume_url is uncapped, and applications people send you never count."},"rating":{"type":"integer","nullable":true,"minimum":1,"maximum":5,"description":"The agency's 1-5 star rating."},"tags":{"type":"array","items":{"type":"string"},"description":"Flat labels to put on the candidate. Deduplicated case-insensitively, so \"Python\" and \"python\" are one tag. Unknown labels are created. Max 40 characters each (longer is truncated) and max 20 tags per candidate counted after deduplication - more than 20 is a validation error, never a silent trim."},"preferred_roles":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Roles the candidate wants next."},"preferred_seniority":{"type":"string","nullable":true,"enum":["intern","junior","mid","senior","staff","lead","principal","head","director","vp","c_suite"]},"work_types":{"type":"array","items":{"type":"string","enum":["permanent","contract","temp","part_time"]},"nullable":true},"open_to_relocation":{"type":"boolean","nullable":true},"available_from":{"type":"string","format":"date","nullable":true},"availability_source":{"type":"string","enum":["contract_end","candidate_reply","consultant","contractor_page"],"description":"Where the available_from you are sending came from. Defaults to consultant. Stamped with the time of the write."},"preferred_locations":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Places the candidate wants to work; gazetteer-resolved asynchronously."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Candidate"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"QUOTA_EXCEEDED - a resume_url was sent and the account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"A live candidate with this email already exists in this company (emails are unique case-insensitively). Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/candidates/{id}":{"get":{"summary":"Get candidate","operationId":"getCandidate","tags":["Candidates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Candidate details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Candidate"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]},"patch":{"summary":"Update candidate","operationId":"updateCandidate","tags":["Candidates"],"description":"Only the fields you send change. A field not listed in the request body is refused with 422 VALIDATION_ERROR naming it, so a typo never reads as a successful update.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"first_name":{"type":"string","description":"Changes the given name only; the last name and name follow. Sending first_name or last_name wins over name."},"last_name":{"type":"string","description":"Changes the family name only; the first name stays as stored."},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"location":{"type":"object","description":"Where the candidate lives. Stored as one \"City, Region, Country\" line.","properties":{"city":{"type":"string"},"region":{"type":"string","description":"State or region"},"country":{"type":"string","description":"Country name or ISO code"}}},"skills":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"},"description":"Flat labels on the candidate. Replaces the FULL set: an empty array clears every tag, omitting the field leaves them alone. Deduplicated case-insensitively, so \"Python\" and \"python\" are one tag. Unknown labels are created. Max 40 characters each (longer is truncated) and max 20 tags per candidate counted after deduplication - more than 20 is a validation error, never a silent trim."},"current_title":{"type":"string","nullable":true,"description":"Also accepted as current_job_title."},"current_company":{"type":"string","nullable":true,"description":"Also accepted as current_employer."},"do_not_approach":{"type":"boolean","description":"Off-limits flag. Flagged candidates are excluded from search, matching and suggestions."},"open_to_work":{"type":"boolean","nullable":true,"description":"Open-to-work flag. Null clears it back to never-captured."},"rating":{"type":"integer","nullable":true,"minimum":1,"maximum":5,"description":"The agency's 1-5 star rating. Null clears it."},"salary_expectation":{"type":"string","nullable":true,"description":"Raw salary expectation (\"145k + super\", \"850/day\"). The normalized annual figure, amount, period, and currency derive automatically."},"notice_period":{"type":"string","nullable":true,"description":"Raw notice period (\"4 weeks\"). notice_period_days derives automatically."},"work_rights":{"type":"string","nullable":true,"description":"Raw right-to-work statement (\"citizen\", \"482 visa\"). work_rights_status derives automatically."},"preferred_roles":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Roles the candidate wants next. Null clears."},"preferred_seniority":{"type":"string","nullable":true,"enum":["intern","junior","mid","senior","staff","lead","principal","head","director","vp","c_suite"],"description":"Seniority level the candidate wants. Free text like \"Head of\" normalizes automatically."},"work_types":{"type":"array","items":{"type":"string","enum":["permanent","contract","temp","part_time"]},"nullable":true,"description":"Work types the candidate is open to. Variants like \"perm\" or \"full-time\" normalize automatically."},"open_to_relocation":{"type":"boolean","nullable":true},"available_from":{"type":"string","format":"date","nullable":true,"description":"Stated availability date (YYYY-MM-DD). Null clears."},"availability_source":{"type":"string","enum":["contract_end","candidate_reply","consultant","contractor_page"],"description":"Where the available_from you are sending came from. Defaults to consultant. Stamped with the time of the write."},"preferred_locations":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Places the candidate wants to work. Replaces the FULL set on every write; each entry is gazetteer-resolved asynchronously for search."}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Candidate"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]},"delete":{"summary":"Delete candidate","operationId":"deleteCandidate","tags":["Candidates"],"description":"Soft deletes a candidate who is on no job. The record is hidden from all queries but not permanently removed. A candidate with any application (any stage, rejected included) is never deleted: the call returns 409 and the message names the jobs; remove them from their jobs first. For permanent GDPR erasure, use the /candidates/{id}/gdpr-delete endpoint instead. Requires candidates:write scope.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Candidate not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The candidate is on one or more jobs (error.code CONFLICT). The message names them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidates/{id}/gdpr-delete":{"delete":{"summary":"GDPR delete candidate","operationId":"gdprDeleteCandidate","tags":["Candidates"],"description":"Permanently deletes all candidate data including applications, interviews, assessments, and stored CVs. Irreversible.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidates/search":{"post":{"summary":"Search candidates","operationId":"searchCandidates","tags":["Candidates"],"description":"Natural language candidate search on the same engine as the in-app search bar: the query compiles into hard requirements and preferences (returned as `interpretation.facets`), database predicates and eligible CV evidence checks enforce hard requirements, and a deterministic feature score ranks the matches. A person's name is a lookup on the name field (facet kind `name`): every word typed starts a word of the name, is a common nickname of it (Bob finds Robert, Liz finds Elizabeth, never Roberta), or the whole name is a close spelling; accents never matter (zoe finds Zoë). The people whose name matches best rank first, ahead of any other signal: exact, then starts-with, then nickname. When more people carry the name than the ranked pool holds, the closest names are ranked and, within each, the people most recently in touch come first, then those with a current employer; a `rank_pool_name` note says so. `named Baker` or `called Baker` is always a name lookup. One word that is both a name and a job, skill or place (\"Baker\", \"Sydney\") is searched as the job, skill or place, and an `also_named` note counts the people carrying it as a name. A name mixes with other requirements (\"Priya the Java developer in Sydney\"). `total_count` is the confirmed count when CV evidence gates a hard requirement (people their work history proves, plus people confirmed within the reading budget); otherwise it is the database count. Pagination walks the ranked pool (`ranked_pool_size`); when the true total exceeds it, a note in `notes` says so. `notes` also carries anything the engine could not do properly (a degraded plan, a truncated scan) - an empty array means everything ran as interpreted. CV evidence checks can apply to skills, industries, education, responsibilities and other requirements as well as kind `verified` (\"has worked in a regulated environment\"). Returned facets retain their original meaning. The engine reads up to 200 candidates by default and reports confirmed, unread and missing-CV counts in `verification`. Unread or uncertain evidence does not establish a match. New queries use the standard interpreter unless an approved Jev interpretation is cached for the agency; the private pilot can test uncached Jev interpretation. A query naming a company may also return `mentioned_in_cv`: a separate, separately-counted tier of people whose CV names that company while their employment history does not. Those people did not match, and the two counts are never added together. Every returned candidate, including this CV-mention tier, counts against the agent access daily limit. A refused read returns 429 DAILY_LIMIT_REACHED.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"What you are looking for, in plain language. Locations, salaries, employers and time windows belong in the query itself (\"sales managers in Sydney on under 150k\").","example":"senior project managers in Melbourne with SAP"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25,"description":"Results per page."},"page":{"type":"integer","minimum":1,"default":1,"description":"1-based page into the ranked pool. The ranking is deterministic, so page N is always the same slice for the same query."}}}}}},"responses":{"200":{"description":"Ranked matches","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CandidateSearchResult"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"query is required, or limit/page out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"The search compiler is temporarily unavailable. The API never degrades to a different matcher - retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/candidate-imports":{"post":{"summary":"Start a bulk CV import","operationId":"createCandidateImport","tags":["Candidate Imports"],"description":"Bulk-import CVs (PDF, DOC or DOCX, 10 MB each). Declare how many files you will send, then request upload slots in chunks via POST /candidate-imports/{id}/files, PUT each file body to its upload_url, and confirm with POST /candidate-imports/{id}/finalize. Each file is parsed into a candidate in the background: candidates are matched by email (existing ones are updated, never duplicated), unreadable files are skipped and reported, and the import always completes. Imported candidates land in the talent bank without applications, so imports never trigger AI assessments.\n\nLimits: 5,000 files per import, and a 5,000-CV allowance per account per rolling 30 days shared with POST /candidates (when it carries a resume_url) and POST /candidates/from-cv. Until the first payment on the account goes through, the allowance is 200 CVs. Both the import and the slot request refuse with 403 QUOTA_EXCEEDED past it. Applications people send you never count towards the allowance. This endpoint is for topping up your database, not for moving off another ATS: a full migration brings across notes, jobs, placements and history that this door does not accept, and Lovelio runs it for you - email support@lovelio.ai.\n\nOn imports of 200 files or more the deeper parse (skills, work history, education, role and employer) is queued and can take up to a day; names and contact details are written immediately either way. Requires candidates:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_count"],"properties":{"file_count":{"type":"integer","minimum":1,"maximum":5000,"description":"How many files this import will send."},"match_pools":{"type":"boolean","default":true,"description":"Match imported candidates against talent pools with AI matching on as they land. Defaults to true; pass false to import without pool matching."}}}}}},"responses":{"201":{"description":"Import created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string","example":"imp_550e8400e29b41d4a716446655440000"},"status":{"type":"string","example":"uploading"},"file_count":{"type":"integer"},"match_pools":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"QUOTA_EXCEEDED - this account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"413":{"description":"PAYLOAD_TOO_LARGE - file_count is above 5,000","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/candidate-imports/{id}":{"get":{"summary":"Get import report","operationId":"getCandidateImport","tags":["Candidate Imports"],"description":"Live progress while processing; the full report once complete: per-outcome counts, failed files with human-readable reasons, and role_matches - how the imported candidates compare with your open roles (embedding similarity, 0-100; no assessments are run).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Import report","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CandidateImport"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Import not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]}},"/candidate-imports/{id}/files":{"post":{"summary":"Request upload slots","operationId":"addCandidateImportFiles","tags":["Candidate Imports"],"description":"Returns one signed upload slot per file (up to 25 per call). PUT the raw file body to each upload_url with any HTTP client - files never travel through this API. Only pdf, doc and docx filenames receive slots. An import cannot accept more files than its declared file_count, and slots stop being issued once the account reaches its CV allowance: 200 until the first payment, then 5,000 per rolling 30 days (403 QUOTA_EXCEEDED).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"files":{"type":"array","maxItems":25,"items":{"type":"object","required":["filename"],"properties":{"filename":{"type":"string","example":"jane-doe-cv.pdf"}}}}}}}}},"responses":{"201":{"description":"Upload slots","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"imi_550e8400e29b41d4a716446655440000"},"filename":{"type":"string"},"index":{"type":"integer","description":"Position in the request files array - match slots to files by this, not by filename."},"upload_url":{"type":"string","description":"Signed URL. PUT the raw file body here."},"max_file_bytes":{"type":"integer"}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"QUOTA_EXCEEDED - this account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Import is no longer accepting files, or file_count would be exceeded Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidate-imports/{id}/finalize":{"post":{"summary":"Confirm uploads","operationId":"finalizeCandidateImport","tags":["Candidate Imports"],"description":"Confirm which items were uploaded; each confirmed item is queued for background parsing. Pass complete: true on the last call to close the upload phase - processing then finishes on its own and GET /candidate-imports/{id} becomes the report. Items signed but never confirmed are failed by a sweep after 2 hours, so the import always completes.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uploaded_item_ids":{"type":"array","items":{"type":"string"},"description":"Import item ids from add_candidate_import_files, each starts imi_."},"complete":{"type":"boolean","description":"Set true on the final call to close the upload phase."}}}}}},"responses":{"200":{"description":"Confirmed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"confirmed":{"type":"integer"},"status":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/opportunities/job-leads":{"get":{"summary":"List job leads","operationId":"listJobLeads","tags":["Opportunities"],"description":"The companies one recruiter watches on the Opportunities page, most new jobs first: each careers page Lovelio reads overnight, its open and new jobs, and where its floats stand. Watch lists belong to one recruiter. Requires clients:read.\n\nPagination: Returns one recruiter's complete watch list, capped at 200 companies. No after cursor is accepted.","parameters":[{"name":"user_id","in":"query","schema":{"type":"string"},"description":"Whose watch list (usr_ id). Defaults to the user the key acts as; reading someone else's needs a key that sees the whole agency."}],"responses":{"200":{"description":"Watched companies, most new jobs first","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/JobLead"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]}},"/opportunities/job-leads/{id}":{"get":{"summary":"Get a job lead","operationId":"getJobLead","tags":["Opportunities"],"description":"One watched company: the new ads with the people in your database who fit each one, ads outside your patch, and everything else still open. Draft a float for a new ad with draft_careers_float through POST /batch (payload { watch_id, site_job_id }, the cwt_ and cad_ ids here). Requires clients:read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Job lead id, starts cwt_."},{"name":"user_id","in":"query","schema":{"type":"string"},"description":"Whose watch list (usr_ id). Defaults to the user the key acts as; reading someone else's needs a key that sees the whole agency."}],"responses":{"200":{"description":"The job lead with its ads","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/JobLeadDetail"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not on this recruiter's watch list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]}},"/opportunities/job-leads/{id}/floats/{adId}":{"get":{"summary":"Get a float draft","operationId":"getCareersFloat","tags":["Opportunities"],"description":"The float for one new ad: the people who fit, who is picked (at most five), the anonymous profile for each, who it goes to and the email. Change it with update_careers_float or throw it away with discard_careers_float through POST /batch. Only a person sends a float, from the Opportunities page; once sent it is a spec (GET /specs). Requires clients:read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Job lead id, starts cwt_."},{"name":"adId","in":"path","required":true,"schema":{"type":"string"},"description":"Careers ad id, starts cad_."},{"name":"user_id","in":"query","schema":{"type":"string"},"description":"Whose watch list (usr_ id). Defaults to the user the key acts as; reading someone else's needs a key that sees the whole agency."}],"responses":{"200":{"description":"The float","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CareersFloat"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No float drafted for that ad yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]}},"/opportunities/key-movements":{"get":{"summary":"List key movements","operationId":"listKeyMovements","tags":["Opportunities"],"description":"Open key movements you may see, newest first: people you know who changed jobs, past placements on the move, clients hiring again. Each row says what happened, why it matters and links to the record. Requires clients:read.\n\nPagination: Returns the open key movements the caller may see, newest 300 at most; rows clear themselves once handled. No after cursor is accepted.","responses":{"200":{"description":"Open key movements, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/KeyMovement"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["clients:read"]}],"x-required-scopes":["clients:read"]}},"/search":{"post":{"summary":"Natural language search","operationId":"nlSearch","tags":["Search"],"description":"Natural language search within one entity type per call: candidates, applications, jobs or interviews. To search several, call once per type. Each type needs its own read scope (`candidates:read`, `applications:read`, `jobs:read`, `interviews:read`), the same as its list endpoint. `entity_type: candidates` runs the same faceted search core as POST /candidates/search and the in-app search bar, and returns that endpoint's body (see `CandidateSearchResult`); the other three entity types return structured rows with a plain-language interpretation (`EntitySearchResult`). Both shapes carry `entity_type`, so a client can branch on it. Results are always narrowed to what the API key may see. Candidate results and CV-only mentions pass the same daily access meter as POST /candidates/search; a refused read returns 429 DAILY_LIMIT_REACHED.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query","entity_type"],"properties":{"query":{"type":"string","description":"Natural language search query","example":"Show me candidates in London with sales experience"},"entity_type":{"type":"string","enum":["candidates","applications","jobs","interviews"],"description":"The one entity type to search. Needs that type's read scope."},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25,"description":"Max results per page"},"page":{"type":"integer","minimum":1,"default":1,"description":"Page number"},"sort_by":{"type":"string","description":"Column to sort by (default: created_at). Not accepted for entity_type=candidates, which ranks by match quality - pass one and the request is rejected rather than silently ignored."},"sort_order":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Not accepted for entity_type=candidates, as above."}}}}}},"responses":{"200":{"description":"Search results","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"oneOf":[{"$ref":"#/components/schemas/CandidateSearchResult"},{"$ref":"#/components/schemas/EntitySearchResult"}],"discriminator":{"propertyName":"entity_type"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the read scope for this entity_type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"query or entity_type missing or invalid, or sort_by/sort_order passed with entity_type=candidates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"The search compiler is temporarily unavailable (candidates only). The API never degrades to a different matcher - retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":[]}],"x-required-scopes":[],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/candidates/duplicates":{"get":{"summary":"Find duplicate candidates","operationId":"findDuplicates","tags":["Candidates"],"description":"Pairs of records that look like one person, the strongest reason per pair. `match_type` says why: `name_linkedin` (same name and LinkedIn profile) and `name_phone` (same name and phone number) are exact matches; `linkedin`, `phone` and `name_employer` (same name and current employer) are possible matches to check. Phone numbers match on their last nine digits, so a country code and a leading 0 are the same number. A pair someone marked \"Not the same person\" in Lovelio is left out. Merge a pair with `POST /candidates/merge`.\n\nPagination: Returns one computed duplicate-review report, not a stored row collection. No after cursor is accepted.","responses":{"200":{"description":"Duplicate pairs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"candidate_1":{"$ref":"#/components/schemas/DuplicateCandidateBrief"},"candidate_2":{"$ref":"#/components/schemas/DuplicateCandidateBrief"},"match_type":{"type":"string","enum":["name_linkedin","name_phone","linkedin","phone","name_employer"]},"confidence":{"type":"number","description":"1 for an exact match, lower for a possible match."}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]}},"/candidates/merge":{"post":{"summary":"Merge candidates","operationId":"mergeCandidates","tags":["Candidates"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["keep_id","merge_id"],"properties":{"keep_id":{"type":"string"},"merge_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Merged","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Candidate"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/applications":{"get":{"summary":"List applications","operationId":"listApplications","tags":["Applications"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"job_id","in":"query","schema":{"type":"string"}},{"name":"candidate_id","in":"query","schema":{"type":"string"}},{"name":"stage","in":"query","schema":{"type":"string"}},{"name":"source","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/createdBefore"}],"responses":{"200":{"description":"Paginated applications with assessment scores","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Application"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:read"]}],"x-required-scopes":["applications:read"]},"post":{"summary":"Create application (async)","operationId":"createApplication","tags":["Applications"],"description":"Attaches an existing candidate to a job and triggers AI assessment. Returns 202.\n\nStarting stage: pass `stage` as `funnel` (the default), `yes`, `screen` or `submitted`. Screen logs a passed screen (known to the recruiter, not screened in Lovelio). Submitted logs a submission to the job's client contact marked `sent_outside` (the CV went to the client outside Lovelio): nothing is emailed and it carries no review link. A job with no client contact refuses it. A candidate already on the job is never added twice or moved backwards: a lower stage moves up to the one asked for, otherwise they stay where they are.\n\nSource attribution: pass either `source` (a slug we map to a category, e.g. linkedin, indeed, job_ad, referral, careers_page) or the structured `source_category` + `source_detail` pair for full control. `source_category` is one of: Careers Page, Job Board, Referral, Talent Pool, Database Search, Social, Agency, Direct, Imported, Other. `source_detail` is the granular sub-source (the exact board, referrer, pool, or search). Omitting source records the API origin (Other / API).","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["job_id","candidate_id"],"properties":{"job_id":{"type":"string","description":"External job id (job_...)."},"candidate_id":{"type":"string","description":"External candidate id (cnd_...)."},"stage":{"type":"string","enum":["funnel","yes","screen","submitted"],"default":"funnel","description":"Where the candidate starts on the job."},"source":{"type":"string","nullable":true,"description":"Source slug (linkedin, indeed, job_ad, referral, careers_page, ...). Mapped to a category + detail. Ignored when source_category is supplied."},"source_category":{"type":"string","nullable":true,"enum":["Careers Page","Job Board","Referral","Talent Pool","Database Search","Social","Agency","Direct","Imported","Other"],"description":"Canonical source category. Matched in any case (\"referral\", \"database_search\") or as a known channel slug (linkedin is Social / LinkedIn); a value outside the list is a 422 VALIDATION_ERROR naming the list, never filed as Other."},"source_detail":{"type":"string","nullable":true,"description":"Granular sub-source (exact board, referrer, pool, or search). Kept as sent, with or without a source_category."},"cover_note":{"type":"string","nullable":true}}}}}},"responses":{"202":{"description":"Application queued for assessment","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Task"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/applications/{id}":{"get":{"summary":"Get application","operationId":"getApplication","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application with assessment","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Application"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:read"]}],"x-required-scopes":["applications:read"]},"patch":{"summary":"Update application","operationId":"updateApplication","tags":["Applications"],"description":"Update non-stage fields (note). The `stage`/`status` fields are not accepted. Returns 410 if either is present; use POST /applications/{id}/stage for a manual move or the reject_candidate / withdraw_application batch actions.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","description":"Free-text note to store against the application."}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Application"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"410":{"description":"Gone - stage/status field rejected. Use POST /applications/{id}/stage or POST /batch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/applications/{id}/assessment":{"post":{"summary":"Re-assess application","operationId":"reassessApplication","tags":["Applications"],"description":"Queues a fresh assessment after the candidate, job requirements or Client DNA changed. The existing assessment remains readable until the new result replaces it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"app_ id."},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"202":{"description":"Assessment queued.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","required":["application_id","status"],"properties":{"application_id":{"type":"string"},"status":{"type":"string","enum":["processing"]}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/applications/bulk-update":{"post":{"summary":"Bulk update applications","operationId":"bulkUpdateApplications","tags":["Applications"],"description":"Moves many applications at once, to any stage in either direction, with the same rules as POST /applications/{id}/stage: a move to submitted, client_interview, references or offer with no send on record logs one marked sent_outside (nothing is emailed to the client), leaving no, rejected or withdrew clears the rejection reason, and a placed application with a standing placement is refused for that item. Only three moves email the candidate: placed sends the hired email, rejected sends the rejection email only to a real applicant (never an agency-added candidate), and withdrew sends the withdrawal acknowledgement. email_options.skipRejectionEmail and email_options.skipWithdrawalAck move to rejected or withdrew without emailing; the hired email cannot be skipped here, so move one application with POST /applications/{id}/stage and notify_candidate false instead. Send either updates[] (one item per application) or application_ids[] with one status for all of them. Each item succeeds or fails on its own.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","description":"One item per application. Send this or application_ids, not both.","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Application external ID (app_ prefix)."},"status":{"type":"string","enum":["funnel","maybe","yes","no","screen","submitted","client_interview","references","offer","placed","rejected","withdrew"],"description":"The stage to move to. Leave out to update notes only."},"notes":{"type":"string","description":"Audit note for the move, or the new application notes when status is left out."},"rejection_reason":{"type":"string","description":"Kept when the stage is no or rejected."},"email_options":{"$ref":"#/components/schemas/BulkUpdateEmailOptions"}}}},"application_ids":{"type":"array","items":{"type":"string"},"description":"Application external IDs (app_ prefix) that all get the same status. Needs status."},"status":{"type":"string","enum":["funnel","maybe","yes","no","screen","submitted","client_interview","references","offer","placed","rejected","withdrew"],"description":"The stage every application_ids entry moves to."},"note":{"type":"string","description":"Audit note for the move, applied to every application_ids entry."},"rejection_reason":{"type":"string","description":"Kept when the stage is no or rejected, applied to every application_ids entry."},"email_options":{"$ref":"#/components/schemas/BulkUpdateEmailOptions"}}}}}},"responses":{"200":{"description":"Bulk update results","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"updated":{"type":"integer"},"failed":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"application_id":{"type":"string"},"success":{"type":"boolean"},"error":{"type":"string"}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/interviews":{"get":{"summary":"List interviews","operationId":"listInterviews","tags":["Interviews"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Only interviews on this job (job_ id)."},{"name":"candidate_id","in":"query","schema":{"type":"string"},"description":"Only interviews for this candidate (cnd_ id)."},{"name":"application_id","in":"query","schema":{"type":"string"},"description":"Only interviews on this application (app_ id)."},{"name":"status","in":"query","schema":{"type":"string","enum":["scheduled","completed","no_show","cancelled"]},"description":"Coarse status: scheduled is pending, completed covers passed and failed."},{"name":"scheduled_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only interviews scheduled at or after this ISO 8601 datetime."},{"name":"scheduled_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only interviews scheduled at or before this ISO 8601 datetime."},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/createdBefore"}],"responses":{"200":{"description":"Paginated interviews","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Interview"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"post":{"summary":"Schedule interview","operationId":"createInterview","tags":["Interviews"],"description":"Schedules an interview. A client interview (flavour: client) with scheduled_at and client_contact_ids books an exact time with the invite fan-out: the candidate and the client contact(s) get the invitation and .ics at booking, and a submitted application moves to client_interview. An internal interview (the default flavour) moves a yes application to screen. A client interview is the client meeting the candidate, so two things are refused on it: interviewer_ids or hiring_manager_id (nobody from the agency attends), and offering the candidate a set of times to pick from (those times come from the agency's calendars). A client interview can be format video on the client's own meeting: pass the client's link as video_link, or leave it out and the emails tell the candidate the client is sending it and ask the client for it; add it later with the add_interview_link action. It never gets a note-taker. An internal video interview with no video_link gets a Google Meet or Microsoft Teams meeting from the organiser's connected calendar; with no calendar connected the candidate is told the link is coming, and add_interview_link sends it.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string"},"scheduled_at":{"type":"string","format":"date-time"},"format":{"type":"string","enum":["phone","video","in_person","technical"]},"flavour":{"type":"string","enum":["internal","client"],"default":"internal","description":"client books the candidate with the client and moves a submitted application to client_interview. internal (the default) is the agency's own screen and moves a yes application to screen."},"submission_id":{"type":"string","description":"Link a client interview to the submission it came from (sub_ id)."},"client_contact_ids":{"type":"array","maxItems":3,"items":{"type":"string"},"description":"Client-side attendees (cct_ ids), client interviews only. Up to 3. Each must have an email on file. They receive the calendar invite and .ics at booking; they never constrain the offered times."},"round":{"type":"integer"},"duration_minutes":{"type":"integer"},"video_link":{"type":"string","description":"An external meeting link (Teams/Zoom/Meet/Webex). The bare link or the whole pasted invite: the join link is read out of it, and text with no link in it is refused. On an internal interview, when absent, the organiser's connected calendar makes a Google Meet or Microsoft Teams meeting, else the link is marked as coming. On a client interview it is the client's own link; when absent the link is marked as coming from the client."},"location":{"type":"string","description":"Where an in-person interview happens. Rides the calendar invite's LOCATION line and the invitation emails."},"scheduling_mode":{"type":"string","enum":["propose","automated","self_schedule"],"default":"propose"},"interviewer_ids":{"type":"array","items":{"type":"string"},"description":"Agency-side attendees (usr_ ids). Internal interviews only - a client interview is the client meeting the candidate and carries none."},"notes_for_candidate":{"type":"string"},"notes_for_interviewer":{"type":"string"},"ignore_conflicts":{"type":"boolean","default":false,"description":"Booking an exact time checks every attendee's free/busy (Lovelio calendar, plus Google where connected) and a clash refuses with 409 SCHEDULING_CONFLICT. Pass true to book through a known clash - an explicit override, never the default, so a plain call can never silently double-book."}}}}}},"responses":{"201":{"description":"Interview scheduled. meta.warnings lists attendees whose connected Google Calendar could not be read - their Lovelio events were still checked - plus a quiet note for any interviewer whose preferred interview times the booked slot falls outside (preferences never block a booking).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Interview"},"meta":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"An attendee is busy at the requested time (SCHEDULING_CONFLICT). data carries conflicts (who is busy and when), suggestions (up to 3 conflict-free alternative windows, which also respect the interviewers' preferred interview times - a window somebody excluded is never suggested) and warnings (Google calendars that could not be read). Retry with ignore_conflicts: true to book it anyway. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"data":{"type":"object","properties":{"conflicts":{"type":"array","items":{"type":"object","properties":{"attendee_email":{"type":"string"},"attendee_name":{"type":"string","nullable":true},"busy_starts_at":{"type":"string","format":"date-time"},"busy_ends_at":{"type":"string","format":"date-time"},"busy_title":{"type":"string","nullable":true}}}},"suggestions":{"type":"array","items":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"error":{"$ref":"#/components/schemas/Error"}}}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/interviews/{id}":{"get":{"summary":"Get interview","operationId":"getInterview","tags":["Interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Interview details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Interview"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"patch":{"summary":"Update interview","operationId":"updateInterview","tags":["Interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["pending","passed","failed","no_show","cancelled"],"description":"Record the interview result. Preferred over status - it distinguishes a pass from a fail. Wins when both are sent. Recording an outcome NEVER moves the application: how the interview went and what happens next are separate decisions, and the second one is a person's. Move the candidate with POST /applications/{id}/stage once that decision is made."},"status":{"type":"string","enum":["scheduled","completed","cancelled","no_show"],"description":"Legacy coarse status; completed records a pass. Use outcome to record a fail."},"format":{"type":"string","enum":["phone","video","in_person","technical"]},"scheduled_at":{"type":"string","format":"date-time","description":"Moving the time re-checks every attendee's free/busy (Lovelio calendar, plus Google where connected) - a clash refuses with 409 SCHEDULING_CONFLICT. The interview's own calendar event never counts against its new time, so a small nudge is always clean. Moving the time also voids the candidate's confirmation and moves the linked calendar event (and the organiser's Google event) to the new slot."},"ignore_conflicts":{"type":"boolean","default":false,"description":"Pass true to move the time through a known clash - an explicit override, never the default, so a plain call can never silently double-book."},"video_link":{"type":"string","nullable":true,"description":"The meeting link, the bare link or the whole pasted invite (the join link is read out of it). null clears it. Saves quietly: nobody is emailed. To save it AND send the candidate and client contacts the link with an updated calendar entry, use the add_interview_link action."},"duration_minutes":{"type":"integer"},"round":{"type":"integer"},"notes_for_candidate":{"type":"string"},"notes_for_interviewer":{"type":"string"},"feedback":{"type":"string"}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Interview"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"An attendee is busy at the new scheduled_at (SCHEDULING_CONFLICT). data carries conflicts (who is busy and when), suggestions (up to 3 conflict-free alternative windows) and warnings (Google calendars that could not be read). Retry with ignore_conflicts: true to move it anyway.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"data":{"type":"object","properties":{"conflicts":{"type":"array","items":{"type":"object","properties":{"attendee_email":{"type":"string"},"attendee_name":{"type":"string","nullable":true},"busy_starts_at":{"type":"string","format":"date-time"},"busy_ends_at":{"type":"string","format":"date-time"},"busy_title":{"type":"string","nullable":true}}}},"suggestions":{"type":"array","items":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"error":{"$ref":"#/components/schemas/Error"}}}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]},"delete":{"summary":"Delete interview","operationId":"deleteInterview","tags":["Interviews"],"description":"Soft deletes an interview. The record is hidden from all queries but not permanently removed. Requires interviews:write scope.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Interview not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/{id}/context":{"get":{"summary":"Get interview preparation and debrief","operationId":"getInterviewContext","tags":["Interviews"],"description":"The complete interview read: attendees and confirmation, the 30-second preparation digest, one scorecard per interviewer, the deterministic consolidated verdict, and the legal next actions. Recording an outcome never moves the application stage.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"ivw_ id."}],"responses":{"200":{"description":"Interview context.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/InterviewContext"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]}},"/interviews/{id}/cancel":{"post":{"summary":"Cancel interview","operationId":"cancelInterview","tags":["Interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"200":{"description":"Cancelled","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Interview"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/{id}/scorecard":{"post":{"summary":"Submit interview scorecard","operationId":"submitScorecard","tags":["Interviews"],"description":"Compatibility door for submitting the authenticated interviewer's scorecard. Scores map section names or section ids to a 1-5 score. Lovelio writes through the same per-interviewer form used by the product, consolidates all interviewer cards, records the interview outcome, and never moves the application stage. Requires interviews:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["recommendation"],"properties":{"scores":{"type":"object","additionalProperties":{"type":"number"},"description":"Map of criterion name to numeric score (e.g. { \"Technical\": 4 })."},"recommendation":{"type":"string","enum":["strong_hire","hire","no_hire","strong_no_hire"]},"notes":{"type":"string","description":"Free-text scorecard notes."}}}}}},"responses":{"200":{"description":"Scorecard stored","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","required":["interview_id","form_instance_id","recommendation","status"],"properties":{"interview_id":{"type":"string","description":"ivw_ id."},"form_instance_id":{"type":"string","description":"fin_ id for this interviewer's completed card."},"recommendation":{"type":"string","enum":["strong_hire","hire","no_hire","strong_no_hire"]},"outcome":{"type":"string","nullable":true,"enum":["Passed","Failed",null]},"status":{"type":"string","enum":["completed"]}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Missing or invalid recommendation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/{id}/schedule-link":{"post":{"summary":"Generate candidate self-schedule link","operationId":"generateInterviewScheduleLink","tags":["Interviews"],"description":"Creates a one-time, expiring link the candidate uses to pick an interview time from the interviewer's live Google Calendar availability. Interview must be unscheduled. Optionally emails the link to the candidate. Requires interviews:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"send_email":{"type":"boolean","default":true,"description":"Email the candidate the link automatically."},"ttl_days":{"type":"integer","minimum":1,"maximum":30,"default":7,"description":"Link validity window in days."}}}}}},"responses":{"201":{"description":"Schedule link created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"token":{"type":"string","description":"Opaque token (also included in the url). Treat as a secret."},"url":{"type":"string","format":"uri","description":"Public URL the candidate opens."},"expires_at":{"type":"string","format":"date-time"},"email_sent":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Interview is already scheduled or cancelled. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/calls":{"get":{"summary":"List calls","operationId":"listCalls","tags":["Calls"],"description":"Recorded calls, newest first. Requires calls:read. Each page is filtered to what the key can see after it is fetched, so a page can hold fewer than limit rows while has_more is true; keep following next_cursor.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"candidate_id","in":"query","schema":{"type":"string"},"description":"Filter by candidate (cnd_)."},{"name":"client_contact_id","in":"query","schema":{"type":"string"},"description":"Filter by client contact (cct_)."},{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Filter by job (job_)."},{"name":"application_id","in":"query","schema":{"type":"string"},"description":"Filter by application (app_)."},{"name":"interview_id","in":"query","schema":{"type":"string"},"description":"Filter by interview (ivw_)."},{"name":"client_id","in":"query","schema":{"type":"string"},"description":"Filter by client (cli_)."},{"name":"owner_id","in":"query","schema":{"type":"string"},"description":"Filter by the consultant who owns the call (usr_)."},{"name":"unlinked","in":"query","schema":{"type":"boolean"},"description":"true: only phone calls that matched nobody by number and have no candidate or contact yet. Link each with POST /calls/{id}/link."},{"name":"recorded","in":"query","schema":{"type":"boolean"},"description":"true: only calls with a recording or transcript, leaving out calls a consultant logged by hand."},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Comma-separated platforms: zoom, google_meet, microsoft_teams, lovelio, phone, in_person, other, aircall. Example: phone,aircall."},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/createdBefore"}],"responses":{"200":{"description":"Paginated calls","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Call"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:read"]}],"x-required-scopes":["calls:read"]},"post":{"summary":"Book a call","operationId":"bookCall","tags":["Calls"],"description":"Book a call with a candidate or client contact, or start one now. Requires calls:write and a key or connection that acts as a user: the call goes on that user's Google or Outlook calendar with a Meet or Teams link, and is recorded by the agency's call settings unless record says otherwise. Leave starts_at out to start now. Answers with the calendar event; the recorded call appears on GET /calls once it is booked. Supports Idempotency-Key.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"candidate_id":{"type":"string","description":"Candidate (cnd_). One of candidate_id, client_contact_id, application_id or calendar_event_id is required."},"client_contact_id":{"type":"string","description":"Client contact (cct_)."},"application_id":{"type":"string","description":"Application (app_). Books the call with its candidate."},"job_id":{"type":"string","description":"Job (job_) the call is about."},"starts_at":{"type":"string","format":"date-time","description":"Leave out to start now."},"duration_minutes":{"type":"integer","minimum":5,"maximum":240,"default":30},"title":{"type":"string","description":"Defaults to \"Call with <name>\"."},"notes":{"type":"string"},"platform":{"type":"string","enum":["google_meet","microsoft_teams","zoom"],"description":"Which link to make. zoom needs the user to have connected Zoom. Falls back to one the calendar can make."},"record":{"type":"boolean","description":"Record the call. Leave it out to follow the call settings."},"tell_them":{"type":"boolean","description":"Say in the invite that the call is recorded. Leave it out to follow the call settings."},"call_type":{"type":"string","enum":["candidate_screen","client_briefing","reference","interview_debrief","business_development"]},"ignore_conflicts":{"type":"boolean","description":"Book even when the time clashes with another event."}}}}}},"responses":{"201":{"description":"Call booked","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CalendarEvent"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"No calendar connected, or the time clashes Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/calls/{id}":{"get":{"summary":"Get call","operationId":"getCall","tags":["Calls"],"description":"One call with its people, every line of the transcript, the write-up and a one-hour link to the recording. Requires calls:read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The call","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CallDetail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Call not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:read"]}],"x-required-scopes":["calls:read"]},"delete":{"summary":"Delete call (they said no)","operationId":"discardCall","tags":["Calls"],"description":"The other person did not agree to the recording. Deletes the call with its recording, transcript, write-up, next steps, clips and timeline entry, and the same source can never build it again: a late transcript, phone system retry or app upload for it is refused. A meeting notetaker still in the meeting leaves first. No undo. Requires calls:write; a key that acts as a user must be the consultant on the call, a team leader or an admin.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not the consultant on the call, a team leader or an admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Call not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"]}},"/calls/uploads":{"post":{"summary":"Upload a call recording","operationId":"startCallUpload","tags":["Calls"],"description":"Step one of two. Puts a recorded call on one person and answers with where to send the file: PUT the file to upload.url with upload.headers before upload.expires_at, then POST /calls/{id}/upload-complete. MP4, MOV, WebM, M4A, AAC, MP3, WAV, OGG or FLAC, up to 2 GB. With parts true the file goes in parts while it is still being recorded: upload is null, parts.part_bytes is how long every part but the last must be, and POST /calls/{id}/upload-parts gives the URLs. Refused when the agency has call recording switched off. client_ref is your own id for the recording: a retry with the same client_ref answers with the same call, and upload is null once its file is in. An upload never completed is deleted after a day. Requires calls:write. Supports Idempotency-Key.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["content_type"],"properties":{"candidate_id":{"type":"string","description":"Candidate (cnd_). One of candidate_id, client_contact_id or application_id is required."},"client_contact_id":{"type":"string","description":"Client contact (cct_)."},"application_id":{"type":"string","description":"Application (app_). Puts the call on its candidate and job."},"job_id":{"type":"string","description":"Job (job_) the call is about."},"calendar_event_id":{"type":"string","description":"A meeting (cal_) in your own diary. Puts the call on whoever is on it. Needs a key that acts as a user."},"parts":{"type":"boolean","description":"true: send the file in parts through POST /calls/{id}/upload-parts instead of one PUT."},"content_type":{"type":"string","example":"audio/mp4","description":"The file's MIME type. The file itself is checked at upload-complete."},"client_ref":{"type":"string","maxLength":200,"description":"Your own id for this recording."},"title":{"type":"string"},"started_at":{"type":"string","format":"date-time","description":"When the call happened."},"duration_seconds":{"type":"integer","minimum":1},"platform":{"type":"string","enum":["zoom","google_meet","microsoft_teams","phone","in_person","other"],"description":"Where the call happened. Defaults to other."},"call_type":{"type":"string","enum":["candidate_screen","client_briefing","reference","interview_debrief","business_development"],"description":"Shapes the write-up. Defaults to candidate_screen for a candidate, client_briefing for a contact."}}}}}},"responses":{"201":{"description":"Ready for the file","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/Call"},"upload":{"type":"object","nullable":true,"description":"Null when the file for this client_ref is already in, or when it is sent in parts.","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expires_at":{"type":"string","format":"date-time"}}},"parts":{"type":"object","nullable":true,"description":"Set when parts was true and the file is not in yet.","properties":{"part_bytes":{"type":"integer","description":"Every part but the last is exactly this many bytes."},"max_parts":{"type":"integer"}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Candidate, contact, application or job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Validation error, a file type Lovelio cannot read, recording switched off, or a call deleted because they said no","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/calls/{id}/upload-parts":{"post":{"summary":"Send a call recording in parts","operationId":"signCallUploadParts","tags":["Calls"],"description":"Signed URLs for parts of a recording started with parts true, so it can be sent while it is still being recorded. parts is the list of part numbers, from 1, at most 100 a time. PUT each part's bytes to its url with its headers before expires_at; sending a part again replaces it. Every part but the last is exactly part_bytes long. When all are sent, POST /calls/{id}/upload-complete with parts and bytes. stored true means the recording is already in and there is nothing to send. Requires calls:write. Same action as sign_call_upload_parts in the batch door.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parts"],"properties":{"parts":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100}}}}}},"responses":{"200":{"description":"A URL for each part","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"stored":{"type":"boolean"},"parts":{"type":"array","items":{"type":"object","properties":{"part":{"type":"integer"},"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expires_at":{"type":"string","format":"date-time"}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Call not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Part numbers outside 1 to the most a recording can have, or more than 100 at once","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"]}},"/calls/{id}/upload-complete":{"post":{"summary":"Finish a call upload","operationId":"finishCallUpload","tags":["Calls"],"description":"Step two of two, after the file is PUT to upload.url. Lovelio reads the file: one that is not a recording, or is over 2 GB, is deleted and refused. A real one is transcribed in the background, with the write-up and next steps after it; GET /calls/{id} shows status ready when they are done. Calling it again once the file is in is safe. Sent in parts, pass parts and bytes: a part that is missing or the wrong length answers 409 with data.missing, the part numbers to send again. marks are moments to keep as clips. Requires calls:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"type":"integer","minimum":1,"description":"Sent in parts: how many."},"bytes":{"type":"integer","minimum":1,"description":"Sent in parts: the whole recording's length in bytes."},"marks":{"type":"array","maxItems":50,"description":"Moments to keep as clips once the transcript is in.","items":{"type":"object","required":["at_ms"],"properties":{"at_ms":{"type":"integer","minimum":0,"description":"Milliseconds from the start of the recording."}}}}}}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["processing"]},"poll_url":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Call not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The file has not finished uploading, or parts are missing (data.missing)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The file is not a recording, or is over 2 GB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"]}},"/calls/{id}/link":{"post":{"summary":"Link a phone call to a person","operationId":"linkCallToPerson","tags":["Calls"],"description":"Link a phone call that matched nobody by number (or matched two people) to the candidate or client contact on it. Requires calls:write. Pass exactly one of candidate_id or client_contact_id; a contact links their client too. Only a ready phone call with no candidate and no contact can be linked, and a linked call never moves. Linking names the other voice, writes the call on their timeline and writes up the call. Find these calls with GET /calls?unlinked=true. Same action as link_call_to_person in the batch door.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"candidate_id":{"type":"string","description":"Candidate (cnd_). Pass this or client_contact_id."},"client_contact_id":{"type":"string","description":"Client contact (cct_). Pass this or candidate_id."},"save_number":{"type":"boolean","description":"true: also save the number the call came from onto the person. Only when they have no number yet; an existing number is never replaced."}}}}}},"responses":{"200":{"description":"The linked call. number_saved true when save_number put the number onto the person.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/Call"},{"type":"object","properties":{"number_saved":{"type":"boolean"}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Call, candidate or contact not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The call is already linked, or is still being processed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Not a phone call, or not exactly one of candidate_id and client_contact_id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"]}},"/calls/{id}/speakers":{"post":{"summary":"Name a speaker","operationId":"nameCallSpeaker","tags":["Calls"],"description":"Say who a voice on the transcript is (\"Speaker 1 is Sam\"). Requires calls:write. participant_id is the speaker from GET /calls/{id}. Pass exactly one of candidate_id (the call's own candidate), client_contact_id (a contact at the call's client), user_id (a consultant on your team) or name (anyone else), or reset true to put back the name the recording gave. The same person may be given to more than one voice. The transcript, talk time, clips, quotes and search follow at once; a write-up nobody has edited is written again about a minute later, and an edited one is left as it is. Same action as name_call_speaker in the batch door.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["participant_id"],"properties":{"participant_id":{"type":"string","description":"The speaker (cpt_), from participants on GET /calls/{id}."},"candidate_id":{"type":"string","description":"The call's candidate (cnd_)."},"client_contact_id":{"type":"string","description":"A contact at the call's client (cct_)."},"user_id":{"type":"string","description":"A consultant on your team (usr_)."},"name":{"type":"string","maxLength":80,"description":"Anyone else, by name."},"reset":{"type":"boolean","description":"true: put back the name the recording gave."}}}}}},"responses":{"200":{"description":"The call with its people and transcript, as GET /calls/{id}.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CallDetail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Call or speaker not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The call has no transcript yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Not exactly one of candidate_id, client_contact_id, user_id, name or reset, or that person is not on this call","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["calls:write"]}],"x-required-scopes":["calls:write"]}},"/placements":{"get":{"summary":"List placements","operationId":"listPlacements","tags":["Placements"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"client_id","in":"query","schema":{"type":"string"},"description":"Filter by client (cli_)."},{"name":"candidate_id","in":"query","schema":{"type":"string"},"description":"Filter by candidate (cnd_)."},{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Filter by job (job_)."},{"name":"status","in":"query","schema":{"type":"string","enum":["pending_start","started","fell_off","completed"]}},{"name":"payroll_approval","in":"query","schema":{"type":"string","enum":["approved","waiting"]},"description":"Contract and temp placements only. approved: an admin approved it for payroll (contracting.payroll_approval is set). waiting: not yet approved and not fallen off. A payroll partner uses approved to catch up on any placement.approved it missed."},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/createdBefore"}],"responses":{"200":{"description":"Paginated placements","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Placement"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]},"post":{"summary":"Create placement","operationId":"createPlacement","tags":["Placements"],"description":"Log a placement: the win. Every placement traces back to a job and a live application. Pass application_id (app_) to log it against the application - it moves to placed automatically. Or pass candidate_id + client_id: the candidate must already be live on exactly one of the client's OPEN jobs - Active or On Hold (pass job_id to disambiguate) - and the placement links to that application; otherwise the request fails validation. A placement on a Closed or Filled job is refused whichever way it is addressed: reopen the job first. Fee percent and guarantee default off the client's fee schedule (banded by salary, minimum fee applied) when omitted; fee.amount is computed at write time. Contract rates and expected GP cannot be negative, charge_rate must be at least pay_rate, and contract_end_date cannot precede start_date. Currency, when omitted, resolves in this order: the client's own fee terms, then the acting user's default_currency, then the agency's standard fee schedule, then the agency's country. A key with no acting user behind it skips the user step. Lovelio never converts between currencies. A placement also tidies up: the candidate's other live applications are withdrawn with a timeline note naming the placement, and their future interviews on those applications are cancelled with the candidate and the interviewer told (each email gated by its own automation switch). Pass tidy_up.keep_application_ids to keep named applications live. The job stays open, since jobs can be multi-hire, unless tidy_up.close_job is true, in which case it closes as Filled. What happened is reported in meta.tidy_up (withdrawn_application_ids, kept_application_ids, cancelled_interview_ids, job_closed, problems). Requires placements:write.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"application_id":{"type":"string","description":"app_ id. Resolves candidate, client, and job."},"tidy_up":{"type":"object","description":"Defaults when omitted: withdraw every other live application, keep the job open.","properties":{"keep_application_ids":{"type":"array","items":{"type":"string"},"description":"app_ ids of other live applications to leave alone."},"close_job":{"type":"boolean","description":"Close the job as Filled. Default false."}}},"candidate_id":{"type":"string","description":"cnd_ id. Required with client_id when no application_id. The candidate must be live on one of the client's open jobs."},"client_id":{"type":"string","description":"cli_ id."},"job_id":{"type":"string","description":"job_ id. Disambiguates when the candidate is on more than one of the client's jobs."},"salary":{"type":"number","description":"First-year BASE salary."},"super_percent":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set."},"super_amount":{"type":"number","nullable":true,"minimum":0,"description":"Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent."},"ote_amount":{"type":"number","nullable":true,"minimum":0,"description":"On-target earnings, INCLUDING base. The package takes the larger of OTE and base."},"bonus_amount":{"type":"number","nullable":true,"minimum":0,"description":"Bonus on top of base."},"currency":{"type":"string","description":"ISO 4217 code. Omit to let it default (see the endpoint description)."},"fee_type":{"type":"string","enum":["percent","fixed"],"default":"percent"},"fee_percent":{"type":"number","description":"Defaults to the band on the client's fee schedule (minimum fee applied). The band and the percent are taken of the client's fee basis: base salary, or the package total."},"fee_amount":{"type":"number","description":"Fixed fee amount (fee_type fixed)."},"placement_type":{"type":"string","enum":["permanent","contract"],"description":"Defaults from the job's employment_type: a contract job logs a contract placement."},"offer_date":{"type":"string","format":"date","description":"When the candidate accepted. Defaults to the recorded acceptance date, otherwise today."},"contract_end_date":{"type":"string","format":"date","description":"Contract placements: the initial term's end date. Must be on or after start_date."},"charge_rate":{"type":"number","minimum":0,"description":"Contract placements: what the client pays, per rate_period. Must be at least pay_rate."},"pay_rate":{"type":"number","minimum":0,"description":"Contract placements: what the contractor gets, per rate_period."},"rate_period":{"type":"string","enum":["hourly","daily","weekly"]},"on_cost_percent":{"type":"number","nullable":true,"minimum":0,"maximum":200,"description":"Contract placements: employer on-cost as a percent of pay (tax, pension, holiday), for a worker on the agency's payroll. Leave empty when the worker invoices the agency. Counts in the margin and in expected_gp. Send this or on_cost_amount, not both."},"on_cost_amount":{"type":"number","nullable":true,"minimum":0,"description":"Contract placements: employer on-cost as an amount per rate_period (for example 120 a day), for a worker on the agency's payroll. Counts in the margin and in expected_gp. Send this or on_cost_percent, not both."},"expected_gp":{"type":"number","minimum":0,"description":"Contract placements: expected gross profit over the initial term. Defaults to margin x term off the rates; an explicit value wins."},"credits":{"type":"array","description":"The credit split - one line per consultant, percents totalling 100. Defaults to the placement owner at 100%.","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The consultant's usr_ id."},"percent":{"type":"number"},"role":{"type":"string","enum":["candidate_consultant","job_owner","business_development","other"]}}}},"start_date":{"type":"string","format":"date"},"guarantee_days":{"type":"integer","description":"Defaults to the client's guarantee_days."},"notes":{"type":"string"},"hiring_manager_contact_id":{"type":"string","nullable":true,"description":"The client contact who hired (cct_ id of a contact on the client). Left out, it is the job's client contact. Null means none."},"invoice_contact_id":{"type":"string","nullable":true,"description":"The client contact who gets the invoice (cct_ id of a contact on the client). Left out, it is the client's default_invoice_contact_id. Null means none. The first one a client's placement names becomes that client's default when it has none."},"po_number":{"type":"string","nullable":true,"maxLength":200,"description":"The client's purchase order number for this placement."},"invoice_notes":{"type":"string","nullable":true,"maxLength":5000,"description":"What accounts needs to bill this placement."},"work_site_id":{"type":"string","description":"Contract placements: where the work happens, a site_ id on the same client (GET /clients/{id}/sites). Its country decides which contractor payroll fields apply. A site on another client returns 422."},"work_site":{"type":"object","description":"Contract placements: add the workplace inline instead of work_site_id. Creates the site on the client (or reuses the same address) and links it. Ignored when work_site_id is sent.","properties":{"label":{"type":"string"},"street":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"postcode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2. Required."}},"required":["country"]},"position_id":{"type":"string","nullable":true,"description":"Contract placements: the payroll partner's own id for the Position, from GET /payroll-reference/positions. An id not on that list returns 422."},"rate_template_id":{"type":"string","nullable":true,"description":"Contract placements: the payroll partner's own id for the Rate template, from GET /payroll-reference/rate-templates. An id not on that list returns 422."},"timesheet_approver_contact_ids":{"type":"array","items":{"type":"string"},"description":"Contract placements: who approves the timesheets, first approver first. cct_ ids of contacts on the placement's client, each with an email; anything else returns 422."},"contractor_details":{"type":"object","description":"Contract placements: the contractor's payroll-facing details for the work country, stored on the candidate. Needs a work site so the country is known. Australia: payment_type, abn, entity_name and gst_registered; the ABN is checksum-validated.","properties":{"payment_type":{"type":"string","enum":["payg","abn"],"nullable":true,"description":"Australia: paid PAYG through the agency, or invoicing under their own ABN."},"abn":{"type":"string","nullable":true,"description":"Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn."},"entity_name":{"type":"string","nullable":true,"maxLength":200,"example":"Smith Consulting Pty Ltd","description":"Australia, ABN only: the legal entity the ABN belongs to, as on the ABN register. A recipient-created tax invoice (RCTI) is issued to it. Dropped when payment_type is payg."},"gst_registered":{"type":"string","enum":["yes","no"],"nullable":true,"description":"Australia, ABN only: whether the entity is registered for GST, which decides the GST line on an RCTI. Writes also take true or false. Dropped when payment_type is payg."}}}}}}}},"responses":{"201":{"description":"Placement logged. meta.tidy_up says what else happened.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Placement"},"meta":{"type":"object","properties":{"tidy_up":{"type":"object","properties":{"withdrawn_application_ids":{"type":"array","items":{"type":"string"}},"kept_application_ids":{"type":"array","items":{"type":"string"}},"cancelled_interview_ids":{"type":"array","items":{"type":"string"}},"job_closed":{"type":"boolean"},"problems":{"type":"array","items":{"type":"string"},"description":"Tidy-up steps that failed, in words. The placement itself stands."}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:write"]}],"x-required-scopes":["placements:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/placements/check-ins":{"get":{"summary":"Contractors to check in with","operationId":"listContractorCheckIns","tags":["Placements"],"description":"The contractors to check in with this week: contracts finishing within 8 weeks with no free date a person confirmed since the 8 weeks began, and placed contractors not heard from in 30 days (no reply, call or confirmed date). Anyone with an ask still open is left out. The same list the Contractors page and home show. Finishing contracts come first, soonest end first, then the longest quiet. Draft the emails with the draft_contractor_check_ins action and send them with send_availability_asks; nothing is sent by this read. Pure read.","responses":{"200":{"description":"The check-in list","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"count":{"type":"integer","description":"Contractors to check in with."},"to_draft":{"type":"integer","description":"Of those, how many can be reached, by email or WhatsApp. The rest need a call."},"contractors":{"type":"array","items":{"type":"object","properties":{"placement_id":{"type":"string","example":"pla_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string","example":"cnd_550e8400e29b41d4a716446655440000"},"name":{"type":"string"},"has_email":{"type":"boolean"},"can_whatsapp":{"type":"boolean","description":"They agreed to WhatsApp, have a number it can use, were not asked on WhatsApp in the last 7 days, and the agency has WhatsApp asks switched on: the ask is drafted for WhatsApp."},"whatsapp_after_hours":{"type":"boolean","description":"It is outside 8am to 6pm on a weekday, their time, so a WhatsApp ask would be refused right now."},"client_name":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"contract_end":{"type":"string","format":"date","nullable":true},"reason":{"type":"string","enum":["finishing","quiet"],"description":"finishing: ends within 8 weeks with no confirmed free date. quiet: not heard from in 30 days."},"last_heard_at":{"type":"string","format":"date-time","nullable":true,"description":"The last reply, call or confirmed date from them."},"line":{"type":"string","description":"Plain-English reason, e.g. \"Finishes 13 Nov, no free date confirmed\"."}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]}},"/placements/contractor-report":{"get":{"summary":"Contract forecast and compliance report","operationId":"getContractorReport","tags":["Placements"],"description":"The manager's contract forecast: every live contract (running, starting or finishing) with its GP week by week for the next 13 weeks, added up for the whole agency, for each team (a team counts the teams inside it) and for each consultant. A week is the agency's standard week (38 hours in Australia, 37.5 in the UK, 40 elsewhere, or the figure set in Settings) over 5 days. Hourly and daily contractors lose the public holidays where they work (country and state); weekly rates bill through them. Each contract stops at its end date. document_issues counts the documents missing, expired, running out before the contract ends or waiting to be checked. The same figures as the Contractors page Forecast view and the get_contractor_report action. Money fields are null unless the key holds placements:financials:read. A key acting as a user who cannot see everyone's billings and GP gets GP on that user's own contracts only, and the totals add up only those. Money is one line per currency; Lovelio never converts. Pure read.","parameters":[{"name":"team_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only contracts whose consultant sits in this team or a team inside it. A tem_ id."},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only this consultant's contracts. A usr_ id."}],"responses":{"200":{"description":"The contractor report","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"week":{"type":"object","properties":{"hours":{"type":"number","example":38},"days":{"type":"integer","example":5},"source":{"type":"string","enum":["agency","country"],"description":"agency: set in Settings. country: the standard for the agency's country."}}},"week_starts":{"type":"array","items":{"type":"string","format":"date"},"description":"The Monday of each of the 13 weeks, this week first."},"total":{"$ref":"#/components/schemas/ContractorReportGroup"},"teams":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ContractorReportGroup"},{"type":"object","properties":{"team_id":{"type":"string","nullable":true,"description":"Null for \"No team\"."},"depth":{"type":"integer","description":"How deep the team sits in the team tree, 0 for a top team."}}}]},"description":"Teams with live contracts, in tree order. Empty when the agency has no teams."},"consultants":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ContractorReportGroup"},{"type":"object","properties":{"owner_id":{"type":"string","nullable":true,"description":"Null for \"No consultant\"."}}}]},"description":"Consultants with live contracts, most contracts first."},"public_holidays":{"type":"array","description":"The public holidays in the 13 weeks for each place the contractors work. known is false when Lovelio has no calendar for that country, so no days come off.","items":{"type":"object","properties":{"calendar":{"type":"string","example":"New South Wales"},"country":{"type":"string","example":"AU"},"region":{"type":"string","nullable":true,"example":"NSW"},"known":{"type":"boolean"},"contracts":{"type":"integer"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"name":{"type":"string"}}}}}}},"documents_readable":{"type":"boolean","description":"False when the documents could not be read; the document counts are then null."},"contracts":{"type":"array","items":{"type":"object","properties":{"placement_id":{"type":"string","example":"pla_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string","example":"cnd_550e8400e29b41d4a716446655440000"},"candidate_name":{"type":"string","nullable":true},"client_id":{"type":"string","example":"cli_550e8400e29b41d4a716446655440000"},"client_name":{"type":"string","nullable":true},"owner_id":{"type":"string","nullable":true,"example":"usr_550e8400e29b41d4a716446655440000"},"owner_name":{"type":"string"},"team_id":{"type":"string","nullable":true},"status":{"type":"string"},"start_date":{"type":"string","format":"date","nullable":true},"end_date":{"type":"string","format":"date","nullable":true},"currency":{"type":"string","nullable":true},"working_this_week":{"type":"boolean"},"ends_in_13_weeks":{"type":"boolean"},"gp_this_week":{"type":"number","nullable":true},"gp_next_13_weeks":{"type":"number","nullable":true,"description":"Null without placements:financials:read, or when the rates or start date are missing."},"gp_by_week":{"type":"array","items":{"type":"number","nullable":true},"nullable":true,"description":"GP for each of the 13 weeks, 0 for a week they do not work."},"public_holidays_off":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"name":{"type":"string"}}},"description":"The public holidays this contractor loses in the 13 weeks. Always empty for a weekly rate."},"public_holiday_calendar":{"type":"string","example":"New South Wales"},"document_issues":{"type":"integer","nullable":true},"money_hidden":{"type":"boolean","description":"True for another consultant's contract when the acting user cannot see everyone's billings and GP: its GP fields are null."}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]}},"/placements/extension-asks":{"get":{"summary":"Contracts ending with no plan","operationId":"listExtensionAsks","tags":["Placements"],"description":"Contracts ending within 8 weeks with no plan (not asked, will be extended or finishing, and not going perm) and no extension ask sent about their current end date yet. The same list the Contractors page shows, soonest end first. Draft the asks with the draft_extension_asks action (\"Keep Priya past 13 Nov?\" to the client contact, \"Want to stay on?\" to the contractor) and send them with send_extension_asks; the answers set the contract plan or offer an Extend with the new date filled in. Nothing is sent by this read. Pure read.","responses":{"200":{"description":"The contracts to ask about","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"count":{"type":"integer","description":"Contracts ending with no plan and nobody asked."},"to_draft":{"type":"integer","description":"Asks one draft_extension_asks call writes: the client contact by email, and the contractor by email or WhatsApp, where each can be reached."},"contracts":{"type":"array","items":{"type":"object","properties":{"placement_id":{"type":"string","example":"pla_550e8400e29b41d4a716446655440000"},"candidate_id":{"type":"string","example":"cnd_550e8400e29b41d4a716446655440000"},"name":{"type":"string","description":"The contractor."},"has_email":{"type":"boolean","description":"The contractor can be emailed."},"can_whatsapp":{"type":"boolean","description":"They agreed to WhatsApp, have a number it can use, were not asked on WhatsApp in the last 7 days, and the agency has WhatsApp asks switched on: the ask is drafted for WhatsApp."},"whatsapp_after_hours":{"type":"boolean","description":"It is outside 8am to 6pm on a weekday, their time, so a WhatsApp ask would be refused right now."},"client_name":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"contract_end":{"type":"string","format":"date"},"contact":{"type":"object","nullable":true,"description":"Who at the client is asked: the job's contact, else the primary contact, else the oldest. Null when the client has no contacts.","properties":{"client_contact_id":{"type":"string","example":"cct_550e8400e29b41d4a716446655440000"},"name":{"type":"string","nullable":true},"has_email":{"type":"boolean"}}},"client_asked":{"type":"boolean","description":"The client contact was already asked about this end date."},"contractor_asked":{"type":"boolean","description":"The contractor has an ask open already, so only the client is drafted."},"line":{"type":"string","description":"Plain English, e.g. \"Finishes 13 Nov, no plan yet\"."}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database is still being updated for extension asks. Try again in a few minutes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]}},"/payroll-reference/positions":{"get":{"summary":"Get your Positions","operationId":"listPayrollPositions","tags":["Placements"],"description":"The Positions you last pushed, with the ids you gave. Add include_retired=true to see ones you have stopped sending.","parameters":[{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Your own id."},"name":{"type":"string"},"retired":{"type":"boolean","description":"True once you stop sending it. Placements that already picked it keep it."}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]},"put":{"summary":"Push your Positions","operationId":"replacePayrollPositions","tags":["Placements"],"description":"Send the whole list every time. Entries you send are live (new ones are added, renamed ones updated, retired ones come back). Entries you leave out are retired, never deleted: a placement that already picked one keeps it, but nobody can pick it again. The whole list is checked first, so one bad entry changes nothing. Up to 5,000 entries. Consultants then pick from this list on a contract placement, and the pick comes back to you on placement.updated as contracting.position. Sending the same list again changes nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Your own id for this entry, up to 100 characters. This is the id placements carry back to you."},"name":{"type":"string","description":"What a consultant reads in the dropdown, up to 200 characters."}}}}}}}}},"responses":{"200":{"description":"The list as it stands now, with how many entries were added and retired.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"retired":{"type":"boolean"}}}},"added":{"type":"integer"},"retired":{"type":"integer"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"An entry has no id or name, an id appears twice, or the list is over 5,000 entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:write"]}],"x-required-scopes":["placements:write"]}},"/payroll-reference/rate-templates":{"get":{"summary":"Get your Rate templates","operationId":"listPayrollRateTemplates","tags":["Placements"],"description":"The Rate templates you last pushed, with the ids you gave. Add include_retired=true to see ones you have stopped sending.","parameters":[{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Your own id."},"name":{"type":"string"},"retired":{"type":"boolean","description":"True once you stop sending it. Placements that already picked it keep it."}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]},"put":{"summary":"Push your Rate templates","operationId":"replacePayrollRateTemplates","tags":["Placements"],"description":"Send the whole list every time. Entries you send are live (new ones are added, renamed ones updated, retired ones come back). Entries you leave out are retired, never deleted: a placement that already picked one keeps it, but nobody can pick it again. The whole list is checked first, so one bad entry changes nothing. Up to 5,000 entries. Consultants then pick from this list on a contract placement, and the pick comes back to you on placement.updated as contracting.rate_template. Sending the same list again changes nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Your own id for this entry, up to 100 characters. This is the id placements carry back to you."},"name":{"type":"string","description":"What a consultant reads in the dropdown, up to 200 characters."}}}}}}}}},"responses":{"200":{"description":"The list as it stands now, with how many entries were added and retired.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"retired":{"type":"boolean"}}}},"added":{"type":"integer"},"retired":{"type":"integer"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"An entry has no id or name, an id appears twice, or the list is over 5,000 entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:write"]}],"x-required-scopes":["placements:write"]}},"/job-opportunities":{"get":{"summary":"List job opportunities","operationId":"listJobOpportunities","tags":["Job Opportunities"],"description":"The roles and candidate leads being worked on Jobs > Opportunities, before a job exists. Not BD opportunities (/opportunities). Returns open ones by default, in the order to call them: the most overdue first, then the bigger possible fee. due=today answers \"who should I call today\". stage=lost or stage=parked lists the quiet ones, the latest first. Won ones are jobs now (GET /jobs), and each still reads by id. Read as the acting user: the same team scope as the tab, and possible_fee only on opportunities they may see money on. To change one, use the create_job_opportunity, update_job_opportunity and log_job_opportunity_contact actions through POST /batch. Converting to a job and settling a suggestion are pressed by a person in Lovelio; agents are refused. Requires jobs:read.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"stage","in":"query","schema":{"type":"string","enum":["new","talking","keen","terms","lost","parked"]}},{"name":"kind","in":"query","schema":{"type":"string","enum":["role","candidate"]}},{"name":"due","in":"query","schema":{"type":"string","enum":["today","week","new","later"]},"description":"When the next contact is due. today includes overdue ones. new: never contacted yet."},{"name":"client_id","in":"query","schema":{"type":"string"},"description":"Filter by client (cli_)."},{"name":"owner_id","in":"query","schema":{"type":"string"},"description":"Filter by the consultant working it (usr_)."}],"responses":{"200":{"description":"Paginated job opportunities","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/JobOpportunity"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"An unknown stage, kind or due, stage=won, a malformed client_id or owner_id, or a cursor whose opportunity has moved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/job-opportunities/{id}":{"get":{"summary":"Get job opportunity","operationId":"getJobOpportunity","tags":["Job Opportunities"],"description":"One job opportunity, Won ones included, with its waiting suggestion and its latest 20 timeline entries. Out of the acting user's scope reads as not found. Requires jobs:read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"opp_ id."}],"responses":{"200":{"description":"The job opportunity","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/JobOpportunity"},{"type":"object","properties":{"timeline":{"type":"array","items":{"$ref":"#/components/schemas/JobOpportunityTimelineEntry"}}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such job opportunity, or not yours to see.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/placements/{id}":{"get":{"summary":"Get placement","operationId":"getPlacement","tags":["Placements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Placement details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Placement"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]},"patch":{"summary":"Update placement","operationId":"updatePlacement","tags":["Placements"],"description":"Patch fields (salary, fee, start_date, guarantee_days, notes, contract terms, the contract plan, a rate change from a date, an early end with a reason, a conversion to perm), replace the credit split, or move the lifecycle status (pending_start / started / fell_off / completed). Status changes dispatch a placement.status_changed webhook, and every change dispatches one placement.updated carrying the placement as GET returns it plus changed_fields. fee.amount is recomputed when any fee input moves; expected_gp is recomputed when a contract's rates or term move unless set directly. Contract rates and expected GP cannot be negative, charge_rate must be at least pay_rate, and contract_end_date cannot precede start_date. credits replaces the whole split and must total 100.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending_start","started","fell_off","completed"]},"salary":{"type":"number","description":"First-year BASE salary."},"super_percent":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set."},"super_amount":{"type":"number","nullable":true,"minimum":0,"description":"Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent."},"ote_amount":{"type":"number","nullable":true,"minimum":0,"description":"On-target earnings, INCLUDING base. The package takes the larger of OTE and base."},"bonus_amount":{"type":"number","nullable":true,"minimum":0,"description":"Bonus on top of base."},"currency":{"type":"string"},"fee_type":{"type":"string","enum":["percent","fixed"]},"fee_percent":{"type":"number"},"fee_amount":{"type":"number"},"placement_type":{"type":"string","enum":["permanent","contract"]},"offer_date":{"type":"string","format":"date"},"contract_end_date":{"type":"string","format":"date","description":"Must be on or after start_date."},"charge_rate":{"type":"number","minimum":0,"description":"Must be at least pay_rate."},"pay_rate":{"type":"number","minimum":0},"rate_period":{"type":"string","enum":["hourly","daily","weekly"]},"on_cost_percent":{"type":"number","nullable":true,"minimum":0,"maximum":200,"description":"Contract placements: employer on-cost as a percent of pay (tax, pension, holiday), for a worker on the agency's payroll. Leave empty when the worker invoices the agency. Counts in the margin and in expected_gp. Send this or on_cost_amount, not both."},"on_cost_amount":{"type":"number","nullable":true,"minimum":0,"description":"Contract placements: employer on-cost as an amount per rate_period (for example 120 a day), for a worker on the agency's payroll. Counts in the margin and in expected_gp. Send this or on_cost_percent, not both."},"expected_gp":{"type":"number","minimum":0},"contract_plan":{"type":"string","enum":["asked","extending","finishing"],"nullable":true,"description":"Contract placements only: what happens on the contract's end date. asked: the client has been asked. extending: the client agreed to extend and only the paperwork is left. finishing: the contract ends. To record a contract going perm, set converted_on and conversion_salary instead. The plan is stored against the end date it answers (the one after this patch, when contract_end_date moves in the same request), so a later extension retires it and contract.plan reads null. Null clears it. To agree an extension, move contract_end_date (and the rates) instead."},"rates_from":{"type":"string","format":"date","description":"Contract placements only: the day new charge_rate / pay_rate / rate_period (sent in the same request) start applying. The earlier rates are kept for the weeks before it (contract.rate_history). A day inside an earlier stretch changes that stretch from the day and keeps every later change. Omit it to correct the current rates. Must be on or before contract_end_date."},"contract_end_reason":{"type":"string","enum":["client_ended","contractor_left"],"nullable":true,"description":"Contract placements only: why the contract is ending early. Send it with the earlier contract_end_date. converted is set by converted_on, never directly."},"converted_on":{"type":"string","format":"date","nullable":true,"description":"Contract placements only: the day the contractor goes perm with the client. The contract then ends the day before, contract.end_reason reads converted, and the contractor is no longer shown as available. Null undoes the conversion."},"next_contact_on":{"type":"string","format":"date","nullable":true,"description":"Contract placements that are running or about to start: the day to contact the contractor next (YYYY-MM-DD, today or later). The consultant gets a reminder that day and it goes in their calendar. Null clears it."},"conversion_salary":{"type":"number","nullable":true,"description":"Contract placements only: the perm salary on conversion."},"conversion_fee":{"type":"number","nullable":true,"description":"Contract placements only: the conversion fee. Defaults off the client's fee terms and the conversion salary when omitted. Added into expected_gp."},"credits":{"type":"array","description":"Replaces the whole split. Percents must total 100.","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The consultant's usr_ id."},"percent":{"type":"number"},"role":{"type":"string","enum":["candidate_consultant","job_owner","business_development","other"]}}}},"start_date":{"type":"string","format":"date"},"guarantee_days":{"type":"integer"},"notes":{"type":"string"},"hiring_manager_contact_id":{"type":"string","nullable":true,"description":"The client contact who hired (cct_ id of a contact on the placement's client). Null clears it."},"invoice_contact_id":{"type":"string","nullable":true,"description":"The client contact who gets the invoice (cct_ id of a contact on the placement's client). Can differ from the hiring manager. Null clears it."},"po_number":{"type":"string","nullable":true,"maxLength":200,"description":"The client's purchase order number for this placement. Null or an empty string clears it."},"invoice_notes":{"type":"string","nullable":true,"maxLength":5000,"description":"What accounts needs to bill this placement. Null or an empty string clears it."},"work_site_id":{"type":"string","nullable":true,"description":"Move the work to another of the client's sites (site_ id); work_country follows it. Null clears the site and keeps the country."},"position_id":{"type":"string","nullable":true,"description":"Contract placements: the payroll partner's own id for the Position, from GET /payroll-reference/positions. An id not on that list returns 422."},"rate_template_id":{"type":"string","nullable":true,"description":"Contract placements: the payroll partner's own id for the Rate template, from GET /payroll-reference/rate-templates. An id not on that list returns 422."},"timesheet_approver_contact_ids":{"type":"array","items":{"type":"string"},"description":"Replaces the whole approver list, in order. cct_ ids of contacts on the placement's client, each with an email. An empty list clears it."},"contractor_details":{"type":"object","description":"Replaces the contractor's details for the placement's work country (set work_site_id first). Australia: payment_type, abn, entity_name and gst_registered.","properties":{"payment_type":{"type":"string","enum":["payg","abn"],"nullable":true,"description":"Australia: paid PAYG through the agency, or invoicing under their own ABN."},"abn":{"type":"string","nullable":true,"description":"Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn."},"entity_name":{"type":"string","nullable":true,"maxLength":200,"example":"Smith Consulting Pty Ltd","description":"Australia, ABN only: the legal entity the ABN belongs to, as on the ABN register. A recipient-created tax invoice (RCTI) is issued to it. Dropped when payment_type is payg."},"gst_registered":{"type":"string","enum":["yes","no"],"nullable":true,"description":"Australia, ABN only: whether the entity is registered for GST, which decides the GST line on an RCTI. Writes also take true or false. Dropped when payment_type is payg."}}}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Placement"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:write"]}],"x-required-scopes":["placements:write"]}},"/quotas/plan":{"get":{"summary":"Get quota plan","operationId":"getQuotaPlan","tags":["Quotas"],"description":"The agency's quota plan. Auto-created with defaults on first read, so this never 404s. Read-only: plan defaults, periods and targets are managed in Settings > Quotas. Requires quotas:read.","responses":{"200":{"description":"The quota plan","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/QuotaPlan"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["quotas:read"]}],"x-required-scopes":["quotas:read"]}},"/quotas/periods":{"get":{"summary":"List quota periods","operationId":"listQuotaPeriods","tags":["Quotas"],"description":"Quota periods, newest first. Periods auto-roll on read, so the current one always exists. No cursor: an agency mints at most 12 periods a year, so limit is the whole story. Requires quotas:read.\n\nPagination: Returns the newest bounded period window selected by limit; agencies ordinarily create at most 12 periods a year. No after cursor is accepted.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","default":12,"minimum":1,"maximum":100}}],"responses":{"200":{"description":"Quota periods","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/QuotaPeriod"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["quotas:read"]}],"x-required-scopes":["quotas:read"]}},"/quotas/periods/{id}":{"get":{"summary":"Get quota period board","operationId":"getQuotaPeriodBoard","tags":["Quotas"],"description":"One period's quota board: recognised credit-share money, placement counts and targets for the agency, each team and each consultant, plus the period's adjustments ledger. The figures are the quota recognition engine's own answer - recognition basis, credit splits, adjustments and locked-period snapshots all respected - so they always match the Placements dashboard and the Booked card. Money is one line per currency, never converted. The board is pruned to the API key's data scope before it is returned: an all-scope key gets the whole board; a team-scoped key gets its own teams and people, never the agency row or other desks. A key acting as a user without \"See everyone's billings and GP\" gets money only on that user's own row; every other row carries money_hidden, and the ledger lists only that user's lines. Pass a qpd_ id, or the literal `current` for the period containing today. Requires quotas:read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"qpd_ id, or `current`."}],"responses":{"200":{"description":"The period's quota board","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/QuotaPeriod"},{"type":"object","properties":{"currency":{"type":"string","description":"The plan currency targets are measured in."},"recognition_basis":{"type":"string","enum":["offer_accepted","start_date"]},"agency":{"type":"object","nullable":true,"description":"Agency-wide progress. Null for a team-scoped key.","properties":{"booked":{"$ref":"#/components/schemas/QuotaMoney"},"placements":{"type":"integer"},"target":{"type":"number","nullable":true},"money_hidden":{"type":"boolean","description":"True when the acting user may not see this row's money (Settings > Permissions, \"See everyone's billings and GP\" off): booked is empty and target null. Absent otherwise."}}},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"tem_550e8400e29b41d4a716446655440000"},"name":{"type":"string"},"booked":{"$ref":"#/components/schemas/QuotaMoney"},"placements":{"type":"integer"},"target":{"type":"number","nullable":true},"money_hidden":{"type":"boolean","description":"True when the acting user may not see this row's money (Settings > Permissions, \"See everyone's billings and GP\" off): booked is empty and target null. Absent otherwise."},"members":{"type":"array","items":{"$ref":"#/components/schemas/QuotaBoardRow"}}}}},"unassigned":{"type":"array","description":"Consultants on no team. Empty for a team-scoped key.","items":{"$ref":"#/components/schemas/QuotaBoardRow"}},"adjustments":{"type":"array","description":"The period's ledger, oldest first. auto rows balance a locked-period change and cannot be removed. Empty unless the key may see it: a key acting as a user needs that user to hold the adjustments capability, the same wall the dashboard applies.","items":{"type":"object","properties":{"user_id":{"type":"string","nullable":true,"description":"The consultant's usr_ id, or null for the agency line."},"user_name":{"type":"string","nullable":true},"placement_id":{"type":"string","nullable":true},"kind":{"type":"string","enum":["manual","auto"]},"amount":{"type":"number","description":"Signed: positive credits, negative debits."},"currency":{"type":"string"},"reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}}}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["quotas:read"]}],"x-required-scopes":["quotas:read"]}},"/marketplace/listings":{"get":{"summary":"Browse marketplace listings","operationId":"listMarketplaceListings","tags":["Marketplace"],"description":"By default: live anonymised listings from other agencies (the browse surface - pre-scrubbed snapshots only, never source records). Pass mine=true for your own listings at any status. Walk-in and demo tenants cannot browse. Requires marketplace:read. The Marketplace is an opt-in module: every /marketplace route answers 402 PREMIUM_REQUIRED without an active Lovelio plan and 403 MARKETPLACE_DISABLED until an admin turns the module on in Settings > Integrations.","parameters":[{"name":"kind","in":"query","schema":{"type":"string","enum":["job","candidate"]}},{"name":"mine","in":"query","schema":{"type":"boolean","default":false},"description":"true = your own listings at any status."},{"name":"status","in":"query","schema":{"type":"string","enum":["live","paused","filled","expired","withdrawn"]},"description":"Only meaningful with mine=true (browse serves live only)."},{"name":"limit","in":"query","schema":{"type":"integer","default":25,"maximum":100}},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Paginated listings","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceListing"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:read"]}],"x-required-scopes":["marketplace:read"]},"post":{"summary":"Share to the marketplace","operationId":"createMarketplaceListing","tags":["Marketplace"],"description":"Share a job or candidate to the marketplace, anonymised. The ONE write path applies regardless of door: real agencies only, the Split Terms gate (pass accept_terms true on your company's first share), deterministic identity scrub, fail-closed moderation, 30-day expiry, one live listing per source record. Candidate listings require candidate_aware true - the candidate must know they are being represented externally. Requires marketplace:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind","headline","pitch"],"properties":{"kind":{"type":"string","enum":["job","candidate"]},"job_id":{"type":"string","description":"job_ id. Required for kind=job."},"candidate_id":{"type":"string","description":"cnd_ id. Required for kind=candidate."},"headline":{"type":"string"},"chips":{"type":"array","items":{"type":"string"},"description":"Up to 6 fact chips."},"pitch":{"type":"string"},"location":{"type":"string"},"salary_min":{"type":"number"},"salary_max":{"type":"number"},"currency":{"type":"string","default":"AUD"},"fee_percent":{"type":"number","description":"The declared fee basis. Prefills from the client's fee schedule in-app."},"owner_share_percent":{"type":"integer","enum":[50,60,70,80],"default":50,"description":"The split you keep. 50/50 is the industry norm."},"candidate_aware":{"type":"boolean","description":"Candidate listings only - must be true."},"accept_terms":{"type":"boolean","description":"Accept the current Lovelio Split Terms (required once per company, on first share or first intro)."}}}}}},"responses":{"201":{"description":"Listing live on the marketplace","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceListing"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:write"]}],"x-required-scopes":["marketplace:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/marketplace/listings/{id}":{"get":{"summary":"Get marketplace listing","operationId":"getMarketplaceListing","tags":["Marketplace"],"description":"Your own listing at any status; another agency's only while it is live.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Listing","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceListing"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:read"]}],"x-required-scopes":["marketplace:read"]},"patch":{"summary":"Manage marketplace listing","operationId":"updateMarketplaceListing","tags":["Marketplace"],"description":"Lifecycle moves on your own listing: pause, resume, withdraw, filled, or renew (extends 30 days and re-attests the listing is still real - the anti-ghost-listing control). Requires marketplace:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["pause","resume","withdraw","filled","renew"]}}}}}},"responses":{"200":{"description":"Updated listing","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceListing"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:write"]}],"x-required-scopes":["marketplace:write"]}},"/marketplace/intros":{"get":{"summary":"List marketplace intros","operationId":"listMarketplaceIntros","tags":["Marketplace"],"description":"direction=received (default) lists intros waiting on your listings; direction=sent lists intros your agency made.","parameters":[{"name":"direction","in":"query","schema":{"type":"string","enum":["received","sent"],"default":"received"}},{"name":"kind","in":"query","schema":{"type":"string","enum":["submission","request"]}},{"name":"status","in":"query","schema":{"type":"string","enum":["pending","accepted","declined","withdrawn","expired"]}},{"name":"limit","in":"query","schema":{"type":"integer","default":25,"maximum":100}},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Paginated intros","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceIntro"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:read"]}],"x-required-scopes":["marketplace:read"]},"post":{"summary":"Make a marketplace intro","operationId":"createMarketplaceIntro","tags":["Marketplace"],"description":"Submit one of your candidates to a job listing (kind=submission - requires candidate_id, an anonymous profile, and attested_relationship true: you have interviewed them and they agreed to be represented), or request another agency's candidate listing (kind=request). The profile and note are scrubbed and moderated before they cross tenants; the candidate stays anonymous until the owner accepts. Requires marketplace:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["listing_id","kind"],"properties":{"listing_id":{"type":"string","description":"mkl_ id."},"kind":{"type":"string","enum":["submission","request"]},"candidate_id":{"type":"string","description":"cnd_ id in YOUR tenant (submissions only)."},"headline":{"type":"string","description":"Anonymised headline (submissions only)."},"chips":{"type":"array","items":{"type":"string"}},"pitch":{"type":"string","description":"Anonymised pitch (submissions only)."},"note":{"type":"string"},"job_ad_id":{"type":"string","description":"Optional jad_ id: one of YOUR job ads, live on your careers page, to share with the note. The listing owner gets its title and public link, never the job record."},"attested_relationship":{"type":"boolean","description":"Submissions only - must be true."},"accept_terms":{"type":"boolean","description":"Accept the current Lovelio Split Terms (required once per company)."}}}}}},"responses":{"201":{"description":"Intro pending with the listing owner","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceIntro"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:write"]}],"x-required-scopes":["marketplace:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/marketplace/intros/{id}":{"get":{"summary":"Get marketplace intro","operationId":"getMarketplaceIntro","tags":["Marketplace"],"description":"Visible to the two sides only: the agency that sent it and the agency whose listing it is on.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Intro","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceIntro"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:read"]}],"x-required-scopes":["marketplace:read"]}},"/marketplace/intros/{id}/respond":{"post":{"summary":"Respond to a marketplace intro","operationId":"respondToMarketplaceIntro","tags":["Marketplace"],"description":"Four moves. check (listing owner, read-only): run the prior-knowledge check - did your agency already know this candidate? - and get the verdict WITHOUT revealing anything; run it before accepting. accept (listing owner): the contract moment - the intro locks, the deal forms with the split and terms version snapshotted, identity reveals on the deal, and on submissions the candidate materialises in your pipeline at the shortlist stage. decline (listing owner): with an optional reason. withdraw (the sending agency): pull a pending intro back. Requires marketplace:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["check","accept","decline","withdraw"]},"decline_reason":{"type":"string"}}}}}},"responses":{"200":{"description":"check / decline / withdraw result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"action":{"type":"string"},"prior_knowledge":{"type":"object","nullable":true,"description":"check only: { known, matched_by, added_at, matched_candidate_id, note } - the verdict, never the person. matched_candidate_id is YOUR own matching record (cnd_). Null on request intros: there the verdict belongs to the requesting agency and is stamped on the deal at accept.","properties":{"known":{"type":"boolean"},"matched_by":{"type":"string","nullable":true,"enum":["email","phone"]},"added_at":{"type":"string","nullable":true},"matched_candidate_id":{"type":"string","nullable":true},"note":{"type":"string"}}},"intro_id":{"type":"string"}}}}}}}},"201":{"description":"Accepted - the deal is formed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"action":{"type":"string","enum":["accept"]},"deal":{"$ref":"#/components/schemas/MarketplaceDeal"},"prior_knowledge":{"type":"object","nullable":true,"description":"The stamped verdict: { known, matched_by, added_at, note }. Never includes a candidate id."},"pipeline":{"type":"object","nullable":true,"description":"Submission deals: the materialised records in your tenant.","properties":{"candidate_id":{"type":"string"},"application_id":{"type":"string"}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Active plan required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not your move (e.g. only the sender withdraws)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found - unknown id, or your agency is not a party to this intro","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Already responded - the intro is no longer pending Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:write"]}],"x-required-scopes":["marketplace:write"]}},"/marketplace/deals":{"get":{"summary":"List marketplace deals","operationId":"listMarketplaceDeals","tags":["Marketplace"],"description":"Deals where your agency is a party, rendered from your side (role, your_share_percent, your_share_amount).","parameters":[{"name":"status","in":"query","schema":{"type":"string","enum":["connected","in_progress","placed","dead"]}},{"name":"role","in":"query","schema":{"type":"string","enum":["owner","partner"]}},{"name":"limit","in":"query","schema":{"type":"integer","default":25,"maximum":100}},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Paginated deals","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceDeal"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:read"]}],"x-required-scopes":["marketplace:read"]}},"/marketplace/deals/{id}":{"get":{"summary":"Get marketplace deal","operationId":"getMarketplaceDeal","tags":["Marketplace"],"description":"Visible to the two parties only.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceDeal"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:read"]}],"x-required-scopes":["marketplace:read"]},"patch":{"summary":"Marketplace deal handshake","operationId":"updateMarketplaceDeal","tags":["Marketplace"],"description":"Update a deal. add_to_pipeline (with job_id) turns the revealed candidate into a real candidate + application on one of your jobs and links the deal so its status tracks your pipeline - the door for candidate-listing deals, where you pick the job. mark_paid / mark_received is the handshake on a placed deal (idempotent - the first stamp is the record, repeats are no-ops): the placing agency marks the share paid, the receiving agency marks it received. close (with reason) ends an unplaced deal - the reason goes to the other agency and marketplace.deal.closed fires for both sides; a placed deal never closes this way. email (with subject and body) sends the consultant at the other agency an email through Lovelio, on a formed deal only; it needs a person behind the call (an OAuth agent acting for a consultant), and both agencies see it on the deal timeline. Facts both sides can see - Lovelio never touches the money itself. Requires marketplace:write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["add_to_pipeline","mark_paid","mark_received","close","email"]},"job_id":{"type":"string","description":"add_to_pipeline only: the receiving agency's job (job_...) to run the candidate at."},"reason":{"type":"string","description":"close only, required: why the deal is ending - the other agency reads it."},"subject":{"type":"string","description":"email only, required: the subject line."},"body":{"type":"string","description":"email only, required: the message, plain text, written by the consultant."}}}}}},"responses":{"200":{"description":"Updated deal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MarketplaceDeal"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Active plan required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["marketplace:write"]}],"x-required-scopes":["marketplace:write"]}},"/webhooks":{"get":{"summary":"List webhooks","operationId":"listWebhooks","tags":["Webhooks"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Paginated webhook subscriptions","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:read"]}],"x-required-scopes":["webhooks:read"]},"post":{"summary":"Create webhook","operationId":"createWebhook","tags":["Webhooks"],"description":"Creates a webhook subscription. Returns the signing secret once - store it securely. Every delivery, including retries and tests, validates public DNS at connection time, checks current subscription and app access, and requires a valid signing secret. Redirects are not followed. Failed deliveries have at most seven total attempts across workers and cron. Every event below is really emitted by Lovelio (subscribing to an event nothing fires would be a lie). Valid events: account.enriched, application.received, application.scored, application.stage_changed, application.status_changed, candidate.created, candidate.deleted, candidate.enriched, candidate.updated, client_contact.created, client_contact.deleted, client_contact.updated, email.sent, email.scheduled, email.cancelled, interview.scheduled, interview.cancelled, interview.outcome_recorded, job.created, job_ad.published, placement.created, placement.approved, placement.status_changed, placement.updated, reference.received, submission.created, submission.responded, spec.sent, spec.viewed, spec.responded, spec.converted, marketplace.intro.received, marketplace.deal.formed, marketplace.deal.placed, marketplace.deal.closed, or * for all.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["account.enriched","application.received","application.scored","application.stage_changed","application.status_changed","candidate.created","candidate.deleted","candidate.enriched","candidate.updated","client_contact.created","client_contact.deleted","client_contact.updated","email.sent","email.scheduled","email.cancelled","interview.scheduled","interview.cancelled","interview.outcome_recorded","job.created","job_ad.published","placement.created","placement.approved","placement.status_changed","placement.updated","reference.received","submission.created","submission.responded","spec.sent","spec.viewed","spec.responded","spec.converted","marketplace.intro.received","marketplace.deal.formed","marketplace.deal.placed","marketplace.deal.closed","*"]},"default":["*"]}}}}}},"responses":{"201":{"description":"Webhook created with signing secret","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"signing_secret":{"type":"string","description":"HMAC-SHA256 signing secret (whsec_ prefix). Returned only once on creation - it cannot be retrieved again."}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:write"]}],"x-required-scopes":["webhooks:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/webhooks/events":{"get":{"summary":"List webhook events","operationId":"listWebhookEvents","tags":["Webhooks"],"description":"The webhook event catalogue, programmatically. Every event returned is really emitted by Lovelio, so you can validate config or build a subscription UI against this endpoint instead of hardcoding the list.\n\nPagination: Returns the complete static webhook event catalogue. No after cursor is accepted.","responses":{"200":{"description":"Event catalogue","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"description":{"type":"string"}}}},"wildcard":{"type":"string","enum":["*"]}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:read"]}],"x-required-scopes":["webhooks:read"]}},"/webhooks/{id}":{"get":{"summary":"Get webhook","operationId":"getWebhook","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Webhook details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Webhook"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:read"]}],"x-required-scopes":["webhooks:read"]},"patch":{"summary":"Update webhook","operationId":"updateWebhook","tags":["Webhooks"],"description":"events is validated against the same catalogue as creation (see GET /webhooks/events).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["account.enriched","application.received","application.scored","application.stage_changed","application.status_changed","candidate.created","candidate.deleted","candidate.enriched","candidate.updated","client_contact.created","client_contact.deleted","client_contact.updated","email.sent","email.scheduled","email.cancelled","interview.scheduled","interview.cancelled","interview.outcome_recorded","job.created","job_ad.published","placement.created","placement.approved","placement.status_changed","placement.updated","reference.received","submission.created","submission.responded","spec.sent","spec.viewed","spec.responded","spec.converted","marketplace.intro.received","marketplace.deal.formed","marketplace.deal.placed","marketplace.deal.closed","*"]}},"status":{"type":"string","enum":["active","paused"]}}}}}},"responses":{"200":{"description":"Updated webhook","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Webhook"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:write"]}],"x-required-scopes":["webhooks:write"]},"delete":{"summary":"Delete webhook","operationId":"deleteWebhook","tags":["Webhooks"],"description":"Removes the subscription. A storage failure returns 500; it never reports a successful deletion.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Webhook subscription not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"Could not read or delete the subscription. Retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:write"]}],"x-required-scopes":["webhooks:write"]}},"/webhooks/{id}/rotate-secret":{"post":{"summary":"Rotate webhook secret","operationId":"rotateWebhookSecret","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"New signing secret","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"signing_secret":{"type":"string","description":"New HMAC-SHA256 signing secret (whsec_ prefix). Returned only once - store it immediately; the old secret stops verifying."}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:write"]}],"x-required-scopes":["webhooks:write"]}},"/webhooks/{id}/test":{"post":{"summary":"Test webhook","operationId":"testWebhook","tags":["Webhooks"],"description":"Sends a signed test event to the webhook URL synchronously and reports what happened. No delivery record is created. Disabled subscriptions, stopped apps, unavailable signing secrets and non-public destinations send nothing; data.success is false with an error. Redirects are not followed. Subscription lookup failures return 500; a missing subscription returns 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Test delivery attempted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the endpoint answered 2xx."},"event_sent":{"type":"string","description":"The event name used for the test payload."},"url":{"type":"string"},"response_code":{"type":"integer","nullable":true,"description":"HTTP status from the endpoint. null when the request never completed."},"latency_ms":{"type":"integer"},"error":{"type":"string","nullable":true,"description":"Network or safety error when the request could not be delivered."}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:write"]}],"x-required-scopes":["webhooks:write"]}},"/webhooks/{id}/deliveries":{"get":{"summary":"List webhook deliveries","operationId":"listDeliveries","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"event","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated delivery history. Delivery ids use the dlv_ prefix.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:read"]}],"x-required-scopes":["webhooks:read"]}},"/webhooks/{id}/deliveries/{deliveryId}/replay":{"post":{"summary":"Replay webhook delivery","operationId":"replayDelivery","tags":["Webhooks"],"description":"Queues a fresh delivery of the original payload. The response is the new delivery reference, not the delivery outcome - watch GET /webhooks/{id}/deliveries for the result.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Replay queued","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"delivery_id":{"type":"string","description":"The NEW delivery created for this replay (dlv_)."},"status":{"type":"string","enum":["queued"]},"replayed_from":{"type":"string","description":"The original delivery id."}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["webhooks:write"]}],"x-required-scopes":["webhooks:write"]}},"/activities":{"get":{"summary":"List activities","operationId":"listActivities","tags":["Activities"],"parameters":[{"$ref":"#/components/parameters/limit"},{"name":"resource_type","in":"query","schema":{"type":"string"},"description":"Filter by resource type (job, candidate, application, etc.)"},{"name":"resource_id","in":"query","schema":{"type":"string"},"description":"Filter by resource ID"},{"name":"activity_type","in":"query","schema":{"type":"string","enum":["created","updated","note_added","deleted","stage_changed","applied","assessment_completed","automation_ran","email_sent","email_failed","email_skipped","resume_parsed","interview_requested","interview_scheduled","interview_cancelled","interview_form_generated","interview_form_completed","placement_created","placement_status_changed","cafe_added","talent_pool_added","talent_pool_removed","talent_pool_pulse","review_enqueued","form_submitted","references_requested","references_received","call_logged","document_added","document_removed","record_shared"]},"description":"Filter by activity type"},{"name":"after","in":"query","schema":{"type":"string"},"description":"meta.next_cursor from the previous page, passed unchanged. An ISO 8601 timestamp also works and returns activities before it. Anything else is a 422 VALIDATION_ERROR."},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Start date filter (ISO timestamp)"},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"End date filter (ISO timestamp)"}],"description":"Allowed with activities:read OR, when resource_type names one record type, that record's read scope (candidates:read for candidates): a key that may read a record may read its activity.","responses":{"200":{"description":"Paginated activity log","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["activities:read"]}],"x-required-scopes":["activities:read"]},"post":{"summary":"Add a note","operationId":"createNote","tags":["Activities"],"description":"Add a native timeline note to any resource (job, job_ad, candidate, application, interview, placement). Candidate notes appear in the candidate Timeline and activity views. Allowed with activities:write OR the write scope of the record the note goes on (placements:write for a placement, candidates:write for a candidate): a key that may change a record may annotate it. To mention teammates, write \"@Full Name\" in the note or pass mentions. Each mentioned teammate who can see the record gets an in-app notice and one email linking to it; a name that matches nobody who can see the record stays plain text. The saved mentions come back in metadata.mentions. A record the key cannot see is a 404.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["resource_type","resource_id","note"],"properties":{"resource_type":{"type":"string","enum":["job","job_ad","candidate","application","interview","client","placement"]},"resource_id":{"type":"string","description":"External ID of the resource"},"note":{"type":"string","description":"Note text. \"@Full Name\" of a teammate mentions them."},"mentions":{"type":"array","items":{"type":"string"},"description":"Teammates to mention: user ids (usr_...), emails or full names."}}}}}},"responses":{"201":{"description":"Note created. metadata.mentions lists who was mentioned, as { user_id, name }."},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found or not visible to this key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["activities:write"]}],"x-required-scopes":["activities:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/documents":{"get":{"summary":"List documents on a record","operationId":"listDocuments","tags":["Documents"],"description":"Every document filed against one record, newest first. Imported documents sort by the date they had in the previous ATS. This is a bounded per-record collection and returns the full list; meta.has_more is always false. Allowed with documents:read OR the read scope of the record the file is filed on (candidates:read for a candidate): a key that may read a record may read what is filed on it.\n\nPagination: Returns the complete document list for one record. No after cursor is accepted.","parameters":[{"name":"record_type","in":"query","required":true,"schema":{"type":"string","enum":["candidate","client","client_contact","job","job_ad","application","interview","placement","submission","spec","bd_target","job_opportunity","talent_pool","team","hiring_manager"]},"description":"The kind of record to list documents for."},{"name":"record_id","in":"query","required":true,"schema":{"type":"string"},"description":"External ID of the record (cnd_..., cli_..., job_...)."}],"responses":{"200":{"description":"Documents on the record","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["documents:read"]}],"x-required-scopes":["documents:read"]},"post":{"summary":"Upload a document","operationId":"createDocument","tags":["Documents"],"description":"Attach a file to any record. Send multipart/form-data - not JSON - so large files do not have to be base64 encoded. Accepts PDF, Word, Excel, PowerPoint, text, RTF, HTML and images, up to 25MB. The file type is read from the bytes, never the filename or the declared Content-Type, and is the type the file is stored and downloaded under; HTML is stored as plain text. Candidate uploads appear in Documents and create a native Document Added timeline activity. Uploading an external reference report does not change a Lovelio reference-form status. Allowed with documents:write OR the write scope of the record the file is filed on (candidates:write for a candidate): a key that may change a record may file onto it.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","record_type","record_id"],"properties":{"file":{"type":"string","format":"binary"},"record_type":{"type":"string","enum":["candidate","client","client_contact","job","job_ad","application","interview","placement","submission","spec","bd_target","job_opportunity","talent_pool","team","hiring_manager"]},"record_id":{"type":"string","description":"External ID of the record."},"is_cv":{"type":"string","enum":["true","false"],"description":"Candidates only: make this the candidate's current CV."}}}}}},"responses":{"201":{"description":"Document stored","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Document"}}}}}},"400":{"description":"The bytes are not a supported file type, the file is empty, or it is over 25MB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["documents:write"]}],"x-required-scopes":["documents:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/documents/{id}":{"get":{"summary":"Get a document","operationId":"getDocument","tags":["Documents"],"description":"The document record. Use /documents/{id}/download for the file itself. Allowed with documents:read OR the read scope of the record the file is filed on (candidates:read for a candidate): a key that may read a record may read what is filed on it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Document","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Document"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Document not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["documents:read"]}],"x-required-scopes":["documents:read"]},"delete":{"summary":"Delete a document","operationId":"deleteDocument","tags":["Documents"],"description":"Deletes the record AND the stored file. There is no soft delete and no undo. Deleting a candidate's current CV also clears their CV pointer. Allowed with documents:write OR the write scope of the record the file is filed on (candidates:write for a candidate): a key that may change a record may file onto it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Document not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["documents:write"]}],"x-required-scopes":["documents:write"]}},"/documents/{id}/download":{"get":{"summary":"Get a download link","operationId":"downloadDocument","tags":["Documents"],"description":"Returns a short-lived signed URL for the file rather than the bytes, so the file streams straight from storage. The link expires after 5 minutes. Allowed with documents:read OR the read scope of the record the file is filed on (candidates:read for a candidate): a key that may read a record may read what is filed on it. A file is only handed out once it has been checked for viruses: when scan_status is pending, infected or failed this returns 409 with the reason, and a pending file can be asked for again in a minute.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Signed download link","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"url":{"type":"string"},"file_name":{"type":"string"},"content_type":{"type":"string"},"expires_in":{"type":"integer","example":300}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Document not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Not checked clean for viruses: still being checked (pending), a virus was found (infected), or it could not be checked (failed). The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["documents:read"]}],"x-required-scopes":["documents:read"]}},"/tasks/{id}":{"get":{"summary":"Get task status","operationId":"getTask","tags":["Tasks"],"description":"Poll async operation status. Use after receiving a 202 response. A CV parse rejected as unreadable fails with error code UNREADABLE_DOCUMENT; upload a readable replacement instead of retrying the same file. AI_PAUSED means AI spending is paused for the account; the work is retried once it resumes. SUPERSEDED means another run already handled the same CV; the candidate record is complete.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Task status","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TaskStatus"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":[]}],"x-required-scopes":[]}},"/outreach/generate":{"post":{"summary":"Generate AI outreach","operationId":"generateOutreach","tags":["Outreach"],"description":"Generate three personalised outreach drafts for a candidate, in the company brand voice. Pass job_id to write about a specific role. Drafting only - Lovelio never sends them.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["candidate_id","platform"],"properties":{"candidate_id":{"type":"string","description":"cnd_ id."},"platform":{"type":"string","enum":["email","linkedin","whatsapp"]},"job_id":{"type":"string","description":"Optional job_ id. Anchors the drafts to that role."}}}}}},"responses":{"200":{"description":"Outreach variants","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"candidate_id":{"type":"string"},"job_id":{"type":"string","nullable":true},"platform":{"type":"string","enum":["email","linkedin","whatsapp"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","description":"Email only."},"body":{"type":"string"},"tone":{"type":"string","enum":["professional","warm","bold"]},"estimated_length":{"type":"integer"}}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/talent-pools":{"get":{"summary":"List talent pools","operationId":"listTalentPools","tags":["Talent Pools"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Paginated talent pools","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/TalentPool"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:read"]}],"x-required-scopes":["talent_pools:read"]},"post":{"summary":"Create a talent pool","operationId":"createTalentPool","tags":["Talent Pools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"slug":{"type":"string"},"eligibility":{"type":"string"},"auto_add_enabled":{"type":"boolean"},"min_job_fit":{"type":"integer","nullable":true},"min_hm_fit":{"type":"integer","nullable":true},"description":{"type":"string"},"keep_warm_enabled":{"type":"boolean"},"cover_color":{"type":"string","enum":["cyan","green","lime","amber","orange"]}}}}}},"responses":{"201":{"description":"Talent pool created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TalentPool"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:write"]}],"x-required-scopes":["talent_pools:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/talent-pools/{id}":{"get":{"summary":"Get talent pool","operationId":"getTalentPool","tags":["Talent Pools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Talent pool","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TalentPool"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:read"]}],"x-required-scopes":["talent_pools:read"]},"patch":{"summary":"Update talent pool","operationId":"updateTalentPool","tags":["Talent Pools"],"description":"Update any pool field including auto-add rules.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"eligibility":{"type":"string","nullable":true},"auto_add_enabled":{"type":"boolean"},"min_job_fit":{"type":"integer","nullable":true},"min_hm_fit":{"type":"integer","nullable":true},"description":{"type":"string","nullable":true},"keep_warm_enabled":{"type":"boolean"},"cover_color":{"type":"string","nullable":true,"enum":["cyan","green","lime","amber","orange",null]}}}}}},"responses":{"200":{"description":"Updated talent pool","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TalentPool"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:write"]}],"x-required-scopes":["talent_pools:write"]},"delete":{"summary":"Delete talent pool","operationId":"deleteTalentPool","tags":["Talent Pools"],"description":"Permanently delete the pool. Its members, shares and scan verdicts go with it; the candidates themselves are never touched.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:write"]}],"x-required-scopes":["talent_pools:write"]}},"/talent-pools/{id}/members":{"get":{"summary":"List pool members","operationId":"listTalentPoolMembers","tags":["Talent Pools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"q","in":"query","schema":{"type":"string"},"description":"Search within the pool: case-insensitive match on member name, email, job title, or employer."}],"responses":{"200":{"description":"Paginated members with candidate details. added_via says how each joined: rule (matched_rule holds the match), manual or request. For manual and request members, rule_check holds Lovelio's check against the pool's rule, made after they were added: fits, confidence, rationale, the eligibility text judged and checked_at; null until it has run. They stay in the pool whatever it says.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:read"]}],"x-required-scopes":["talent_pools:read"]},"post":{"summary":"Add candidate to pool","operationId":"addTalentPoolMember","tags":["Talent Pools"],"description":"Idempotent: re-adding an existing member returns 200 with already_member=true.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["candidate_id"],"properties":{"candidate_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Already a member"},"201":{"description":"Added to the pool"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:write"]}],"x-required-scopes":["talent_pools:write"]}},"/talent-pools/{id}/members/{memberId}":{"delete":{"summary":"Remove pool member","operationId":"removeTalentPoolMember","tags":["Talent Pools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Removed"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["talent_pools:write"]}],"x-required-scopes":["talent_pools:write"]}},"/emails":{"post":{"summary":"Send candidate email now","operationId":"sendCandidateEmail","tags":["Scheduled Emails"],"description":"Send an email to a candidate immediately. Uses the company reply-to alias and threads with any existing conversation. Mirrors the send_email action. For the rich compose-draft-revise flow used by the dashboard and Slack, see POST /emails/from-description.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["candidate_id","subject","body"],"properties":{"candidate_id":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"to_address":{"type":"string","description":"Override recipient (default uses candidate.email)"},"job_id":{"type":"string"},"application_id":{"type":"string"},"document_ids":{"type":"array","maxItems":10,"items":{"type":"string"},"description":"Documents already on records in this company to attach (doc_ prefix), e.g. the job's position description. Up to 10 files and 25MB in all. A file still being checked for viruses, or one that failed the check, is refused with 400."}}}}}},"responses":{"201":{"description":"Email accepted for immediate send","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"thread_id":{"type":"string"},"message_id":{"type":"string","nullable":true},"candidate_id":{"type":"string"},"candidate_name":{"type":"string"},"subject":{"type":"string"},"sent_at":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/emails/from-description":{"post":{"summary":"Stage and stream a candidate email draft","operationId":"composeEmailFromDescription","tags":["Scheduled Emails"],"description":"Takes the recruiter intent (\"send Alice the next steps\", \"reject Ben warmly\", or freeform instructions) and streams a subject + body via Server-Sent Events. The output is funnelled through the shared brand-voice + anti-AI-tics post-processor. The response Content-Type is text/event-stream; each event is `data: <json>\\n\\n` where <json> is one of `{type:\"meta\",review_token}`, `{type:\"streaming\",partial:{subject?,body?}}`, `{type:\"complete\",draft:{subject,body,schedule_at?,template_chip?,gaps}}`, `{type:\"meta_end\",email_draft_id}`, or `{type:\"error\",message}`. The stream terminates with `data: [DONE]\\n\\n`. The draft is staged as the acting user: it is signed with their name, any times it offers come from their connected calendar, and it never invents a time, duration or link. Anything it cannot know is left as a [BRACKET] placeholder, listed in `gaps`. When application_id is given the draft carries that application's job_id. This endpoint stages a draft only - call POST /emails/from-description/{review_token}/confirm to send it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["candidate_id"],"properties":{"candidate_id":{"type":"string","description":"External candidate ID (cnd_ prefix)"},"application_id":{"type":"string","description":"Optional external application ID (app_ prefix) for role-aware tone"},"intent":{"type":"string","enum":["advance","reject","schedule","offer","freeform"],"description":"What kind of email to write. Defaults to freeform."},"instructions":{"type":"string","description":"Free-text hints about what the email should say"},"schedule_at":{"type":"string","description":"Optional ISO-8601 timestamp. If set, confirm schedules the send."},"source":{"type":"string","enum":["slack","mcp","dashboard","api"],"description":"Provenance tag stored on the draft row."}}}}}},"responses":{"200":{"description":"SSE stream of draft events. Content-Type: text/event-stream.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"candidate_id missing or invalid, schedule_at is not ISO-8601, or body was not JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Candidate or application not found in this company.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]}},"/emails/from-description/{review_token}":{"get":{"summary":"Get a staged email draft","operationId":"getEmailDraft","tags":["Scheduled Emails"],"description":"Read current state of a staged email draft: subject, body, schedule, gaps, and the draft-generation task status. Consumers poll this until task_status === \"completed\" before confirming. `gaps` lists `subject` or `body` when empty, and `body: [BOOKING_LINK]` style entries for every [bracket] placeholder still in the text.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"schedule_at":{"type":"string","nullable":true},"template_chip":{"type":"string","nullable":true},"intent":{"type":"string","nullable":true}}},"candidate_id":{"type":"string","nullable":true},"application_id":{"type":"string","nullable":true},"job_id":{"type":"string","nullable":true},"status":{"type":"string"},"gaps":{"type":"array","items":{"type":"string"}},"task_status":{"type":"string"},"task_id":{"type":"string","nullable":true},"confirmed_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Draft not found or already deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:read"]}],"x-required-scopes":["emails:read"]},"patch":{"summary":"Patch fields on a staged email draft","operationId":"updateEmailDraft","tags":["Scheduled Emails"],"description":"Update one or more fields on an in-flight draft (subject, body, schedule_at, template_chip). Recomputes gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"schedule_at":{"type":"string","nullable":true,"description":"ISO-8601 timestamp or null to clear"},"template_chip":{"type":"string","nullable":true}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Draft missing, expired, already confirmed, or cancelled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]}},"/emails/from-description/{review_token}/revise":{"post":{"summary":"Apply a free-text rewrite to a staged email draft","operationId":"reviseEmailDraft","tags":["Scheduled Emails"],"description":"Apply a natural-language instruction (\"make it warmer\", \"cut to two paragraphs\", \"move the ask to the first line\") to a staged email draft. Applies the company brand voice and anti-AI-tics guardrails.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string","description":"The change the user wants, in their own words."}}}}}},"responses":{"200":{"description":"Updated subject + body","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Invalid instruction or draft in a non-revisable state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]}},"/emails/from-description/{review_token}/confirm":{"post":{"summary":"Send or schedule a drafted email","operationId":"confirmEmailDraft","tags":["Scheduled Emails"],"description":"Promote a staged email draft by dispatching through the existing send_email / schedule_email action handlers. When schedule_at is set on the draft, the draft is scheduled instead of sent immediately. Refuses with 409 `{ error: { type: \"draft_has_gaps\", gaps: string[] } }` when subject or body is empty or a [bracket] placeholder is left in either. There is no `force` bypass - partners who need to send a bare email use POST /emails directly.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"201":{"description":"Email sent or scheduled. Response body contains `email_message_id` + `email_thread_id` (immediate send) OR `scheduled_email_id` (scheduled send).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps - subject or body is empty, or a [bracket] placeholder is left in it. Fill them via PATCH /emails/from-description/{review_token} or revise, then retry. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]}},"/candidates/from-cv":{"post":{"summary":"Upload a CV and stage a candidate draft","operationId":"stageCandidateFromCv","tags":["Candidates"],"description":"Upload a base64-encoded PDF or DOCX. Lovelio runs a Phase 1 regex parse plus a Phase 2 AI parse (in parallel) and stages the result in candidate_drafts. Returns a `cdr_` review token that every follow-up endpoint under /candidates/from-description/{review_token} consumes. Mandatory fields (name, email) that are missing are reported in `gaps.mandatory`; confirm will refuse until they are filled via PATCH.\n\nEach call draws on the account CV allowance: 200 CVs until the first payment on the account goes through, then 5,000 per rolling 30 days, shared with bulk import and POST /candidates with a resume_url, refused with 403 QUOTA_EXCEEDED past it. Applications people send you never count towards it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_base64"],"properties":{"file_base64":{"type":"string","description":"Raw base64-encoded CV bytes (data-URL prefix optional)."},"mime_type":{"type":"string","description":"Optional and ignored. Lovelio reads the file type from the bytes; a file that is not a PDF or Word document is refused."},"source":{"type":"string","enum":["slack","mcp","dashboard","api"],"description":"Provenance tag stored on the draft row."}}}}}},"responses":{"201":{"description":"Draft staged","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"candidate_draft_id":{"type":"string","nullable":true},"draft":{"type":"object","properties":{"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"current_title":{"type":"string","nullable":true},"current_company":{"type":"string","nullable":true}}},"gaps":{"type":"object","properties":{"mandatory":{"type":"array","items":{"type":"string","enum":["name","email"]}},"warn":{"type":"array","items":{"type":"string","enum":["phone","linkedin_url"]}}}}}}}}}}},"400":{"description":"file_base64 is missing, empty, invalid base64, or larger than 10 MB. Also returned when the file is password-protected or could not be text-extracted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"QUOTA_EXCEEDED - the account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/candidates/from-description/{review_token}":{"get":{"summary":"Get a staged candidate draft","operationId":"getCandidateDraft","tags":["Candidates"],"description":"Read current state of a staged candidate draft. Use this to poll gaps after editing.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object"},"status":{"type":"string","enum":["draft","confirmed","cancelled"]},"gaps":{"type":"object"},"confirmed_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Draft not found or already deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]},"patch":{"summary":"Patch fields on a staged candidate draft","operationId":"updateCandidateDraft","tags":["Candidates"],"description":"Update one or more fields on an in-flight candidate draft (name, email, phone, linkedin_url, location, current_title, current_company). Recomputes gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"linkedin_url":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"current_title":{"type":"string","nullable":true},"current_company":{"type":"string","nullable":true}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Draft missing, expired, already confirmed, or cancelled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidates/from-description/{review_token}/confirm":{"post":{"summary":"Create a candidate from a staged draft","operationId":"confirmCandidateDraft","tags":["Candidates"],"description":"Promote a staged candidate draft by dispatching through the existing create_candidate action handler. Refuses with 409 `{ error: { type: \"draft_has_gaps\", gaps: { mandatory, warn } } }` when mandatory fields (name, email) are empty. There is no `force` bypass - partners who need to create a candidate without an email use POST /candidates directly.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"201":{"description":"Candidate created.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"candidate_id":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps - name or email is empty. Fill them via PATCH /candidates/from-description/{review_token} then retry. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/interviews/from-description":{"post":{"summary":"Stage an interview draft for an application","operationId":"prepareInterviewFromDescription","tags":["Interviews"],"description":"Stage a structured interview draft (datetime, format, interviewer, duration, location, notes) and get back the predicted defaults + remaining gaps. Unlike /emails/from-description there is no streaming prose - interview fields are discrete selects, so this returns a JSON object synchronously. Returns { review_token, draft, gaps, predicted }. Consumers fill gaps via PATCH /interviews/from-description/{review_token} and book via POST /interviews/from-description/{review_token}/confirm.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string","description":"External application ID (app_ prefix)"},"scheduled_at":{"type":"string","description":"Optional ISO-8601 timestamp to pre-fill the datetime"},"format":{"type":"string","enum":["phone","video","in_person","technical","panel"],"description":"Optional pre-selected format. Defaults to the job's default_interview_format."},"interviewer_id":{"type":"string","description":"Optional hiring_manager UUID. Defaults to the job's hiring_manager_id."},"duration_min":{"type":"number","description":"Optional duration in minutes. Defaults to 30."},"location":{"type":"string","description":"Optional location (required at confirm time when format=in_person)."},"notes":{"type":"string","description":"Optional interviewer notes / prep links."},"source":{"type":"string","enum":["slack","mcp","dashboard","api"],"description":"Provenance tag stored on the draft row."}}}}}},"responses":{"201":{"description":"Draft staged. Body contains review_token, draft, gaps, predicted.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object"},"gaps":{"type":"array","items":{"type":"string"}},"predicted":{"type":"object"},"status":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Application not found in this company.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"application_id missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/interviews/from-description/{review_token}":{"get":{"summary":"Get a staged interview draft","operationId":"getInterviewDraft","tags":["Interviews"],"description":"Read current state of a staged interview draft: scheduled_at, duration_min, format, interviewer_id, location, notes + gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object","properties":{"scheduled_at":{"type":"string","nullable":true},"duration_min":{"type":"number"},"format":{"type":"string","nullable":true},"interviewer_id":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true}}},"application_id":{"type":"string"},"candidate_id":{"type":"string","nullable":true},"job_id":{"type":"string","nullable":true},"status":{"type":"string"},"gaps":{"type":"array","items":{"type":"string"}},"confirmed_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Draft not found or already deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"patch":{"summary":"Patch fields on a staged interview draft","operationId":"updateInterviewDraft","tags":["Interviews"],"description":"Update one or more fields on an in-flight interview draft. Recomputes gaps. Fields: scheduled_at, duration_min, format, interviewer_id, location, notes. There is no revise endpoint - interview fields are structured; use PATCH to edit.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduled_at":{"type":"string","nullable":true,"description":"ISO-8601 timestamp or null to clear"},"duration_min":{"type":"number"},"format":{"type":"string","enum":["phone","video","in_person","technical","panel"],"nullable":true},"interviewer_id":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Draft missing, already confirmed, or invalid field value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/from-description/{review_token}/confirm":{"post":{"summary":"Book the drafted interview","operationId":"confirmInterviewDraft","tags":["Interviews"],"description":"Promote a staged interview draft by dispatching through the existing schedule_interview action handler. Refuses with 409 `{ error: { type: \"draft_has_gaps\", gaps: string[] } }` when scheduled_at, format, or interviewer_id is empty (or when format=in_person without a location). There is no `force` bypass - partners who need to create a bare interview use POST /interviews directly. Booking also checks every attendee's free/busy: a clash refuses with 409 SCHEDULING_CONFLICT naming who is busy, with up to 3 conflict-free suggestions. Re-confirm with `scheduled_at` (patches the draft to a suggested time) or `ignore_conflicts: true` to book through the clash.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduled_at":{"type":"string","format":"date-time","description":"Re-confirm at this time (after a SCHEDULING_CONFLICT refusal offered suggestions). Patches the draft through the one update path before booking."},"ignore_conflicts":{"type":"boolean","default":false,"description":"Book through a known free/busy clash - an explicit override, never the default."}}}}}},"responses":{"201":{"description":"Interview booked. Response body contains `interview_id`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"interview_id":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps (`{ error: { type: \"draft_has_gaps\", gaps } }` - fill via PATCH /interviews/from-description/{review_token} and retry), or an attendee is busy at the requested time (SCHEDULING_CONFLICT - data carries conflicts, suggestions and warnings; re-confirm with scheduled_at or ignore_conflicts: true). Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/{id}/action":{"post":{"summary":"Stage a reschedule or cancel draft for an existing interview","operationId":"prepareInterviewAction","tags":["Interviews"],"description":"Stage a reschedule or cancel action against an existing interview. Returns { review_token, draft, gaps } that partners feed into /interviews/action-drafts/{review_token} to fill gaps and confirm. Reschedule requires new_scheduled_at at confirm time; cancel requires reason. Dispatches through the existing reschedule_interview / cancel_interview action handlers on confirm so every side-effect (activity log, webhook, calendar sync) stays in one place.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["reschedule","cancel"]},"new_scheduled_at":{"type":"string","description":"ISO-8601 timestamp. Required at confirm time when action=reschedule."},"reason":{"type":"string","description":"Free-text reason. Required at confirm time when action=cancel."},"notify_candidate":{"type":"boolean","description":"Whether the candidate is emailed about the change. Defaults true."},"source":{"type":"string","enum":["slack","mcp","dashboard","api"],"description":"Provenance tag stored on the draft row."}}}}}},"responses":{"201":{"description":"Draft staged. Body contains review_token, draft, gaps, action.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object"},"gaps":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"action":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Interview not found in this company.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Missing / invalid action, or interview already cancelled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/action-drafts/{review_token}":{"get":{"summary":"Get a staged reschedule / cancel draft","operationId":"getInterviewActionDraft","tags":["Interviews"],"description":"Read current state of a staged reschedule / cancel draft: action, new_scheduled_at, reason, notify_candidate + gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object","properties":{"action":{"type":"string","enum":["reschedule","cancel"]},"new_scheduled_at":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"notify_candidate":{"type":"boolean"}}},"interview_id":{"type":"string"},"status":{"type":"string"},"gaps":{"type":"array","items":{"type":"string"}},"confirmed_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Draft not found or already deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"patch":{"summary":"Patch fields on a staged reschedule / cancel draft","operationId":"updateInterviewActionDraft","tags":["Interviews"],"description":"Update one or more fields on an in-flight reschedule / cancel draft. Recomputes gaps. Fields: new_scheduled_at, reason, notify_candidate.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"new_scheduled_at":{"type":"string","nullable":true,"description":"ISO-8601 timestamp or null to clear"},"reason":{"type":"string","nullable":true},"notify_candidate":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Draft missing, already confirmed, or invalid field value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/interviews/action-drafts/{review_token}/confirm":{"post":{"summary":"Confirm a reschedule or cancel draft","operationId":"confirmInterviewActionDraft","tags":["Interviews"],"description":"Promote a staged reschedule / cancel draft by dispatching through the existing reschedule_interview / cancel_interview action handler. Refuses with 409 `{ error: { type: \"draft_has_gaps\", gaps: string[] } }` when a mandatory field is empty (reschedule → new_scheduled_at, cancel → reason). No force bypass. A reschedule also re-checks every attendee's free/busy (the interview's own calendar event never counts against its new time): a clash refuses with 409 SCHEDULING_CONFLICT naming who is busy, with up to 3 conflict-free suggestions. Re-confirm with `new_scheduled_at` (patches the draft to a suggested time) or `ignore_conflicts: true` to move through the clash.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"new_scheduled_at":{"type":"string","format":"date-time","description":"Re-confirm a reschedule at this time (after a SCHEDULING_CONFLICT refusal offered suggestions). Patches the draft through the one update path before dispatching."},"ignore_conflicts":{"type":"boolean","default":false,"description":"Move through a known free/busy clash - an explicit override, never the default."}}}}}},"responses":{"201":{"description":"Confirmed. Response body contains `interview_id`, `action`, `notify_candidate`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"interview_id":{"type":"string"},"action":{"type":"string"},"notify_candidate":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps (`{ error: { type: \"draft_has_gaps\", gaps } }` - fill via PATCH /interviews/action-drafts/{review_token} and retry), or an attendee is busy at the new time (SCHEDULING_CONFLICT - data carries conflicts, suggestions and warnings; re-confirm with new_scheduled_at or ignore_conflicts: true). Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/phone-screens/from-description":{"post":{"summary":"Stage a phone-screen log","operationId":"composePhoneScreenFromDescription","tags":["Applications"],"description":"Stage a phone-screen outcome log for an application. Phone screen is the simplest draft cluster in Lovelio - three fields (outcome, notes, optional call metadata) with no LLM or streaming. The confirm step atomically writes a timeline note and moves the stage: outcome='advance' / 'hold' move a 'yes' application to 'screen' (the screen happened); outcome='reject' moves any pre-client application (funnel / maybe / yes / screen) to 'no' (no email sent - Send Rejection is a separate action); outcome='no_show' never moves the stage, and an application already with the client is never pulled back.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string","description":"External application ID (app_ prefix)"},"initial_outcome":{"type":"string","enum":["advance","reject","hold","no_show"],"description":"Pre-fill outcome on the draft. Caller can change it via PATCH before confirm."},"initial_notes":{"type":"string","description":"Pre-fill notes on the draft. Required before confirm succeeds."},"call_at":{"type":"string","description":"Optional ISO-8601 timestamp of the call."},"duration_min":{"type":"number","description":"Optional call duration in minutes."},"source":{"type":"string","enum":["slack","mcp","dashboard","api"],"description":"Provenance tag stored on the draft row."}}}}}},"responses":{"201":{"description":"Draft staged. Returns review_token, current draft, and remaining gaps.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"application_id":{"type":"string"},"draft":{"type":"object","properties":{"outcome":{"type":"string","nullable":true},"notes":{"type":"string"},"call_at":{"type":"string","nullable":true},"duration_min":{"type":"number","nullable":true}}},"gaps":{"type":"array","items":{"type":"string"}},"status":{"type":"string"}}}}}}}},"400":{"description":"application_id missing or invalid, or body was not JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Application not found in this company.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/phone-screens/from-description/{review_token}":{"get":{"summary":"Get a staged phone-screen draft","operationId":"getPhoneScreenDraft","tags":["Applications"],"description":"Read current state of a staged phone-screen draft: outcome, notes, call metadata, and remaining gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"application_id":{"type":"string"},"draft":{"type":"object","properties":{"outcome":{"type":"string","nullable":true},"notes":{"type":"string"},"call_at":{"type":"string","nullable":true},"duration_min":{"type":"number","nullable":true}}},"status":{"type":"string"},"gaps":{"type":"array","items":{"type":"string"}},"confirmed_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Draft not found or already deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:read"]}],"x-required-scopes":["applications:read"]},"patch":{"summary":"Patch fields on a staged phone-screen draft","operationId":"updatePhoneScreenDraft","tags":["Applications"],"description":"Update one or more fields on an in-flight phone-screen draft (outcome, notes, call_at, duration_min). Recomputes gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["advance","reject","hold","no_show"],"nullable":true},"notes":{"type":"string","nullable":true},"call_at":{"type":"string","nullable":true,"description":"ISO-8601 timestamp or null to clear"},"duration_min":{"type":"number","nullable":true}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/phone-screens/from-description/{review_token}/confirm":{"post":{"summary":"Confirm a phone-screen log","operationId":"confirmPhoneScreenDraft","tags":["Applications"],"description":"Promote a staged phone-screen draft: atomically log a timeline note AND move the stage per the outcome ('advance' / 'hold' move yes to screen, 'reject' moves pre-client applications to 'no', 'no_show' never moves). Refuses with 409 `{ error: { type: 'draft_has_gaps', gaps: string[] } }` when outcome or notes is empty. Dispatches to the existing add_note + move_stage handlers so every side-effect (timeline entry, automation trigger, undo record) stays consistent.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"201":{"description":"Phone screen logged. Response contains application_id, outcome, new_stage (nullable for hold / no_show), note_id.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps - outcome or notes is empty. Fill them via PATCH /phone-screens/from-description/{review_token}, then retry. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/scorecards/from-description":{"post":{"summary":"Stage a scorecard draft for an interview","operationId":"stageScorecardDraft","tags":["Interviews"],"description":"Stage a scorecard draft for an interview. Lovelio looks up the job's scorecard criteria and pre-populates one score entry per criterion (score = null). Returns a `scd_` review token that every follow-up endpoint under /scorecards/from-description/{review_token} consumes. The multi-step flow mirrors /jobs/from-description and /emails/from-description. When the caller already has a full scorecard payload and does not need the draft-review flow, POST /interviews/{id}/scorecard remains the one-shot RPC.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["interview_id"],"properties":{"interview_id":{"type":"string","description":"External interview id (ivw_...)."}}}}}},"responses":{"201":{"description":"Draft staged","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object","properties":{"scores":{"type":"array","items":{"type":"object","properties":{"criterion_id":{"type":"string"},"criterion_name":{"type":"string"},"category":{"type":"string","enum":["knockout","role_specific","culture","communication","overall"]},"scoring_type":{"type":"string","enum":["pass_fail","scale_1_5"]},"score":{"type":"number","nullable":true},"note":{"type":"string"}}}},"overall_recommendation":{"type":"string","enum":["strong_hire","hire","no_hire","strong_no_hire"],"nullable":true},"feedback":{"type":"string","nullable":true}}},"context":{"type":"object","properties":{"interview_id":{"type":"string"},"application_id":{"type":"string","nullable":true},"job_id":{"type":"string","nullable":true},"candidate_name":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true}}},"gaps":{"type":"object","properties":{"mandatory":{"type":"array","items":{"type":"string","enum":["overall_recommendation","scores"]}},"warn":{"type":"array","items":{"type":"string","enum":["feedback"]}}}}}}}}}}},"400":{"description":"Invalid or missing interview_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/scorecards/from-description/{review_token}":{"get":{"summary":"Get a staged scorecard draft","operationId":"getScorecardDraft","tags":["Interviews"],"description":"Read the current state of a staged scorecard draft plus remaining mandatory and warn-level gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Draft state","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"draft":{"type":"object"},"context":{"type":"object"},"status":{"type":"string","enum":["draft","confirmed","cancelled"]},"gaps":{"type":"object"},"confirmed_at":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Draft not found or already deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"patch":{"summary":"Patch fields on a staged scorecard draft","operationId":"updateScorecardDraft","tags":["Interviews"],"description":"Update a staged scorecard draft. Accepts either a full scores-array replacement (scores: [...]) or a single-entry patch ({ criterion_id, score?, note? }). Also accepts overall_recommendation and feedback. Recomputes gaps.","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scores":{"type":"array","description":"Full replacement of the per-criterion scores array.","items":{"type":"object","properties":{"criterion_id":{"type":"string"},"criterion_name":{"type":"string"},"category":{"type":"string"},"scoring_type":{"type":"string"},"score":{"type":"number","nullable":true},"note":{"type":"string"}}}},"criterion_id":{"type":"string","description":"Single-entry patch: patch this criterion with score + note."},"score":{"type":"number","nullable":true},"note":{"type":"string"},"overall_recommendation":{"type":"string","enum":["strong_hire","hire","no_hire","strong_no_hire"],"nullable":true},"feedback":{"type":"string","nullable":true}}}}}},"responses":{"200":{"description":"Updated draft + remaining gaps","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Draft missing, expired, already confirmed, or cancelled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/scorecards/from-description/{review_token}/confirm":{"post":{"summary":"Submit a staged scorecard draft","operationId":"confirmScorecardDraft","tags":["Interviews"],"description":"Promote a staged scorecard draft through submit_scorecard into the authenticated interviewer's form. Refuses with 409 `{ error: { type: \"draft_has_gaps\", gaps: { mandatory, warn } } }` when overall_recommendation is missing or every available section score is null. There is no `force` bypass. A client feedback form has no scored sections, so its recommendation is the complete verdict. The recommendation maps deterministically to interview outcome (strong_hire/hire -> Passed, no_hire/strong_no_hire -> Failed).","parameters":[{"name":"review_token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"201":{"description":"Scorecard submitted and interview outcome updated.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"review_token":{"type":"string"},"interview_id":{"type":"string","nullable":true},"outcome":{"type":"string","enum":["Passed","Failed"]}}}}}}}},"400":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Draft has gaps - overall_recommendation is missing or every available section score is null. Fill them via PATCH /scorecards/from-description/{review_token} then retry. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Draft missing, expired, or already confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/integrations/slack":{"get":{"summary":"Get Slack integration","operationId":"getSlackIntegration","tags":["Integrations"],"responses":{"200":{"description":"Slack connection status","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:read"]}],"x-required-scopes":["integrations:read"]},"patch":{"summary":"Update Slack settings","operationId":"updateSlackIntegration","tags":["Integrations"],"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"]},"delete":{"summary":"Disconnect Slack","operationId":"deleteSlackIntegration","tags":["Integrations"],"responses":{"204":{"description":"Disconnected"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"]}},"/integrations/chat":{"get":{"summary":"List chat integrations","operationId":"listChatIntegrations","tags":["Chat Integrations"],"description":"List all connected chat platforms (Slack, Teams, WhatsApp, Google Chat) for the company.\n\nPagination: Returns the complete configured chat-connection list for one agency. No after cursor is accepted.","responses":{"200":{"description":"Array of connected platforms with chatbot status","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:read"]}],"x-required-scopes":["integrations:read"]},"post":{"summary":"Connect chat platform","operationId":"connectChatPlatform","tags":["Chat Integrations"],"description":"Programmatically connect a chat platform for the AI chatbot. Requires platform credentials.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["platform","workspace_id","workspace_name"],"properties":{"platform":{"type":"string","enum":["slack","teams","whatsapp","google_chat","discord","telegram","github","linear"]},"workspace_id":{"type":"string","description":"Platform workspace/team ID"},"workspace_name":{"type":"string","description":"Human-readable workspace name"},"credentials":{"type":"object","description":"Platform-specific credentials (bot_token for Slack, etc.)"}}}}}},"responses":{"201":{"description":"Integration created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/integrations/chat/{id}":{"patch":{"summary":"Update chat integration","operationId":"updateChatIntegration","tags":["Chat Integrations"],"description":"Enable/disable the chatbot or update settings for a connected platform.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Integration ID (slk_ or cin_ prefix)"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"chatbot_enabled":{"type":"boolean"},"settings":{"type":"object"}}}}}},"responses":{"200":{"description":"Updated integration","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"]},"delete":{"summary":"Disconnect chat platform","operationId":"disconnectChatPlatform","tags":["Chat Integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Disconnected","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"]}},"/integrations/chat/{id}/users":{"get":{"summary":"List user mappings","operationId":"listChatUserMappings","tags":["Chat Integrations"],"description":"List all platform user to Lovelio user mappings for an integration. Users are auto-mapped by email on first interaction, but can also be managed via API.\n\nPagination: Returns the complete user-mapping list for one chat connection. No after cursor is accepted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Array of user mappings","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:read"]}],"x-required-scopes":["integrations:read"]},"post":{"summary":"Create user mapping","operationId":"createChatUserMapping","tags":["Chat Integrations"],"description":"Manually map a platform user to a Lovelio user. Useful for bulk provisioning or when auto-mapping by email is not possible.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["platform_user_id","platform_workspace_id","user_id"],"properties":{"platform_user_id":{"type":"string","description":"Platform-specific user ID (e.g. Slack user ID)"},"platform_workspace_id":{"type":"string","description":"Platform workspace ID. For WhatsApp, which runs on one shared Lovelio number, the link is always stored against your agency and this value is ignored."},"user_id":{"type":"string","description":"Lovelio user ID (usr_ prefix)"},"display_name":{"type":"string"},"role":{"type":"string"}}}}}},"responses":{"201":{"description":"Mapping created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"That platform user is already linked in another agency's workspace Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"]}},"/integrations/chat/{id}/users/{userId}":{"delete":{"summary":"Delete user mapping","operationId":"deleteChatUserMapping","tags":["Chat Integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User mapping ID (cum_ prefix)"}],"responses":{"200":{"description":"Mapping deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["integrations:write"]}],"x-required-scopes":["integrations:write"]}},"/analytics/dashboard":{"get":{"summary":"Dashboard statistics","operationId":"getDashboard","tags":["Analytics"],"description":"Company-wide dashboard - active jobs, total candidates, pipeline by stage, upcoming interviews, recent hires. `pipeline` is keyed by the canonical agency stages (funnel, maybe, yes, no, screen, submitted, client_interview, references, offer, placed, rejected, withdrew) and every count is exact.","responses":{"200":{"description":"Dashboard data","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["analytics:read"]}],"x-required-scopes":["analytics:read"]}},"/analytics/pipeline":{"get":{"summary":"Pipeline analysis","operationId":"getPipelineAnalysis","tags":["Analytics"],"description":"The pipeline funnel for applications received in the window, Funnel through Placed. Each stage counts everyone who ever reached it (a later stage counts every stage below it), so conversion_rate is entered over the previous stage's entered and never tops 100%. No, Rejected and Withdrew are exits, counted by current stage in exits. Rates are percentage strings.","parameters":[{"name":"days","in":"query","schema":{"type":"integer","default":30,"minimum":1,"maximum":365},"description":"Lookback period in days (clamped to 365)"},{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Filter to one job (job_ prefix). 422 when malformed, 404 when not in this account."}],"responses":{"200":{"description":"Funnel analysis with conversion rates","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"period_days":{"type":"integer"},"total_applications":{"type":"integer"},"funnel":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["funnel","maybe","yes","screen","submitted","client_interview","references","offer","placed"]},"label":{"type":"string"},"entered":{"type":"integer","description":"Applications that ever reached this stage."},"conversion_rate":{"type":"string","nullable":true,"description":"Entered here over entered at the previous stage, e.g. \"42%\". Null on the first stage, \"N/A\" when the previous stage is empty."},"from_start":{"type":"string","description":"Entered here over total_applications, e.g. \"12%\"."}}}},"exits":{"type":"object","properties":{"no":{"type":"integer"},"rejected":{"type":"integer"},"withdrew":{"type":"integer"}},"description":"Applications currently at each exit stage."},"exited":{"type":"integer"},"exit_rate":{"type":"string","description":"exited over total_applications, e.g. \"30%\"."},"rejected":{"type":"integer","description":"Rejected plus withdrew."},"rejection_rate":{"type":"string"},"biggest_dropoff":{"type":"object","nullable":true,"properties":{"from":{"type":"string"},"to":{"type":"string"},"lost":{"type":"integer"},"rate":{"type":"string","description":"Share of the from stage lost before the to stage, e.g. \"64%\"."}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["analytics:read"]}],"x-required-scopes":["analytics:read"]}},"/analytics/metrics":{"get":{"summary":"Hiring metrics","operationId":"getHiringMetrics","tags":["Analytics"],"description":"Key hiring KPIs - applications received, hires made, offer acceptance rate, interview-to-hire ratio (interviews per placement, \"N/A\" until there is a placement), source breakdown.","parameters":[{"name":"days","in":"query","schema":{"type":"integer","default":30,"minimum":1,"maximum":365},"description":"Lookback period in days (clamped to 365)"}],"responses":{"200":{"description":"Hiring KPIs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["analytics:read"]}],"x-required-scopes":["analytics:read"]}},"/applications/{id}/stage":{"post":{"summary":"Transition application stage","operationId":"transitionApplicationStage","tags":["Applications"],"description":"Moves an application to any canonical pipeline stage, forwards or backwards. There is no transition graph. A stage move changes where the candidate sits; it never cancels or deletes an interview, a send or a placement. Moving to submitted, client_interview, references or offer with no send on record logs one marked sent_outside (the CV went to the client outside Lovelio): nothing is emailed to the client, and the send goes to the job's client contact, else the client's primary contact. A client with no contact is refused with 422 until one is added. A send already on record is left as it is; a revoked send does not count. Leaving no, rejected or withdrew clears the rejection reason. A placed application whose placement is still standing cannot be moved out (409): mark the placement fell off first. Only three moves email the candidate: placed sends the hired email, rejected sends the rejection email only to a real applicant (never an agency-added candidate), and withdrew sends the withdrawal acknowledgement. Every other move emails nobody. Pass notify_candidate false to move without emailing. The API records the source as api and attributes a person-bound key to its acting user; callers cannot spoof another channel.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Application external ID (app_ prefix)"},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["stage"],"properties":{"stage":{"type":"string","enum":["funnel","maybe","yes","no","screen","submitted","client_interview","references","offer","placed","rejected","withdrew"]},"reason":{"type":"string","description":"Optional audit note explaining the manual move."},"notify_candidate":{"type":"boolean","default":true,"description":"Send the candidate the email for this stage move, where one applies. Pass false to move the stage without emailing. The same field the move_stage batch action takes."}}}}}},"responses":{"200":{"description":"Stage transition completed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"application":{"type":"object","properties":{"id":{"type":"string"},"stage":{"type":"string"},"stage_changed_at":{"type":"string","format":"date-time"}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Application not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The application is placed and its placement is still standing (error.code CONFLICT). Mark the placement fell off first. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Invalid stage, or a client-side stage requested for a client with no contact to log the send against.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/review-queue":{"get":{"summary":"List review queue items","operationId":"listReviewQueue","tags":["Review Queue"],"description":"Returns items in the human review queue. These are applications Lovelio cannot decide on its own (AI score in the grey zone, reference red flag, chase escalation, etc.). Defaults to unresolved, not-snoozed items ordered by most recent.","parameters":[{"name":"resolved","in":"query","schema":{"type":"boolean","default":false},"description":"Filter by resolved state: true for resolved items, false for open ones. Defaults to false."},{"name":"review_type","in":"query","schema":{"type":"string","enum":["score_review","reference_red_flag","chase_escalation","hm_no_response","withdrawal","strong_match","candidate_stalled","scorecard_no_decision","candidate_replied","interview_invite_no_response","interview_booked","reference_returned","referee_details_returned","guarantee_ending","onboarding_completed","submission_no_response","placement_starting","rejection_due","cross_match","spec_match","client_interview_requested","client_passed","offer_no_placement","interview_confirmed","interview_rescheduled","interview_cancelled","interview_outcome_due","interview_no_show","client_question_unanswered","spec_wants_more","agent_needs_a_person"]}},{"name":"priority","in":"query","schema":{"type":"string","enum":["urgent","high","normal","low"]}},{"name":"include_snoozed","in":"query","schema":{"type":"boolean","default":false},"description":"If true, include items whose snoozed_until is in the future. Defaults to false."},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"List of review queue items","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ReviewQueueItem"}},"meta":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Invalid stage, or a client-side stage was requested before the candidate was submitted to the client.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:read"]}],"x-required-scopes":["applications:read"]}},"/review-queue/{id}":{"patch":{"summary":"Update a review queue item","operationId":"updateReviewQueueItem","tags":["Review Queue"],"description":"Mark a review queue item as resolved, change its priority, or snooze it until a future time. Pass snoozed_until: null to clear an existing snooze.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Review queue external ID (rev_ prefix)"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"resolved":{"type":"boolean"},"priority":{"type":"string","enum":["urgent","high","normal","low"]},"snoozed_until":{"type":"string","format":"date-time","nullable":true,"description":"ISO-8601 timestamp to hide the item until, or null to clear the snooze."}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ReviewQueueItem"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["applications:write"]}],"x-required-scopes":["applications:write"]}},"/forms":{"get":{"summary":"List forms","operationId":"listForms","tags":["Forms"],"responses":{"200":{"description":"List of form templates","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Form"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:read"]}],"x-required-scopes":["forms:read"],"description":"Pagination: Returns the complete form-template configuration for one agency. No after cursor is accepted."},"post":{"summary":"Create form","operationId":"createForm","tags":["Forms"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","category"],"properties":{"name":{"type":"string"},"category":{"type":"string","enum":["screening","assessment","interview","onboarding","compliance"]},"description":{"type":"string"},"ai_augmentation_enabled":{"type":"boolean"}}}}}},"responses":{"201":{"description":"Form created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Form"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/forms/{id}":{"get":{"summary":"Get form with questions","operationId":"getForm","tags":["Forms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Form with questions","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"allOf":[{"$ref":"#/components/schemas/Form"},{"type":"object","properties":{"questions":{"type":"array","items":{"$ref":"#/components/schemas/FormQuestion"}}}}]}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:read"]}],"x-required-scopes":["forms:read"]},"patch":{"summary":"Update form","operationId":"updateForm","tags":["Forms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string","nullable":true},"ai_augmentation_enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated form","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Form"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]},"delete":{"summary":"Delete form","operationId":"deleteForm","tags":["Forms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]}},"/forms/{id}/questions":{"post":{"summary":"Add question to form","operationId":"addFormQuestion","tags":["Forms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["question_text"],"properties":{"question_text":{"type":"string","minLength":1,"maxLength":500},"order_index":{"type":"integer","minimum":0},"question_type":{"type":"string","enum":["text","rating","yes_no","multiple_choice"]},"options":{"type":"array","items":{"type":"string"},"description":"Required for multiple_choice: at least 2 non-empty choices."},"scoring_weight":{"type":"number"},"flag_mode":{"type":"string","enum":["red","green","neutral"]},"required":{"type":"boolean"}}}}}},"responses":{"201":{"description":"Question added","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/FormQuestion"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]}},"/forms/{id}/questions/{questionId}":{"patch":{"summary":"Update question","operationId":"updateFormQuestion","tags":["Forms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"question_text":{"type":"string","minLength":1,"maxLength":500},"question_type":{"type":"string","enum":["text","rating","yes_no","multiple_choice"]},"order_index":{"type":"integer","minimum":0},"options":{"type":"array","nullable":true,"items":{"type":"string"}},"scoring_weight":{"type":"number","nullable":true},"flag_mode":{"type":"string","nullable":true,"enum":["red","green","neutral",null]},"required":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/FormQuestion"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]},"delete":{"summary":"Delete question","operationId":"deleteFormQuestion","tags":["Forms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]}},"/form-instances":{"get":{"summary":"List form instances","operationId":"listFormInstances","tags":["Forms"],"description":"Returns compact summaries of form instances for discovery and pagination. Use GET /v1/form-instances/{id} for full question and response data.","parameters":[{"name":"instance_type","in":"query","schema":{"type":"string","enum":["screening","reference","interview","feedback"]}},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","sent","opened","started","completed"]}},{"name":"application_id","in":"query","schema":{"type":"string"}},{"name":"referee_id","in":"query","schema":{"type":"string"}},{"name":"form_id","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"List of form instances","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/FormInstance"}},"meta":{"type":"object"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:read"]}],"x-required-scopes":["forms:read"]}},"/form-instances/{id}":{"get":{"summary":"Get form instance","operationId":"getFormInstance","tags":["Forms"],"description":"Returns a form instance with all questions and responses.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Form instance with questions and responses","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/FormInstance"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:read"]}],"x-required-scopes":["forms:read"]}},"/form-instances/{id}/submit":{"post":{"summary":"Save or complete a form instance","operationId":"submitFormInstance","tags":["Forms"],"description":"Writes responses through the product completion core. A screening form is scored, stores application.phone_screen_score and moves yes to screen without letting the score decide the next stage. A phone reference completes through the same reference set and summary path as an emailed response. Pass draft true to autosave a phone reference without completing it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"fin_ id."},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["responses"],"properties":{"draft":{"type":"boolean","default":false},"responses":{"type":"array","items":{"type":"object","required":["question_id"],"properties":{"question_id":{"type":"string","description":"fiq_ id."},"response_text":{"type":"string","nullable":true},"response_rating":{"type":"number","nullable":true},"response_boolean":{"type":"boolean","nullable":true},"response_choice":{"type":"string","nullable":true},"ai_suggested_score":{"type":"number","nullable":true},"final_score":{"type":"number","nullable":true},"flag":{"type":"string","nullable":true}}}}}}}}},"responses":{"200":{"description":"Draft saved, reference completed or screening scored. data.kind identifies the result shape.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"kind":{"type":"string","enum":["draft","reference","screening"]},"saved":{"type":"boolean"},"completed":{"type":"boolean"},"completed_count":{"type":"integer"},"expected":{"type":"integer"},"set_complete":{"type":"boolean"},"score":{"type":"number","nullable":true},"auto_advance":{"type":"string","nullable":true,"enum":["shortlist","reject_prompt",null]},"instance_id":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]}},"/form-instances/screening":{"post":{"summary":"Prepare screening instance","operationId":"createScreeningInstance","tags":["Forms"],"description":"Loads, generates or regenerates the application phone screen through the shared product core. mode is a per-screen choice: ai writes 6-8 candidate-aware questions from the CV, assessment, Client DNA, job focus and brief; template copies the named screening form verbatim. Omit mode only to load an existing instance. Regeneration is refused after any response exists.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string"},"mode":{"type":"string","enum":["ai","template"]},"template_form_id":{"type":"string","description":"frm_ id used when mode is template."},"regenerate":{"type":"boolean","default":false},"brief":{"type":"string","maxLength":4000,"description":"Consultant guidance for AI question generation."}}}}}},"responses":{"201":{"description":"Screen ready with questions and existing responses.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/FormInstance"},"questions":{"type":"array","items":{"$ref":"#/components/schemas/FormInstanceQuestion"}},"responses":{"type":"array","items":{"$ref":"#/components/schemas/FormResponse"}},"candidate_name":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Regeneration refused because answers exist. Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"No mode for a new screen, no usable template, or insufficient candidate information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/form-instances/reference":{"post":{"summary":"Create reference instance","operationId":"createReferenceInstance","tags":["Forms"],"description":"Creates a reference check form instance for a referee, ready to send. referee_id is the ref_ id returned by GET or POST /candidates/{id}/referees; Lovelio bridges that candidate referee into the questionnaire store automatically. Legacy ref_ ids from older integrations remain accepted. Unless the account uses its own template, Lovelio writes the questions from the assessment, interviews, client feedback and consultant notes, sized to a 10 to 15 minute call. The response says which source was used and how long the set should take. A phone reference that was started and not finished is resumed, not duplicated: the same referee on the same application returns the unfinished instance with 200 and resumed true, with its saved answers counted in answered_count.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["application_id","referee_id"],"properties":{"application_id":{"type":"string"},"referee_id":{"type":"string","description":"ref_ id returned by the candidate referee endpoints."},"form_id":{"type":"string","description":"Optional frm_ template."},"channel":{"type":"string","enum":["email","phone"],"default":"email"},"mode":{"type":"string","enum":["ai","template"],"description":"Question source. Omit for the product default."}}}}}},"responses":{"200":{"description":"Unfinished phone reference resumed; nothing was created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"instance_id":{"type":"string"},"form_id":{"type":"string","nullable":true},"referee_id":{"type":"string"},"question_count":{"type":"integer"},"answered_count":{"type":"integer","description":"Answers already saved on the resumed call."},"estimated_minutes":{"type":"integer"},"status":{"type":"string","enum":["started"]},"channel":{"type":"string","enum":["phone"]},"resumed":{"type":"boolean","enum":[true]}}}}}}}},"201":{"description":"Reference instance created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"instance_id":{"type":"string"},"form_id":{"type":"string"},"referee_id":{"type":"string"},"question_count":{"type":"integer"},"question_source":{"type":"string","enum":["ai","template"],"description":"Where the questions came from. \"template\" also means Lovelio tried and fell back."},"estimated_minutes":{"type":"integer","description":"How long the set should take on a call."},"status":{"type":"string"},"channel":{"type":"string","enum":["email","phone"]},"resumed":{"type":"boolean","enum":[false]}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/form-instances/{id}/send":{"post":{"summary":"Send reference form to referee","operationId":"sendFormInstance","tags":["Forms"],"description":"Generates a magic link and emails the reference form to the referee, from the recruiter. The link goes under the message as a button. Set your own subject, message and deadline, or pass preview: true to get the email back without sending it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"email_subject":{"type":"string","description":"Your own subject line. Same placeholders as email_body."},"email_body":{"type":"string","description":"Your own message, plain text, blank lines between paragraphs. {{referee_first_name}}, {{candidate_name}}, {{job_title}}, {{client_name}} and {{deadline}} are filled in. Leave out to use the agency template."},"deadline":{"type":"string","format":"date","description":"YYYY-MM-DD, in the future. The date the email asks for the reference by, and the day the first reminder goes."},"preview":{"type":"boolean","description":"Return the subject, html and text that would go, with a stand-in link, and send nothing."}}}}}},"responses":{"200":{"description":"Form sent, or the preview","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"instance_id":{"type":"string","description":"fin_ id."},"sent_to":{"type":"string","format":"email"},"status":{"type":"string","enum":["sent","preview"]},"subject":{"type":"string","description":"Preview only."},"html":{"type":"string","description":"Preview only."},"text":{"type":"string","description":"Preview only."}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["forms:write"]}],"x-required-scopes":["forms:write"]}},"/candidates/{id}/referees":{"get":{"summary":"List referee contacts","operationId":"listReferees","tags":["Referees"],"description":"Returns the candidate's referee contact records and their submitted_at timestamps. A submitted contact is not a completed reference response or report.\n\nPagination: Returns the complete referee list for one candidate. No after cursor is accepted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of referee contacts for this candidate","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Referee"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]},"post":{"summary":"Add referee","operationId":"createReferee","tags":["Referees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"anyOf":[{"required":["email"]},{"required":["phone"]}],"properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"job_title":{"type":"string"},"company":{"type":"string"},"relationship":{"type":"string"},"worked_from":{"type":"string","description":"YYYY-MM."},"worked_to":{"type":"string","description":"YYYY-MM."},"how_worked_together":{"type":"string"}}}}}},"responses":{"201":{"description":"Referee added","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Referee"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidates/{id}/referees/{refereeId}":{"patch":{"summary":"Update referee","operationId":"updateReferee","tags":["Referees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"refereeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"job_title":{"type":"string","nullable":true},"company":{"type":"string","nullable":true},"relationship":{"type":"string","nullable":true},"worked_from":{"type":"string","nullable":true},"worked_to":{"type":"string","nullable":true},"how_worked_together":{"type":"string","nullable":true}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Referee"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]},"delete":{"summary":"Delete referee","operationId":"deleteReferee","tags":["Referees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"refereeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidates/{id}/papers":{"get":{"summary":"List a candidate's documents","operationId":"listCandidatePapers","tags":["Contractor Documents"],"description":"Every document on file for the person, newest first: right to work, checks, licences, insurance, each with the day it stops counting.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Documents on file","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Paper"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Candidate not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]},"post":{"summary":"Save a document","operationId":"savePaper","tags":["Contractor Documents"],"description":"Record a document you have checked. Saving the same kind in the same country again replaces it. Pass placement_id to take the country from that contract (and to hold an engagement document on it; that also needs placements:write), or pass country. Maps to action save_paper.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","example":"police_check"},"country":{"type":"string","example":"AU","description":"ISO country code. Required unless placement_id is given."},"placement_id":{"type":"string","description":"pla_ id. Must be a placement for this candidate."},"details":{"type":"string"},"issued_on":{"type":"string","format":"date","description":"The date on the document, YYYY-MM-DD."},"expires_on":{"type":"string","format":"date","description":"The printed expiry, YYYY-MM-DD."},"document_id":{"type":"string","description":"doc_ id of a file already on the candidate."}}}}}},"responses":{"201":{"description":"Document saved","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Paper"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Candidate or placement not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"The placement is for someone else Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Unknown kind for that country, a bad date, or no country","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/candidates/{id}/contractor-page-link":{"post":{"summary":"Get a contractor page link","operationId":"getContractorPageLink","tags":["Contractor Documents"],"description":"A fresh link to the contractor's own page, opened on a phone with no password: they set when they are free from, their day rate and their preferred areas, answer an open ask, and upload the documents their contracts need. An upload lands in their documents with status to_check until a person saves it as checked. Only a hash of the link is kept; it works for 60 days. Every availability ask, extension ask and document chase already carries one. Maps to action get_contractor_page_link.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"The link","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Candidate not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"]}},"/placements/{id}/papers":{"get":{"summary":"Check a placement's documents","operationId":"getPlacementPapers","tags":["Contractor Documents"],"description":"What this contract needs and where each document stands: current, missing, expired, ending before the contract does, or marked not needed. Maps to action get_placement_papers.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The documents check","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PlacementPapers"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Placement not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:read"]}],"x-required-scopes":["placements:read"]}},"/placements/{id}/papers/{kind}/waiver":{"put":{"summary":"Mark a document not needed","operationId":"waivePaper","tags":["Contractor Documents"],"description":"Stop asking for one document on this contract only; every other contract still asks. Right to work can never be marked not needed: everyone working needs it. Maps to action waive_paper.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string"},"description":"The document word, e.g. police_check."}],"responses":{"200":{"description":"Marked not needed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaperWaiverResult"}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Placement not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Right to work, or a kind Lovelio does not know","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:write"]}],"x-required-scopes":["placements:write"]},"delete":{"summary":"Ask for a document again","operationId":"unwaivePaper","tags":["Contractor Documents"],"description":"Undo a not needed mark: the contract asks for the document again. Maps to action waive_paper with waived false.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Needed again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaperWaiverResult"}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Placement not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["placements:write"]}],"x-required-scopes":["placements:write"]}},"/stages":{"get":{"summary":"List canonical pipeline stages","operationId":"listStages","tags":["Stages"],"description":"Returns Lovelio's twelve canonical agency stages (funnel, maybe, yes, no, screen, submitted, client_interview, references, offer, placed, rejected, withdrew) with label, description, whether the stage is terminal, and which stage new applications start in. There is no transition graph: any stage can be moved to from any other, as documented on POST /applications/{id}/stage. Use this endpoint instead of hardcoding the list.\n\nPagination: Returns the complete static pipeline-stage catalogue. No after cursor is accepted.","responses":{"200":{"description":"List of stages","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"yes","enum":["funnel","maybe","yes","no","screen","submitted","client_interview","references","offer","placed","rejected","withdrew"]},"label":{"type":"string","example":"Yes"},"description":{"type":"string"},"is_terminal":{"type":"boolean"},"is_default":{"type":"boolean","description":"True for the state new applications start in (funnel)."}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":[]}],"x-required-scopes":[]}},"/email-templates":{"get":{"summary":"List email templates","operationId":"listEmailTemplates","tags":["Email Templates"],"description":"Returns the merged view of every canonical Lovelio email template and any per-company overrides. Filter to a single template with template_key.\n\nPagination: Returns the complete transactional-template catalogue. No after cursor is accepted.","parameters":[{"name":"template_key","in":"query","schema":{"type":"string"},"description":"Optional: return only the specified template."}],"responses":{"200":{"description":"List of email templates","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplate"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]},"patch":{"summary":"Update one or more email templates","operationId":"updateEmailTemplates","tags":["Email Templates"],"description":"Upsert per-company overrides. Passing ai_instructions: null clears an override and falls back to the built-in default. Up to 50 templates per call.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["updates"],"properties":{"updates":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","required":["template_key"],"properties":{"template_key":{"type":"string"},"ai_instructions":{"type":"string","nullable":true},"enabled":{"type":"boolean"}}}}}}}}},"responses":{"200":{"description":"Updated templates","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplate"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/workflow-rules":{"get":{"summary":"Get workflow rules","operationId":"getWorkflowRules","tags":["Workflow Rules"],"description":"Returns the current workflow rules for the company. A default row is auto-created on first read.","responses":{"200":{"description":"Current workflow rules","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/WorkflowRules"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]},"patch":{"summary":"Update workflow rules","operationId":"updateWorkflowRules","tags":["Workflow Rules"],"description":"Update any subset of the workflow rules fields. Each reject threshold must stay strictly below its matching yes threshold.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRules"}}}},"responses":{"200":{"description":"Updated workflow rules","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/WorkflowRules"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/calendar-events":{"get":{"summary":"List calendar events","operationId":"listCalendarEvents","tags":["Calendar"],"description":"Returns calendar events for the company (shared interviews, phone screens, reminders, deadlines, meetings). Filter by time window with start and end, by event_type, or by linked record IDs. Calendar events are automatically created when an interview is scheduled via POST /v1/interviews. Events sync to the creator’s connected Google or Outlook calendar.","parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only return events starting at or after this ISO-8601 timestamp."},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only return events starting strictly before this ISO-8601 timestamp."},{"name":"event_type","in":"query","schema":{"type":"string","enum":["interview","phone_screen","reminder","deadline","meeting"]}},{"name":"application_id","in":"query","schema":{"type":"string"}},{"name":"candidate_id","in":"query","schema":{"type":"string"}},{"name":"job_id","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"List of calendar events","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEvent"}},"meta":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"post":{"summary":"Create calendar event","operationId":"createCalendarEvent","tags":["Calendar"],"description":"Create a calendar event. For interview events you normally use POST /v1/interviews, which creates both an interview record and a matching calendar event; use this endpoint for standalone entries like reminders, deadlines, and meetings.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["title","event_type","starts_at"],"properties":{"title":{"type":"string"},"event_type":{"type":"string","enum":["interview","phone_screen","reminder","deadline","meeting"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time","nullable":true},"all_day":{"type":"boolean"},"notes":{"type":"string"},"application_id":{"type":"string"},"job_id":{"type":"string"},"candidate_id":{"type":"string"},"assigned_to":{"type":"string","description":"User ID the event is assigned to."},"video":{"type":"boolean","description":"Add a video link. Off unless asked."},"platform":{"type":"string","enum":["google_meet","microsoft_teams","zoom"],"description":"Which link to make. zoom needs the organiser to have connected Zoom. Falls back to one the organiser's calendar can make."},"record":{"type":"boolean","description":"Record the call. Leave it out to follow the owner's call settings."},"call_type":{"type":"string","enum":["candidate_screen","client_briefing","reference","interview_debrief","business_development"]}}}}}},"responses":{"201":{"description":"Calendar event created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CalendarEvent"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/calendar-events/{id}":{"get":{"summary":"Get calendar event","operationId":"getCalendarEvent","tags":["Calendar"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Calendar event external ID (cal_ prefix)"}],"responses":{"200":{"description":"Calendar event","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CalendarEvent"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:read"]}],"x-required-scopes":["interviews:read"]},"patch":{"summary":"Update calendar event","operationId":"updateCalendarEvent","tags":["Calendar"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"event_type":{"type":"string","enum":["interview","phone_screen","reminder","deadline","meeting"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time","nullable":true},"all_day":{"type":"boolean"},"notes":{"type":"string","nullable":true},"assigned_to":{"type":"string","nullable":true},"record":{"type":"boolean","nullable":true,"description":"Turn recording on or off for this event. Null follows the owner's call settings. The link stays as it is."}}}}}},"responses":{"200":{"description":"Updated calendar event","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CalendarEvent"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]},"delete":{"summary":"Delete calendar event","operationId":"deleteCalendarEvent","tags":["Calendar"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["interviews:write"]}],"x-required-scopes":["interviews:write"]}},"/scheduled-emails":{"get":{"summary":"List scheduled emails","operationId":"listScheduledEmails","tags":["Scheduled Emails"],"description":"List scheduled (and historical) email sends for the company. Scheduled emails sit in status='scheduled' until the cron fires them, then move to status='sent'. Requires emails:read scope.","parameters":[{"name":"status","in":"query","schema":{"type":"string","enum":["draft","scheduled","sending","sent","cancelled","failed"]}},{"name":"candidate_id","in":"query","schema":{"type":"string"}},{"name":"scheduled_before","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"scheduled_after","in":"query","schema":{"type":"string","format":"date-time"}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"List of scheduled emails","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledEmail"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:read"]}],"x-required-scopes":["emails:read"]},"post":{"summary":"Create scheduled email","operationId":"createScheduledEmail","tags":["Scheduled Emails"],"description":"Schedule an email to a candidate. Row sits in status='scheduled' until scheduled_at passes; the cron picks it up on the next minute tick and sends via the same path as immediate sends. Requires emails:write scope. Idempotent via Idempotency-Key header.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["candidate_id","subject","scheduled_at"],"properties":{"candidate_id":{"type":"string","description":"External candidate ID (cnd_)."},"to_address":{"type":"string","description":"Optional override for the destination email. Defaults to the candidate's primary email."},"cc_addresses":{"type":"array","items":{"type":"string"}},"bcc_addresses":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"body_html":{"type":"string","description":"Optional HTML body. Either body_html or body_text is required."},"body_text":{"type":"string","description":"Optional plain-text body. Either body_html or body_text is required."},"scheduled_at":{"type":"string","format":"date-time","description":"When to fire. Must be in the future."},"application_id":{"type":"string"},"job_id":{"type":"string"},"created_by":{"type":"string","description":"Optional external user ID (usr_) to credit. Defaults to the company's first admin."}}}}}},"responses":{"201":{"description":"Scheduled email created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ScheduledEmail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/scheduled-emails/{id}":{"get":{"summary":"Get scheduled email","operationId":"getScheduledEmail","tags":["Scheduled Emails"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Scheduled email external ID (sem_ prefix)."}],"responses":{"200":{"description":"Scheduled email details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ScheduledEmail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:read"]}],"x-required-scopes":["emails:read"]},"patch":{"summary":"Update scheduled email","operationId":"updateScheduledEmail","tags":["Scheduled Emails"],"description":"Edit a scheduled email before it fires. Only permitted when status='scheduled'. Once the cron has claimed the row the API returns 422.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"to_address":{"type":"string"},"cc_addresses":{"type":"array","items":{"type":"string"}},"bcc_addresses":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"body_html":{"type":"string","nullable":true},"body_text":{"type":"string","nullable":true},"scheduled_at":{"type":"string","format":"date-time"}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ScheduledEmail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"No longer editable (already sent/cancelled/failed) or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]},"delete":{"summary":"Cancel scheduled email","operationId":"cancelScheduledEmail","tags":["Scheduled Emails"],"description":"Soft-cancel a scheduled email by setting status='cancelled'. Row is preserved for audit. Only permitted when status='scheduled'.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cancelled","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ScheduledEmail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Not in a cancellable state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]}},"/scheduled-emails/{id}/send-now":{"post":{"summary":"Send scheduled email now","operationId":"sendScheduledEmailNow","tags":["Scheduled Emails"],"description":"Fire a scheduled email immediately by setting scheduled_at to now(). The cron picks it up on the next tick (up to ~60s). Only permitted when status='scheduled'.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Scheduled for immediate send","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ScheduledEmail"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Not in a sendable state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["emails:write"]}],"x-required-scopes":["emails:write"]}},"/accounts/{id}/users":{"get":{"summary":"List users","operationId":"listUsers","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Array of users","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"],"description":"Pagination: Returns the complete workspace user directory. No after cursor is accepted."},"post":{"summary":"Invite a user","operationId":"createUser","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"name":{"type":"string","description":"Full name. Alternatively pass first_name + last_name."},"first_name":{"type":"string","description":"Given name. Preferred over name."},"last_name":{"type":"string","description":"Family name."},"email":{"type":"string","format":"email","description":"Must be on the account's email_domain when one is set, else the invite is rejected."},"phone":{"type":"string"},"role":{"type":"string","enum":["admin","team_leader","recruiter","resourcer"]},"team_id":{"type":"string","description":"Team (tem_ id) the user joins when they accept the invite."},"role_title":{"type":"string"},"linkedin_url":{"type":"string"},"slack_user_id":{"type":"string"},"whatsapp_number":{"type":"string"}}}}}},"responses":{"201":{"description":"User invited","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/User"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/users/{userId}":{"get":{"summary":"Get user","operationId":"getUser","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/User"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]},"patch":{"summary":"Update user","operationId":"updateUser","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Full name. Alternatively pass first_name + last_name; either way first/last and the display name stay in step."},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string","format":"email","description":"Must be on the account's email_domain when one is set."},"phone":{"type":"string"},"role":{"type":"string","enum":["admin","team_leader","recruiter","resourcer"]},"role_title":{"type":"string"},"team_id":{"type":"string","nullable":true,"description":"Assign the member to a team (tem_ id), or null to clear. Requires the user to have accepted their invite."},"linkedin_url":{"type":"string"},"slack_user_id":{"type":"string"},"whatsapp_number":{"type":"string"}}}}}},"responses":{"200":{"description":"Updated user","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/User"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]},"delete":{"summary":"Delete user","operationId":"deleteUser","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"User deleted"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/teams":{"get":{"summary":"List teams","operationId":"listTeams","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Array of teams","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"],"description":"Pagination: Returns the complete workspace team configuration. No after cursor is accepted."},"post":{"summary":"Create team","operationId":"createTeam","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"parent_team_id":{"type":"string","nullable":true,"description":"Parent team this team nests under, or null/omitted for top level."}}}}}},"responses":{"201":{"description":"Team created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Team"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/teams/{teamId}":{"get":{"summary":"Get team","operationId":"getTeam","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"teamId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Team details","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Team"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]},"patch":{"summary":"Update team","operationId":"updateTeam","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"teamId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"parent_team_id":{"type":"string","nullable":true,"description":"Re-parent the team. Send null to move it back to the top level. Must not create a cycle."}}}}}},"responses":{"200":{"description":"Updated team","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Team"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]},"delete":{"summary":"Delete team","operationId":"deleteTeam","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"teamId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Team deleted"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/api-keys":{"get":{"summary":"List API keys","operationId":"listApiKeys","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Array of API keys","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"],"description":"Pagination: Returns the complete workspace API-key configuration. No after cursor is accepted."},"post":{"summary":"Create API key","operationId":"createApiKey","tags":["Accounts"],"description":"Returns the full API key once - store it securely. Requires a company API key with accounts:write. Person-bound and app-install credentials receive 403 PERMISSION_DENIED, even when granted accounts:write. An admin can create keys in Settings > API.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","scopes"],"properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"201":{"description":"API key created with full key value","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ApiKey"},"key":{"type":"string","description":"Full API key value. Shown only once on creation."}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/api-keys/{keyId}":{"delete":{"summary":"Revoke API key","operationId":"revokeApiKey","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"API key revoked"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/transcription-usage":{"get":{"summary":"Get video transcription usage","operationId":"getTranscriptionUsage","tags":["Accounts"],"description":"Returns this calendar month's video-transcription usage and the plan cap. Lovelio covers the underlying vendor cost. Active (paying) accounts get a larger monthly cap than trialing accounts.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Usage snapshot","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"plan_status":{"type":"string","enum":["trialing","active","past_due","cancelled"]},"cap_minutes":{"type":"integer","nullable":true,"description":"null means unlimited."},"used_minutes":{"type":"integer","description":"Minutes actually recorded this month. Time a notetaker spent waiting in a lobby, or a recording that failed or was thrown away, does not count."},"remaining_minutes":{"type":"integer","nullable":true,"description":"null means unlimited."},"month":{"type":"string","description":"YYYY-MM (UTC)."}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]}},"/accounts/{id}/upgrade":{"post":{"summary":"Comp an account outside Stripe Checkout","operationId":"upgradeAccount","tags":["Accounts"],"description":"Requires a company credential. Person-bound and app-install credentials receive 403 PERMISSION_DENIED because this operation can mint a replacement company key. Comps the account and promotes its trial API key to a live one. A comped account is not billed, gets the whole product, and its AI credits are not metered. For partner deals and accounts Lovelio carries; normal billing goes through Stripe Checkout in the dashboard, where the account picks one of the four plans (Solo, Startup, Growth or Scale), which differ only in monthly AI credits. Takes no body. It accepted a seat count until 2026-09-13, when per-seat pricing was retired; a seats field is now ignored.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/idempotencyKey"}],"responses":{"200":{"description":"Account comped","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"account_id":{"type":"string","example":"acc_550e8400e29b41d4a716446655440000"},"comped":{"type":"boolean","example":true,"description":"Always true. The account is not billed and its AI credits are not metered."},"plan_tier":{"type":"string","enum":["premium"],"example":"premium"},"plan_status":{"type":"string","example":"active"},"live_api_key":{"type":"string","nullable":true,"description":"The new live API key, returned ONCE when a trial key was promoted. Null if no active trial key existed."},"billing_portal_url":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/accounts/{id}/intake-slo":{"get":{"summary":"Get intake pipeline SLO","operationId":"getIntakeSlo","tags":["Accounts"],"description":"Returns p50/p95/p99 total pipeline latency for the intake agent loop (CV parse + AI assessment + auto-decision) over the last 30 days, plus the decision-path breakdown and parse success rate. Use this to surface \"first response to candidate: 30 seconds\" style claims with real numbers.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Intake SLO reading","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"window":{"type":"string","example":"30d"},"sample_size":{"type":"integer","description":"Runs the percentiles were computed from - the most recent 5,000 in the window."},"total_events":{"type":"integer","description":"Exact number of intake runs in the window. Equals sample_size unless the account ran more than 5,000."},"total_ms":{"type":"object","properties":{"p50":{"type":"integer","nullable":true},"p95":{"type":"integer","nullable":true},"p99":{"type":"integer","nullable":true}}},"decision_breakdown":{"type":"object","properties":{"advance":{"type":"integer"},"reject":{"type":"integer"},"score_review":{"type":"integer"},"skip":{"type":"integer"}}},"parse_success_rate":{"type":"number","nullable":true,"minimum":0,"maximum":1}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]}},"/accounts/{id}/intelligence":{"get":{"summary":"Get company intelligence profile","operationId":"getCompanyIntelligence","tags":["Accounts"],"description":"Returns the synthesised seven-section Company Intelligence profile used by every AI prompt builder (job ads, outreach, assessments). Includes freshness fields (is_stale, last_synthesised_at, tier) so callers can render a stale banner and decide when to POST /intelligence/refresh.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Company intelligence profile","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"account_id":{"type":"string"},"company_name":{"type":"string"},"source":{"type":"string","enum":["intelligence","legacy","mixed","none"]},"tier":{"type":"string","enum":["full","partial","none"]},"is_stale":{"type":"boolean"},"last_synthesised_at":{"type":"string","nullable":true,"format":"date-time"},"generated_at":{"type":"string","format":"date-time"},"reveal":{"type":"object","properties":{"headline":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true}}},"sections":{"type":"object","description":"Seven synthesised sections. Each is {summary, metadata} or null if not yet populated.","properties":{"voice_and_tone":{"type":"object","nullable":true},"hiring_process":{"type":"object","nullable":true},"values_and_culture":{"type":"object","nullable":true},"growth_and_business":{"type":"object","nullable":true},"personal_attributes":{"type":"object","nullable":true},"compensation_posture":{"type":"object","nullable":true},"red_and_green_flags":{"type":"object","nullable":true}}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:read"]}],"x-required-scopes":["accounts:read"]}},"/accounts/{id}/intelligence/refresh":{"post":{"summary":"Refresh company intelligence","operationId":"refreshCompanyIntelligence","tags":["Accounts"],"description":"Queues a fresh deep-enrich + seven-pass synthesis run. Returns 202 immediately with a task_id and poll_url. Rate-limited by a 10-minute per-account cool-down. Requires an Idempotency-Key header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Refresh queued","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"task_id":{"type":"string"},"status":{"type":"string","example":"queued"},"resource_id":{"type":"string","nullable":true},"estimated_seconds":{"type":"integer"},"poll_url":{"type":"string"}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Cool-down active (refreshed in the last 10 minutes). Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["accounts:write"]}],"x-required-scopes":["accounts:write"]}},"/outreach":{"get":{"summary":"List outreach records","operationId":"listOutreach","tags":["Outreach"],"description":"The outreach you have recorded against candidates, newest first.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"},{"name":"candidate_id","in":"query","schema":{"type":"string"},"description":"Only this candidate (cnd_ id)."},{"name":"platform","in":"query","schema":{"type":"string","enum":["email","linkedin","whatsapp"]}},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","sent","replied","no_response"]}}],"responses":{"200":{"description":"Array of outreach records","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Outreach"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:read"]}],"x-required-scopes":["candidates:read"]},"post":{"summary":"Create outreach record","operationId":"createOutreach","tags":["Outreach"],"description":"Record outreach you sent yourself. Lovelio stores it against the candidate; it does not send anything.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["candidate_id","platform","body"],"properties":{"candidate_id":{"type":"string","description":"cnd_ id."},"platform":{"type":"string","enum":["email","linkedin","whatsapp"]},"body":{"type":"string","description":"The message you sent."},"subject":{"type":"string","nullable":true,"description":"Email only."},"job_id":{"type":"string","description":"Optional job_ id the outreach was about."},"status":{"type":"string","enum":["draft","sent","replied","no_response"],"default":"sent"}}}}}},"responses":{"201":{"description":"Outreach record created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Outreach"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["candidates:write"]}],"x-required-scopes":["candidates:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/actions":{"get":{"summary":"List actions","operationId":"listActions","tags":["Batch"],"description":"The action catalogue behind POST /batch, programmatically. Every entry carries the payload hint and the scope the action needs, generated from the same registry that runs the dashboard. Read this instead of guessing a payload shape. Filter with ?category= or fetch one with ?name=. Actions only a person may take in the Lovelio app are left out.\n\nPagination: Returns the complete static action catalogue behind POST /batch. No after cursor is accepted.","parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string"},"description":"Return exactly one action by canonical name; 404 when unknown, 403 HUMAN_ONLY_ACTION when only a person may take it."},{"name":"category","in":"query","required":false,"schema":{"type":"string"},"description":"Return only the actions in one category (for example pipeline, clients, comms)."}],"responses":{"200":{"description":"Action catalogue","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"payloadHint":{"type":"string"},"scope":{"type":"string"}}}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"HUMAN_ONLY_ACTION: the named action is done only by a person in the Lovelio app. The message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown action name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":[]}],"x-required-scopes":[]}},"/batch":{"post":{"summary":"Execute multiple actions in one request","operationId":"executeBatch","tags":["Batch"],"description":"Dispatch up to 100 canonical actions in a single round-trip. Each operation runs independently: one failing does not prevent later operations. Each has its own idempotency key, atomically claimed before execution and bound to its action and payload for 24 hours. Uncertain executions remain reserved beyond expiry. Reusing a key with a changed payload returns a per-operation IDEMPOTENCY_KEY_REUSED failure. The whole batch counts as one call against the per-minute rate limit. Permission for each operation is checked per-op against the API key scopes.\n\nThe callable action catalogue is generated from the same action registry the product dispatches and the same scope map this endpoint enforces.\n\n| Action | Required scope | Payload | What it does |\n| --- | --- | --- | --- |\n| `add_candidate_import_files` | `candidates:write` | `{ import_id, files }` | Request signed upload slots for original candidate CV files. |\n| `add_client_contact` | `clients:write` | `{ client_id? \\| client_name?, name, email?, phone?, title?, reports_to?, is_primary?, source? }` | Add a contact (hiring manager, HR, finance) to a client. Pass client_id, or client_name when you only know the company - a client with that name is matched, and created if the agency does not have one yet. A contact with the same email on the same client is handed back rather than duplicated. |\n| `add_client_dna_note` | `clients:write` | `{ client_id, text, source? }` | Add a note to a client's DNA - anything learned from a meeting, call, or feedback. The DNA re-derives automatically with the note applied. source is text (default), voice, or meeting. |\n| `add_client_recruiter` | `clients:write` | `{ client_id, member_id }` | Add a teammate as a recruiter on a client. Anyone who works a job at the client is added automatically - this is the manual way to add anyone else. |\n| `add_form_question` | `forms:write` | `{ form_id, question_text, order_index, question_type, options, scoring_weight, flag_mode, required }` | Add form question. |\n| `add_found_client` | `clients:write` | `{ domain, person_ids? }` | Add a company from find_new_clients as a client, with the people ticked from find_client_people as its contacts. A company already on the book is refused and named. The client is created at once; the contacts are added in the background (adding_contacts says how many) and their work emails are looked up after, costing credits only when found. person_ids are the ids from find_client_people. |\n| `add_interview_link` | `interviews:write` | `{ interview_id, video_link }` | Add the meeting link to a booked interview, usually a client interview the client is running on their own Teams, Zoom or Meet and sent the link for after the booking, or an internal video interview booked with no calendar connected to make one. Paste the bare link or the whole invite; the link is read out of it. The interview becomes a Video interview, and the candidate and every client contact on the invite are emailed the link with an updated calendar entry. |\n| `add_note` | `activities:write` | `{ resource_type, resource_id, note, mentions? }` | Add a note to a candidate / job / job_ad / application / interview / client / placement record. The same fields as the add_note tool: resource_type, resource_id, note. The older record_type, record_id, note_text still work. To tag teammates, write \"@Full Name\" in the note or pass mentions (user ids, emails or names); each one who can see the record gets a notice and an email. |\n| `add_quota_adjustment` | `accounts:write` | `{ amount, reason, user_id?\\|user_email?, currency?, period_start? }` | Credit or debit a consultant's quota figure (or the agency's, with no consultant named) inside a period, with a reason - a deal counted in a different period, a split correction. Amount is signed: negative debits. Defaults to the current period; locked periods refuse. |\n| `add_referee` | `candidates:write` | `{ application_id, name, email, relationship?, phone? }` | Record a referee the candidate gave directly (name + email, optional relationship and phone) against their application. For asking the candidate to submit their own referees, use request_referee_details instead. |\n| `add_to_talent_pool` | `candidates:write` | `{ candidate_id, pool_id? \\| pool_name?, reason? }` | Add a candidate to a talent pool. Pass pool_id, or pool_name when the user names the pool (e.g. \"add Jane to the engineering pool\"). |\n| `add_web_candidate` | `candidates:write` | `{ job_id, person_id, stage?: \"funnel\" \\| \"yes\" \\| \"screen\" \\| \"submitted\", find_contacts?: (\"work_email\" \\| \"personal_email\" \\| \"mobile\")[] }` | Add a person from search_web_candidates to the job: creates the candidate with their public profile as written and puts them in the funnel, or at stage \"yes\", \"screen\" or \"submitted\" when asked. A new person costs credits; someone already on file is free. For a new person, contact details are looked up in the background and cost credits only when found; find_contacts picks which: \"work_email\", \"personal_email\" and \"mobile\" (needs mobiles on in Settings), each priced and found on its own; the older \"email\" still means both emails, an empty list looks nothing up, and leaving it out looks up every kind the agency allows. For someone already on file, only the picked details the record does not already hold are looked up. person_id is the id from the search result. |\n| `add_web_candidate_to_database` | `candidates:write` | `{ person_id, job_id?, stage?: \"funnel\" \\| \"yes\" \\| \"screen\" \\| \"submitted\", pool_ids?: string[], find_contacts?: (\"work_email\" \\| \"personal_email\" \\| \"mobile\")[] }` | Add a person from search_web_candidates to the database: creates the candidate with their public profile as written, or uses the record already on file. Optionally puts them on one job (job_id, they land in the funnel, or at stage \"yes\", \"screen\" or \"submitted\") and into talent pools (pool_ids) in the same call. A new person costs credits; someone already on file is free. For a new person, contact details are looked up in the background and cost credits only when found; find_contacts picks which: \"work_email\", \"personal_email\" and \"mobile\" (needs mobiles on in Settings), each priced and found on its own; the older \"email\" still means both emails, an empty list looks nothing up, and leaving it out looks up every kind the agency allows. For someone already on file, only the picked details the record does not already hold are looked up, and leaving find_contacts out looks nothing up. person_id is the id from the search result. |\n| `add_web_candidate_to_pool` | `candidates:write` | `{ job_id, person_id, pool_id? \\| pool_name?, find_contacts?: (\"work_email\" \\| \"personal_email\" \\| \"mobile\")[] }` | Add a person from search_web_candidates to a talent pool instead of the job: creates the candidate with their public profile as written (or uses the record already on file) and adds them to the pool. A new person costs credits; someone already on file is free. For a new person, contact details are looked up in the background and cost credits only when found; find_contacts picks which: \"work_email\", \"personal_email\" and \"mobile\" (needs mobiles on in Settings), each priced and found on its own; the older \"email\" still means both emails, an empty list looks nothing up, and leaving it out looks up every kind the agency allows. For someone already on file, only the picked details the record does not already hold are looked up. person_id is the id from the search result; pass pool_id, or pool_name when the user names the pool. |\n| `add_web_candidates` | `candidates:write` | `{ person_ids: string[] (max 25), job_id?, stage?: \"funnel\" \\| \"yes\" \\| \"screen\" \\| \"submitted\", pool_ids?: string[], find_contacts?: (\"work_email\" \\| \"personal_email\" \\| \"mobile\")[] }` | Add up to 25 people from search_web_candidates to the database in one call, the same as add_web_candidate_to_database for each. Returns one outcome per person: added, already_on_file, expired (their search result lapsed; search again) or failed. Each new person costs credits; someone already on file is free. Optionally puts them all on one job (job_id, they land in the funnel, or at stage \"yes\", \"screen\" or \"submitted\") and into talent pools (pool_ids). Contact lookups cost credits only when found, and only for the kinds in find_contacts (\"work_email\", \"personal_email\", \"mobile\"); leaving it out looks nothing up. person_ids are the ids from the search result. |\n| `answer_share` | `activities:write` | `{ batch_id, answer: on_it \\| not_for_me }` | Answer a share sent to you: on_it, or not_for_me. The sharer hears back and the record timeline shows the answer. |\n| `answer_spec_question` | `submissions:write` | `{ spec_id, body }` | Answer a question a client asked about a spec (float). The reply is stored on the spec's Q&A thread and the client contact is emailed the answer. |\n| `answer_submission_question` | `submissions:write` | `{ item_id, body, resend_link? }` | Answer a question a client asked about a submitted candidate, or send them any message on that submission. The client contact is emailed it. Pass resend_link: true when the message is sending the client link again - the link is renewed first (another 7 days, and an expired one comes back to life), so the client never gets a dead link. A revoked submission is never resent. |\n| `ask_analytics` | `analytics:read` | `{ question }` | Ask any data question over the agency's records - billings, placements, submissions, ratios, fill rate, rankings by client or consultant, trends, period comparisons. A deterministic engine computes every number and the answer states exactly what was computed. |\n| `ask_candidate` | `candidates:read` | `{ candidate_id \\| candidate_name, question }` | Ask any question about a candidate in natural language - history with the agency, live applications, client responses, when you last spoke. Answered only from the agency's own records for that candidate, never from outside data. |\n| `ask_client` | `clients:read` | `{ client_id \\| client_name, question }` | Ask any question about a client in natural language - reply speed, placement history, who to call, whether they are a good client, and grounded public BD signals. Public facts always keep their verified source. |\n| `ask_job` | `jobs:read` | `{ job_id \\| job_title, question }` | Ask any question about a job in natural language - how the pipeline is tracking, who is stalled, what is waiting on the client. Answered only from the agency's own records for that job, never from outside data. |\n| `ask_pool_member_if_looking` | `talent_pools:write` | `{ candidate_id, pool_id? \\| pool_name? }` | Email a talent pool member the pool's check-in now, asking if they are still looking. Their one-click answer lands on the pool. Refused for someone who said they are not looking, and held for a client contact or a work-only address. |\n| `book_call` | `calls:write` | `{ candidate_id? \\| client_contact_id? \\| application_id?, starts_at?, duration_minutes?, title?, job_id?, platform?: \"google_meet\"\\|\"microsoft_teams\"\\|\"zoom\", record?, tell_them?, call_type?, notes?, attendees?, ignore_conflicts? }` | Book a video call with a candidate or a client contact on the user's own calendar, now or later. Leave starts_at out to start the call now; the result carries meeting_url. The link runs on the user's platform unless platform is passed; whether it records follows the user's call settings unless record is passed. call_type is one of candidate_screen, client_briefing, reference, interview_debrief, business_development. Refuses with code \"no_calendar\" when the user has no calendar connected, and with code \"conflicts\" on a free/busy clash for a later call (re-send with ignore_conflicts: true only after the user says to book anyway). |\n| `bulk_add_to_talent_pool` | `candidates:write` | `{ candidate_ids: [...], pool_id? \\| pool_name? }` | Add multiple candidates to a talent pool at once. |\n| `bulk_reject` | `applications:write` | `{ application_ids: [...], reason?, send_email? (false skips the rejection email) }` | Reject multiple applications at once. |\n| `bulk_send_email` | `emails:write` | `{ candidate_ids: [...], subject, body, document_ids?: [document ids every recipient gets] }` | Send the same email to multiple candidates. |\n| `cancel_interview` | `interviews:write` | `{ interview_id, reason? }` | Cancel a scheduled interview. Sends a cancellation notice. |\n| `cancel_meeting` | `interviews:write` | `{ event_hint, reason? }` | Cancel a previously booked meeting. Pass the user's phrasing verbatim as event_hint. Soft-deletes the row (cancelled_at) and removes the Google event. |\n| `cancel_scheduled_email` | `emails:write` | `{ scheduled_email_id }` | Cancel an email that has been scheduled but not yet sent. |\n| `chase_spec` | `submissions:write` | `{ spec_id, email_subject, email_body, document_ids?: [document ids on the records this email is about] }` | Nudge the client contact about a spec they have not responded to. The email body is written by the consultant (or pre-drafted for them) - it is never sent without a person approving it. Stamps the reminder and clears the Needs You prompt. |\n| `chase_submission` | `submissions:write` | `{ submission_id, email_subject, email_body, document_ids?: [document ids on the records this email is about] }` | Nudge the client contact about a submission they have not responded to. The email body is written by the consultant (or pre-drafted for them) - it is never sent without a person approving it. Stamps the reminder and clears the Needs You prompt. |\n| `check_talent_pools` | `jobs:write` | `{ job_id }` | Check a live job against the talent pools once more: only members who joined since the last check are looked at, at most five are assessed. The scheduled checks (when the job goes live, day 7, day 14) run on their own. |\n| `close_job` | `jobs:write` | `{ job_id, reason? }` | Close a job (sets status=Closed). Existing applications are preserved. |\n| `complete_assessment` | `applications:write` | `{ candidate_id, job_id }` | Fill in the assessment stages the arrival cascade skipped (gated Client Fit, deferred summary) for a candidate on a job. No-op when the assessment is already complete; never re-scores what was scored. The verdict is a suggestion and never moves the stage. |\n| `confirm_candidate_draft` | `candidates:write` | `{ review_token, first_name?, last_name?, name?, email?, phone?, linkedin_url?, location?, current_title?, current_company? }` | Apply any final field corrections, then create the real candidate record. Refuses with draft_has_gaps if name or email is empty. Dispatches to the existing create_candidate handler. |\n| `confirm_email_draft` | `emails:write` | `{ review_token }` | Send the staged email now (or schedule it if schedule_at is set). Refuses with draft_has_gaps if subject or body is empty or a [bracket] placeholder is left in either. Dispatches to the existing send_email / schedule_email handlers. |\n| `confirm_interview_action_draft` | `interviews:write` | `{ review_token, new_scheduled_at?, ignore_conflicts? }` | Reschedule or cancel the interview now. Refuses with draft_has_gaps if new_scheduled_at (reschedule) or reason (cancel) is empty. Dispatches to the existing reschedule_interview / cancel_interview handler. A reschedule clash refuses with code \"conflicts\" naming who is busy; pass new_scheduled_at to re-confirm at a suggested time, or ignore_conflicts: true only after the user explicitly says to move it anyway. |\n| `confirm_interview_draft` | `interviews:write` | `{ review_token, scheduled_at?, ignore_conflicts? }` | Schedule the interview now. Refuses with draft_has_gaps if scheduled_at, format, or interviewer_id is empty (or if format is in_person without a location). Dispatches to the existing schedule_interview handler. A free/busy clash refuses with code \"conflicts\" naming who is busy; pass scheduled_at to re-confirm at a suggested time, or ignore_conflicts: true only after the user explicitly says to book anyway. |\n| `confirm_interview_form_draft` | `interviews:write` | `{ instance_id }` | Submit the interview form. Refuses with draft_has_gaps if overall recommendation is missing or no section has been scored. Dispatches to the existing update_interview_outcome handler. |\n| `confirm_job_draft` | `jobs:write` | `{ review_token, mode: \"active\"\\|\"draft\", client_id?, team_id?, hiring_manager_id? }` | Create the real job and fire the full create_job pipeline (criteria, interview questions, ad, social posts). Refuses if any mandatory gap is unfilled. |\n| `confirm_phone_screen_draft` | `applications:write` | `{ review_token }` | Atomically log a timeline note and move the application stage. advance -> Screen (via move_stage); reject -> Rejected (via reject_candidate); hold / no_show -> stage unchanged. Refuses with draft_has_gaps if outcome or notes is empty. |\n| `confirm_scorecard_draft` | `interviews:write` | `{ review_token }` | Submit the staged scorecard. Refuses with draft_has_gaps if overall_recommendation is missing or every available score is null. Dispatches through submit_scorecard to the authenticated interviewer's form and updates the interview outcome once. |\n| `convert_job_opportunity` | `jobs:write` | `{ job_opportunity_id, title?: the job title, when the opportunity has none }` | The client said yes: turn the opportunity into a job in one step. Creates the job at the opportunity's client with its title, contact and salary, and on a candidate opportunity adds that candidate to the job at Yes. The opportunity moves to Won and links to the job. It needs a client and a role title. It creates everything or nothing, and converting twice returns the same job. |\n| `convert_spec` | `jobs:write` | `{ spec_id \\| spec_ids: [...] (several floats from the same send, one job), title?, location?, employment_type?: full_time\\|part_time\\|contract, salary_min?, salary_max?, currency? }` | The client is interested in a specced candidate: create the job at that client and add the candidate at the submitted stage in one step. Uses the real job + application creation paths; the spec keeps the introduction record. |\n| `create_application` | `applications:write` | `{ candidate_id \\| candidate_ids: [...], job_id, stage?: \"funnel\" \\| \"yes\" \\| \"screen\" \\| \"submitted\", source_category?, source_detail?, talent_pool_id?, search_query?, sourcing_run_id?, notes? }` | Attach an existing candidate (or many) to an existing job. Pass candidate_id for a single attach or candidate_ids: [...] for bulk. Funnel is the default stage; pass stage \"yes\", \"screen\" or \"submitted\" to start them further on (Screen logs a passed screen, known to the recruiter; Submitted logs a submission to the job's client contact marked sent outside Lovelio, with no email sent). Someone already on the job is never added twice or moved backwards: a lower stage moves up to the one asked for, otherwise they stay where they are. Credit the source: pass talent_pool_id when attaching from a talent pool, search_query when attaching a database result, or sourcing_run_id for an explicit LinkedIn sourcing run. |\n| `create_candidate` | `candidates:write` | `{ name \\| first_name + last_name, email?, phone?, location?, skills?, linkedin_url? }` | Create a new candidate profile. Send first_name and last_name when you have them (with or instead of name). |\n| `create_candidate_import` | `candidates:write` | `{ file_count, match_pools }` | Start a bulk import of original candidate CVs. |\n| `create_client` | `clients:write` | `{ name?, website?, phone?, industry?, description?, locations?, address?, standard_fee_percent?, contract_margin_percent?, payment_terms_days?, guarantee_days?, notes? }` | Create a client (a company the agency recruits for). The company phone is separate from every contact phone. Pass a website and Lovelio fills in missing details automatically. Initial agreed permanent and contract terms may be set here; later changes go through set_client_fee_terms. |\n| `create_client_site` | `clients:write` | `{ client_id, label?, street?, city?, region?, postcode?, country }` | Add a workplace to a client: street, city, region, postcode and the country (two-letter code). A contract placement picks a site as where the work happens, and the site's country decides which payroll fields Lovelio collects for the contractor. The same address on the same client is handed back rather than duplicated. |\n| `create_distribution_rule` | `jobs:write` | `{ name, target_board_slugs: string[], filter?: { country?, category?, job_type?, team_id? }, active? }` | Create a job-board distribution rule: matching jobs auto-publish to the target boards. Filter by country, category, job_type, or team. |\n| `create_form` | `forms:write` | `{ name, category, description, ai_augmentation_enabled }` | Create form. |\n| `create_job` | `jobs:write` | `{ title, mode?: \"draft\", client_id \\| client_name, client_contact_id?, location?, type?, employment_type?, salary_min?, salary_max?, salary_period?, currency?, start_date?, duration_value?, duration_unit?: weeks \\| months, openings?, charge_rate_min?, charge_rate_max?, engagement_type?: payg \\| abn \\| inside_ir35 \\| outside_ir35, default_interview_format?, is_evergreen? }` | Create a new job requisition. Every job belongs to a client: pass client_id (or client_name - one unambiguous match). For internal hiring use the agency self-client. A contract job can carry its start_date (YYYY-MM-DD), length (duration_value + duration_unit), openings (how many people), pay rate (salary_min/max per salary_period), charge rate (what the client pays, internal only) and engagement_type. |\n| `create_job_ad` | `jobs:write` | `{ job_id, title?, description? }` | Create a new public job ad for a role. |\n| `create_job_opportunity` | `jobs:write` | `{ kind?: role\\|candidate, title?, candidate_id?, client_id? \\| client_name?, client_contact_id? \\| contact_name? (+ contact_email?, contact_phone?), salary_min?, salary_max?, currency?, stage?: new\\|talking\\|keen\\|terms, source?: manual\\|call\\|email\\|careers_watch\\|key_movement\\|float\\|agent, source_detail? }` | Add an opportunity: work that may become a job but is not signed yet. Kind \"role\" is a role a client may hire for (title and client required). Kind \"candidate\" is a person being put in front of companies (candidate_id required; the company and the role title can come later). A company named by client_name is found or created as a real client. An opportunity carries no fee: the possible fee is priced from the client's terms. The same open opportunity is never added twice; the existing one is returned. |\n| `create_placement` | `placements:write` | `{ application_id? \\| (candidate_id + client_id), job_id?, salary?, currency?, fee_type?, fee_percent?, fee_amount?, start_date?, guarantee_days?, owner_id?, notes?, placement_type?, offer_date?, contract_end_date?, charge_rate?, pay_rate?, rate_period?, rate_card_id?, on_cost_percent? \\| on_cost_amount?, expected_gp?, credits?, tidy_up?: { keep_application_ids?, close_job? }, work_site_id? \\| work_site?: { label?, street?, city?, region?, postcode?, country }, timesheet_approver_contact_ids?, position_id?, rate_template_id?, hiring_manager_contact_id? (a contact on the client; defaults to the job's contact), invoice_contact_id? (a contact on the client; defaults to the client's invoice contact), po_number?, invoice_notes?, contractor_details?: country fields: AU { payment_type?: payg\\|abn, abn?, entity_name?, gst_registered?: yes\\|no } or NL { payment_type?: freelancer\\|payroll, company_name?, kvk?, vat_id?, payment_terms_days? } }` | Record a placement: a candidate placed with a client for a fee. Pass application_id to log it against a live application (moves it to Placed), or candidate_id + client_id - the candidate must already be live on one of the client's OPEN jobs (Active or On Hold), and the placement links to that application. A closed or filled job is refused: reopen it first. Fee percent and guarantee default off the client's standard terms. Also withdraws the candidate's other live applications (with a timeline note) and cancels their future interviews on them, telling candidate and interviewer; pass tidy_up.keep_application_ids to keep one. The job stays open unless tidy_up.close_job is true (then it closes as Filled). |\n| `create_reference_instance` | `forms:write` | `{ application_id, referee_id, form_id, channel, mode }` | Prepare a phone or email reference questionnaire without sending it. |\n| `create_reminder` | `interviews:write` | `{ title, starts_at, notes?, candidate_id?, job_id?, application_id? }` | Create a reminder for the user at a specific time. |\n| `create_submission` | `submissions:write` | `{ job_id, application_ids: [...] \\| items: [{ application_id, summary? }], client_contact_id?, email_subject?, greeting?, headline?, intro_body?, message?, title?, identity_visibility?, attach_cv? }` | Send a submission of candidates on a job to the job's client contact for review. The client gets a link where they request interviews, pass, or ask questions. Candidates still in triage move to the submitted stage automatically. identity_visibility decides how much of each candidate the client sees: \"full\" (default), \"first_name\" (first name only, no surname or LinkedIn), or \"anonymous\" (no name, and employers and schools withheld too). email_subject is the subject line the client sees - pass one when the consultant has written it, otherwise it defaults to \"Candidates for the role of {job}\" (singular \"Candidate\" for a submission of one). headline is the big line at the top of the client review page - pass one to replace the default (\"Hi {first name}, N candidates for your review.\"). intro_body is everything said above the candidates in the consultant's own words - pass one to replace the default paragraph (\"I am delighted to submit {first names} for your role of {job title}. Please see specific details below...\" signed off by the consultant). attach_cv: true attaches each candidate's current CV to the email (for clients whose mail strips links); false sends without; leave it out to follow the last choice made for this client. A CV shows the candidate's name, so attach_cv: true is refused unless identity_visibility is \"full\". |\n| `create_talent_pool` | `talent_pools:write` | `{ name, eligibility?, description?, cover_color? }` | Create a new talent pool. Name is required; eligibility is the one-line \"who belongs here\" description. |\n| `create_webhook` | `webhooks:write` | `{ url, events?: string[] }` | Create a webhook subscription. Generates a signing secret returned once. |\n| `delete_candidate` | `candidates:write` | `{ candidate_id, reason? }` | Soft-delete a candidate (not GDPR hard delete). Refused while the candidate is on any job; the refusal names the jobs. |\n| `delete_client` | `clients:write` | `{ client_id, reason? }` | Delete a client record. Refused (CONFLICT) while the client has open jobs or standing placements: close the jobs and finish the placements first. |\n| `delete_client_contact` | `clients:write` | `{ contact_id }` | Remove a contact from a client. |\n| `delete_document` | `documents:write` | `{ document_id }` | Delete one document. Removes the file itself, not just the listing - there is no undo. |\n| `delete_form` | `forms:write` | `{ form_id }` | Delete form. |\n| `delete_form_question` | `forms:write` | `{ form_id, question_id }` | Delete form question. |\n| `delete_job` | `jobs:write` | `{ job_id, reason? }` | Soft-delete a job that has no job ads or applications yet. A job with either is refused (CONFLICT): close it with close_job instead. |\n| `delete_talent_pool` | `talent_pools:write` | `{ pool_id? \\| pool_name? }` | Permanently delete a talent pool. The pool and its membership list go; every candidate stays in your bank. Pass pool_id, or pool_name when the user names the pool. |\n| `delete_webhook` | `webhooks:write` | `{ webhook_id }` | Delete a webhook subscription. Past deliveries are preserved. |\n| `describe_a_job` | `jobs:write` | `{ description, client_id? \\| client_name?, client_contact_id? \\| client_contact_name?, autopublish?, source? }` | Turn a free-text role description into a full job draft (streaming in the background). Returns a review_token that every follow-up action uses. |\n| `discard_call` | `calls:write` | `{ call_id }` | The other person did not agree to the call being recorded: delete the call with its recording, transcript, write-up, clips and timeline entry. It can never be built again from the same source. No undo. Only the consultant on the call, a team leader or an admin. |\n| `discard_careers_float` | `clients:write` | `{ watch_id, site_job_id }` | Throw away a draft float. The people who fit the ad stay, so it can be drafted again. |\n| `discard_draft` | `emails:write` | `{ review_token }` | Throw away a staged draft you will not confirm, by its review_token (edr_, idr_, iad_, psd_, scd_, cdr_ or jdr_). Nothing is sent. A confirmed draft cannot be discarded. |\n| `dismiss_client_site_jobs` | `jobs:write` | `{ find_ids: string[] }` | Mark jobs Lovelio read off a client's careers page as not for the agency. They are never offered again and no job is made. |\n| `dismiss_key_movement` | `clients:write` | `{ key_movement_id, handled? }` | Take a row off the Opportunities Key movement tab (someone we know applied, a client contact moved). Changes the list only; nothing is sent and no record changes. |\n| `dismiss_lost_fee` | `placements:write` | `{ lost_fee_id, reason: \"found_first\" \\| \"different_role\" \\| \"sorted\" \\| \"not_same_person\" }` | Take a row off the Possible lost fees list on the Placements tab (someone we sent to a client in the last 6 months who now works there), with the reason it is not a lost fee. Changes the list only; nothing is sent and no record changes. |\n| `do_call_action` | `calls:write` | `{ call_id, action_id, edits?, dismiss? }` | Do, or dismiss, one of the next steps Lovelio suggested from a call transcript (mark Yes, email the candidate or contact, a reminder, book the next call, save the fee, add a contact, add a hiring DNA note). Runs the real action with the same checks it always has; the suggestion is only marked done when that succeeds. edits changes the suggestion first: subject and body for emails, title and starts_at for reminders and calls, percent for the fee, name, title and email for a contact, text for a DNA note. |\n| `draft_availability_check` | `placements:write` | `{ placement_id }` | Draft an email asking a contractor whose contract ends in the next eight weeks if they are free from the first working day after it ends. Returns email_subject, email_body and free_from; nothing is sent. A person reads it, can change it, and sends it with send_placement_email (recipient \"candidate\", ask \"availability\", free_from). Their reply sets their available from date. |\n| `draft_careers_float` | `clients:write` | `{ watch_id, site_job_id }` | Draft a float for a new job on a watched company's careers page: the best people in your database for the ad (never anyone who works there), who it goes to and the intro email. Nothing is sent; a person checks it and presses send. |\n| `draft_contractor_check_ins` | `candidates:write` | `{}` | Draft one ask for everyone on the check-in list who can be reached (up to 50): \"Are you free from <date>?\" for contracts finishing soon, a \"How is it going?\" check-in for the quiet ones. Returns the drafts (candidate_id, placement_id, channel, email_subject, email_body, free_from); nothing is sent. A person reads them, can change them, and sends them with send_availability_asks, 25 at a time. Each reply sets that person's free date. Someone who agreed to WhatsApp (record_whatsapp_consent) is drafted a WhatsApp ask instead: channel \"whatsapp\", whatsapp_preview is the approved message exactly as they will read it, whatsapp_buttons its buttons, whatsapp_wait why it cannot go right now (outside 8am to 6pm on a weekday, their time), can_email whether email is a fallback. WhatsApp is off until Lovelio and the agency switch it on. |\n| `draft_extension_asks` | `candidates:write` | `{ placement_ids?: string[] }` | Draft the extension asks: \"Keep <name> past <end date>?\" to the client contact and \"Want to stay on?\" to the contractor, for every contract on list_extension_asks (up to 50 emails) or the placement_ids given (any contract still waiting on a plan or asked). The client email never names the client. Returns the drafts (placement_id, to: client\\|contractor, client_contact_id, channel, email_subject, email_body); nothing is sent. A person reads them, can change them, and sends them with send_extension_asks. The client is always emailed; a contractor who agreed to WhatsApp is drafted the approved WhatsApp ask (whatsapp_preview, whatsapp_buttons, whatsapp_wait, can_email). |\n| `draft_job_availability_asks` | `candidates:write` | `{ job_id }` | Draft \"Are you free from <start date>?\" emails for everyone on a contract job's free list whose free date no person confirmed in the last 7 days and who can be reached. Returns the drafts (candidate_id, channel, email_subject, email_body, free_from); nothing is sent. A person reads them, can change them, and sends them with send_availability_asks. Each reply sets that person's free date. Someone who agreed to WhatsApp (record_whatsapp_consent) is drafted a WhatsApp ask instead: channel \"whatsapp\", whatsapp_preview is the approved message exactly as they will read it, whatsapp_buttons its buttons, whatsapp_wait why it cannot go right now (outside 8am to 6pm on a weekday, their time), can_email whether email is a fallback. WhatsApp is off until Lovelio and the agency switch it on. |\n| `draft_job_from_call` | `jobs:write` | `{ call_id, wizard?, wait? }` | Turn the role a client briefed on a call into a job draft, client and contact already set. Same draft flow as describe_a_job (returns a review_token; confirm_job_draft creates the job and links the call to it). wizard: true instead returns a url that opens the draft in the dashboard wizard. |\n| `email_client_contact` | `emails:write` | `{ client_contact_id, subject, body, document_ids?: [document ids on the client, contact, or their jobs] }` | Send an email to a contact at a client now. Tracked on the client timeline; replies thread back into Lovelio. |\n| `evaluate_candidate_evidence` | `candidates:read` | `{ scope: { type, candidate_ids?, pool_id?, job_id?, batch_id?, state? }, checks?: [{ id, term, strength? }], job_id? }` | Check original candidate evidence against explicit requirements for a selection, pool, job applicants, import, search or the candidate database. Reports uncertainty and source quotes. Never changes a stage. |\n| `extract_candidate_preferences` | `candidates:write` | `{ candidate_id } then { candidate_id, apply: true, patch }` | Read the candidate's recent call notes and timeline notes and propose a preferences patch (preview first; { apply: true, patch } writes the confirmed proposal). |\n| `finalize_candidate_import` | `candidates:write` | `{ import_id, uploaded_item_ids, complete }` | Confirm uploaded CVs and queue parsing. Poll import status for completion. |\n| `find_client_people` | `clients:read` | `{ domain }` | The most senior people at a company from find_new_clients, grouped as Leadership, Hiring managers and People and talent, with how many are on record. A fresh look costs credits; the same company again within seven days is free. |\n| `find_contact_details` | `candidates:write` | `{ candidate_ids: string[] (max 100) \\| candidate_id, find_contacts: (\"work_email\" \\| \"personal_email\" \\| \"mobile\")[], dry_run?: boolean }` | Look up a work email, personal email or mobile for people already in the database, from their LinkedIn link. Pass candidate_ids (up to 100; candidate_id for one) and find_contacts, the kinds to find: \"work_email\", \"personal_email\", \"mobile\" (mobile needs mobiles on in Settings). Each lookup costs credits only when something is found. Skipped, and never charged: anyone without a LinkedIn link, a detail the record already holds or that was looked up before, and anyone past what is left of today's web sourcing limit. dry_run: true returns the plan (who would be looked up, who is skipped and why, most_credits, the most it can cost) and looks nothing up. Lookups run in the background; get_candidate shows the details once found. |\n| `find_free_for_job` | `candidates:read` | `{ job_id }` | For a contract job with a start date: everyone who meets the job's requirements and is free by the start date, ranked by the same search as job matches. Each person carries their free date, where it came from (availability_source), when it was confirmed (availability_confirmed_at), a line such as \"Free from 16 Nov, Priya confirmed 3 days ago\", and recently_confirmed (a person confirmed it in the last 7 days). Read-only. |\n| `find_new_clients` | `clients:read` | `{ query? \\| like_client_id? \\| like_domain? \\| filters?, concept?, offset? }` | Find companies the agency could win as clients, from a plain-words description (\"SaaS companies in Sydney\", \"piling contractors in Queensland with over 100 staff\"), from like_client_id (companies like an existing client: same industry, same city, similar size) or like_domain (companies like one found a moment ago). Each company is checked against what was asked: verdict is fits or maybe, and why says in one line what it does. Fits come first; companies that do not fit are left out. fits, maybes and checked count this round. already_clients lists the agency's own clients the search turned up, with client_id where the record is found. For the next round pass the returned filters, concept and next_offset; stop at 100 fits or when next_offset is null. watching on a company says it is already on your careers watch (watch_companies). A fresh page costs credits; the same page again within seven days is free. |\n| `finish_call_upload` | `calls:write` | `{ call_id, parts?, bytes?, marks? }` | Tell Lovelio the recording from start_call_upload has finished uploading. The file is checked; a file that is not a recording is deleted and refused. The transcript, write-up and next steps follow in the background (get_call shows status ready). Sent in parts, pass parts (how many) and bytes (the whole length): a part that is missing or the wrong length refuses with data.missing, the part numbers to send again. marks are moments to keep as clips, [{ at_ms }] from the start of the recording. |\n| `follow_contact` | `clients:write` | `{ client_contact_id, to_employer?, title? }` | A client contact Lovelio has seen move: add them as a contact at the new company (adding it as a client when it is not one yet) and keep the old contact as history, marked Moved on, so nothing is sent to their old work address. Carries no email or phone across. |\n| `get_candidate_draft` | `candidates:read` | `{ review_token }` | Read the current state of a staged candidate draft plus remaining mandatory and warn-level gaps. |\n| `get_contractor_page_link` | `candidates:write` | `{ candidate_id }` | A fresh link to a contractor's own page, opened on a phone with no password: they set when they are free from, their day rate and their preferred areas, answer an open ask, and upload the documents their contracts need. An upload lands in their Documents as sent, to check; a person checks it. The link works for 60 days. Every availability ask, extension ask and document chase already carries one; this is for pasting into a text or a chat. |\n| `get_contractor_report` | `placements:read` | `{ team_id?, owner_id? }` | The contract forecast: every live contract (pending start or started) the caller can see, with its GP week by week for the next 13 weeks. A week is the agency's standard week (week.hours over 5 days, the country standard unless the agency set its own); hourly and daily contracts lose public holidays where the contractor works, weekly rates do not. Added up for the whole agency (total), each team (a team includes its sub-teams) and each consultant: contracts, working_this_week, gp_this_week, gp_next_13_weeks, gp_by_week (one line per currency, never converted), ending_in_13_weeks, with_document_issues (missing, expired, running out before the contract ends, or waiting to be checked) and missing_rates. public_holidays lists the days that fall inside the 13 weeks. Each contract row has placement_id, candidate_id, client, owner, team, dates, its own weekly GP and document_issues. Filter with team_id or owner_id. Money is null for an API key without placements:financials:read. Read-only. |\n| `get_email_draft` | `emails:read` | `{ review_token }` | Read the current state of a staged email draft plus remaining gaps and the draft-generation task status. |\n| `get_interview_action_draft` | `interviews:read` | `{ review_token }` | Read the current state of a staged reschedule / cancel draft plus remaining gaps. |\n| `get_interview_draft` | `interviews:read` | `{ review_token }` | Read the current state of a staged interview draft plus remaining gaps. |\n| `get_interview_form_draft` | `interviews:read` | `{ instance_id }` | Read the current state of an interview form: instance, sections, scores, recommendation, gaps. |\n| `get_job_creation_status` | `jobs:read` | `{ task_id }` | Poll a create_job task runner for per-step progress (description, criteria, questions, ad, social). |\n| `get_job_draft` | `jobs:read` | `{ review_token }` | Read the current state of a streaming draft plus remaining gaps and task status. |\n| `get_phone_screen_draft` | `applications:read` | `{ review_token }` | Read the current state of a staged phone-screen draft plus remaining gaps. |\n| `get_placement_papers` | `placements:read` | `{ placement_id }` | What documents one contract needs and where each stands: missing, ended, ending before the contract, current, or not needed for this contract. The same check the placement's Documents box shows. The message is written to be relayed as it is. |\n| `get_scorecard_draft` | `interviews:read` | `{ review_token }` | Read the current state of a staged scorecard draft plus remaining mandatory and warn-level gaps. |\n| `invite_team_member` | `accounts:write` | `{ email, role ('admin'\\|'team_leader'\\|'recruiter'\\|'resourcer'), name?, team_id? \\| team_name? }` | Invite a new team member by email with a role. Sends a magic-link invitation email. |\n| `link_call_to_person` | `calls:write` | `{ call_id, candidate_id? \\| client_contact_id?, save_number? }` | Link a phone call that matched nobody by number (or matched two people) to the candidate or client contact on it. Pass exactly one of candidate_id or client_contact_id. A contact links their client too. Only a ready phone call with no candidate and no contact can be linked; a linked call never moves. Linking writes the call on their timeline and writes up the call. save_number: true also saves the number the call came from onto the person, only when they have no number yet. |\n| `list_contractor_check_ins` | `placements:read` | `{}` | The contractors to check in with this week: contracts finishing within 8 weeks with no free date a person confirmed since then, and contractors on a live contract not heard from in 30 days (no call, reply, inbound email or WhatsApp). Anyone with an ask open from the last 21 days is left off. Each row has candidate_id, placement_id, reason (finishing or quiet), contract_end, last_heard_at, has_email, can_whatsapp, whatsapp_after_hours and a line such as \"Finishes 13 Nov, no free date confirmed\". Read-only. |\n| `list_documents` | `documents:read` | `{ record_type, record_id }` | List the documents filed against any record - a candidate, client, contact, job, placement, talent pool or BD target. |\n| `list_extension_asks` | `placements:read` | `{}` | Contracts ending within 8 weeks with no plan (not asked, will be extended or finishing, and not going perm) and no extension ask sent about their current end date. Each row has placement_id, candidate_id, name, client_name, job_title, contract_end, contact (the client contact who would be asked: id, name, has_email, or null), has_email and can_whatsapp (the contractor), client_asked, contractor_asked and a line such as \"Finishes 13 Nov, no plan yet\". to_draft counts the asks one click drafts. Read-only. |\n| `log_call` | `activities:write` | `{ candidate_id? \\| client_contact_id? (+ client_id?), outcome? (connected\\|voicemail\\|no_answer), notes?, called_at?, spec_id?, submission_id?, next_contact_on? }` | Record a phone call with a person: a candidate, or a contact at a client (never a bare company - pass client_contact_id and client_id resolves from it). Feeds the timeline and the \"never called\" search filters. On a client call, pass spec_id or submission_id to make the call count as the chase: the reminder stamps and the follow-up card resolves, same as the emailed nudge. On a call with a contractor, pass next_contact_on (YYYY-MM-DD) to set the day to contact them next on their running contract; the result carries that contract as data.next_contact. |\n| `log_job_opportunity_contact` | `jobs:write` | `{ job_opportunity_id, channel?: call\\|email\\|meeting (default call), outcome?: connected\\|voicemail\\|no_answer (calls only), note?, contacted_at?: ISO date-time, not in the future }` | Record that the consultant called, emailed or met the contact about an opportunity. It stamps the last contact, which decides when the opportunity is next due on the call list. A connected call or a meeting moves a New opportunity to Talking; a voicemail, a missed call or an email does not. A call to a known contact is also logged on the contact and the client. This records contact that happened; it sends nothing. |\n| `log_offer` | `applications:write` | `{ application_id, offered_salary?, offered_currency?, offer_date?, start_date? }` | Record that the client has made an offer to the candidate and move the application to the Offer stage. Stores the offered salary, offer date and proposed start date on the application. In agency perm the client owns the offer document - this is a stage marker with the offer's details, not an offer letter. |\n| `make_call_clip` | `calls:write` | `{ call_id, start_seq, end_seq? }` | Keep a stretch of a call transcript as a clip: lines start_seq to end_seq (inclusive, at most 40, seq from get_call). The clip's words are the transcript lines as said, never retyped. Returns the clip with a url that plays it from the start. |\n| `mark_placement_status` | `placements:write` | `{ placement_id, status, reason? }` | Mark a placement as pending start, started, fell off (during guarantee), or completed. |\n| `match_candidates_to_job` | `candidates:read` | `{ job_id, limit?, narrate?: false, facet_state?: { facets, intent?, boosts? } }` | Search the whole candidate database for the best matches to a job, ranked with a short why-them line per candidate. Read-only: attach a match with create_application (pass search_query so the source is credited as Database Search). |\n| `merge_candidates` | `candidates:write` | `{ primary_id, duplicate_id \\| duplicate_ids: [...], fields?: { name\\|job\\|email\\|phone\\|location\\|linkedin_url: <record id> } }` | Merge duplicate records of one person into a primary record. Every application, note and CV is kept; fields optionally says which record a field value comes from. |\n| `merge_clients` | `clients:write` | `{ primary_id, duplicate_id \\| duplicate_ids: [...], fields?: { name\\|website\\|phone\\|address\\|linkedin_url\\|industry\\|owner\\|fee_terms\\|xero_contact: <record id> } }` | Merge duplicate records of one client company into a primary record. Every job, contact, placement and note is kept, and a link or a read that names the old record opens the merged client. fields optionally says which record a field value comes from; left out, the primary keeps its values and its blanks are filled from the others. The agency's own client cannot be merged. |\n| `move_stage` | `applications:write` | `{ application_id, new_stage, reason?, notify_candidate? (default true; false moves the stage without emailing the candidate) }` | Move an application to a different pipeline stage. |\n| `name_call_speaker` | `calls:write` | `{ call_id, participant_id, candidate_id? \\| client_contact_id? \\| user_id? \\| name? \\| reset? }` | Say who a voice on a call transcript is (\"Speaker 1 is Sam\"). participant_id is the speaker from get_call (participants[].id, or participant_id on a transcript line). Pass exactly one of candidate_id (the call's own candidate), client_contact_id (a contact at the call's client), user_id (a consultant on your team) or name (anyone else), or reset: true to put back the name the recording gave. The transcript, talk time, clips, quotes and search follow at once; a write-up nobody has edited is written again a minute later. |\n| `park_client_site_jobs` | `jobs:write` | `{ client_id? }` | Save the jobs Lovelio read off client careers pages for later: the review on /jobs stops opening on its own and the jobs stay pickable from each client's row on Clients, and the agency's own-website jobs from the Jobs list. Pass client_id to save one client's only. |\n| `plan_linkedin_sourcing` | `jobs:read` | `{ job_id, force? }` | Build four LinkedIn sourcing searches from a job's full structured requirements, prior placement signals and explicit search feedback. Returns direct, adjacent, feeder-company and hidden-gem lanes. It never runs or automates LinkedIn. |\n| `prepare_cancel_interview` | `interviews:write` | `{ interview_id, reason?, notify_candidate? }` | Stage a cancel draft for an existing interview. Reason is mandatory before confirm. Returns a review_token every follow-up action uses. |\n| `prepare_candidate_from_cv` | `candidates:write` | `{ file_base64, mime_type?, file_name?, initial?: { name?, email?, phone?, linkedin_url?, location? }, slack_file_id?, source? }` | Parse an uploaded CV and stage a candidate draft with pre-filled details. Typed details in initial take precedence over extracted identity fields, and conflicts are returned for review. Returns a review_token every follow-up action uses. |\n| `prepare_compose_email` | `emails:write` | `{ candidate_id, application_id?, intent? (advance\\|reject\\|schedule\\|offer\\|freeform), instructions?, schedule_at? }` | Stage an email draft for a candidate. Starts drafting in the background, in the company brand voice. Returns a review_token every follow-up action uses. |\n| `prepare_evidence_pack` | `candidates:read` | `{ purpose: submission\\|interview_preparation\\|job_comparison, scope: { type, candidate_ids?, pool_id?, job_id?, batch_id?, state? }, checks?: [{ id, term }], job_id? }` | Prepare reusable candidate evidence for a submission, interview or job comparison. Returns a durable pack reference; no message is sent. |\n| `prepare_interview_form` | `interviews:write` | `{ interview_id, regenerate? }` | Generate (or return the existing) AI interview form for an interview. One form per interview; idempotent unless regenerate is true. Refuses regenerate after any answer has been saved. |\n| `prepare_phone_screen` | `applications:write` | `{ application_id, initial_outcome?, initial_notes?, call_at?, duration_min?, source? }` | Stage a phone-screen log for an application. Outcome is one of advance, reject, hold, no_show; notes are required. Returns a review_token every follow-up action uses. |\n| `prepare_reschedule_interview` | `interviews:write` | `{ interview_id, new_scheduled_at?, reason?, notify_candidate? }` | Stage a reschedule draft for an existing interview. Captures the new datetime and optional reason. Returns a review_token every follow-up action uses. |\n| `prepare_schedule_interview` | `interviews:write` | `{ application_id, scheduled_at?, format?, interviewer_id?, duration_min?, location?, notes? }` | Stage an interview draft for an application. Predicts format + interviewer from the job defaults so the recruiter has fewer fields to fill. Returns a review_token every follow-up action uses. |\n| `prepare_screening_form` | `forms:write` | `{ application_id, mode?: ai \\| template, template_form_id?, regenerate?, brief? }` | Load, generate or regenerate the candidate-aware phone screen form for an application. The caller chooses AI or a template for each screen. |\n| `prepare_submit_scorecard` | `interviews:write` | `{ interview_id, source? }` | Stage a scorecard draft for an interview. Uses the authenticated interviewer's form and pre-populates one score row per form section. |\n| `promote_client_contact` | `clients:write` | `{ contact_id }` | Turn a \"works here\" person - someone whose own record says they work at this client - into a contact the agency deals with. They move into the client's main contact list, and approach mail to them is blocked from then on the way it is for every other contact. |\n| `propose_interview_slots` | `interviews:read` | `{ interviewer_ids: [user_id, ...], duration_min?, from_date?, to_date?, every_time? }` | Return ~12 candidate day/time options that are free for all of the given interviewers, sourced from the Lovelio calendar (and Google free/busy when connected). Pass every_time: true for the full list of free times inside everyone's preferred hours instead of a spread - that is for a picker UI, never for an answer in chat. Read-only. |\n| `reassess_application` | `applications:write` | `{ application_id }` | Queue a fresh candidate assessment for an application after its candidate, job requirements or Client DNA changed. |\n| `reassign_record` | `accounts:write` | `{ new_owner_id, record_type? + (record_id \\| record_ids) \\| from_owner_id, keep_team? }` | Move ownership of clients, jobs, opportunities, candidates, applications, placements, specs or BD targets to another consultant. Records with a team follow the new owner's desk unless keep_team is true. Pass from_owner_id (no ids) to move EVERYTHING a departing consultant owns. |\n| `record_client_verdict` | `submissions:write` | `{ item_id, response: \"interview_requested\" \\| \"rejected\", note?, rejection_reason?, wants_more_candidates? }` | Record what the client said about a submitted candidate when they told you directly instead of using their review link: they want to interview, or they passed (with an optional reason, their words, and whether they want to see more candidates for the role). Same write path as the client portal, so the pipeline, timeline, client DNA and Needs You queue all update identically. |\n| `record_offer_outcome` | `applications:write` | `{ application_id, outcome: accepted \\| declined \\| countered, declined_by?: candidate \\| client, offered_salary?, offered_currency?, start_date?, accepted_on?, accept_counter?, note? }` | Record what happened to the offer that is out: accepted (stays at Offer, log the placement next), declined (declined_by candidate moves to Withdrew, client to No; no email goes to the candidate), or countered (records the candidate request separately from client terms, stays at Offer). Refuses when no offer is logged. Notifies the job's and candidate's owners. |\n| `record_whatsapp_consent` | `candidates:write` | `{ candidate_id, agreed: boolean }` | Record that a candidate agreed to get WhatsApp messages from the agency (agreed true), or no longer does (agreed false). Only record agreement the person actually gave, for example on a call. Asks and check-ins then go to them on WhatsApp where the agency has WhatsApp switched on; a STOP they send on WhatsApp withdraws it on its own. Lands on their timeline. |\n| `reject_candidate` | `applications:write` | `{ application_id, reason?, send_email? (false skips the rejection email) }` | Reject a candidate (sets stage=rejected; the rejection email only fires for candidates who applied themselves via the careers page or a job board - agency-added candidates are never emailed). A placed candidate whose placement is still standing is refused (CONFLICT): mark the placement fell off with mark_placement_status first. |\n| `remove_call_clip` | `calls:write` | `{ call_id, clip_id }` | Remove a clip from a call. The transcript is untouched. |\n| `remove_client_recruiter` | `clients:write` | `{ client_id, member_id }` | Remove a teammate from a client's recruiter list. |\n| `remove_client_site` | `clients:write` | `{ site_id }` | Remove a workplace from a client. Placements keep the country they were logged under. |\n| `remove_from_talent_pool` | `talent_pools:write` | `{ candidate_id, pool_id? \\| pool_name?, reason? }` | Remove a candidate from a talent pool. Pass pool_id, or pool_name when the user names the pool. |\n| `reopen_job` | `jobs:write` | `{ job_id, reason? }` | Reopen a closed or filled job (sets status=Active). |\n| `replay_webhook_delivery` | `webhooks:write` | `{ webhook_id, delivery_id }` | Replay webhook delivery. |\n| `request_interview` | `interviews:write` | `{ application_id, interviewer_ids: [user_id, ...], duration_min, selected_slots: [iso, ...] (1-12, offer-times) \\| scheduled_at (iso, set-the-time), client_contact_ids?, email_subject, email_body, client_email_subject?, client_email_body?, format?, location?, video_link?, flavour?, submission_id?, ignore_conflicts?, document_ids?: [document ids on the records this email is about] }` | Book an interview, two ways. OFFER TIMES: a curated set of times goes to the candidate with a \"pick a time\" button; valid on an application marked Yes, Screen, Submitted, Client interview or References. An internal offer uses times from your team's calendars; a client offer (flavour client) may only offer the times the client gave when they asked to meet the candidate. SET THE TIME (either flavour, whenever the time is already agreed): pass scheduled_at with an exact ISO datetime and the interview books immediately - everyone on it gets the invite and .ics at once. A client set-the-time booking requires at least one client_contact_id (the client hosts it); an internal one requires at least one interviewer (the caller by default) and no client contacts. flavour is internal (default by stage) or client - a client booking moves the application to client_interview. A client interview is the CLIENT meeting the candidate, so it takes no interviewer_ids (nobody from the agency attends; passing any is refused). It may be Video: video_link is the client's own meeting link, and a whole pasted invite is fine, the link is read out of it. An internal interview takes no client_contact_ids. location holds an in-person address (the form defaults it to the client address); on an internal Video interview with no video_link, the organiser's connected calendar makes a Google Meet or Microsoft Teams meeting; with no calendar connected the candidate is told the link is coming, and add_interview_link sends it later. Set-the-time bookings check everyone's free/busy first: a clash refuses with code \"conflicts\" naming who is busy, plus alternative times. Only re-send with ignore_conflicts: true after the user explicitly says to book anyway. On a client set-the-time booking (scheduled_at; refused with selected_slots), client_email_subject and client_email_body replace the client contact's subject and message (blank keeps Lovelio's wording; {first_name} becomes each contact's first name); when, where, the Confirm button and the calendar invite are always added below. |\n| `request_marketplace_candidate` | `marketplace:write` | `{ listing_id, note?, job_ad_id?, accept_terms? }` | Ask the agency behind a marketplace candidate listing for an intro, with a note on the role you have in mind, and optionally one of your own live job ads for it (job_ad_id): they get its title and public link, never the job itself. If they accept, the candidate's details and both consultants' contacts reveal on the deal and the declared split is locked in. |\n| `request_referee_details` | `forms:write` | `{ application_id, min_required (1-5), email_subject?, email_body, document_ids?: [document ids on the records this email is about] }` | Email a candidate a secure link to submit their referee contact details (up to 5). The recruiter sets the minimum. Submitted details are saved on the candidate master record and the recruiter is notified when they arrive. Sent after the client interview, it also moves the candidate to References, and the confirmation says so. |\n| `reschedule_interview` | `interviews:write` | `{ interview_id, scheduled_at, reason?, ignore_conflicts? }` | Change the scheduled_at time of an interview. Re-checks every attendee's free/busy (the interview's own calendar event never counts against its new time): a clash refuses with code \"conflicts\" naming who is busy; pass a suggested scheduled_at to retry, or ignore_conflicts: true only after the user explicitly says to move it anyway. |\n| `reschedule_meeting` | `interviews:write` | `{ event_hint, new_starts_at, new_ends_at?, ignore_conflicts? }` | Move a previously booked meeting to a new time. Pass the user's phrasing (e.g. \"Derren's meeting tomorrow\") verbatim as event_hint - the matcher does the fuzzy work. If multiple meetings match, the user is asked which. A free/busy clash refuses with code \"conflicts\"; only re-send with ignore_conflicts: true after the user explicitly says to book anyway. |\n| `resolve_identity_review` | `accounts:write` | `{ review_id, decision: accept \\| reject }` | Decide a company or person match Lovelio was not sure about (Settings > Workspace > Review queue). Accept merges two company records into one organisation, or links a candidate and a client contact as one person; reject keeps them separate and the question is never asked again. |\n| `resolve_occupation_review` | `accounts:write` | `{ title_norm, decision: accept \\| dismiss, label?, isco_code? }` | Decide the occupation behind a job title Lovelio could not place on its own - a rank with no function like \"Director\", or a title two models disagreed about. Accept records the occupation for everyone holding that title; dismiss records that the title does not map to one occupation, and it is never asked again. |\n| `resolve_review_item` | `accounts:write` | `{ review_item_id \\| review_item_ids, resolved?, snoozed_until? }` | Mark one or more review queue items resolved or snooze them until a future date. |\n| `respond_to_marketplace_intro` | `marketplace:write` | `{ intro_id, intro_action: check\\|accept\\|decline\\|withdraw, decline_reason? }` | Act on an intro: check runs the prior-knowledge read (is this candidate already in the receiving database?) without revealing anything; accept forms the deal, locks the split, and reveals identity; decline passes with an optional reason; withdraw pulls back your own pending intro. |\n| `review_reference` | `forms:write` | `{ form_instance_id, outcome (clear \\| concern), note? }` | Record the job owner’s review of a completed reference as clear or concern, without changing referee answers. The job must be open. Concerns require a note. |\n| `revise_email_draft` | `emails:write` | `{ review_token, instruction }` | Apply a natural-language instruction (\"make it warmer\", \"cut to two paragraphs\") to a staged email draft. Returns the full updated subject + body. |\n| `revise_job_draft` | `jobs:write` | `{ review_token, instruction }` | Apply a natural-language instruction (\"make it punchier\", \"move to Sydney\") to a draft. Returns the full updated draft. |\n| `rewrite_job_ad` | `jobs:write` | `{ job_id \\| job_ad_id, instruction }` | Apply a natural-language instruction to rewrite an existing job ad using the company brand voice. |\n| `rotate_webhook_secret` | `webhooks:write` | `{ webhook_id }` | Rotate webhook secret. |\n| `run_report` | `analytics:read` | `{ report: weekly_bd_pulse \\| quiet_clients \\| cold_contacts \\| fill_rate \\| business_numbers \\| revenue_analysis \\| money_moments \\| referee_details, confirm_cost? }` | Run a stored report. The Weekly pulse, quiet clients, contacts going cold, fill rate, agency numbers, revenue analysis, money moments, and referee details all appear under Analytics. Money moments is one persons own copy and is never shared: an admin counts the whole agency, a team leader counts their team, a consultant counts only themself. The pulse and money moments also run automatically every Monday. Reports that spend money need confirm_cost: true. |\n| `save_current_view` | `accounts:write` | `{ name, page ('jobs'\\|'candidates'), query?, query_params? }` | Save the current search query as a named view. |\n| `save_paper` | `placements:write` | `{ kind, placement_id? \\| candidate_id + country, details?, issued_on?, expires_on?, document_id? }` | Record a document you have checked for a contractor: right to work, a police check, a licence, insurance. It lives on the person and counts in one country, so their next contract re-uses it; saving the same kind again replaces it. Pass placement_id to take the person and country from a placement, or candidate_id and country. kind is a document word such as right_to_work, police_check, wwcc, white_card, forklift_licence, public_liability. Dates are YYYY-MM-DD: issued_on is the date on the document, expires_on its printed expiry. document_id links a file already on the candidate. |\n| `schedule_call` | `interviews:write` | `{ title, starts_at, ends_at?, candidate_id?, notes? }` | Schedule a phone call (with a candidate or internal). |\n| `schedule_email` | `emails:write` | `{ candidate_id, subject, body, scheduled_at }` | Schedule an email to send at a future time. |\n| `schedule_interview` | `interviews:write` | `{ application_id, scheduled_at?, format?, flavour?, submission_id?, ignore_conflicts? }` | Schedule an interview for a candidate on an application. flavour is internal (agency screen, default) or client (candidate meets the client - moves the application to client_interview and can link to the submission it came from). Booking an exact time checks everyone's free/busy first: a clash refuses with code \"conflicts\" naming who is busy, plus alternative times. Only re-send with ignore_conflicts: true after the user explicitly says to book anyway. |\n| `schedule_meeting` | `interviews:write` | `{ title, starts_at, ends_at?, attendees: [{ kind, id? \\| email + name }], notes?, ignore_conflicts? }` | Schedule a meeting (generic calendar event). Attendees must be resolved records - pass { kind: \"hiring_manager\"\\|\"user\"\\|\"candidate\", id } from search, or { kind: \"external\", email, name } for anyone outside the workspace. A free/busy clash refuses with code \"conflicts\"; only re-send with ignore_conflicts: true after the user explicitly says to book anyway. |\n| `search_clients` | `clients:read` | `{ query, limit?, names_only? }` | Search the agency's own clients in plain words (\"fintechs in London we have placed with this year\", \"construction clients with open jobs\", \"acme.com\"). Reads industries, places, size, ownership, founded, open jobs, placed and contacted windows, \"mine\", fees and contacts, ranks by name match, fit and how recently you worked with them, and says why each one fits (words that are exactly one of the agency's client names, case and accents aside, search names only) (fit_reason) and who owns it (owner_name). companies_you_know lists companies your candidates have worked at that are not clients yet. names_only: true matches names and websites only and skips reading the words, for a box that answers while someone types. Free: never costs credits. |\n| `search_web_candidates` | `jobs:read` | `{ job_id? \\| query?, cursor? }` | Find people on the web who are not in the database yet. Pass job_id to find people who fit that job, ranked against its requirements; or pass query, a plain-English search like \"account managers in Sydney who know Salesforce\", to search the web the way the database is searched (it needs a job title, a place or an employer). An industry, employers (now or at any time) and years in the current job that the search insists on are filters the web applies, so only people whose profile shows them come back; years of experience in all and a degree are checked on each person after they arrive. A skill the search insists on sorts and marks and hides nobody: the people who show it on their skills list or in their own words come first and carry skillsShown, the people after them do not show it on their profile, and the result carries mustSkills. Years in a field (\"2 years of SaaS experience\") are counted from the jobs in that field, never the whole career; for a kind of company (SaaS, fintech) the web is asked for that kind of company too. A second must-have of a kind the search already has is checked on each person, and total is then an upper bound. The result carries total, the number of people the web has for the search (an upper bound unless totalExact is true); with a must-have skill it counts the people whose skills list names the skill, never everyone listed. Twelve per page; pass the returned next cursor for more. One search reads at most 300 people from the web. When it stops there, the result carries capped: true. That is not everyone; narrow the search to see others. When few people match as typed, the list carries on into groups, and each person found in one carries group, the heading to show above it: people who held the job title before, then profiles that name only the country of a town searched (\"Could be anywhere in New Zealand\"; never anyone in another town). Searching is free; adding a new person (add_web_candidate, add_web_candidates) costs credits. |\n| `send_availability_asks` | `candidates:write` | `{ job_id?, asks: [{ candidate_id, placement_id?, channel?: \"email\"\\|\"whatsapp\", email_subject (email), email_body (email), free_from }] }` | Send availability asks a person has read: each one goes on its channel (email, the default; or \"whatsapp\", the approved template, only to someone who agreed, 8am to 6pm on a weekday their time, at most one a week) and records the ask, so their reply sets their free date (source candidate_reply). An ask is about a contract job (job_id, drafts from draft_job_availability_asks) or a live contract (placement_id on each ask, drafts from draft_contractor_check_ins). Up to 25 at once. Always consultant-approved - never sent automatically. |\n| `send_email` | `emails:write` | `{ candidate_id, subject, body, job_id?, document_ids?: [document ids on the candidate, the job or the client] }` | Send an email to a candidate now. |\n| `send_extension_asks` | `candidates:write` | `{ asks: [{ placement_id, to: \"client\"\\|\"contractor\", client_contact_id?, channel?: \"email\"\\|\"whatsapp\", email_subject (email), email_body (email) }] }` | Send extension asks a person has read, up to 25 at once: to \"client\" emails the client contact (client_contact_id, else the contract's contact), to \"contractor\" emails the contractor, or with channel \"whatsapp\" sends them the approved WhatsApp ask (only to someone who agreed, 8am to 6pm on a weekday their time, at most one a week). Each is recorded against the contract's end date, so the reply sets the plan (perm, finishing) or offers an Extend with the new date filled in. Sending the client ask sets the plan to \"Asked the client\". Always consultant-approved copy - never sent automatically. |\n| `send_form` | `forms:write` | `{ form_id? \\| activity?, client_contact_id? \\| candidate_id, application_id?, interview_id?, job_id? }` | Email any form to a client contact or a candidate via a secure link - interview feedback, onboarding, background checks, or any form built in Settings > Forms. Lovelio follows up with non-responders and the answers are saved on the record. Pass form_id, or activity for a sendable slot (client_feedback_email, candidate_feedback_email). |\n| `send_form_instance` | `forms:write` | `{ form_instance_id, email_subject?, email_body?, deadline?, preview? }` | Email a prepared reference questionnaire after approval. Optionally set your own email_subject, email_body and deadline (YYYY-MM-DD), or pass preview: true to see the email without sending. |\n| `send_interview_followup` | `interviews:write` | `{ interview_id, recipient: \"candidate\"\\|\"client\", email_subject, email_body, document_ids?: [document ids on the records this email is about] }` | Send a post-interview follow-up: recipient \"candidate\" for the debrief / news / no-show note, recipient \"client\" for the next-steps or feedback note to the client contact (client interviews only). Always consultant-approved copy - never sent automatically. |\n| `send_marketplace_listing` | `marketplace:write` | `{ listing_id, recipient_email, recipient_name?, recipient_agency?, message? }` | Send one of your own live marketplace listings to a partner agency that is NOT on Lovelio, as a tokenised link. The partner sees only the anonymous listing plus the declared split, and answers interested or not with one click, without an account. You get their response as a notification with their contact details; the deal itself runs off-platform. |\n| `send_placement_email` | `placements:write` | `{ placement_id, recipient: \"candidate\"\\|\"client\", email_subject, email_body, paper_kind?, ask?: \"availability\", free_from?, document_ids?: [document ids on the records this email is about] (not with ask) }` | Send a placement lifecycle email: recipient \"candidate\" for the start-day good-luck note, recipient \"client\" for the guarantee-end check-in. With paper_kind (candidate only), it asks a contractor for one document the placement needs, such as their right to work; the reply lands on their record. With ask \"availability\" and free_from (candidate only), it asks a contractor whose contract is ending if they are free from that date; their reply sets their available from date. Always consultant-approved copy - never sent automatically. |\n| `send_placement_to_xero` | `placements:write` | `{ placement_id }` | Make or update the placement's draft invoice in the agency's Xero: the client as the contact, the placement fee as the one line, dated on the start date. Always a draft: the agency approves and sends it from Xero, Lovelio never does. A placement normally goes to Xero by itself when it is logged; use this to send one again (an invoice voided or deleted in Xero is replaced with a fresh draft). Only perm placements with a fee go. Needs Xero connected in Settings > Integrations. |\n| `send_referee_questionnaires` | `forms:write` | `{ application_id, referee_ids?, remind?, email_subject?, email_body?, deadline?, preview? }` | Email the reference form to every referee the candidate submitted for an application, in one go. Referees who already have one are skipped; optionally restrict with referee_ids. Pass remind: true to instead send a follow-up reminder to every referee whose form is still outstanding, on their existing link. Optionally set your own email_subject and email_body (plain text; {{referee_first_name}}, {{candidate_name}}, {{job_title}}, {{client_name}} and {{deadline}} are filled in per referee) and a deadline (YYYY-MM-DD, also when the first reminder goes); the form link always goes under the message as a button. Pass preview: true to see the email without sending. |\n| `send_reference_request` | `forms:write` | `{ application_id, referee_id, form_id?, email_subject?, email_body?, deadline?, preview? }` | Create a reference check form instance for a referee and email it to them. The form link goes under the message as a button. Optionally set your own email_subject and email_body (plain text; {{referee_first_name}}, {{candidate_name}}, {{job_title}}, {{client_name}} and {{deadline}} are filled in) and a deadline (YYYY-MM-DD, also when the first reminder goes). Pass preview: true to see the email without sending. |\n| `send_references_to_client` | `forms:write` | `{ application_id, reference_ids?, client_contact_id?, email_subject?, greeting? (\"\" when email_body opens itself), email_body?, document_ids?: [document ids on the records this email is about] }` | Send a candidate's completed references to the job's client contact as a private link, one link per referee, showing every question and the referee's own answer. Only references that are back can be sent, and a referee who said we may not quote them to the client is always left out. Optionally restrict with reference_ids. |\n| `send_screening_form` | `forms:write` | `{ application_id, form_id? }` | Create a screening form instance for an application and send it to the candidate. |\n| `send_spec` | `submissions:write` | `{ candidate_id, client_id, client_contact_id, headline, pitch, chips?: [...], why_client?, email_subject, email_body, email_greeting?, attach_terms?, candidate_aware? } or batch { candidates: [{ candidate_id, headline, pitch, chips?, why_client?, candidate_aware? }] (max 5), client_id, client_contact_id, email_subject, email_body, attach_terms? }` | Send a spec (float in AU/NZ): candidates pitched to a client with no open job. The client contact gets ONE short personal email with a link to each fully anonymous profile page, where they answer with one click, and the agency terms of business attached. Up to 5 candidates per send; each keeps its own spec record so the client responds per person. Client, contact, and candidates must exist. Never sent without consultant-approved copy. |\n| `set_candidate_contracting_profile` | `placements:write` | `{ candidate_id, country: \"AU\", details: { payment_type?: payg\\|abn, abn?, entity_name?, gst_registered?: yes\\|no } }` | Store a contractor's payroll-facing details for one work country. Australia (AU): payment_type payg or abn, and when paid on ABN the 11-digit abn, the entity_name it belongs to and gst_registered yes or no (an RCTI needs both). Other countries have no fields yet and are refused. Never a tax file number or bank details: the payroll partner collects those. |\n| `set_candidate_cv` | `documents:write` | `{ candidate_id, document_id }` | Make one of a candidate's documents their current CV - the file the CV viewer, the resume parser and the API all read. |\n| `set_client_fee_terms` | `clients:write` | `{ client_id, terms?: { currency, fee_basis, tiers, minimum_fee?, contract_margin_percent?, guarantee_days?, guarantee_remedy, guarantee_notes?, payment_terms_days? }, revert? }` | Set the commercial terms for a client (permanent fee bands, contract margin, guarantee and payment terms), or return them to the agency standard with revert: true. Admin-only: every job under the client inherits these terms. |\n| `set_job_owners` | `jobs:write` | `{ job_id, owner_ids: [user_id, ...] }` | Set who owns a job. A job can have several owners; owner_ids is the whole list, in order, and replaces the current one. To add an owner, send the current owners plus the new one. The job's team does not move. |\n| `set_placement_credits` | `placements:write` | `{ placement_id, credits: [{ user_id, percent, role? }] }` | Set who gets credit for a placement: one line per consultant with a percent (must total 100) and an optional role (candidate_consultant, job_owner, business_development, other). Credit share is the consultant's billing figure everywhere. |\n| `set_placement_payroll_reference` | `placements:write` | `{ placement_id, position_id?, rate_template_id? }` | Pick the payroll partner's Position and Rate template for a contract placement from the lists the partner pushed. Send the partner's own ids; null clears one. |\n| `set_placement_timesheet_approvers` | `placements:write` | `{ placement_id, contact_ids: [client_contact_id] }` | Set who approves a contractor's timesheets on a contract placement: an ordered list of contact ids on the placement's client, each with an email. Replaces the whole list; an empty list clears it. The timesheet and payroll partner receives their names and emails. |\n| `set_pool_member_interest` | `talent_pools:write` | `{ candidate_id, pool_id? \\| pool_name?, interest_status, note? }` | Record a talent pool member's answer to \"still looking?\" given some other way, such as on a call. interest_status is interested, tempted or not_interested; someone marked not_interested is never asked again. |\n| `set_quota_target` | `accounts:write` | `{ scope: agency\\|team\\|user, amount\\|null, period_start?, team_id?\\|team_name?, user_id?\\|user_email? }` | Set (or clear, with amount null) a billings target for a quota period: the whole agency (scope agency), a team (scope team, by team_id or team_name), or a consultant (scope user, by user_id or user_email). Defaults to the current period; pass period_start (YYYY-MM-DD, any date inside the period) for another one. Targets are optional at every level. |\n| `settle_job_opportunity_proposal` | `jobs:write` | `{ job_opportunity_id \\| proposal_id, decision: accept\\|dismiss, to_stage?: on a move, the suggested stage being answered; refused when the suggestion has changed }` | Answer what Lovelio suggested after real contact. On an opportunity (job_opportunity_id): the stage move after the contact replied, asked for CVs or signed the terms; \"accept\" makes the move, and a suggested Won converts the opportunity to a job. A new opportunity (proposal_id): a role the contact may hire for, or a named candidate they asked about, with their own words as the evidence; \"accept\" adds the opportunity at that client. \"dismiss\" clears either and changes nothing. Lovelio never moves a stage or adds an opportunity itself. |\n| `share_candidate_to_marketplace` | `marketplace:write` | `{ candidate_id, headline, pitch, chips?: [...], location?, owner_share_percent: 50\\|60\\|70\\|80, candidate_aware: true, accept_terms? }` | Put an anonymised candidate on the cross-agency split marketplace so other Lovelio agencies can request them for their clients. The candidate is never named until an intro is accepted, and must know they are being represented (candidate_aware is required). The listing declares the fee split and runs for 30 days. |\n| `share_job_to_marketplace` | `marketplace:write` | `{ job_id, headline, pitch, chips?: [...], location?, salary_min?, salary_max?, currency?, fee_percent?, owner_share_percent: 50\\|60\\|70\\|80, accept_terms? }` | Put an anonymised role on the cross-agency split marketplace so other Lovelio agencies can submit candidates. The client is never named; the posting agency is. The listing declares the fee split (owner keeps 50/60/70/80 percent) and runs for 30 days. Copy is consultant-approved, scrubbed server-side, and moderated before going live. |\n| `share_record` | `activities:write` | `{ record_type, record_id } or { records: [{ record_type, record_id }] }, people: string[], message?` | Share one or more records (candidate, job, client, client_contact, application, placement) with teammates. Each teammate gets one notice on their bell and home, a Slack DM when connected, and an email if still unopened after an hour; the record timeline shows who it was shared with and their answer. Only teammates who can already see the record can be picked. people are user ids, emails or full names. Up to 50 records and 20 people. |\n| `sign_call_upload_parts` | `calls:write` | `{ call_id, parts: number[] }` | Signed URLs for parts of a recording started with parts: true. parts is the list of part numbers (1 up, at most 100 a time). PUT each part's bytes to its url with its headers; sending a part again replaces it. Every part but the last is exactly part_bytes long. URLs last two hours: ask again for any you have not sent. |\n| `skip_job_draft_gap` | `jobs:write` | `{ review_token, field }` | Record that the user opted to leave a gap blank. (The confirm step still refuses mandatory gaps.) |\n| `start_call_upload` | `calls:write` | `{ candidate_id? \\| client_contact_id? \\| application_id? \\| calendar_event_id?, job_id?, content_type, client_ref?, title?, started_at?, duration_seconds?, platform?, call_type?, parts? }` | Start uploading a call recording (MP4, MOV, WebM, M4A, AAC, MP3, WAV, OGG or FLAC, up to 2 GB) onto one person: a candidate (or application) or a client contact, or whoever is on calendar_event_id, a meeting in your own diary. Returns call_id and upload { url, method, headers, expires_at }: PUT the file to url with those headers, then call finish_call_upload. client_ref is your own id for the recording; a retry with the same client_ref lands the same call. parts: true sends it in parts instead, while it is still being recorded: upload is null and parts { part_bytes, max_parts } says how long every part but the last must be; get URLs with sign_call_upload_parts. |\n| `submit_form_instance` | `forms:write` | `{ form_instance_id, draft, responses }` | Save actual respondent answers or complete a phone reference or screen. Never invent answers. |\n| `submit_scorecard` | `interviews:write` | `{ interview_id, scores, recommendation, notes? }` | Submit an interview scorecard / feedback for an interview. |\n| `submit_to_marketplace_job` | `marketplace:write` | `{ listing_id, candidate_id, headline, pitch, chips?: [...], note?, job_ad_id?, attested_relationship: true, accept_terms? }` | Put one of your candidates forward for another agency's marketplace job listing. The owner sees an anonymous profile and your agency's name; the candidate's identity reveals only if the owner accepts the intro, which locks the declared split into a deal. Requires the attestation that you have interviewed the candidate and they agreed to be represented. Optionally share one of your own live job ads (job_ad_id): the owner gets its title and public link, never the job itself. |\n| `test_webhook` | `webhooks:write` | `{ webhook_id }` | Test webhook. |\n| `undo_share` | `activities:write` | `{ batch_id }` | Take back a share you made: removes the notices, the timeline line and the share itself. Only the person who shared it. |\n| `update_application` | `applications:write` | `{ application_id, patch: { source?, source_detail?, owner_id? } }` | Update source / owner on an application (not stage - use move_stage). source is one of: Careers Page, Job Board, Referral, Talent Pool, Database Search, Social, Agency, Direct, Imported, Web Search, Other (any case), or a channel such as linkedin; source_detail names the exact board, referrer or channel. |\n| `update_brand_voice` | `accounts:write` | `{ prompt }` | Update the company's brand voice prompt used by every AI email/job ad generation. |\n| `update_candidate` | `candidates:write` | `{ candidate_id, patch (or the same fields flat): { name?, first_name?, last_name?, email?, phone?, location?, linkedin_url?, skills?, current_employer?, current_job_title?, rating?, open_to_work?, do_not_approach? } }` | Update fields on a candidate (name or first_name / last_name, email, phone, current_employer, current_job_title, rating 1-5, open_to_work, do_not_approach, etc.). |\n| `update_candidate_draft` | `candidates:write` | `{ review_token, first_name?, last_name?, name?, email?, phone?, linkedin_url?, location?, current_title?, current_company? }` | Patch a staged candidate draft (first_name / last_name or name / email / phone / linkedin_url / location / current_title / current_company). Re-computes gaps. |\n| `update_candidate_preferences` | `candidates:write` | `{ candidate_id, patch: { preferred_roles?, preferred_seniority?, work_types?, open_to_relocation?, available_from?, preferred_locations?, salary_expectation?, notice_period?, work_rights? } }` | Update what a candidate WANTS: preferred roles, preferred locations (with relocation flag), work types (permanent/contract/temp/part_time), seniority preference, salary expectation, notice period / available-from date, work rights. |\n| `update_candidate_tags` | `candidates:write` | `{ candidate_id, tags?: string[] } or { candidate_id, add?: string[], remove?: string[] }` | Put flat labels on a candidate. Send tags to replace the whole list, or add / remove to change it without knowing the rest. |\n| `update_careers_float` | `clients:write` | `{ watch_id, site_job_id, picked?: [], recipient_contact_id?, new_contact?: { name, email, title? }, subject?, greeting?, body?, profile?: { candidate_id, headline, why_client, pitch } }` | Change a draft float: who is in it (at most five, from the people who fit the ad), who it goes to, a new contact at the company, the subject, greeting or message, or one person's anonymous profile. |\n| `update_client` | `clients:write` | `{ client_id, patch (or the same fields flat): { name?, website?, phone?, industry?, description?, locations?, address?, notes?, default_invoice_contact_id? }, only_if_empty? }` | Update fields on a client (name, website, company phone, industry, locations, address, notes). Fee terms are NOT patchable here - set them with set_client_fee_terms. Pass only_if_empty with a single-field patch to fill a blank field without ever overwriting what is already there. default_invoice_contact_id (a contact on this client, null clears) is who gets the invoice for this client's placements; new placements pre-fill it. |\n| `update_client_contact` | `clients:write` | `{ contact_id, patch (or the same fields flat): { name?, email?, phone?, title?, reports_to?, is_primary?, notes? } }` | Update a contact on a client. |\n| `update_distribution_rule` | `jobs:write` | `{ rule_id, patch: { name?, target_board_slugs?, filter?, active? } }` | Update a distribution rule (name, target boards, filter, or active state). |\n| `update_email_draft` | `emails:write` | `{ review_token, subject?, body?, schedule_at?, template_chip? }` | Patch a staged email draft (subject / body / schedule_at / template_chip). Re-computes gaps. |\n| `update_form` | `forms:write` | `{ form_id, name, description, ai_augmentation_enabled }` | Update form. |\n| `update_form_question` | `forms:write` | `{ form_id, question_id, question_text, question_type, order_index, options, scoring_weight, flag_mode, required }` | Update form question. |\n| `update_interview_action_draft` | `interviews:write` | `{ review_token, new_scheduled_at?, reason?, notify_candidate? }` | Patch a staged reschedule / cancel draft (new_scheduled_at / reason / notify_candidate). Re-computes gaps. |\n| `update_interview_draft` | `interviews:write` | `{ review_token, scheduled_at?, format?, interviewer_id?, duration_min?, location?, notes? }` | Patch a staged interview draft (scheduled_at / format / interviewer_id / duration_min / location / notes). Re-computes gaps. |\n| `update_interview_form_draft` | `interviews:write` | `{ instance_id, section_id?, section_score?, section_notes?, recommendation?, feedback? }` | Patch a section score / notes, or set the overall recommendation / final feedback on an interview form. |\n| `update_interview_outcome` | `interviews:write` | `{ interview_id, outcome, feedback? }` | Record the outcome (Passed / Failed / No Show) of an interview. Never moves the application - how the interview went and what happens next are separate decisions, and a human makes the second one. |\n| `update_job` | `jobs:write` | `{ job_id, patch: { title?, location?, status?, salary_min?, salary_max?, salary_period?, default_interview_format?, start_date?, duration_value?, duration_unit?, openings?, charge_rate_min?, charge_rate_max?, engagement_type?, ... } }` | Update fields on a job (title, location, salary, default interview format, etc.) and a contract job's terms: start_date, duration_value + duration_unit, openings, charge_rate_min/max (internal) and engagement_type. Send null to clear one. |\n| `update_job_ad` | `jobs:write` | `{ job_id \\| job_ad_id, title?, description?, published? }` | Edit the title / description / published flag of a job ad. |\n| `update_job_draft` | `jobs:write` | `{ review_token, updates: { title?, client_id?, team_id?, hiring_manager_id?, location?, compensation?, employment_type?, contract?: { start_date?, duration_value?, duration_unit?, openings?, charge_rate_min?, charge_rate_max?, engagement_type? } } }` | Fill one or more gaps on a streaming draft. Each answer rewrites the summary so the draft reads as one piece. |\n| `update_job_opportunity` | `jobs:write` | `{ job_opportunity_id, stage?: new\\|talking\\|keen\\|terms\\|lost\\|parked, reason?, title?, client_id? \\| client_name?, client_contact_id? (null clears), salary_min?, salary_max?, currency? }` | Edit an opportunity or move its stage: new, talking, keen, terms (terms sent to the client), or the end states lost and parked. A parked or lost opportunity reopens by moving it back to an open stage. Won cannot be set here; converting the opportunity to a job sets it. Changing the client clears the contact unless a contact at the new client is sent. |\n| `update_marketplace_deal` | `marketplace:write` | `{ deal_id, deal_action: add_to_pipeline\\|mark_paid\\|mark_received\\|close\\|email, job_id?, reason?, subject?, body?, document_ids?: [your own document ids, email only] }` | Manage a formed marketplace deal. add_to_pipeline turns the revealed candidate into a real candidate + application on one of your jobs and links the deal so its status tracks your pipeline (the way to link candidate-listing deals, where you pick the job). mark_paid/mark_received is the handshake on a placed deal: the placing agency marks the partner share paid; the receiving agency confirms it arrived. close ends an unplaced deal with a required reason the other agency reads (a placed deal never closes this way). email sends the consultant at the other agency an email through Lovelio (subject and body, written by the consultant) that both agencies see on the deal timeline; only on a formed deal. Facts both sides see on the deal record - Lovelio never moves the money. |\n| `update_marketplace_listing` | `marketplace:write` | `{ listing_id, listing_action: pause\\|resume\\|withdraw\\|filled\\|renew }` | Pause, resume, withdraw, mark filled, or renew one of your marketplace listings. Renewing re-attests the listing is still real and extends it 30 days - expired listings never linger. |\n| `update_phone_screen_draft` | `applications:write` | `{ review_token, outcome?, notes?, call_at?, duration_min? }` | Patch a staged phone-screen draft (outcome / notes / call_at / duration_min). Re-computes gaps. |\n| `update_placement` | `placements:write` | `{ placement_id, patch (or the same fields flat): { salary?, currency?, fee_type?, fee_percent?, fee_amount?, start_date?, guarantee_days?, owner_id?, notes?, placement_type?, offer_date?, contract_end_date?, charge_rate?, pay_rate?, on_cost_percent? \\| on_cost_amount?, rate_period?, expected_gp?, work_site_id?, contract_plan?: 'asked' \\| 'extending' \\| 'finishing' \\| null, rates_from?: 'YYYY-MM-DD', contract_end_reason?: 'client_ended' \\| 'contractor_left' \\| null, converted_on?: 'YYYY-MM-DD' \\| null, conversion_salary?, conversion_fee?, next_contact_on?: 'YYYY-MM-DD' \\| null, hiring_manager_contact_id?, invoice_contact_id?, po_number?, invoice_notes? } }` | Update fields on a placement (salary, fee, start date, guarantee, owner, notes, contract rates and term, employer on-cost percent for a worker on the agency payroll (null when the worker invoices the agency), expected GP, the workplace site, and the contract plan: what happens when a started contract ends - asked the client, will be extended (extending: the client agreed, only the paperwork is left) or finishing; an agreed extension itself moves contract_end_date, and going perm is a conversion recorded with converted_on and conversion_salary, not a plan). A rate change from a date sends the new rates with rates_from, and the earlier rates stay for the weeks they applied. Ending a contract early sends the earlier contract_end_date with contract_end_reason. A contractor going perm with the client sends converted_on (the contract ends the day before) with conversion_salary and, optionally, conversion_fee; null converted_on undoes it). Billing: hiring_manager_contact_id and invoice_contact_id are contacts on the placement's client (null clears), po_number is the client's purchase order number, invoice_notes is what accounts needs to bill. next_contact_on is the day to contact a contractor next on a running or starting contract: a reminder that day and an entry in the consultant's calendar; null clears it. |\n| `update_scorecard_draft` | `interviews:write` | `{ review_token, scores?, criterion_id?, score?, note?, overall_recommendation?, feedback? }` | Patch a staged scorecard draft (per-criterion score / note, overall_recommendation, feedback). Accepts either a full scores array replacement or a single { criterion_id, score?, note? } patch. |\n| `update_social_draft` | `jobs:write` | `{ job_id, linkedin?, twitter? }` | Edit a job's LinkedIn and X post text. |\n| `update_webhook` | `webhooks:write` | `{ webhook_id, url, events, status }` | Update webhook. |\n| `update_workflow_rules` | `accounts:write` | `{ instruction } then { apply: true, changes: [{ field, to }] }` | Change workflow rule settings in plain English. Call with { instruction } first - it returns data.preview of the exact changes without saving. Then call again with { apply: true, changes: data.preview } to save. Never apply without showing the user the preview. |\n| `waive_paper` | `placements:write` | `{ placement_id, kind, waived?: true\\|false }` | Mark one document as not needed for one contract: the placement stops asking for it, every other contract still does. waived false asks for it again. |\n| `withdraw_application` | `applications:write` | `{ application_id, reason? }` | Record that a candidate has withdrawn from a role. |\n| `withdraw_spec` | `submissions:write` | `{ spec_id }` | Withdraw a spec (float) the consultant sent: the client link stops opening and the float moves to unsuccessful as \"You withdrew it\". Only a spec still with the client (sent, opened, or interested) with no job created from it can be withdrawn. Nothing is emailed to the client. Open prompts on the spec are cleared. |\n\nSome actions are done only by a person in the Lovelio app and are refused here with 403 HUMAN_ONLY_ACTION, before any operation in the batch runs: business development (AI finds and drafts, a person decides and sends), plan changes (Settings > Billing) and adding jobs found on a client careers page (a person ticks them). They are: `add_client_site_jobs`, `add_watched_company_contact`, `approve_placement_for_payroll`, `buy_credits`, `change_plan`, `clear_sample_data`, `convert_bd_lead`, `create_job_from_careers_ad`, `dismiss_bd_lead`, `dismiss_screening_questions`, `refresh_sample_data`, `send_careers_float`, `send_screening_questions`, `set_careers_link`, `stop_watching_companies`, `update_bd_opportunity`, `update_bd_patch`, `upgrade_plan`, `watch_companies`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["operations"],"properties":{"operations":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["op","payload","idempotency_key"],"properties":{"id":{"type":"string","description":"Optional client-supplied correlation ID returned on the matching response op. A server ID is minted if omitted."},"op":{"type":"string","enum":["add_candidate_import_files","add_client_contact","add_client_dna_note","add_client_recruiter","add_form_question","add_found_client","add_interview_link","add_note","add_quota_adjustment","add_referee","add_to_talent_pool","add_web_candidate","add_web_candidate_to_database","add_web_candidate_to_pool","add_web_candidates","answer_share","answer_spec_question","answer_submission_question","ask_analytics","ask_candidate","ask_client","ask_job","ask_pool_member_if_looking","book_call","bulk_add_to_talent_pool","bulk_reject","bulk_send_email","cancel_interview","cancel_meeting","cancel_scheduled_email","chase_spec","chase_submission","check_talent_pools","close_job","complete_assessment","confirm_candidate_draft","confirm_email_draft","confirm_interview_action_draft","confirm_interview_draft","confirm_interview_form_draft","confirm_job_draft","confirm_phone_screen_draft","confirm_scorecard_draft","convert_job_opportunity","convert_spec","create_application","create_candidate","create_candidate_import","create_client","create_client_site","create_distribution_rule","create_form","create_job","create_job_ad","create_job_opportunity","create_placement","create_reference_instance","create_reminder","create_submission","create_talent_pool","create_webhook","delete_candidate","delete_client","delete_client_contact","delete_document","delete_form","delete_form_question","delete_job","delete_talent_pool","delete_webhook","describe_a_job","discard_call","discard_careers_float","discard_draft","dismiss_client_site_jobs","dismiss_key_movement","dismiss_lost_fee","do_call_action","draft_availability_check","draft_careers_float","draft_contractor_check_ins","draft_extension_asks","draft_job_availability_asks","draft_job_from_call","email_client_contact","evaluate_candidate_evidence","extract_candidate_preferences","finalize_candidate_import","find_client_people","find_contact_details","find_free_for_job","find_new_clients","finish_call_upload","follow_contact","get_candidate_draft","get_contractor_page_link","get_contractor_report","get_email_draft","get_interview_action_draft","get_interview_draft","get_interview_form_draft","get_job_creation_status","get_job_draft","get_phone_screen_draft","get_placement_papers","get_scorecard_draft","invite_team_member","link_call_to_person","list_contractor_check_ins","list_documents","list_extension_asks","log_call","log_job_opportunity_contact","log_offer","make_call_clip","mark_placement_status","match_candidates_to_job","merge_candidates","merge_clients","move_stage","name_call_speaker","park_client_site_jobs","plan_linkedin_sourcing","prepare_cancel_interview","prepare_candidate_from_cv","prepare_compose_email","prepare_evidence_pack","prepare_interview_form","prepare_phone_screen","prepare_reschedule_interview","prepare_schedule_interview","prepare_screening_form","prepare_submit_scorecard","promote_client_contact","propose_interview_slots","reassess_application","reassign_record","record_client_verdict","record_offer_outcome","record_whatsapp_consent","reject_candidate","remove_call_clip","remove_client_recruiter","remove_client_site","remove_from_talent_pool","reopen_job","replay_webhook_delivery","request_interview","request_marketplace_candidate","request_referee_details","reschedule_interview","reschedule_meeting","resolve_identity_review","resolve_occupation_review","resolve_review_item","respond_to_marketplace_intro","review_reference","revise_email_draft","revise_job_draft","rewrite_job_ad","rotate_webhook_secret","run_report","save_current_view","save_paper","schedule_call","schedule_email","schedule_interview","schedule_meeting","search_clients","search_web_candidates","send_availability_asks","send_email","send_extension_asks","send_form","send_form_instance","send_interview_followup","send_marketplace_listing","send_placement_email","send_placement_to_xero","send_referee_questionnaires","send_reference_request","send_references_to_client","send_screening_form","send_spec","set_candidate_contracting_profile","set_candidate_cv","set_client_fee_terms","set_job_owners","set_placement_credits","set_placement_payroll_reference","set_placement_timesheet_approvers","set_pool_member_interest","set_quota_target","settle_job_opportunity_proposal","share_candidate_to_marketplace","share_job_to_marketplace","share_record","sign_call_upload_parts","skip_job_draft_gap","start_call_upload","submit_form_instance","submit_scorecard","submit_to_marketplace_job","test_webhook","undo_share","update_application","update_brand_voice","update_candidate","update_candidate_draft","update_candidate_preferences","update_candidate_tags","update_careers_float","update_client","update_client_contact","update_distribution_rule","update_email_draft","update_form","update_form_question","update_interview_action_draft","update_interview_draft","update_interview_form_draft","update_interview_outcome","update_job","update_job_ad","update_job_draft","update_job_opportunity","update_marketplace_deal","update_marketplace_listing","update_phone_screen_draft","update_placement","update_scorecard_draft","update_social_draft","update_webhook","update_workflow_rules","waive_paper","withdraw_application","withdraw_spec"],"description":"Canonical action name. The generated catalogue above gives the scope, payload hint, and behaviour for every accepted value."},"payload":{"type":"object","description":"Action-specific payload. Use the payload hint in the generated catalogue above. Send the same typed external ids (job_, cnd_, app_, cli_, sub_, pla_) the rest of the API uses; the batch boundary decodes them before dispatch."},"idempotency_key":{"type":"string","description":"Per-operation idempotency key. It is scoped by account and action, and bound to the payload for 24 hours. Uncertain executions remain reserved beyond expiry."}}}}}},"examples":{"moveAndEmail":{"summary":"Move a candidate and send them an email","value":{"operations":[{"id":"client-op-1","op":"move_stage","payload":{"application_id":"app_abc123","new_stage":"yes"},"idempotency_key":"batch-2026-04-17-001"},{"id":"client-op-2","op":"send_email","payload":{"candidate_id":"cnd_def456","subject":"You're through to the next round","body":"Hi, we loved your application..."},"idempotency_key":"batch-2026-04-17-002"}]}}}}}},"responses":{"200":{"description":"HTTP 200 is returned when the batch itself succeeded. Per-operation status is inside `data.operations` - check each op status before treating the batch as a success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The client-supplied id (or server-minted if omitted)."},"status":{"type":"string","enum":["succeeded","failed"]},"result":{"type":"object","description":"Present when status=succeeded. Action-specific shape. Every record id is returned as a typed external id, never a database UUID."},"replayed":{"type":"boolean","description":"true when this op was answered from an earlier run of the same idempotency key; nothing was executed again. Absent on a first run."},"error":{"type":"object","description":"Present when status=failed.","properties":{"type":{"type":"string","enum":["VALIDATION_ERROR","UNKNOWN_ACTION","INSUFFICIENT_SCOPE","PERMISSION_DENIED","BULK_CONFIRMATION_REQUIRED","RESOURCE_NOT_FOUND","CONFLICT","IDEMPOTENCY_KEY_REUSED","IDEMPOTENCY_IN_PROGRESS","IDEMPOTENCY_OUTCOME_UNKNOWN","IDEMPOTENCY_UNAVAILABLE","IDEMPOTENCY_RESULT_STORAGE_FAILED","PREMIUM_REQUIRED","AI_PAUSED","ACTION_FAILED"],"description":"What went wrong with this operation. Each failed operation retains its own error; HTTP 200 does not mean all operations succeeded. MCP adapters expose any failed operation with isError: true and preserve this type as error.code. ACTION_FAILED requires checking the outcome before another write. IDEMPOTENCY_UNAVAILABLE can be retried with the same key. IDEMPOTENCY_IN_PROGRESS can be retried with the same key after a short delay. IDEMPOTENCY_OUTCOME_UNKNOWN needs reconciliation before a new key is used."},"message":{"type":"string"},"operation_id":{"type":"string","description":"Durable retry claim identity when available. Use this to reconcile an uncertain outcome."},"retry_after":{"type":"string","description":"Seconds to wait before an identical retry with the same operation key, when allowed by the error type."},"request_id":{"type":"string","description":"The request_id of this batch call, the same as meta.request_id. Quote it when reporting a failure."}}}}}}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"mixedResult":{"summary":"One op succeeded, one failed","value":{"success":true,"data":{"operations":[{"id":"client-op-1","status":"succeeded","result":{"id":"app_abc123","message":"Moved to yes"}},{"id":"client-op-2","status":"failed","error":{"type":"RESOURCE_NOT_FOUND","message":"Candidate not found"}}]},"meta":{"request_id":"req_01HZABCDEF"}}}}}}},"400":{"description":"Batch exceeds 100 operations (error code: BATCH_TOO_LARGE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"HUMAN_ONLY_ACTION: an operation names an action only a person may take in the Lovelio app. The message names each one and why. Nothing in the batch was run; remove those operations and send the rest.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"422":{"description":"Malformed batch body (missing operations, invalid JSON).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. The batch is rejected without partially consuming rate limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":[]}],"x-required-scopes":[]}},"/distribution/boards":{"get":{"summary":"List job boards","operationId":"listDistributionBoards","tags":["Distribution"],"description":"The catalogue of integrated job boards available to connect, with your monthly posting allowance per board (limit, used, remaining for the current month).\n\nPagination: Returns the complete static job-board catalogue. No after cursor is accepted.","responses":{"200":{"description":"Array of boards","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DistributionBoard"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/distribution/rules":{"get":{"summary":"List distribution rules","operationId":"listDistributionRules","tags":["Distribution"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Array of rules","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DistributionRule"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]},"post":{"summary":"Create a distribution rule","operationId":"createDistributionRule","tags":["Distribution"],"description":"Route matching jobs to boards. Free/mixed boards auto-publish; paid boards and boards with pricing null (not priced by Lovelio) await confirmation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","target_board_slugs"],"properties":{"name":{"type":"string"},"target_board_slugs":{"type":"array","items":{"type":"string"}},"filter":{"type":"object","description":"See the DistributionRule schema. country is an ISO 3166 alpha-2 code (a country name is normalised to one on write).","properties":{"country":{"type":"string","example":"AU"},"category":{"type":"string"},"job_type":{"type":"string","enum":["Permanent","Contract","Temporary"]},"team_id":{"type":"string"}}},"active":{"type":"boolean"}}}}}},"responses":{"201":{"description":"Created rule","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DistributionRule"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}},"/distribution/rules/{id}":{"patch":{"summary":"Update a distribution rule","operationId":"updateDistributionRule","tags":["Distribution"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"patch":{"type":"object","properties":{"name":{"type":"string"},"target_board_slugs":{"type":"array","items":{"type":"string"}},"filter":{"type":"object"},"active":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"Updated rule","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DistributionRule"}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]},"delete":{"summary":"Delete a distribution rule","operationId":"deleteDistributionRule","tags":["Distribution"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"]}},"/distribution/postings":{"get":{"summary":"List job board postings","operationId":"listDistributionPostings","tags":["Distribution"],"description":"The per-board posting ledger - where jobs have been posted, with status and errors. Each ad of a job has its own postings, so filter by job_ad_id to scope to one ad.","parameters":[{"name":"job_id","in":"query","schema":{"type":"string"},"description":"Filter to one job"},{"name":"job_ad_id","in":"query","schema":{"type":"string"},"description":"Filter to one job ad"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/after"}],"responses":{"200":{"description":"Array of postings","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/JobBoardPosting"}}}}}}},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:read"]}],"x-required-scopes":["jobs:read"]}},"/distribution/publish":{"post":{"summary":"Distribute a job to boards","operationId":"distributeJob","tags":["Distribution"],"description":"With board_slugs, publishes asynchronously to those boards (202 + task). Without, evaluates the company distribution rules and returns the resolved targets.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string"},"board_slugs":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Rule-resolved targets. Every board a matching rule selects is posted to automatically, whatever it costs - `auto` is the whole answer.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"job_id":{"type":"string"},"auto":{"type":"array","items":{"type":"string"}}}}}}}}},"202":{"description":"Async task accepted"},"400":{"description":"Invalid request. Correct the named field or add the required Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"METHOD_NOT_ALLOWED: use one of the methods in the Allow header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"description":"Supported methods for this path, including automatic HEAD and OPTIONS.","schema":{"type":"string"}}}},"409":{"description":"Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}},"423":{"description":"RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the rate window resets.","schema":{"type":"integer"}}}},"500":{"description":"INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Idempotency storage error: retry only the identical request with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds before retrying when the error permits a retry.","schema":{"type":"integer"}},"X-Idempotency-Operation-ID":{"$ref":"#/components/headers/X-Idempotency-Operation-ID"}}}},"security":[{"bearerAuth":[]},{"appOAuth2":["jobs:write"]}],"x-required-scopes":["jobs:write"],"parameters":[{"$ref":"#/components/parameters/idempotencyKey"}]}}},"tags":[{"name":"System","description":"Health and status"},{"name":"Accounts","description":"Account and API key management"},{"name":"Jobs","description":"Job requisition management with AI enrichment"},{"name":"Job Ads","description":"Public job postings and career pages"},{"name":"Candidates","description":"Candidate profiles and talent database"},{"name":"Candidate Imports","description":"Bulk CV import - migrate thousands of CVs into the talent bank"},{"name":"Applications","description":"Application pipeline with AI assessment"},{"name":"Interviews","description":"Interview scheduling and feedback"},{"name":"Submissions","description":"Client-facing candidate submissions with a tokenised review link and a live feedback loop"},{"name":"Calls","description":"Recorded calls: the transcript line by line, who spoke, the write-up and the recording"},{"name":"Placements","description":"The record of the win: fee, start date, guarantee lifecycle"},{"name":"Job Opportunities","description":"The roles and candidate leads a consultant works on Jobs > Opportunities before a job exists. Not the BD Opportunities below. Agents read them, add them, update them and log contact; only a person converts one to a job or accepts a suggested move."},{"name":"Contractor Documents","description":"Contractor documents: right to work, checks, licences and insurance on the person, and what each contract needs"},{"name":"Quotas","description":"Quota plan, periods and the recognition board: credit-share money against targets for the agency, teams and consultants"},{"name":"Opportunities","description":"Job leads from watched careers pages, the floats Lovelio drafts for them, and key movements. Agents read and draft; only a person sends a float."},{"name":"Marketplace","description":"Cross-agency job and candidate splits: anonymised listings, reveal-on-accept intros, and the deal record both agencies read. Lovelio takes 0% and never touches the money. Needs an active Lovelio plan."},{"name":"Webhooks","description":"Event subscriptions with HMAC-SHA256 signing"},{"name":"Automations","description":"Workflow automation rules and triggers"},{"name":"Batch","description":"Execute multiple canonical actions in a single request with per-op idempotency"},{"name":"Activities","description":"Audit log and activity tracking"},{"name":"Documents","description":"Files attached to any record - CVs, contracts, briefs, right-to-work scans"},{"name":"Tasks","description":"Async operation polling"},{"name":"Outreach","description":"AI-powered candidate outreach"},{"name":"Talent Pools","description":"Talent pool membership and candidate rediscovery"},{"name":"Review Queue","description":"Items Lovelio cannot decide on its own and needs a recruiter to handle"},{"name":"Forms","description":"Form templates, phone screen execution, and reference check delivery"},{"name":"Referees","description":"Candidate referee management for reference checks"},{"name":"Integrations","description":"Third-party integrations (Slack, Calendar)"},{"name":"Chat Integrations","description":"AI chatbot platform connections (Slack, Teams, WhatsApp, Google Chat) and user identity mappings"},{"name":"Analytics","description":"Hiring dashboard, pipeline funnel analysis, and KPI metrics"},{"name":"Calendar","description":"Shared calendar events for interviews, phone screens, reminders, deadlines, and meetings"},{"name":"Scheduled Emails","description":"Superhuman-style scheduled candidate email sends. Draft, schedule, edit, cancel, or send-now before delivery."},{"name":"Workflow Rules","description":"Per-company configuration for AI thresholds, HM deadlines, and follow-up cadences"},{"name":"Email Templates","description":"Canonical transactional email templates and per-company AI instruction overrides"},{"name":"Stages","description":"Canonical pipeline stage reference (labels, transitions, terminal flags)"},{"name":"Distribution","description":"Job board catalogue, posting rules, multi-board distribution, and the posting ledger"}]}