# Lovelio - full documentation Every public Lovelio doc, inlined. API version 1.0.0. The index-only version is https://lovelio.ai/llms.txt. Contents: - Lovelio for AI agents (https://lovelio.ai/docs/agents) - MCP quickstart (https://lovelio.ai/docs/agents/mcp-quickstart) - Sign up a customer (https://lovelio.ai/docs/agents/sign-up-a-customer) - Top 10 tasks (https://lovelio.ai/docs/agents/top-10-tasks) - Error handling (https://lovelio.ai/docs/agents/error-handling) - Webhooks (https://lovelio.ai/docs/agents/webhooks) - Reference-check integration (https://lovelio.ai/docs/agents/reference-checks) - Build an integration (https://lovelio.ai/docs/agents/build-an-integration) - SDKs (https://lovelio.ai/docs/agents/sdks) - API reference (https://lovelio.ai/docs/api.md) --- # Index (llms.txt) # Lovelio > Lovelio is AI-first, agent-ready recruitment software (ATS and CRM) for recruitment agencies, made by Lovelio Pty Ltd in Sydney. Recruitment agencies use Lovelio as their ATS and CRM, or run it alongside an existing ATS. People use it in the browser, Slack, WhatsApp and Microsoft Teams. AI agents can do everything a person can, through the same public REST API and an MCP server. Everything on this list is stable, public, and meant to be read by an LLM deciding how to use or integrate Lovelio. Every page below is server-rendered: fetch it and read it, no JavaScript needed. ## For recruitment agencies - [Features](https://lovelio.ai/features): every feature, from AI job ads and talent pools to screening calls, submissions and business development. No add-ons. - [Pricing](https://lovelio.ai/pricing): Solo, Startup, Growth and Scale plans, priced on AI credits, not per user. Unlimited users and AI agents on every plan. 14-day free trial. Prices in GBP, EUR, AUD and USD. - [Contract management](https://lovelio.ai/contract-management): see who is working, who is compliant, what expires and which contracts are up for extension. - [Split marketplace](https://lovelio.ai/marketplace): share jobs and candidates anonymously with other agencies and agree the fee split up front. Lovelio takes no cut of split fees. - [Integrations](https://lovelio.ai/integrations): Slack, WhatsApp, Microsoft Teams, Google Chat, Telegram, Google Calendar, Zoom, Google Meet, Aircall and job boards. - [Plays with your ATS](https://lovelio.ai/plays-with-your-ats): keep your current ATS and run Lovelio alongside it. - [Data migration](https://lovelio.ai/data-love): move from any ATS in about two weeks, with your data analysed, cleaned and refreshed. - [Chrome extension](https://lovelio.ai/extension): save people to Lovelio from the web in one click. - [Help centre](https://lovelio.ai/help): how every part of Lovelio works. - [Blog](https://lovelio.ai/blog): guides for recruitment agency owners. - [About](https://lovelio.ai/about): the company and its founders. ## Get started - [Lovelio for AI agents (index)](https://lovelio.ai/docs/agents): 2-minute TL;DR of the hands-off hiring loop and how to drive it. - [MCP quickstart](https://lovelio.ai/docs/agents/mcp-quickstart): connect Claude Desktop or Claude Code, first tool call, JSON config block. - [Sign up a customer](https://lovelio.ai/docs/agents/sign-up-a-customer): programmatic account creation. Returns a live trial API key. - [Top 10 tasks](https://lovelio.ai/docs/agents/top-10-tasks): minimal runnable examples for the ten things agents do 95% of the time. - [Build an integration](https://lovelio.ai/docs/agents/build-an-integration): Lovelio Connect. Register, get a sandbox agency, test webhooks live, submit to the integrations directory. - [Reference-check integration](https://lovelio.ai/docs/agents/reference-checks): trigger and poll a partner check, read referee contacts, attach the report, record candidate activity, and retry safely. ## Reference - [API reference (markdown)](https://lovelio.ai/docs/api.md): every endpoint with parameters, request bodies and responses, in one plain-text fetch. Start here. Narrow it with `?tag=Jobs` or get the list alone with `?index=1`. - [OpenAPI spec](https://lovelio.ai/api/v1/openapi.json): machine-readable source of truth, OpenAPI 3.1. Its `servers` block lists the three regional base URLs you actually call. - [Error handling](https://lovelio.ai/docs/agents/error-handling): error envelope, request IDs, retry rules, idempotency keys, rate limits. - [Webhooks](https://lovelio.ai/docs/agents/webhooks): subscribe, verify HMAC signatures, event catalogue. - [SDKs](https://lovelio.ai/docs/agents/sdks): single-file, zero-dependency TypeScript and Python clients. - [MCP overview](https://lovelio.ai/docs/mcp): what MCP is and what the 27+ Lovelio tools do. - [API changelog](https://lovelio.ai/docs/api/changelog): public API release history. - [API reference (interactive)](https://lovelio.ai/docs/api): Scalar, for humans. It renders in the browser, so fetch `/docs/api.md` instead if you are not running JavaScript. ## Programmes - [Lovelio Launch](https://lovelio.ai/launch): for people starting their own recruitment agency. Solo plan free for 2 months, then 20% off Startup, Growth or Scale for life. Apply by form. - [How to start a recruitment agency](https://lovelio.ai/start-a-recruitment-agency): the 7 steps, year one costs for the UK, Australia and the US, licence rules and a break-even calculator. - [Lovelio Lift](https://lovelio.ai/lift): for recruitment agencies whose recruitment work is exclusively charitable. 50% off every plan for life. Apply by form, reply within 3 working days. - [Lovelio Partners](https://lovelio.ai/partners): for people who know recruitment agencies. Earn a commission on each payment from the agencies you refer. Apply by form. ## Brand - [Logo (SVG)](https://lovelio.ai/brand/lovelio-logo.svg): the Lovelio wordmark. PNG at [lovelio-logo.png](https://lovelio.ai/brand/lovelio-logo.png). - [Icon (SVG)](https://lovelio.ai/brand/lovelio-heart.svg): the pink heart, for app icons and avatars. PNG at [lovelio-heart.png](https://lovelio.ai/brand/lovelio-heart.png) (512px). ## Everything in one fetch - [llms-full.txt](https://lovelio.ai/llms-full.txt): every guide above plus the complete API reference, inlined. Any `/docs/agents` page also serves its markdown source at the same URL with `.md` on the end, for example https://lovelio.ai/docs/agents/webhooks.md. ## Calling the API Docs live on lovelio.ai. The API does not: every workspace belongs to a region, an API key only works on its own region's host, and lovelio.ai answers an API call with a JSON error naming all three. Base URLs: https://us.lovelio.ai/api/v1, https://eu.lovelio.ai/api/v1, https://anz.lovelio.ai/api/v1. A workspace's exact host is shown in Settings > API keys. MCP connect URL: https://lovelio.ai/api/mcp, one URL for every region over OAuth; with an API key, use /api/mcp. ## Optional - [Terms](https://lovelio.ai/terms) - [Privacy](https://lovelio.ai/privacy) --- # Lovelio for AI agents Source: https://lovelio.ai/docs/agents # Lovelio for AI agents Lovelio is a hiring system designed to be driven by an AI agent, not a human clicking a dashboard. You can sign up a customer, create a job, post it to a careers page, process applicants, and deliver a submission - all via HTTP or MCP, with no UI involvement. This page exists so any agent or LLM session can read it once and have everything needed to operate Lovelio for a customer. ## TL;DR (2 minutes) 1. Create an account: `POST /api/v1/accounts/signup` with an email. You get back a `trial_api_key` (prefix `sk_trial_`). 2. Put the key in an `Authorization: Bearer ...` header on every subsequent request. 3. Create a job from plain text: `POST /api/v1/jobs/from-description`. 4. Post it: `POST /api/v1/job-ads` and fetch `share_links` to distribute. 5. Applications arrive, get auto-parsed and auto-assessed. Poll `GET /api/v1/applications?status=longlisted` or subscribe to webhooks. 6. Move a candidate forward: `POST /api/v1/applications/{id}/transition`. That is the whole loop. Everything else on this site drills into one of those steps. ## Two ways to drive Lovelio **REST (recommended for agents running on your own infra):** standard HTTP, any language, OpenAPI spec at [`/api/v1/openapi.json`](/api/v1/openapi.json). See the full reference at [`/docs`](/docs). **MCP (recommended for any MCP-aware client - desktop app, editor, or command-line agent):** Lovelio exposes its toolset over MCP at `https://lovelio.ai/api/mcp`, one URL for every region. OAuth metadata at `https://lovelio.ai/.well-known/oauth-protected-resource`. See [MCP quickstart](/docs/agents/mcp-quickstart). Both surfaces have the same capability. Pick the one that fits how the agent is being hosted. ## Pages - [MCP quickstart](/docs/agents/mcp-quickstart) - the server URL, the JSON config block, and your first tool call. - [Sign up a customer](/docs/agents/sign-up-a-customer) - programmatic account creation, in curl / JS / Python. - [Top 10 tasks](/docs/agents/top-10-tasks) - runnable examples for the ten things agents do 95% of the time. - [Error handling](/docs/agents/error-handling) - request IDs, retry rules, idempotency keys, rate limits. - [Webhooks](/docs/agents/webhooks) - subscribe, verify signatures, event catalogue. - [Reference-check integration](/docs/agents/reference-checks) - trigger and poll a partner check, read referee contacts, attach the report, record activity, and retry safely. - [Build an integration](/docs/agents/build-an-integration) - Lovelio Connect: self-serve sandbox agency, test API key, live webhook logs, submit to the directory. - [SDKs](/docs/agents/sdks) - single-file, zero-dependency TypeScript and Python clients. ## Honest limits Things Lovelio does not do yet. Build around them or use another tool: - No native background-check integration. Use a partner (Checkr, etc.) and store the result as a timeline event via the API. - No in-app payroll/HRIS push on placement. You get a `placement.created` webhook; wire up your own downstream. - Free tier is rate-limited. If your agent is going to burst, ask for a paid key before you ship. - REST calls use an API key or Connect access token. MCP reads and writes both require MCP OAuth consent. ## Canonical host All examples in this section use `https://us.lovelio.ai` as the host. Your workspace lives in one region - us, eu, or anz.lovelio.ai - and your key only works on that region's domain (it is the domain you sign in on). If you are developing locally, replace the host with `http://localhost:3005`. --- # MCP quickstart Source: https://lovelio.ai/docs/agents/mcp-quickstart # MCP quickstart Lovelio ships a Model Context Protocol server at `https://lovelio.ai/api/mcp`. Connect any MCP-aware client and run your recruiting desk with natural language. MCP is an open standard. Each client must still support Lovelio's HTTP transport, OAuth registration, HTTPS or loopback callbacks, and PKCE. Verify the actual client before a rollout. ## One URL for every region `https://lovelio.ai/api/mcp` works for every agency. When you sign in, Lovelio finds your workspace's region and keeps the connection there. Each region also serves MCP on its own domain. An API key only works there: - `https://us.lovelio.ai/api/mcp` - Americas and rest of world - `https://eu.lovelio.ai/api/mcp` - UK, Ireland, and Europe - `https://anz.lovelio.ai/api/mcp` - Australia and New Zealand Your region is the domain you sign in on, and both URLs are shown on the Settings -> API keys page. ## Before you connect Sign in as a Lovelio workspace admin. Your MCP client opens a consent page where you choose the permissions to grant. REST scripts use API keys; MCP uses OAuth for both reads and writes. Do not paste a REST key into an MCP Authorization header. For a Connect sandbox, use **Open sandbox** in the portal first, then connect your MCP client to the sandbox origin shown there with `/api/mcp`. ## Install Start with the server URL in a compatible OAuth-enabled MCP client: ``` https://lovelio.ai/api/mcp ``` Clients that take a JSON config block want this. Most use the `mcpServers` key; a few name the wrapper differently: ```json { "mcpServers": { "lovelio": { "type": "http", "url": "https://lovelio.ai/api/mcp" } } } ``` Clients with a settings screen ask for the same URL under a heading like Connectors, Custom connector, or Add MCP server. Clients with a command line have their own add command - pass the URL and the HTTP transport. The first call opens the Lovelio sign-in and consent page. Approve the permissions you need. Dynamically registered clients are unreviewed; the consent page says so. Your client receives OAuth tokens and refreshes them automatically. Compatible clients discover the OAuth endpoints through this metadata: - [`/.well-known/oauth-protected-resource`](https://lovelio.ai/.well-known/oauth-protected-resource) - [`/.well-known/oauth-authorization-server`](https://lovelio.ai/.well-known/oauth-authorization-server) ## API-key connection when OAuth is incompatible MCP also accepts an existing Lovelio API key in `Authorization: Bearer `. Create a dedicated key in your region's Settings > API page. Select only the permissions the agent needs. Put the key in your client's secure header settings, not in a chat message or repository. ```json { "mcpServers": { "lovelio": { "type": "http", "url": "https://us.lovelio.ai/api/mcp", "headers": { "Authorization": "Bearer " } } } } ``` An API key works only on your workspace's region URL, never on `https://lovelio.ai/api/mcp`. An agency API key has agency-level record access; it does not impersonate a consultant. Its explicit scopes still filter tools and gate every V1 call. Key revocation and scope reductions apply on the next request. Unlike OAuth, a static key has no rotating refresh token or separate consent ceiling. Manage its scopes and revoke it in Settings > API. OAuth remains the route for a personal connection with the person's role, record access, agency rules and explicit consent. This option supports clients that can send headers but cannot complete Lovelio's OAuth callback. It does not prove a particular client has securely stored the key or completed a workflow. ## How the OAuth flow works 1. Your client gets a 401 from the MCP endpoint and reads the discovery metadata above. 2. It registers itself at `POST /api/oauth/register` (dynamic client registration, public clients, PKCE S256 required) and gets a `client_id`. 3. It opens `/api/oauth/authorize` in a browser. A workspace admin signs in and approves selected permissions. 4. The client exchanges the code at `POST /api/oauth/token` for an access token (1 hour) and a refresh token (30 days). Lovelio stores token hashes and encrypts the internal API credential. The client receives OAuth tokens, limited to the approved scopes. 5. Every MCP call carries the access token. The client refreshes it in the background. Disconnecting revokes at `POST /api/oauth/revoke`. ## Complete recruiting workflows The tool catalogue includes form templates, questionnaire drafts and completion, candidate import preparation and status, interview scheduling, candidate matching, record cleanup, and webhook maintenance. A visible tool still needs the agency grant and the caller's role permission. Personal OAuth actions use the connected person's current role and record access. Admins can grant the needed capabilities in Settings > Workspace > Agent access; role permissions remain in Settings > Workspace > Permissions. Existing connections must reconnect and consent to additional scopes. For native phone references, use `create_reference_instance`, read `get_form_instance`, save actual answers with `submit_form_instance` and `draft: true`, then complete with `draft: false`. Use `send_form_instance` only for an intended email reference. Read the [reference recipe](/docs/agents/reference-checks) for the full sequence. For CV imports, call `create_candidate_import`, then `add_candidate_import_files`. Upload the actual file bytes to each returned signed `upload_url`; creating upload slots does not upload a CV. Call `finalize_candidate_import` with the uploaded item IDs and poll `get_candidate_import`. A processing acknowledgement does not mean parsing has completed. Persist one `idempotency_key` per intended write. Reuse it for an identical retry. Read the resulting record to verify completion. Keep returned IDs so later calls address the same record. A connected chatbot does not provide durable agency orchestration by itself. Use MCP for interactive consultant work. For unattended queues and webhooks, use a Connect integration with persisted jobs, event deduplication, retry receipts, and human approvals for hiring decisions. Form reads respect team visibility. A form-list page can be empty while `meta.has_more` is true; continue using `meta.next_cursor`. ## First tool call Once connected, a test prompt: > List my 5 most recent jobs. The agent calls `list_jobs` and returns a table. Or an action: > Create a job for a Senior Backend Engineer, remote, GBP 110-140k base. The agent drafts the job with `create_job_from_description`, asks which client the job is for, and confirms it with you before publishing. ## What the tools can do The tools call the V1 REST API and the in-app action registry. The generated catalogue and regression tests check that their routes and declared permissions agree. They do not guarantee every agency workflow is available: phone-reference creation and answer submission, form-template authoring and bulk CV import management currently require REST. The connection's scope ceiling and each action's permissions also apply. Human approval remains part of candidate decisions. The full REST surface is documented in the [OpenAPI reference](/docs). Both `search_candidates` and `search` accept `page` (starting at 1). Keep `query` and `limit` unchanged between pages. Candidate results contain `data.results`, `total_count`, `page`, and `has_more`; use the returned search notes and verification limits when explaining matches. A bare email address keeps its email filter without model interpretation. CV mentions are a separate tier, not confirmed employment matches. Every candidate returned by either search door counts against the agent access rules. ### Toolsets A connection lists the `core` toolset by default: about 35 tools for the everyday desk, small enough for any client's tool limit. Add `?toolsets=` to the MCP URL for more, comma separated, or `all` for every tool: ``` https://lovelio.ai/api/mcp?toolsets=clients,analytics https://lovelio.ai/api/mcp?toolsets=all ``` Toolsets only change what is listed. Scopes and permissions still decide what runs, and every write action runs through `batch` from `core`. Calling a tool outside the listed toolsets returns `TOOL_NOT_IN_TOOLSET` naming the toolset to add. The table and the tool list below show each tool's toolset. Every tool below mirrors one V1 route or one registry action. Any write action without a typed tool still runs through `batch`, which takes write actions only; call `list_actions` or `describe_action` first for its payload shape and scope. 317 tools, 114 read and 203 write. Generated from the server's tool list; do not edit by hand. | Toolset | Tools | What it adds | | --- | --- | --- | | `core` (default) | 37 | Everyday consultant loop: search (database and web), jobs, candidates, applications, notes, email, interviews, submissions, placements, plus batch for every other write. | | `jobs` | 28 | Job ads, job drafts, the describe-a-job flow, distribution, close and reopen. | | `candidates` | 32 | Candidate detail: tags, preferences, CVs, documents, duplicates, imports, evidence, adding people found on the web. | | `pipeline` | 27 | Application detail: bulk moves, offers, assessments, phone screens, email drafts, scheduled email, the review queue. | | `interviews` | 34 | Interviews, interview drafts, scorecards, calendar events, meetings and reminders. | | `clients` | 42 | Client contacts, sites, DNA, fee terms, specs, submission chasers, company intelligence, finding new clients, job opportunities (Jobs > Opportunities), job leads, careers floats and key movements. | | `talent_pools` | 11 | Talent pools and their members. | | `placements` | 23 | Placement detail, contractors, check-ins, extensions, availability asks, documents for placements. | | `forms` | 23 | Forms, form instances, referees and reference checks. | | `calls` | 14 | Recorded calls, clips, uploads and transcription usage. | | `analytics` | 6 | Analytics dashboards and quotas. | | `marketplace` | 14 | Marketplace listings, intros and deals. | | `admin` | 26 | Account users and teams, webhooks, integrations, API keys, SSO, workflow rules, brand voice. | ### Account and admin (`accounts:read`, `accounts:write`) - `add_quota_adjustment` (write, admin): Add a manual credit or debit to a consultant's (or the agency's) recognised billings for a period, with the reason. - `get_account_overview` (read, admin): Get your Lovelio account details: company name, plan status, location, domain and website. - `get_account_team` (read, admin): Get one team on the account with its lead and members. - `get_account_user` (read, admin): Get one user on the account: name, email, role, team and status. - `get_company_intelligence` (read, clients): Get the synthesised Company Intelligence profile (voice, hiring process, values, business, personal attributes, compensation, flags). - `get_transcription_usage` (read, calls): Get the current calendar month's video-transcription usage for your Lovelio account. - `get_workflow_rules` (read, admin): The agency's workflow rules: AI screening thresholds, chase and escalation days, reference counts and auto-reject settings. - `invite_team_member` (write, admin): Invite a new team member by email. - `list_account_teams` (read, admin): List the teams on the account with their members. - `list_account_users` (read, admin): List the users on the account with name, email, role and team. - `list_api_keys` (read, admin): List the API keys on the account: name, key prefix, scopes, status and last use. - `list_email_templates` (read, pipeline): List the agency's email templates with their key, subject and body. - `reassign_record` (write, admin): Move ownership of clients, jobs, opportunities, candidates, applications, placements, specs or BD targets to another consultant. - `refresh_company_intelligence` (write, clients): Queue a fresh deep-enrich + seven-pass synthesis run for the account. - `resolve_identity_review` (write, pipeline): Decide an identity match Lovelio was not sure about. - `resolve_occupation_review` (write, pipeline): Decide the occupation behind a job title Lovelio could not place on its own. - `set_quota_target` (write, admin): Set (or clear with null) the billings target for the agency, a team or a consultant in a quota period. - `update_brand_voice` (write, admin): Set the agency's brand voice prompt: the tone and phrasing Lovelio uses in agency-authored copy such as candidate emails and social posts. - `update_workflow_rules` (write, admin): Change the agency's workflow rules in two steps. ### Activities (`activities:read`, `activities:write`) - `add_note` (write, core): Add a note to any record (job, job ad, candidate, application, interview, client, placement). - `list_activities` (read, core): List recent activity and audit events. - `log_call` (write, core): Record a phone call with a candidate or a client contact (never a bare company: pass client_contact_id and the client resolves from it). ### Analytics (`analytics:read`) - `get_analytics_dashboard` (read, analytics): The agency's headline numbers: open jobs, active candidates, submissions, interviews and placements for the current period, as the in-app dashboard shows them. - `get_analytics_metrics` (read, analytics): Recruiting metrics over a trailing window in days: time to submit, time to place, conversion between stages, and volumes. - `get_analytics_pipeline` (read, analytics): Pipeline counts by stage over a trailing window in days, for the whole agency or one job. ### Applications (`applications:read`, `applications:write`) - `bulk_reject` (write, pipeline): Reject several applications in one go, with one reason for all. - `complete_assessment` (write, pipeline): Fill in the assessment stages the arrival cascade skipped (gated Client Fit, deferred summary) for a candidate on a job. - `confirm_phone_screen_draft` (write, pipeline): Log the phone screen: adds the notes to the timeline, then advance or hold moves an application a human has marked Yes to Screen, reject parks a pre-client candidate at No, and no_show leaves the stage alone. - `create_application` (write, core): Attach an existing candidate (or several) to a job. - `get_application` (read, core): Get full details of an application including AI assessment scores, criteria breakdown, and recommendation. - `get_phone_screen_draft` (read, pipeline): Read a phone screen draft and its remaining gaps. - `list_applications` (read, core): List job applications. - `list_review_queue` (read, pipeline): List the review queue: things Lovelio flagged for a human to look at (stalled candidates, reference red flags, unanswered client questions, interviews due an outcome, and so on), with priority and whether each is resolved. - `log_offer` (write, pipeline): Record that the client has made an offer to the candidate and move the application to the Offer stage. - `move_stage` (write, core): Move an application to any canonical pipeline stage, forwards or backwards. - `prepare_phone_screen` (write, pipeline): Start a phone screen draft for an application. - `reassess_application` (write, pipeline): Queue a fresh candidate assessment for an application after its candidate, job requirements or Client DNA changed. - `record_offer_outcome` (write, pipeline): Record what happened to the offer that is out on an application: accepted (stays at Offer - log the placement next), declined (declined_by candidate moves it to Withdrew, client to No; no email goes to the candidate), or countered (records the candidate request separately from the client terms, stays at Offer). - `reject_candidate` (write, core): Reject an application (moves the application to the rejected stage). - `resolve_review_item` (write, pipeline): Resolve one review queue item, reopen it, change its priority, or snooze it until a date. - `update_application` (write, pipeline): Change the source or owner on an application (not the stage: use move_stage; not notes: use add_note). - `update_phone_screen_draft` (write, pipeline): Set the outcome, notes, call time or duration on a phone screen draft. - `withdraw_application` (write, pipeline): Mark an application as withdrawn (candidate-initiated drop-out). ### Recorded calls (`calls:read`, `calls:write`) - `book_call` (write, calls): Book a video call with a candidate or a client contact on the user's own calendar, now or later. - `discard_call` (write, calls): The other person did not agree to the call being recorded: delete the call with its recording, transcript, write-up, clips and timeline entry. - `do_call_action` (write, calls): 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). - `finish_call_upload` (write, calls): Tell Lovelio the recording from start_call_upload has finished uploading. - `get_call` (read, calls): Get a recorded call: who spoke and for how long, the transcript line by line with times, the write-up (summary, strengths, watch-outs, salary, notice, work rights) and a short-lived link to the recording. - `link_call_to_person` (write, calls): Link a phone call that matched nobody by number (or matched two people) to the candidate or client contact on it. - `list_calls` (read, calls): List recorded calls. - `make_call_clip` (write, calls): Keep a stretch of a call transcript as a clip: lines start_seq to end_seq (inclusive, at most 40, seq from get_call). - `name_call_speaker` (write, calls): Say who a voice on a call transcript is ("Speaker 1 is Sam"). - `remove_call_clip` (write, calls): Remove a clip from a call. - `sign_call_upload_parts` (write, calls): Signed URLs for parts of a recording started with parts: true. - `start_call_upload` (write, calls): 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. ### Candidates (`candidates:read`, `candidates:write`) - `add_candidate_import_files` (write, candidates): Get signed upload slots for original CV files. - `add_referee` (write, forms): Add a referee to an application by hand (name and email, optionally relationship and phone). - `add_web_candidate` (write, candidates): Add a person from search_web_candidates to the job. - `add_web_candidate_to_database` (write, candidates): Add a person from search_web_candidates to the database. - `add_web_candidate_to_pool` (write, candidates): Add a person from search_web_candidates to a talent pool instead of the job. - `add_web_candidates` (write, candidates): Add up to 25 people from search_web_candidates to the database in one call. - `bulk_add_to_talent_pool` (write, talent_pools): Add several candidates to a talent pool at once. - `confirm_candidate_draft` (write, candidates): Create the candidate from the draft. - `create_candidate` (write, core): Create a new candidate profile. - `create_candidate_import` (write, candidates): Start a bulk CV import. - `delete_candidate` (write, candidates): Soft-delete a candidate (not GDPR hard delete). - `draft_contractor_check_ins` (write, placements): Draft one ask for everyone on the check-in list who can be reached (up to 50): "Are you free from ?" for contracts finishing soon, a "How is it going?" check-in for the quiet ones. - `draft_extension_asks` (write, placements): Draft the extension asks: "Keep past ?" 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). - `draft_job_availability_asks` (write, placements): Draft "Are you free from ?" 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. - `evaluate_candidate_evidence` (write, candidates): Check requirements across a selection, talent pool, job applicants, import, full search or the candidate database. - `extract_candidate_preferences` (write, candidates): Read the candidate's recent call notes and timeline notes and propose a preferences patch (preview first; { apply: true, patch } writes the confirmed proposal). - `finalize_candidate_import` (write, candidates): Confirm uploaded CV files and close the upload phase. - `find_candidate_duplicates` (read, candidates): Find candidates that look like the same person (same name with the same phone, LinkedIn or employer, or the same phone or LinkedIn alone), as pairs to review and merge. - `find_contact_details` (write, candidates): Look up contact details for up to 100 people already in the database. - `find_free_for_job` (read, candidates): Who is free for a contract job: everyone who meets its requirements and is free by its start date, best fit first, each with who confirmed the free date and when. - `get_candidate` (read, core): Get full profile of a specific candidate including contact details, skills, and resume data. - `get_candidate_draft` (read, candidates): Read a candidate draft: the extracted fields, parse status and remaining gaps. - `get_candidate_import` (read, candidates): Get import progress, failures and the final report. - `get_contractor_page_link` (write, placements): A fresh link to a contractor's own page, for a text or a chat. - `get_evidence_evaluation` (read, candidates): Read progress and original evidence. - `get_evidence_pack` (read, candidates): Read a compact evidence pack for submission, interview or comparison. - `list_candidate_papers` (read, placements): List the documents on file for a candidate: right to work, police checks, licences, insurance, each with the day it stops counting. - `list_candidates` (read, core): List candidates in your Lovelio account. - `list_outreach` (read, candidates): List outreach messages sent to candidates over email, LinkedIn or WhatsApp, with status (draft, sent, replied, no_response). - `list_referees` (read, forms): List the referees on file for a candidate, whether the agency added them or the candidate supplied them. - `match_candidates_to_job` (read, core): Search the whole candidate database for the best matches to a job, ranked with a short why-them line per candidate. - `merge_candidates` (write, candidates): Merge duplicate records of one person into a primary record. - `prepare_candidate_from_cv` (write, candidates): Parse a CV into a candidate draft. - `prepare_evidence_pack` (write, candidates): Prepare reusable source-grounded evidence for a submission, interview or comparison. - `record_whatsapp_consent` (write, candidates): Record that a candidate agreed to get WhatsApp messages from the agency (agreed true), or no longer does (agreed false). - `save_paper` (write, placements): Record a document the agency has checked for a candidate: right to work, a police check, a licence, insurance. - `search_candidates` (read, core): Search candidates by skills, experience, or qualifications using the shared ranked search. - `send_availability_asks` (write, placements): 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). - `send_extension_asks` (write, placements): 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). - `update_candidate` (write, core): Update a candidate profile. - `update_candidate_draft` (write, candidates): Fill or correct fields on a candidate draft before confirming. - `update_candidate_preferences` (write, candidates): Update what a candidate wants next: preferred roles, seniority, work types, relocation, availability, preferred locations, salary expectation, notice period and work rights. - `update_candidate_tags` (write, candidates): Add or remove tags on a candidate without touching the rest (pass add and/or remove), or replace the whole list with tags. ### Clients (`clients:read`, `clients:write`) - `add_client_contact` (write, core): Add a contact (hiring manager, HR, finance) to a client. - `add_client_dna_note` (write, clients): Add a note to a client's DNA - anything learned from a meeting, call, or feedback (what they value, how they interview, dealbreakers). - `add_client_recruiter` (write, clients): Add a teammate to a client's recruiter list. - `add_found_client` (write, clients): Add a company from find_new_clients as a client, with the people you pick from find_client_people as its contacts. - `create_client` (write, core): Create a client (a company the agency recruits for). - `create_client_site` (write, clients): Add a work site (an address) to a client, for contract placements and job locations. - `delete_client` (write, clients): Delete a client record. - `delete_client_contact` (write, clients): Remove a contact from a client. - `find_client_duplicates` (read, clients): Find clients that look like the same company, as pairs. - `find_client_people` (write, clients): The people worth calling at a company from find_new_clients, grouped into Leadership, Hiring managers and People and talent, most senior first. - `find_new_clients` (write, clients): Find companies the agency could win as clients, from the company database. - `get_careers_float` (read, clients): Get the float drafted for one new careers ad: who fits, who is picked, the anonymous profiles, the contact and the email. - `get_client` (read, core): Get full detail of one client: website, industry, locations, enrichment and Client DNA status, and notes. - `get_client_dna` (read, clients): A client's hiring DNA: how they hire, what they value, deal breakers and the notes consultants have added. - `get_job_lead` (read, clients): Get one watched company: each new ad with the people in your database who fit it, ads outside the patch, and every other open job. - `list_client_contacts` (read, clients): List a client's contacts: name, title, email, phone, who they report to and which one is primary. - `list_client_sites` (read, clients): List a client's sites: the offices and locations jobs can be based at. - `list_clients` (read, core): List the clients in your Lovelio account - the companies the agency recruits for. - `list_job_leads` (read, clients): List the companies a recruiter watches on the Opportunities page, most new jobs first: new jobs from their careers pages, how many people in your database fit, and where each float stands. - `list_key_movements` (read, clients): List open key movements: people you know who changed jobs or titles, past placements on the move, and people you placed or submitted applying again. - `merge_clients` (write, clients): Merge duplicate records of one client company into a primary record. - `promote_client_contact` (write, clients): Turn a "works here" person - someone whose own record says they work at this client - into a contact the agency deals with. - `remove_client_recruiter` (write, clients): Remove a teammate from a client's recruiter list. - `remove_client_site` (write, clients): Remove a work site from a client. - `set_client_fee_terms` (write, clients): Set a client's fee schedule: currency, fee basis (package or base), slab tiers (each band's percent applies to the whole salary), minimum fee, contract margin, guarantee days and remedy, payment terms. - `update_client` (write, clients): Update fields on a client (name, website, company phone, industry, description, locations, address, notes). - `update_client_contact` (write, clients): Update a contact on a client (name, email, phone, title, notes, primary, reports-to). ### Documents (`documents:read`, `documents:write`) - `delete_document` (write, candidates): Delete an uploaded document. - `get_document` (read, candidates): Get one document record: file name, content type, size, which record it belongs to and who added it. - `get_document_download_url` (read, candidates): Get a short-lived signed URL to download one document. - `list_documents` (read, candidates): List the documents attached to one record (a candidate, application, client, job or placement): CVs, cover letters, contracts and uploads, with file name, type and when each was added. - `set_candidate_cv` (write, candidates): Make one of the candidate's uploaded documents their current CV (the file the profile points at and the one that is parsed). - `upload_document` (write, candidates): Attach a file to a record (candidate, client, contact, job, application, placement and so on). ### Comms (`emails:read`, `emails:write`) - `bulk_send_email` (write, pipeline): Send the same email to several candidates now. - `cancel_scheduled_email` (write, pipeline): Cancel a scheduled email before it sends. - `confirm_email_draft` (write, pipeline): Send the drafted email now, or schedule it if the draft has a schedule_at. - `email_client_contact` (write, clients): Send an email to a contact at a client now. - `get_email_draft` (read, pipeline): Read the current state of an email draft: subject, body, schedule and any gaps left before it can be sent. - `get_scheduled_email` (read, pipeline): Get one scheduled email: recipient, subject, body, send time and status. - `list_scheduled_emails` (read, pipeline): List emails queued to send later, with status, recipient candidate and send time. - `prepare_compose_email` (write, pipeline): Draft an email to a candidate. - `revise_email_draft` (write, pipeline): Rewrite an email draft from a plain-English instruction, for example "warmer tone, mention the start date". - `schedule_email` (write, pipeline): Schedule an email to a candidate for a future time. - `send_email` (write, core): Send an email to a candidate immediately. - `update_email_draft` (write, pipeline): Set fields on an email draft directly (subject, body, schedule). ### Forms (`forms:read`, `forms:write`) - `add_form_question` (write, forms): Add a question to a reusable form template. - `create_form` (write, forms): Create a reusable form template. - `create_reference_instance` (write, forms): Prepare a reference questionnaire for a phone call or later email delivery. - `delete_form` (write, forms): Delete a form template after explicit user approval. - `delete_form_question` (write, forms): Delete a template question after explicit user approval. - `get_form` (read, forms): Get one form template with its questions. - `get_form_instance` (read, forms): One form instance in full: type, status, who it went to and every timestamp from sent to completed. - `list_form_instances` (read, forms): List screening forms, reference questionnaires and interview forms that have been sent or completed, newest first. - `list_forms` (read, forms): List the agency's form templates (screening, reference and interview forms) with their question counts. - `prepare_screening_form` (write, forms): Load or generate the phone screen question set for an application. - `request_referee_details` (write, forms): Email the candidate a link to supply their referees. - `review_reference` (write, forms): Record the consultant's verdict on a completed reference: clear, or concern with a note. - `send_form` (write, forms): Send any form template to a candidate or a client contact, optionally tied to an application, interview or job. - `send_form_instance` (write, forms): Email a prepared reference form instance to its recipient. - `send_referee_questionnaires` (write, forms): Send the reference questionnaire to every referee on an application who has not had it yet, or to the referee ids given. - `send_reference_request` (write, forms): Send one referee the reference questionnaire for an application. - `send_references_to_client` (write, forms): Email completed references for an application to the client contact. - `send_screening_form` (write, forms): Create a screening form for an application and email it to the candidate to fill in. - `submit_form_instance` (write, forms): Save actual respondent answers or complete a phone reference or screening. - `update_form` (write, forms): Update a form template name, description or AI augmentation setting. - `update_form_question` (write, forms): Edit or reorder a form template question. ### Integrations (`integrations:read`) - `get_slack_integration` (read, admin): The Slack connection for this account: whether it is connected, the workspace, and the channel Lovelio posts to. - `list_chat_integration_users` (read, admin): List the people linked to one chat integration and which Lovelio user each maps to. - `list_chat_integrations` (read, admin): List chat integrations (Slack, WhatsApp and similar) connected to the account, with status. ### Interviews (`interviews:read`, `interviews:write`) - `add_interview_link` (write, interviews): Add the meeting link (Teams, Zoom, Meet) to a booked interview, usually a client interview the client is running on their own meeting and sent the link for after the booking. - `cancel_interview` (write, interviews): Cancel a scheduled interview. - `cancel_meeting` (write, interviews): Cancel a previously booked meeting. - `confirm_interview_action_draft` (write, interviews): Apply the reschedule or cancel: updates the interview, the calendar event and emails the candidate if asked. - `confirm_interview_draft` (write, interviews): Book the interview from the draft and put it on the interviewer's connected calendar. - `confirm_interview_form_draft` (write, interviews): Submit the interview form and record the interview outcome from it. - `confirm_scorecard_draft` (write, interviews): Submit the scorecard. - `create_reminder` (write, interviews): Put a reminder in the diary at a specific time, optionally linked to a candidate, job or application. - `get_calendar_event` (read, interviews): Get one calendar event with its time, type, attendees and the record it belongs to. - `get_interview` (read, interviews): Get full details of an interview including feedback, notes, and outcome. - `get_interview_action_draft` (read, interviews): Read a reschedule or cancel draft and its remaining gaps. - `get_interview_context` (read, interviews): Everything an interviewer needs before an interview: the candidate, the job, the interview plan and questions, earlier scorecards and notes. - `get_interview_draft` (read, interviews): Read an interview draft: the fields so far, the predicted values and the remaining gaps. - `get_interview_form_draft` (read, interviews): Read an interview form: sections with scores and notes, the recommendation, feedback and the remaining gaps. - `get_scorecard_draft` (read, interviews): Read a scorecard draft: scores so far, recommendation, feedback and the remaining gaps. - `list_calendar_events` (read, interviews): List calendar events (interviews, phone screens, reminders, deadlines, meetings) in a date window. - `list_interviews` (read, core): List scheduled interviews. - `prepare_cancel_interview` (write, interviews): Start a cancel draft for a booked interview. - `prepare_interview_form` (write, interviews): Generate the AI interview form for an interview, or return the existing one. - `prepare_reschedule_interview` (write, interviews): Start a reschedule draft for a booked interview. - `prepare_schedule_interview` (write, interviews): Start an interview draft for an application. - `prepare_submit_scorecard` (write, interviews): Start a scorecard draft for an interview. - `propose_interview_slots` (read, interviews): 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). - `request_interview` (write, interviews): Book an interview, two ways. - `reschedule_interview` (write, interviews): Reschedule an interview to a new time. - `reschedule_meeting` (write, interviews): Move a previously booked meeting to a new time. - `schedule_call` (write, interviews): Book a phone call in the diary (with a candidate, or internal). - `schedule_interview` (write, core): Schedule an interview for an application. - `schedule_meeting` (write, interviews): Schedule a meeting (generic calendar event). - `send_interview_followup` (write, interviews): 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). - `submit_scorecard` (write, interviews): Submit an interview scorecard: per-criterion scores, an overall recommendation, and optional notes. - `update_interview_action_draft` (write, interviews): Change the new time, reason or notify flag on a reschedule or cancel draft. - `update_interview_draft` (write, interviews): Fill or change fields on an interview draft before confirming. - `update_interview_form_draft` (write, interviews): Score one section (section_id plus section_score 1 to 5 and notes), or set the overall recommendation and feedback on an interview form. - `update_interview_outcome` (write, interviews): Record the outcome (passed / failed / no_show / cancelled) and optional feedback for an interview. - `update_scorecard_draft` (write, interviews): Score criteria on a scorecard draft. ### Jobs (`jobs:read`, `jobs:write`) - `check_talent_pools` (write, talent_pools): Check a live job against the talent pools once more. - `close_job` (write, jobs): Close a job. - `confirm_job_draft` (write, jobs): Promote a staged draft from create_job_from_description into a real job. - `convert_spec` (write, clients): The client wants a specced candidate: create the job at that client and add the candidate at the submitted stage in one step. - `create_distribution_rule` (write, jobs): Create a distribution rule: jobs matching the filter post automatically to the named boards when published. - `create_job` (write, core): Create a new job requisition. - `create_job_ad` (write, jobs): Create a new public job ad for a role. - `create_job_from_description` (write, jobs): Turn a plain-language description of a role ("senior backend engineer in London, 120k") into a drafted job spec. - `create_job_opportunity` (write, clients): Add a job opportunity. - `delete_job` (write, jobs): Soft-delete a job that has no job ads or applications yet. - `draft_job_from_call` (write, calls): Turn the role a client briefed on a call into a job draft, client and contact already set. - `get_job` (read, core): Get full details of a specific job including description, assessment criteria, interview questions, and pipeline stats. - `get_job_ad` (read, jobs): Fetch the most recent published job ad for a job. - `get_job_ad_by_id` (read, jobs): Get one job ad by its own id: the copy, status, publish dates and the job it belongs to. - `get_job_draft` (read, jobs): Read the current state of an in-progress job draft. - `get_job_opportunity` (read, clients): Get one job opportunity in full: stage, client, contact, salary, next contact, the reason to call, any suggested stage move with its evidence, and the latest timeline. - `get_job_ranking` (read, jobs): Stack-rank every interviewed candidate on a job by aggregate scorecard score (highest first). - `get_job_share_bundle` (read, jobs): Get the ready-to-share content bundle for a job: pre-composed X post, LinkedIn post, careers URL, image URL, and a short email summary. - `get_job_summary` (read, jobs): Get an AI-generated recruitment summary for a job - pipeline health, top candidates, and recommended actions. - `get_social_draft` (read, jobs): Fetch the auto-generated LinkedIn + X social post drafts for a job, plus the OG image URL used for unfurl previews. - `list_distribution_boards` (read, jobs): List the job boards Lovelio can post ads to, with whether each is connected for this account. - `list_distribution_postings` (read, jobs): List where job ads are posted: one row per ad per board, with status and the live URL. - `list_distribution_rules` (read, jobs): List the job-board distribution rules: which jobs post automatically to which boards. - `list_job_ads` (read, jobs): List job advertisements. - `list_job_opportunities` (read, clients): List job opportunities. - `list_jobs` (read, core): List jobs in your Lovelio account. - `log_job_opportunity_contact` (write, clients): Record that the consultant called, emailed or met the contact about a job opportunity. - `plan_linkedin_sourcing` (write, jobs): Build four LinkedIn sourcing searches from a job's full structured requirements, prior placement signals and search feedback: direct, adjacent, feeder-company and hidden-gem lanes. - `reopen_job` (write, jobs): Reopen a closed or filled job (sets status=active). - `revise_job_draft` (write, jobs): Apply a natural-language instruction ("make it punchier", "move to Sydney and bump salary to AUD 180k", "more formal tone") to a staged draft. - `rewrite_job_ad` (write, jobs): AI-rewrite an existing job ad with a natural-language instruction. - `search_web_candidates` (write, core): Find people on the web who are not in the agency yet. - `set_job_owners` (write, jobs): Set who owns a job. - `skip_job_draft_gap` (write, jobs): Record that a job draft gap is deliberately left blank so it stops being reported. - `update_distribution_rule` (write, jobs): Change a distribution rule: rename it, change its boards or filter, or pause and resume it with active. - `update_job` (write, core): Update fields on an existing job (title, location, compensation, status, team, hiring manager). - `update_job_ad` (write, jobs): Edit a job ad (title / description / published flag). - `update_job_draft` (write, jobs): Fill one or more gaps on an in-progress job draft - including the mandatory client_id (cli_..., from list_clients / create_client). - `update_job_opportunity` (write, clients): Edit a job opportunity or move its stage: new, talking, keen, terms (terms sent to the client), lost or parked. - `update_social_draft` (write, jobs): Edit a job's LinkedIn / X post text. ### Marketplace (`marketplace:read`, `marketplace:write`) - `get_marketplace_deal` (read, marketplace): One marketplace deal in full: counterpart agency, split, and the linked application and placement once they exist. - `get_marketplace_intro` (read, marketplace): One marketplace intro in full, including the anonymous candidate profile until the intro is accepted. - `get_marketplace_listing` (read, marketplace): One marketplace listing in full: pitch, chips, salary, fee split and expiry. - `list_marketplace_deals` (read, marketplace): List marketplace deals (accepted intros) with their status and your share of the fee. - `list_marketplace_intros` (read, marketplace): List marketplace intros: submissions of your candidates to other agencies' jobs, requests for other agencies' candidates, and the ones sent to you. - `list_marketplace_listings` (read, marketplace): Browse marketplace listings: jobs other agencies want candidates for and candidates other agencies will share, on a split fee. - `request_marketplace_candidate` (write, marketplace): Ask the agency behind a marketplace candidate listing for an intro. - `respond_to_marketplace_intro` (write, marketplace): Respond to a marketplace intro: check whether you already know the candidate, accept (reveals both sides and opens a deal), decline with a reason, or withdraw one you sent. - `send_marketplace_listing` (write, marketplace): Email one of your marketplace listings to a recruiter at another agency who is not on Lovelio yet, with a link they can respond from. - `share_candidate_to_marketplace` (write, marketplace): List one of your candidates on the marketplace, anonymously, so other agencies can request an intro on a split fee. - `share_job_to_marketplace` (write, marketplace): List one of your jobs on the marketplace so other agencies can submit candidates on a split fee. - `submit_to_marketplace_job` (write, marketplace): Submit one of your candidates, anonymously, to another agency's marketplace job. - `update_marketplace_deal` (write, marketplace): Move a marketplace deal along: add the shared candidate to one of your jobs' pipelines, mark your side of the fee paid or received, or close the deal with a reason. - `update_marketplace_listing` (write, marketplace): Pause, resume, withdraw, renew or mark filled one of your marketplace listings. ### Placements (`placements:read`, `placements:write`) - `create_placement` (write, core): Record a placement (the win): a candidate placed with a client for a fee. - `draft_availability_check` (write, placements): 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. - `get_contractor_report` (read, placements): The contract forecast: live contracts with GP week by week for the next 13 weeks on the agency's standard week, less the public holidays where each contractor works, added up for the agency, each team and each consultant, plus the contractors with documents to chase. - `get_placement` (read, placements): Get one placement in full: candidate, client, job, salary, fee, start date, and guarantee. - `get_placement_papers` (read, placements): Check a contract's documents: what it needs (from the job, the pay route and the country's rules) and whether each is current, missing, expired, ending before the contract does, or marked not needed. - `list_contractor_check_ins` (read, placements): The contractors to check in with this week: contracts finishing within 8 weeks with no confirmed free date, and contractors not heard from in 30 days. - `list_extension_asks` (read, placements): Contracts ending within 8 weeks with no plan and nobody asked yet about extending, each with the client contact who would be asked. - `list_placements` (read, core): List placements - candidates placed with a client for a fee. - `mark_placement_status` (write, placements): Update a placement through its guarantee lifecycle: pending_start, started, fell_off (during guarantee), or completed. - `send_placement_email` (write, placements): Send a placement lifecycle email: recipient "candidate" for the start-day good-luck note, recipient "client" for the guarantee-end check-in. - `send_placement_to_xero` (write, placements): Make or update a perm placement's DRAFT invoice in the agency's Xero, for the fee on the placement. - `set_candidate_contracting_profile` (write, placements): Save a candidate's contracting details for their country so contract placements pick them up. - `set_placement_credits` (write, placements): Replace who gets credit for a placement and how the fee is split between them. - `set_placement_payroll_reference` (write, placements): Pick the payroll partner's Position and Rate template for a contract placement, using the partner's own ids from the lists they pushed. - `set_placement_timesheet_approvers` (write, placements): Set the client contacts who approve timesheets on a contract placement. - `update_placement` (write, placements): Change the terms on an existing placement: salary and package, fee, dates, contract rates and end date, the contract plan (what happens on the end date), the next contact date, expected GP, work site (work_site_id, null to clear), timesheet approvers, the billing fields (hiring manager, invoice contact, PO number, invoice notes), contractor details, or credits. - `waive_paper` (write, placements): Mark one document not needed for one contract (waived true), or ask for it again (waived false). ### Quotas (`quotas:read`) - `get_quota_board` (read, analytics): A quota period's board: recognised billings, placement counts and targets for the agency, each team and each consultant, plus any adjustments. - `get_quota_plan` (read, analytics): The agency's quota plan: cadence, currency, when a placement counts, which placement types count, and whether closed periods are locked. - `list_quota_periods` (read, analytics): List quota periods (the quarters, months or years the agency measures billings in), newest first. ### Submissions (`submissions:read`, `submissions:write`) - `answer_spec_question` (write, clients): Reply to a question the client asked from a spec profile page. - `answer_submission_question` (write, clients): Answer a question a client asked about a submitted candidate, or send them any message on that submission. - `chase_spec` (write, clients): Nudge the client contact about a spec they have not responded to. - `chase_submission` (write, clients): Nudge a client contact about a submission they have not responded to. - `create_submission` (write, core): Send a submission of candidates on a job to the job's client contact for review. - `get_spec` (read, clients): Get one spec send: the candidate, the client, the message sent and how the client responded. - `get_submission` (read, clients): Get one submission in full: the client review link, each candidate, and the client verdict, rating, and note per candidate. - `list_specs` (read, clients): List spec sends: candidates floated to a client without a live job, with status (sent, viewed, interested, passed, converted). - `list_submissions` (read, core): List submissions - packs of candidates sent to a client contact for review. - `record_client_verdict` (write, clients): Record what the client said about a submitted candidate when they told you directly instead of using their review link: interview_requested, or rejected with an optional reason, their words, and whether they want more candidates. - `send_spec` (write, clients): Send a spec (a float): pitch one candidate, or up to five in candidates, to a client contact with no open job. - `withdraw_spec` (write, clients): Take back a spec the client still has open (sent, viewed or interested, not yet turned into a job). ### Talent pools (`talent_pools:read`, `talent_pools:write`) - `add_to_talent_pool` (write, talent_pools): Add a candidate to a talent pool. - `ask_pool_member_if_looking` (write, talent_pools): Email a talent pool member the pool's "still looking?" check-in now, as you. - `create_talent_pool` (write, talent_pools): Create a talent pool - a named group for candidates who are a good agency fit. - `delete_talent_pool` (write, talent_pools): Permanently delete a talent pool. - `get_talent_pool` (read, talent_pools): Get one talent pool: name, description and eligibility rule. - `list_talent_pool_members` (read, talent_pools): List the candidates in one talent pool, with when and how each joined. - `list_talent_pools` (read, talent_pools): List talent pools with name, slug and eligibility. - `remove_from_talent_pool` (write, talent_pools): Remove a candidate from a talent pool. - `set_pool_member_interest` (write, talent_pools): Record whether a talent pool member is still looking, when they told you some other way (a call, a text). ### Webhooks (`webhooks:read`, `webhooks:write`) - `create_webhook` (write, admin): Create a webhook subscription. - `delete_webhook` (write, admin): Delete a webhook subscription. - `get_webhook` (read, admin): Get one webhook endpoint: URL, events, status and recent delivery health. - `list_webhook_deliveries` (read, admin): Delivery log for one webhook, newest first: event, status, attempts, last response code and error. - `list_webhook_events` (read, admin): List every event type a webhook can subscribe to, with what each one means. - `list_webhooks` (read, admin): List the webhook subscriptions on this account with their URLs, events and status. - `replay_webhook_delivery` (write, admin): Queue a repeat delivery of an existing event. - `rotate_webhook_secret` (write, admin): Replace a webhook signing secret after operator approval. - `test_webhook` (write, admin): Send a signed test event. - `update_webhook` (write, admin): Change a webhook destination, events or active/paused status. ### Open to every grant - `batch` (write, core): Run up to 100 Lovelio write actions in one call, including every write with no typed tool on this connection. - `describe_action` (read, core): Describe one batch action: what it does, the payload shape and the scope it needs. - `discard_draft` (write, core): Throw away a draft you will not confirm, by its review token (edr_, idr_, iad_, psd_, scd_, cdr_ or jdr_). - `get_job_creation_status` (read, jobs): The job-creation view of get_task: the same task, shown as per-step progress (description, criteria, questions, ad, social). - `get_task` (read, core): Check an async task started by another call (a new job being written, an enrichment, an import, a bulk job): its status, progress and result when done. - `list_actions` (read, core): List Lovelio actions with the payload shape and the scope each needs. - `list_stages` (read, core): List the pipeline stages in order, with the key and label of each. - `resolve_command` (read, pipeline): Resolve an everyday request to a Lovelio page, record or existing process. - `search` (read, core): Search one record type (jobs, candidates, applications or interviews) in plain English, such as "jobs in Sydney" or "applications from last week". ## Draft flows Every `prepare_*` tool stages a draft and returns a `review_token`, the draft so far, and `gaps`, the fields still missing. `get_*_draft` reads it back, `update_*_draft` sets fields (the email flow also has `revise_email_draft` for a plain-English change), and `confirm_*_draft` performs the real write: sends the email, creates the candidate, books the interview, logs the call, submits the scorecard. Confirm refuses with a 409 `draft_has_gaps` error that lists the gaps until every one is filled, so an agent can loop on the error text. Booking an interview can also refuse with `SCHEDULING_CONFLICT`, carrying the clashes and suggested slots; retry with a new `scheduled_at` or `ignore_conflicts: true`. Nothing changes in Lovelio until confirm, and none of these flows moves a stage on the AI's own verdict: a phone screen moves the application only on the outcome the caller sets. ## Sending email Outbound email is off by default on every new account, including agent-created trials. Tools that send email return a clear error until Lovelio enables outbound for your account. This is a safety rail, not a bug; contact hello@lovelio.ai to enable it. ## Rate limits Each underlying V1 request consumes one request against your key's rate limit (60 per minute on trial, 600 per minute on paid). The OAuth endpoints are rate limited per IP. See [error handling](/docs/agents/error-handling) for retry rules. ## Troubleshooting - **Cannot approve access.** Sign in as an admin of the intended workspace. Older connections using coarse read/write grants need one reconnect. - **401 "Invalid or expired access token".** Your refresh token has expired (30 days) or the connection was revoked. Reconnect: your client will open the authorize page again. - **OAuth loops.** Clear the cached Lovelio credentials in your MCP client and reconnect. Local dev builds should point at `http://localhost:3005/api/mcp`. - **"Invalid or expired credential" right after connecting.** You are probably connected to another region's URL - a connection made on one region's domain never works on another. Reconnect with `https://lovelio.ai/api/mcp`. - **Rate limit 429.** Back off and retry after the `Retry-After` interval. ## Tool results and safe retries Check `isError` before treating a tool call as successful. Successful results set `isError: false` and `structuredContent.success: true`. Their existing human-readable `content[].text` stays unchanged. Asynchronous success means the task was accepted; poll its task ID for completion. Failures set `isError: true` and `structuredContent.success: false`. Read `structuredContent.error.code`, not the wording of the text: ```json { "isError": true, "content": [{ "type": "text", "text": "This call needs Write clients (clients:write). Add it to the key or the app's scopes.\nINSUFFICIENT_SCOPE: Resolve the reported problem before trying again." }], "structuredContent": { "success": false, "error": { "code": "INSUFFICIENT_SCOPE", "message": "This call needs Write clients (clients:write). Add it to the key or the app's scopes.", "status": 403, "category": "permission", "retry": "none", "guidance": "Resolve the reported problem before trying again." } } } ``` The API code and message survive unchanged. Failure details retain `field`, `docs`, `request_id`, error `data`, `retry_after`, `operation_id` and `idempotency_key` when available. `status: 0` means no HTTP response arrived. Categories include `permission`, `authentication`, `invalid_input`, `not_found`, `conflict`, `rate_limit`, `transient`, `in_progress`, `uncertain_outcome` and `failure`. Unknown codes remain errors. | `error.retry` | Agent action | |---|---| | `none` | Resolve the permission, input or resource problem first. | | `retry` | Wait for `retry_after`, or use bounded backoff. | | `same_key` | Repeat only the identical operation with the original `idempotency_key`. This asks R1 for the saved result or current claim state. | | `reconcile` | Read the resource to establish the outcome. Do not repeat the write, use a new key, or wait for expiry. | Before a write, save a unique `idempotency_key` in the tool arguments. If omitted, the server creates one for POST requests and includes it in the success or error details. If the MCP response itself disappears and you did not save a key, reconcile first. The server does not retry automatically. PATCH requests and draft streaming do not gain retry protection from this argument. `IDEMPOTENCY_IN_PROGRESS` and `IDEMPOTENCY_UNAVAILABLE` allow only `same_key`. `IDEMPOTENCY_RESULT_STORAGE_FAILED` also allows only `same_key`; the outcome remains uncertain. `IDEMPOTENCY_OUTCOME_UNKNOWN` requires reconciliation. A key mismatch (`IDEMPOTENCY_KEY_REUSED`) never means the changed operation succeeded. Inspect the original operation before choosing the next action. Completed responses last 24 hours; uncertain executions remain reserved beyond expiry. `batch` retains every operation in `structuredContent.operations`, including each result or typed error and its original correlation ID. Any failed operation sets the whole result to `isError: true` (`BATCH_PARTIAL_FAILURE` or `BATCH_FAILED`). The text still starts with the succeeded/failed counts and per-operation lines. Follow each failed operation's retry guidance and retain its own key. Never replay successful operations with new keys. ## Permissions in discovery `tools/list` returns tools whose required permissions fit the current OAuth grant and enabled modules. V1 still enforces each call, including record access and conditional requirements. Discovery cannot grant authorization. An old narrow grant remains narrow if its underlying key gains permissions; reducing or revoking access also affects subsequent calls. Tool descriptions state required permissions. `add_to_talent_pool` requires `talent_pools:write`; omitting `pool_id` also requires `talent_pools:read` for lookup. Supplying an ID avoids that lookup. Batch descriptions derive each action's scope from the existing V1 action declarations; each operation receives its own permission check. A visible batch tool does not authorize every action. Account actions that first resolve the account need `accounts:read` as well as `accounts:write`. Personal MCP OAuth can request `accounts:write`; Connect partner apps cannot. The connected person must also have the required role permission. Person-bound and app-install credentials cannot mint API keys, even with `accounts:write`. Financial fields retain the V1 field-level permission checks. Search currently requires `candidates:read` for every supported entity type, matching the existing API declaration. --- # Sign up a customer Source: https://lovelio.ai/docs/agents/sign-up-a-customer # Sign up a customer Lovelio's signup endpoint is public - no auth, no demo, no sales call. You give it an email. It gives you back an account on a 14-day free trial, no card needed, plus a trial API key that can read immediately; writes unlock when the customer verifies their email. ## Endpoint `POST /api/v1/accounts/signup` **Choose the region before you sign up.** The workspace is created in the region of the domain you call - `us.lovelio.ai` (Americas and rest of world), `eu.lovelio.ai` (UK, Ireland, Europe), or `anz.lovelio.ai` (Australia, New Zealand) - and it lives there permanently, along with the API key you get back. Pick the region where the agency's data should reside, then call signup **once**. Never try several regional hosts: each region is its own database, and a second call on another region is answered with the host where the account already lives (`status: "exists_in_other_region"`, plus `region` and `api_base_url`) and no key. Body: `{ "email": "founder@acme.com", "source": "claude-agent" }` Response (HTTP 202): ```json { "success": true, "data": { "account_id": "acc_01HXXX...", "status": "pending_verification", "trial_api_key": "sk_trial_abc123...", "email_verified": false, "message": "Your 14-day free trial has started, no card needed. Verify your email (check your inbox) to create and change data. Choose a plan at card_url any time.", "trial_ends_at": "2026-10-26T09:00:00.000Z", "trial_status": "active", "card_url": "https://us.lovelio.ai/settings/billing", "region": "us", "api_base_url": "https://us.lovelio.ai/api/v1", "enrichment_task_id": null }, "meta": { "request_id": "req_abc123def456" }, "error": null } ``` The `trial_api_key` is returned **once**. Store it; you cannot retrieve it later. If lost, an account admin can mint a new key via `POST /api/v1/accounts/{id}/api-keys`. ## curl ```bash curl -X POST https://us.lovelio.ai/api/v1/accounts/signup \ -H "Content-Type: application/json" \ -d '{"email": "founder@acme.com", "source": "claude-agent"}' ``` ## JavaScript ```js const res = await fetch('https://us.lovelio.ai/api/v1/accounts/signup', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: 'founder@acme.com', source: 'claude-agent' }), }); const { data } = await res.json(); const apiKey = data.trial_api_key; // Store apiKey. All subsequent calls use: Authorization: Bearer ``` ## Python ```python import requests r = requests.post( 'https://us.lovelio.ai/api/v1/accounts/signup', json={'email': 'founder@acme.com', 'source': 'claude-agent'}, timeout=30, ) r.raise_for_status() api_key = r.json()['data']['trial_api_key'] # Store api_key. Use it as Authorization: Bearer on every subsequent call. ``` ## What happens next 1. A verification email goes to the address. Until the customer clicks it, the trial key can read but not create or change data; clicking it unlocks writes. The trial lasts 14 days (`trial_ends_at`), and so does the trial key. An admin chooses a plan at `card_url` any time. 2. One free trial per work email domain. A domain that has already had one gets `trial_ends_at: null` and `trial_status: "domain_already_used"`, and the key answers 402 until an admin chooses a plan at `card_url`. 3. Lovelio crawls the domain, fetches branding colours + logo, and sets a sensible timezone. 4. An `account.enriched` webhook fires when enrichment finishes (about 10-30 seconds). Subscribe via `POST /api/v1/webhooks` if you want push instead of poll. ## Duplicate handling If the email already has an account, in this region or any other, the endpoint returns HTTP 202 with the existing `account_id` and a message telling the caller to check email for the verification link. It does not return a new API key. When the account lives in another region the response carries `status: "exists_in_other_region"`, `region` and `api_base_url`: use that host from then on. Build your flow so a duplicate signup is a no-op, not an error. If another account in this region already claims the same email domain (e.g. someone at `acme.com` signed up before), the endpoint returns HTTP 409 with `error.code = "CONFLICT"` and a human-readable reason. Bounce the user to that account's admin or pick a different domain. ## Verifying the email programmatically The verification link in the email points to `/auth/verify-email?token=...`. For a fully headless onboarding flow, you cannot read the email on behalf of the user. Two options: - Let the human click the link themselves. The trial key can read in the meantime; writes wait for the click. - Use the invite flow instead: have an existing admin call `POST /api/v1/accounts/{id}/users` to create a member with a known password. That skips email verification entirely but requires you to already be signed in. ## Rate limits The signup endpoint is IP-rate-limited: 3 signups per hour and 5 per day per IP. If you hit 429, wait for the `Retry-After` header and try again. ## Hand this to your agent ``` Sign up a new Lovelio account for founder@acme.com, store the trial API key in an env var called LOVELIO_API_KEY, and print the account_id. ``` --- # Top 10 tasks Source: https://lovelio.ai/docs/agents/top-10-tasks # Top 10 tasks The ten things an agency consultant's agent does 95% of the time, with minimal runnable examples. Every example assumes you have set: ```bash export LOVELIO_API_KEY=sk_trial_... # Your region's app domain (us, eu, or anz.lovelio.ai) - keys only work on # the domain of the region they were created in. Shown in Settings > API keys. export LOVELIO_HOST=https://us.lovelio.ai ``` A note on two headers you will use throughout: - **`Authorization: Bearer $LOVELIO_API_KEY`** on every request. - **`Idempotency-Key`** on every `POST` that writes a record. Send a fresh UUID per logical action (`$(uuidgen)`); retrying with the same key returns the first result instead of creating a duplicate. The API rejects a write `POST` with no key. IDs are typed and prefixed: `cli_` client, `cct_` client contact, `job_` job, `jad_` job ad, `cnd_` candidate, `app_` application, `sub_` submission, `ivw_` interview, `pla_` placement, `tsk_` task, `whk_` webhook. Pass them back exactly as you received them. ## 1. Create a client Every job belongs to a client, so the client comes first. Give a name, or just a website and Lovelio enriches the rest, including Client DNA. ```bash curl -X POST $LOVELIO_HOST/api/v1/clients \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "name": "Northwind Payments", "website": "https://northwind.example", "industry": "Fintech" }' ``` Returns HTTP 201 with the client: ```json { "success": true, "data": { "id": "cli_...", "name": "Northwind Payments", "enrichment_status": "pending", "dna_status": "pending" }, "meta": { "request_id": "req_..." } } ``` Already have the client? Find it by name with `GET /api/v1/clients?search=northwind`. ## 2. Create a job for that client A job cannot exist without a client. Pass the `cli_` id from step 1 (for the agency's own internal hiring, pass the agency self-client's id). The job is created immediately and an async task fills in the spec, assessment criteria, and interview plan. ```bash curl -X POST $LOVELIO_HOST/api/v1/jobs \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "title": "Senior Backend Engineer", "client_id": "cli_...", "location": { "type": "remote", "country": "United Kingdom" }, "employment_type": "full_time", "compensation": { "base_min": 120000, "base_max": 140000, "currency": "GBP" } }' ``` Response (HTTP 202 with a `task_id`): ```json { "success": true, "data": { "task_id": "tsk_...", "job_id": "job_...", "poll_url": "/api/v1/tasks/tsk_..." }, "meta": { "request_id": "req_..." } } ``` The `job_id` is live immediately. Poll `GET /api/v1/tasks/{task_id}` to know when the AI spec is ready, or subscribe to `job.created` webhooks. Prefer natural language? `POST /api/v1/jobs/from-description` takes a plain-English brief (and an optional `client_id`) and streams a draft back over Server-Sent Events; you then confirm it with `POST /api/v1/jobs/from-description/{review_token}/confirm`. The structured `POST /api/v1/jobs` above is the simpler door for an agent. ## 3. Add a candidate and log their application Candidates belong to the agency, not the client. Create the candidate, then attach them to the job as an application. ```bash # a) create the candidate curl -X POST $LOVELIO_HOST/api/v1/candidates \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "name": "Priya Nair", "email": "priya@example.com", "resume_url": "https://example.com/priya-cv.pdf", "skills": ["Go", "Rust", "payments"] }' # -> { "data": { "id": "cnd_...", ... } } # b) log their application to the job curl -X POST $LOVELIO_HOST/api/v1/applications \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "candidate_id": "cnd_...", "job_id": "job_..." }' ``` The application returns HTTP 202 with an `app_` id and an assessment `task_id`. On arrival Lovelio runs automatically, no human action required: - CV text extraction (PDF/DOCX) and a structured AI parse. - An assessment against the job's criteria. - A suggested triage stage. Applications also arrive on their own via the careers page and embed widget. Subscribe to `application.received` and `application.scored` webhooks to observe either path. ## 4. Review the pipeline List applications for a job. Filter by `stage` to pull just the ones you care about. ```bash curl "$LOVELIO_HOST/api/v1/applications?job_id=job_...&stage=yes&limit=20" \ -H "Authorization: Bearer $LOVELIO_API_KEY" ``` Each row carries the candidate's contact details, parsed profile, and the AI `assessment` (with `job_fit_score` and per-criterion scores). Sort by `assessment.job_fit_score` descending to triage fast. The stages are the agency pipeline: `funnel` (where every new candidate lands, awaiting a human Yes, No or Maybe), `maybe`, `yes`, `no` (parked), `screen`, `submitted` (sent to the client), `client_interview`, `references`, `offer`, then the terminal `placed`, `rejected`, `withdrew`. `GET /stages` returns the live list; never hardcode it. Omit `stage` to see everything. ## 5. Move a candidate to a new stage ```bash curl -X POST $LOVELIO_HOST/api/v1/applications/app_.../stage \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "stage": "yes", "source": "api" }' ``` `stage` must be one of the canonical stages listed above. `source` must be one of `slack`, `whatsapp`, `web`, `api`. Response echoes the new state: ```json { "success": true, "data": { "application": { "id": "app_...", "stage": "yes", "stage_changed_at": "2026-07-21T09:30:00Z" } } } ``` Most stage moves happen on their own: sending a submission moves candidates to `submitted`, booking a client interview moves them to `client_interview`, logging an offer moves them to `offer`, and recording a placement moves them to `placed`. Use this endpoint for the manual moves (marking Yes, parking, rejecting). Add an `override_reason` if you are forcing a non-standard jump. ## 6. Send a submission to the client The core agency move: send a submission of candidates to the client contact as a tokenised review link. This drafts a per-candidate summary (edit `summary` to override), emails the contact, and moves each candidate to `submitted`. ```bash curl -X POST $LOVELIO_HOST/api/v1/submissions \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "job_id": "job_...", "client_contact_id": "cct_...", "title": "Three for the Backend Engineer role", "items": [ { "application_id": "app_...", "summary": "Led the payments rewrite at Northwind." }, { "application_id": "app_..." } ] }' ``` Returns HTTP 201 with the `sub_` id, an `email_sent` flag, and a client-facing `url`. Anyone with that link can request an interview, pass with a reason, or ask a question; each response updates the pipeline and notifies you. Track responses with `GET /api/v1/submissions?job_id=job_...`. ## 7. Schedule a client interview When the client asks to meet a candidate, book it. Set `flavour: "client"` so the application moves to `client_interview` automatically; leave it `internal` for your own screens. ```bash curl -X POST $LOVELIO_HOST/api/v1/interviews \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "application_id": "app_...", "flavour": "client", "format": "video", "scheduled_at": "2026-08-03T14:00:00Z", "duration_minutes": 45, "interviewer_ids": ["usr_..."], "submission_id": "sub_..." }' ``` Returns HTTP 201 with the `ivw_` id. A video interview gets a Teams or Meet link from the organiser's calendar when none is pasted, and the invitation email fires when a `scheduled_at` is set. After the interview, drop feedback with `POST /api/v1/interviews/{id}/scorecard` (body: `recommendation` one of `strong_hire`/`hire`/`no_hire`/`strong_no_hire`, plus optional `scores` and `notes`). ## 8. Log an offer Offers are the client's to make and sign in the agency model, so there is no offer-letter endpoint. `log_offer` is a lightweight marker that records the client made an offer and moves the application to the `offer` stage. It has no dedicated route, so run it through the batch endpoint (no top-level idempotency header; each op carries its own key): ```bash curl -X POST $LOVELIO_HOST/api/v1/batch \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "operations": [ { "op": "log_offer", "idempotency_key": "'"$(uuidgen)"'", "payload": { "application_id": "app_...", "offered_salary": 135000, "offered_currency": "GBP" } } ] }' ``` Returns HTTP 200 with a per-op status array. When the offer is accepted, record it as a placement (next). ## 9. Record the placement (the win) The placement is the record of the win: candidate, client, job, salary, fee, start date, and the guarantee. Creating one against an application moves it to `placed`. The fee percent and guarantee default off the client's standard terms when you omit them. ```bash curl -X POST $LOVELIO_HOST/api/v1/placements \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "application_id": "app_...", "salary": 135000, "currency": "GBP", "fee_type": "percent", "fee_percent": 20, "start_date": "2026-09-01" }' ``` Returns HTTP 201 with the `pla_` id and the computed `fee.amount`. If you do not have an application to anchor to, pass `candidate_id` + `client_id` instead. Review the trophy cabinet with `GET /api/v1/placements`. ## 10. Pull the numbers Three read-only analytics endpoints, no charts, just numbers an agent can forward to Slack or paste into a summary. ```bash # Headline KPIs over a window (default 30 days) curl "$LOVELIO_HOST/api/v1/analytics/metrics?days=7" \ -H "Authorization: Bearer $LOVELIO_API_KEY" ``` `metrics` returns `applications_received`, `placements_made`, `interviews_conducted`, `offers_extended`, `offer_acceptance_rate`, `interview_to_hire_ratio`, and a `source_breakdown`. For the funnel with stage-by-stage conversion use `GET /api/v1/analytics/pipeline` (optionally `?job_id=job_...`); for a live snapshot of active jobs, upcoming interviews, and recent placements use `GET /api/v1/analytics/dashboard`. ## Hand this to your agent Paste into an agent session with Lovelio MCP connected or the API key in env: ``` Create a client called Northwind Payments (website northwind.example), then create a Senior Backend Engineer job for them: remote in the UK, GBP 120-140k. Add candidate Priya Nair (priya@example.com) and log her application. Once her assessment is back, mark her Yes, and if she scores well, submit her plus the top two others to the client contact as a submission. Post a summary to Slack when done. ``` --- # Error handling Source: https://lovelio.ai/docs/agents/error-handling # Error handling Every Lovelio API response - success or failure - carries a consistent envelope. ## Success ```json { "success": true, "data": { ... }, "meta": { "request_id": "req_abc123def456" }, "error": null } ``` ## Failure ```json { "success": false, "data": null, "meta": { "request_id": "req_abc123def456" }, "error": { "code": "VALIDATION_ERROR", "message": "email is required.", "field": "email", "docs": "https://lovelio.ai/docs/agents/error-handling", "request_id": "req_abc123def456" } } ``` `error.field` is present only when a specific field is at fault. `error.docs` always points at the docs for that code. ## Always log request_id Every response includes `meta.request_id` (and repeats it on `error.request_id` for failures). Log it on every API call you make. If you file a support ticket or need the team to trace an issue, the request ID is the fastest path from your log line to our traces. HTTP header form: `X-Request-ID`. Both are set on every response. ## Error codes Branch on `error.code`, never on the message text. | `error.code` | HTTP | When it happens | What to do | |---|---|---|---| | `VALIDATION_ERROR` | 422 | Missing or malformed field | Fix and retry. `error.field` points at the offender. | | `AUTHENTICATION_REQUIRED` | 401 | Missing or invalid API key | Check the `Authorization: Bearer` header. Keys are regional - the message says when a valid key hit the wrong region's domain. | | `INSUFFICIENT_SCOPE` | 403 | API key scope does not cover this action | Use a key with the named scope or narrow the request. | | `ROUTE_NOT_FOUND` | 404 | Unknown REST path | Check the path in the API reference. | | `METHOD_NOT_ALLOWED` | 405 | This REST path does not support that method | Use a method from the `Allow` header. | | `RESOURCE_NOT_FOUND` | 404 | Resource does not exist, or belongs to another account | The ID is wrong or not yours. Do not retry. | | `CONFLICT` | 409 | Duplicate resource or state mismatch | Handle as a no-op or pick a different identifier. | | `IDEMPOTENCY_KEY_REUSED` | 409 | Same key, different request or authorization context | Reconcile the original operation before using a new key. | | `IDEMPOTENCY_IN_PROGRESS` | 409 | An identical request owns the key and is still running | Wait for `Retry-After`, then retry the identical request with the same key. | | `IDEMPOTENCY_OUTCOME_UNKNOWN` | 409 | A write may have completed without a saved response | Do not use a new key. Reconcile the target resource with a read, then contact support with `X-Idempotency-Operation-ID` if needed. | | `IDEMPOTENCY_UNAVAILABLE` | 503 | Lovelio could not confirm the claim; no handler started | Wait for `Retry-After`, then retry the identical request with the same key. | | `IDEMPOTENCY_RESULT_STORAGE_FAILED` | 503 | The handler finished, but Lovelio could not confirm response storage | Retry only with the same key. Never create a new key until the result is known. | | `MISSING_IDEMPOTENCY_KEY` | 400 | POST to an idempotent endpoint without the header | Add an `Idempotency-Key` header. | | `RATE_LIMIT_EXCEEDED` | 429 | Too many requests this minute | Read `Retry-After`, back off, retry. | | `INTERNAL_ERROR` | 500 | Our fault | Retry with backoff. If persistent, file with the `request_id`. | Codes you will meet on specific paths: `TRIAL_EXPIRED` (403), `EMAIL_NOT_VERIFIED` (403, trial keys must verify email before writes), `PREMIUM_REQUIRED` (402), `QUOTA_EXCEEDED` (403, over a volume allowance - talk to us rather than wait), `PAYLOAD_TOO_LARGE` (413), `ACCOUNT_NOT_FOUND` (404), `MARKETPLACE_DISABLED` (403), `ACCOUNT_SUSPENDED` (403). Two of those are about the agency, not your credential, and no retry or reconnect will clear either. `PREMIUM_REQUIRED` on authentication means the agency has no active plan: the account is closed to its own staff as well, and an admin turns it back on by signing in at lovelio.ai. `ACCOUNT_SUSPENDED` means Lovelio has made the agency dark. Stop calling and tell whoever owns the integration. ## Idempotency POST endpoints that create or send things require an `Idempotency-Key` header. Lovelio atomically claims the account-scoped key before the handler starts. Use one UUID per logical operation. An identical completed retry under the same credential and permissions within 24 hours returns the saved response with `X-Idempotency-Replayed: true`. ```bash curl -X POST $LOVELIO_HOST/api/v1/applications/app_01HXXX/stage \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \ -H "Content-Type: application/json" \ -d '{ "stage": "yes", "reason": "Strong screen - moving forward" }' ``` Rules: - Keys apply to POST only. PATCH and DELETE ignore the header. - Completed results and unstarted claims expire after 24 hours. An interrupted or uncertain execution remains reserved beyond that window; expiry never makes an uncertain write safe to repeat. - A key is bound to the method, path, query and logical content. JSON object order does not matter. - Multipart content includes every field, record id, filename, content type and file byte hash. Random boundary values do not matter. - A changed request returns 409 `IDEMPOTENCY_KEY_REUSED`. It never receives the first request's response. - Concurrent identical calls return the saved response or 409 `IDEMPOTENCY_IN_PROGRESS`. Follow `Retry-After` with the same key. - `X-Idempotency-Operation-ID` identifies the durable claim. Log it with the request ID. ### Permission-bound retry receipts Retry receipts bind to the API credential, acting user, role, granted scopes and data scope. Refreshing an access token for the same connection preserves that binding. A different connection or changed access cannot read the old cached response. Older receipts without this authorization binding cannot replay. They return `IDEMPOTENCY_KEY_REUSED` without running the operation again. Read the affected record to reconcile the original write; do not create a new key just to bypass this refusal. Keep the original key and operation ID for support. ## Retry rules Retry 429 after `Retry-After`. Reads can retry 500 and 503 with backoff. An idempotent POST must keep the same key and content. If a write outcome is uncertain, reconcile first; never repeat it with a new key. PATCH and streaming writes do not gain retry protection from an idempotency header. Retry `IDEMPOTENCY_IN_PROGRESS` with the same key after `Retry-After`. Retry `IDEMPOTENCY_UNAVAILABLE` and `IDEMPOTENCY_RESULT_STORAGE_FAILED` only with the same key. Do not retry `IDEMPOTENCY_OUTCOME_UNKNOWN` with a new key, even after 24 hours. Read the target collection or resource first. Use the operation ID when support must reconcile it. Legacy uploads and rows without a body fingerprint also fail closed because the original logical request cannot be proven. Do not retry other 4xx responses unchanged. Exponential backoff starting at 1 second, doubling to a max of 60. Stop after 5 attempts. ## Rate limits Authenticated requests that reach the rate limiter include: ``` X-RateLimit-Limit: 600 X-RateLimit-Remaining: 598 X-RateLimit-Reset: 1730000000 ``` Limits are per API key, per minute window: **600 requests/minute** on an active plan, **60 requests/minute** for trial, past-due, and cancelled accounts. There is no burst allowance - the minute window is the whole rule. When you hit 429, `Retry-After` is the seconds until the window resets. Respect it. ## Bulk operations If you find yourself making many calls in a row, switch to `POST /api/v1/batch`. One call dispatches up to 100 canonical actions and counts as a single rate-limit unit. ```bash curl -X POST $LOVELIO_HOST/api/v1/batch \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "operations": [ { "op": "move_stage", "payload": { "application_id": "app_1", "new_stage": "rejected" }, "idempotency_key": "batch-001" }, { "op": "move_stage", "payload": { "application_id": "app_2", "new_stage": "yes" }, "idempotency_key": "batch-002" } ] }' ``` Operations run independently - one failing never rolls back the others. Each key is bound to its action and payload. Check each status and error code. Retry only the failed operation with its original key and payload when its code permits a retry. ## Debugging checklist When a call fails and the error message is not obvious: 1. Check `error.docs` - opens the public REST error guide. 2. Copy the `request_id`. Paste it into any support message. 3. Verify the key is live: `GET /api/v1/accounts/me`. If that returns 200, your auth is fine; the issue is in the specific endpoint. 4. Verify the resource exists and belongs to the authed account: `GET /api/v1/{resource}/{id}`. A 404 here means wrong account or deleted resource. 5. For async tasks, check the task state: `GET /api/v1/tasks/{task_id}`. Error details live there, not on the originating call. ## Correct a first-call error Use the base URL shown in the portal, including `/api/v1`. Staging sandbox keys belong on staging; production keys belong on their region's domain. Set `LOVELIO_API_URL` to that base and `LOVELIO_SANDBOX_KEY` to your full sandbox key in your terminal. ```bash # Intentional typo: expect 404 ROUTE_NOT_FOUND with error.docs and a request ID. curl -sS "$LOVELIO_API_URL/no-such-endpoint" \ -H "Authorization: Bearer $LOVELIO_SANDBOX_KEY" # Correct the path: expect 200, success: true and an array of jobs. curl -sS "$LOVELIO_API_URL/jobs?limit=1" \ -H "Authorization: Bearer $LOVELIO_SANDBOX_KEY" ``` Unknown REST paths return JSON 404. Unsupported REST methods return JSON 405 with an `Allow` header. HEAD returns headers without a body; OPTIONS keeps its HTTP preflight behavior. These rules cover `/api/v1` and `/v1`. OAuth uses its OAuth error format; MCP uses its own transport and JSON-RPC errors. A 405 on MCP GET can be valid when the server does not offer an event stream. The error envelope has `success: false`, `meta.request_id`, and `error.code`, `message`, `docs` and `request_id`. The two request IDs match. `error.field` is optional. `data` is usually null; a failed draft confirmation can include structured details for correction. ## MCP tool errors MCP tools preserve these API codes in `structuredContent.error.code` and mark failures with `isError: true`. They include a category and a retry instruction. Existing clients continue to receive readable text. Mixed batches retain every operation and flag any failure. Follow the [MCP result contract](/docs/agents/mcp-quickstart#tool-results-and-safe-retries), including its rules for uncertain writes. --- # Webhooks Source: https://lovelio.ai/docs/agents/webhooks # Webhooks Lovelio fires webhooks on meaningful state changes. Prefer webhooks to polling whenever possible because they are cheaper for both sides. ## Subscribe ```bash curl -X POST $LOVELIO_HOST/api/v1/webhooks \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "url": "https://your-app.example.com/lovelio-webhook", "events": ["application.received", "application.scored", "placement.created"] }' ``` Response: ```json { "success": true, "data": { "id": "whk_01HXXX...", "account_id": "acc_01HXXX...", "url": "https://your-app.example.com/lovelio-webhook", "events": ["application.received", "application.scored", "placement.created"], "status": "active", "created_at": "2026-08-28T02:15:00.000Z", "signing_secret": "whsec_abc123..." } } ``` `data.signing_secret` is returned **once**. Store it. It is the HMAC signing key for verifying deliveries. Use `["*"]` to subscribe to every event. Creating a subscription requires `webhooks:write`. Reading the event catalogue, subscriptions or delivery history requires `webhooks:read`. These are the permissions declared by the webhook routes, not a separate permission scheme. ## Verify the signature Every delivery includes three headers: ``` X-Lovelio-Event: application.scored X-Lovelio-Timestamp: 1730000000 X-Lovelio-Signature: sha256= ``` Signature formula: `HMAC-SHA256(secret, timestamp + "." + raw_body)`, hex-encoded, prefixed with `sha256=`. ### Node.js verification ```js import crypto from 'node:crypto'; function verify(rawBody, signatureHeader, timestampHeader, secret) { const expected = 'sha256=' + crypto .createHmac('sha256', secret) .update(`${timestampHeader}.${rawBody}`) .digest('hex'); if (!crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signatureHeader))) { throw new Error('Bad signature'); } // Reject replay attacks - timestamp older than 5 minutes. if (Math.abs(Date.now() / 1000 - Number(timestampHeader)) > 300) { throw new Error('Stale webhook'); } } ``` ### Python verification ```python import hmac, hashlib, time def verify(raw_body: bytes, signature: str, timestamp: str, secret: str) -> None: expected = 'sha256=' + hmac.new( secret.encode(), f"{timestamp}.{raw_body.decode()}".encode(), hashlib.sha256 ).hexdigest() if not hmac.compare_digest(expected, signature): raise ValueError('Bad signature') if abs(time.time() - int(timestamp)) > 300: raise ValueError('Stale webhook') ``` ## Delivery payload Every delivery is a JSON body of the same shape: ```json { "event": "placement.created", "event_id": "evt_abc123...", "account_id": "acc_...", "created_at": "2026-07-06T12:00:00.000Z", "data": { "...event-specific fields..." } } ``` Deduplicate on `event_id`. ### placement.updated `data` is the placement exactly as `GET /api/v1/placements/{id}` returns it to your key (so a connection without the financial or contracting scope sees those fields null), plus `changed_fields`: the API field names that moved, such as `["contract.charge_rate", "contract.rate_history", "contracting.timesheet_approvers"]`. Changes made together, like one PATCH that moves the rates, the credit split and the approvers, arrive as one event. A change to a contractor's payroll details (ABN, entity, bank) fires for each of their live contract placements in that country, with `contracting.contractor` in `changed_fields`. `placement.created`, `placement.status_changed` and `placement.updated` all carry the placement's `number` (1042) and `reference` ("P-1042"). ### candidate.* and client_contact.* Keep a dialler, CRM or mirror in step without polling. `candidate.created`, `candidate.updated` and `candidate.deleted` fire for people records, and `client_contact.created`, `client_contact.updated` and `client_contact.deleted` fire for client contacts. They fire for every route: the app, the API, imports, the browser extension and background jobs. - `data` on created and updated is the record exactly as `GET /api/v1/candidates/{id}` or `GET /api/v1/clients/{id}/contacts` returns it to your key. A key without `candidates:read` (or `clients:read` for contacts) gets the id only. `cv_url` is null here; fetch the candidate for a fresh signed link. - `data` on updated also carries `changed_fields`, the API field names that moved, such as `["email", "phone"]`. Tag changes show as `tags`, and preferred locations as `preferred_locations`. Changes that no API field shows, like background enrichment bookkeeping, send nothing. - `data` on deleted is `{ id, deleted: true }` (a contact also carries `client_id` and `person_id`). - A contact's name, email and phone are the person's. Changing them on the person sends `client_contact.updated` for each of that person's contact rows. A person who exists only as a client contact is not a candidate and sends no `candidate.*` events until they enter a candidate process; that first event is `candidate.created`. - Events are sent within about a minute of the change, not instantly. Several changes to one record in that window arrive as one event with every field in `changed_fields`. - Delivery is at least once. Deduplicate on `event_id`, and read `data` as the latest state. ## Event catalogue Every event below is really emitted by Lovelio. Subscribe to any subset, or `*` for all. Fetch this catalogue programmatically from `GET /api/v1/webhooks/events`. The [SDKs](/docs/agents/sdks) ship a ready-made signature verifier. | Event | Fires when | |---|---| | `account.enriched` | Async account enrichment finishes | | `candidate.created` | A candidate is added, by any route | | `candidate.updated` | A candidate field changes: carries the candidate plus `changed_fields` | | `candidate.deleted` | A candidate is deleted | | `candidate.enriched` | Async candidate enrichment finishes | | `client_contact.created` | A contact is added to a client | | `client_contact.updated` | A client contact changes, including the person's name, email or phone | | `client_contact.deleted` | A client contact is removed | | `application.received` | A candidate is added to a job | | `application.scored` | AI assessment completes | | `application.stage_changed` | An application moves to another stage, forwards or backwards | | `application.status_changed` | The older name for `application.stage_changed`: same moment, same payload, on every stage move. Subscribe to one of them, not both | | `job.created` | A job is created and its draft pipeline finishes | | `job_ad.published` | A job ad goes live | | `interview.scheduled` | An interview is booked | | `interview.cancelled` | An interview is cancelled | | `interview.outcome_recorded` | An interview outcome or scorecard is recorded | | `submission.created` | A submission is sent to a client contact | | `submission.responded` | A client requests an interview, passes, or asks a question | | `placement.created` | A placement is logged (the win) | | `placement.status_changed` | A placement's guarantee status changes | | `placement.updated` | Anything on a placement changes: its fields, rates, credit split, timesheet approvers, or the contractor's payroll details | | `email.sent` | A tracked email is sent | | `email.scheduled` | An email is scheduled to send later | | `email.cancelled` | A scheduled email is cancelled | | `reference.received` | A candidate submits referee details | | `spec.sent` | A spec (float) is sent: an anonymous candidate profile to a client with no job | | `spec.viewed` | A client contact opens a spec profile page for the first time | | `spec.responded` | A client responds to a spec (interested, a question, or not right now) | | `spec.converted` | An interested spec becomes a real job + application | | `marketplace.intro.received` | Another agency submits a candidate to your marketplace listing, or requests your shared candidate | | `marketplace.deal.formed` | A marketplace intro is accepted - the split deal forms and identity reveals (fires for both agencies) | | `marketplace.deal.placed` | A placement lands on a marketplace deal - the shared money snapshot is stamped (fires for both agencies) | > Offer events (`offer.*`) were retired when placements replaced the offer machinery. In agency recruitment the client makes and signs the offer with the candidate, so the win is recorded as a placement. Subscribe to `placement.created` and `placement.status_changed` instead. ## Delivery guarantees - At-least-once delivery. Deduplicate on `event_id`. - Failed deliveries retry with backoff and eventually become `failed` (visible via `GET /api/v1/webhooks/{id}/deliveries`). Read the current OpenAPI operation for the delivery policy rather than hard-coding an attempt count in your integration. - A 2xx response within 10 seconds counts as success. Anything else is a failure. - Replay a specific delivery with `POST /api/v1/webhooks/{id}/deliveries/{deliveryId}/replay`. ## Rotating a secret ```bash curl -X POST $LOVELIO_HOST/api/v1/webhooks/whk_01HXXX/rotate-secret \ -H "Authorization: Bearer $LOVELIO_API_KEY" ``` Returns the subscription with a new `data.signing_secret` (`whsec_...`), shown once. The old secret stops verifying immediately. ## Deleting a subscription ```bash curl -X DELETE $LOVELIO_HOST/api/v1/webhooks/whk_01HXXX \ -H "Authorization: Bearer $LOVELIO_API_KEY" ``` ## Hand this to your agent ``` Subscribe a webhook at https://my-worker.example.com/lovelio to the events application.scored and placement.created. Store the returned secret in our secrets manager under LOVELIO_WEBHOOK_SECRET. Show me the subscription ID when done. ``` --- # Reference-check integration Source: https://lovelio.ai/docs/agents/reference-checks # Reference-check integration recipe This is the complete Lovelio side of a partner reference-check flow. It starts a check after a successful interview, reads the candidate's referee contacts, waits for the partner system, attaches the completed report, and records the outcome in the candidate's native timeline. Your reference provider decides its own start and status endpoints. Keep its check ID beside the Lovelio candidate and interview IDs. Everything below that calls Lovelio is exact and runnable. ## Access to request Describe the use case in the Connect portal first. Lovelio derives the smallest access set from that declaration. This recipe uses the permissions already declared by these four operations: - `interviews:read` for `GET /interviews` - `candidates:read` for `GET /candidates/{candidate_id}/referees` - `documents:write` for `POST /documents` - `activities:write` for `POST /activities` Do not add read or write permissions that your implementation does not use. If you subscribe instead of polling, also request the existing `webhooks:write` permission to create the subscription and `webhooks:read` to read the event catalogue and inspect deliveries. The route declarations in the OpenAPI reference are the source of truth for all of these permissions. Set these once for the examples: ```bash export LOVELIO_HOST="https://us.lovelio.ai" export LOVELIO_API_KEY="lc_at_..." ``` Use the regional host returned for the connected agency. Never assume US for every agency. ## 1. Find the trigger and candidate Poll completed interviews with cursor pagination. `status=completed` includes both passed and failed interviews, so read `outcome` and start a check only when it is `passed`. ```bash curl "$LOVELIO_HOST/api/v1/interviews?status=completed&limit=100" \ -H "Authorization: Bearer $LOVELIO_API_KEY" ``` For every page, process `data`, then follow `meta.next_cursor` with `after=` while `meta.has_more` is true. Persist each processed interview ID. The interview response contains `candidate.id`; that is the `cnd_...` ID used below. Call your reference provider's create-check endpoint once for that candidate and store its returned check ID. Poll the provider's status endpoint on its documented schedule until it says completed or failed. That provider poll is not a Lovelio task poll and Lovelio does not invent a status for it. ## 2. Read the referee contacts and their real status ```bash export CANDIDATE_ID="cnd_..." curl "$LOVELIO_HOST/api/v1/candidates/$CANDIDATE_ID/referees" \ -H "Authorization: Bearer $LOVELIO_API_KEY" ``` Each item is a referee contact: name, email or phone, relationship, employment context, source, `submitted_at`, and `created_at`. A non-null `submitted_at` means the candidate supplied that contact information. It does not mean the referee replied and it does not mean a reference report is complete. Pass eligible contacts to your provider using the provider's API. If there are no usable contacts, keep the check waiting and record that state in your own system. Do not claim completion in Lovelio. The `reference.received` webhook has the same boundary: it means a candidate submitted referee contact details. It is not a completed-reference event. ## 3. Write status changes into the candidate timeline When the provider check starts, fails, needs attention, or completes, add a concise candidate note. Use a new idempotency key for each logical status change and reuse that same key for retries of that change. ```bash export ACTIVITY_KEY="reference-check-provider-check-123-started" curl -X POST "$LOVELIO_HOST/api/v1/activities" \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $ACTIVITY_KEY" \ -d '{ "resource_type": "candidate", "resource_id": "'"$CANDIDATE_ID"'", "note": "Reference check started. Provider check: provider-check-123." }' ``` These are native `note_added` activities. They appear in the candidate Timeline and in activity reads; they are not a private integration log. ## 4. Attach the completed report Only do this after the provider reports completion and gives you the final file. Upload the report to the candidate with multipart form data: ```bash export REPORT_KEY="reference-check-provider-check-123-report" curl -X POST "$LOVELIO_HOST/api/v1/documents" \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Idempotency-Key: $REPORT_KEY" \ -F "record_type=candidate" \ -F "record_id=$CANDIDATE_ID" \ -F "file=@./reference-report.pdf;type=application/pdf" ``` The report appears in the candidate Documents view. Lovelio also adds a native `document_added` timeline entry. Uploading a partner report does not change a Lovelio reference form's status and does not turn submitted contact details into a completed native reference. Then add the completion activity with its own stable key: ```bash export COMPLETE_KEY="reference-check-provider-check-123-completed" curl -X POST "$LOVELIO_HOST/api/v1/activities" \ -H "Authorization: Bearer $LOVELIO_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $COMPLETE_KEY" \ -d '{ "resource_type": "candidate", "resource_id": "'"$CANDIDATE_ID"'", "note": "Reference check completed. Report attached. Provider check: provider-check-123." }' ``` The resulting candidate UI has the report under Documents and two native Timeline entries for completion: `Document Added` plus the API-authored completion note. The Referees view continues to show the contact records and their actual submission state. ## 5. Retry without duplicates For each Lovelio POST, create one idempotency key for one logical operation and store it with the provider check. Retry the exact method, path, query and body with that same key. - A completed retry replays the saved response and sets `X-Idempotency-Replayed`. - `IDEMPOTENCY_IN_PROGRESS` means the first attempt is still running. Wait for `Retry-After`, then send the identical request with the same key. - `IDEMPOTENCY_KEY_REUSED` means that key was paired with different input. Stop and fix the caller; do not disguise the mismatch with another key. - `IDEMPOTENCY_OUTCOME_UNKNOWN` means Lovelio cannot safely say whether the write finished. Keep the returned operation ID, reconcile the candidate in the UI, and do not create a new key until the outcome is known. - On network timeout or a 5xx response, retry the identical request with the same key. Never generate a fresh key merely because the response was lost. If the provider check fails, do not upload a completion report. Add a failure or attention note with its own stable activity key, retain the provider check ID, and follow the provider's retry rules before starting another provider check. ## Optional: subscribe instead of polling Create a subscription for `interview.outcome_recorded` with `POST /api/v1/webhooks`. The event tells you an outcome was recorded; inspect the payload or read the interview and start only when its real `outcome` is `passed`. Verify every delivery before parsing it. Compute HMAC-SHA256 over `X-Lovelio-Timestamp + "." + raw_request_body` with the one-time `whsec_...` secret, compare the `sha256=...` signature using a timing-safe comparison, and reject timestamps more than five minutes away. Deduplicate on payload `event_id`, return 2xx only after durable acceptance, and expect at-least-once delivery. Read [/docs/agents/webhooks](/docs/agents/webhooks) for runnable signature code, delivery inspection, replay, and secret rotation. The subscription needs `webhooks:write`. Reading `GET /webhooks/events` or `GET /webhooks/{id}/deliveries` needs `webhooks:read`. Those permissions add subscription management only; they do not widen candidate, interview, document, or activity access. ## Native Lovelio phone references through MCP This flow writes the reference form itself. It needs `forms:read`, `forms:write`, and access to the application. Reading referee contacts also needs `candidates:read`. 1. Read `list_referees` for the candidate. Keep the application ID and the chosen `ref_...` ID. 2. Call `create_reference_instance` with `application_id`, `referee_id`, `channel: "phone"`, and `mode: "template"`. Keep the returned `instance_id`. 3. Read `get_form_instance` with that ID as `form_instance_id`. Use its `fiq_...` question IDs when recording answers. 4. Call `submit_form_instance` with `responses` and `draft: true` to save progress. Each response names `question_id` and the real `response_text`, `response_boolean`, `response_rating`, or `response_choice`. Never fabricate respondent answers. 5. Submit the actual completed answers with `draft: false`. Read the instance again and verify `status: "completed"`. Completion preserves human review and does not approve a candidate for hire. For an emailed reference, create it with `channel: "email"`, then call `send_form_instance` for the intended recipient. Poll the instance until the referee has completed it. An accepted send is not proof of receipt or completion. `create_form`, `add_form_question`, `update_form_question`, and `update_form` manage reusable questionnaires. Deleting templates and questions is destructive; use the delete tools only for intended cleanup. Completed reference answers cannot be replaced through the submission tool. --- # Build an integration Source: https://lovelio.ai/docs/agents/build-an-integration # Build an integration with Lovelio Connect Lovelio Connect is the self-serve developer platform. You register, create an integration, get a sandbox agency with a working API key, build and test against the real API, and submit for review without an onboarding call. **Building one integration for one agency - your own, or a client of yours? You do not need any of this.** Ask them for an API key from **Settings > API keys** in their Lovelio account and call the [V1 API](/docs/api) directly with it. Connect is the route when you want other agencies to discover your app in the public directory and connect through Settings > Integrations: that is what the OAuth client, the certification run and the review are for. ## 1. Register Go to [lovelio.ai/developers/portal](https://lovelio.ai/developers/portal) and sign in with your work email. We email you a six-digit code; entering it proves you own a mailbox on your company's domain. The first person from your company founds the workspace and names it - teammates verify their email and wait for owner approval. Removed members need the owner to restore access. Free email providers are not accepted. ## 2. Tell Lovelio about your app Click **New integration**. One form: your app's name, its website, one sentence on what it does, whether it writes anything back into Lovelio, and whether it shows or calculates money. Lovelio does the rest: it works out the access your sentence needs, drafts your listing, mints your client ID and secret, registers a placeholder callback, and creates your sandbox. From then on your integration's page is a log of what you did and what Lovelio did, with the one thing to do next in a box at the bottom. When the sandbox finishes you have: - A complete Lovelio agency seeded with realistic data: 5 clients, 6 jobs, 18 candidates with full CVs, a pipeline across the agency stages, interviews, submissions and placements. - One API key with full scopes, shown exactly once. Copy it immediately. The key is 48 characters, starting `sk_test_`. After you close that box the portal shows the first 20 characters with the rest masked out: an identifier for the key, never the key itself. The portal never shows a saved key again. Lovelio keeps a protected copy for certification and recovery. If you lose it, **Replace API key** issues a new key, revokes the old key and keeps all your sandbox data. The sandbox is a real Lovelio tenant. Every endpoint, webhook, permission check and rate limit behaves exactly as it will for a paying agency. Two guardrails are permanent: a sandbox can never email a real person, and it never appears in the marketplace. ```bash # Use the Base URL from the Sandbox panel of the portal. export LOVELIO_API_URL="https://us.lovelio.ai/api/v1" curl "$LOVELIO_API_URL/jobs?limit=1" \ -H "Authorization: Bearer sk_test_..." ``` Your sandbox does not expire. **Reset sandbox** wipes it and provisions a fresh agency with a new key whenever you want a clean slate. ## 3. Build Everything you need is public: - **API reference**: [/docs/api.md](/docs/api.md) - every endpoint with its parameters, request body and responses, as plain markdown in one fetch. Narrow it with `?tag=Jobs`, or get the endpoint list alone with `?index=1`. [/docs/api](/docs/api) is the same content rendered for humans; it draws in the browser, so fetch the `.md` if you are not running JavaScript. - **Error handling**: [/docs/agents/error-handling](/docs/agents/error-handling) - the envelope, request IDs, retries, idempotency keys, rate-limit headers. - **Webhooks**: [/docs/agents/webhooks](/docs/agents/webhooks) - subscribe with `POST /v1/webhooks`, verify the HMAC-SHA256 signature, and read the event catalogue at `GET /v1/webhooks/events`. - **Reference checks**: [/docs/agents/reference-checks](/docs/agents/reference-checks) - one end-to-end recipe from interview outcome and referee contacts to a completed report and candidate timeline activity. - **SDKs**: [/docs/agents/sdks](/docs/agents/sdks) - single-file TypeScript and Python clients. - **AI agents**: point any MCP client at the Lovelio MCP server ([/docs/mcp](/docs/mcp)) using MCP OAuth consent. Open your sandbox first to approve the requested access as its admin. REST keys do not authenticate MCP directly. Your integration's page is five steps on one page: Sign in, Get a sandbox, Write your listing, Request approval, Go live. Each shows a one-word status and the one that needs you is outlined. The page refreshes every 10 seconds while the tab is visible, and again when you return to the tab. Under the steps sit four panels: Keys and callback, Access, Sandbox and Usage. The Sandbox panel shows webhook activity for your sandbox: every subscription, every delivery, response codes and retries. Create a subscription, trigger an event (move a candidate's stage, create a job), and watch it arrive. ### Browser apps and credential storage Your browser app calls your own backend. That backend exchanges OAuth codes, stores each agency's tokens securely, and calls Lovelio. Keep keys, client secrets and refresh tokens out of JavaScript bundles, public environment variables, local storage, URLs, logs and source control. Public CORS access is not part of this architecture. The client ID is public. Client secrets and API keys appear once when issued. Lovelio hashes normal API keys and client secrets for validation. It also stores encrypted sandbox keys for certification and recovery, and an encrypted internal credential for MCP. Save your own backend credentials in a secret manager or private server environment. Documentation, the OpenAPI document and OAuth discovery metadata are public and readable without signing in or running JavaScript. The event catalogue is an authenticated REST endpoint requiring `webhooks:read`. Public documentation access does not grant access to agency data or the developer workspace. The public directory explains approved apps; agencies start connections from **Settings > Integrations** inside Lovelio. ## 4. Let agencies connect your app Lovelio has two developer credentials and they do different jobs. Never swap one for the other: | Credential | What it is | What it opens | | --- | --- | --- | | API key (`sk_test_...`) | A Bearer token, minted with your sandbox | Your own sandbox agency, and nothing else | | Client ID + client secret (`lc_client_...`, `lc_secret_...`) | An OAuth 2.0 confidential client, created in the portal | Any agency that connects to your app, at the scopes they granted | Writing a test script against your own sandbox? The API key is all you need - one header, no OAuth. Shipping to real agencies? Your app uses the OAuth client instead: an API key belongs to one tenant and can never be issued to anyone else. Lovelio minted your client the moment you created the integration, so there is no button to find; the Keys and callback panel holds it. Your app ships against the connect flow, not against pasted API keys. In the Keys and callback panel you have: - A **client ID** (`lc_client_...`) you can publish. - A **client secret** (`lc_secret_...`), shown exactly once when the integration was created, inside a ready-made `.env` block with your other three values. Keep it server-side. **Rotate** it from the portal if it ever leaks; the old secret stops working the moment the new one appears. The same panel holds the two ends of the round trip, together because they are the same kind of thing - a route on your own server, not a page anyone looks at: - **Your connect endpoint.** Where Lovelio hands off when a signed-in agency starts a connection. It redirects them straight to the Lovelio approve screen, carrying your own state and PKCE challenge, which is why Lovelio cannot build that URL for you. The agency sees your product's name on the approve screen and nothing of your website. - **Your redirect URIs** (HTTPS, or HTTP on localhost, 127.0.0.1 or [::1] while building). Register the exact URI your code sends, including the path, port and trailing slash. Where Lovelio sends the approved connection so your server can pick up its tokens. `/api/oauth/authorize` refuses any `redirect_uri` that is not registered here. Send the agency back into Lovelio when you are done, and the whole thing reads as two clicks inside the app they were already in. Lovelio registered a placeholder callback at creation so the setup prompt has a real shape to work from; replace it with yours. A localhost URI is fine while building; step 2 reminds you it is registered so you add the real one before agencies connect. The checks fetch both, skip a localhost one, and fail on a dead one, so a typo costs you a red run rather than a failed connection in front of a real agency. You do not tick scopes off a list. The form you filled in at creation took one sentence on what your product does, then asked whether it writes anything back into Lovelio and whether it shows or calculates money. Lovelio worked out the smallest access set that supports that answer and switched it on. Saying it only reads bars every write outright. The Access panel shows what you have in plain English - "Placements: read" - with the technical scope names one disclosure away, and only the areas your integration uses; everything else is behind **Ask for something else**. Take access away for free. Adding something your sentence did not call for costs a written reason, which the reviewer and every connecting agency both read. Nothing locks while your submission is in review: edit what you like and Lovelio looks again before deciding. Widening access after approval forces re-review (see below). **You do not have to write this flow yourself, or even read it.** Step 2 of your integration's page leads with **Copy setup prompt**: one self-contained prompt, with your real client ID, callback and region in it, that an AI coding tool turns into both routes in your own stack. The prompt never carries your client secret - you paste that into your env file yourself. Not using an agent? [/docs/connect-flow](/docs/connect-flow) prints the same flow as plain code: a connect route and a callback route, in Node, Python, PHP, Go and cURL, with placeholders where your own values go. The four environment values the code reads (`LOVELIO_API_URL`, `LOVELIO_CLIENT_ID`, `LOVELIO_CLIENT_SECRET`, `LOVELIO_REDIRECT_URI`) are printed as one block at the moment the secret is issued, which is the only moment the secret exists in a browser; the Keys and callback panel prints the block again with the secret left for you to fill in. The flow is standard OAuth 2.0 authorization code with PKCE (S256 only, a plain or absent challenge is refused), plus your client secret at the token endpoint: 1. Your connect route makes a random `code_verifier`, stores it against that browser, and redirects the agency admin to `/api/oauth/authorize` on the agency's region domain (us, eu or anz.lovelio.ai) with `response_type=code`, `client_id`, `redirect_uri`, `scope`, `state`, `code_challenge` (base64url SHA-256 of the verifier) and `code_challenge_method=S256`. 2. They sign in if needed, see "**Your app** wants access to **their agency**" with the scope list, and approve. Connecting takes an admin - other roles are asked to pass the link on. 3. Your redirect URI receives `?code=...&state=...`. Check the state, then exchange the code at `POST /api/oauth/token` with `grant_type=authorization_code`, your `client_id`, `client_secret`, the `code_verifier` you stored, and the same `redirect_uri`. The verifier is what proves the code came back to the server that started the connection, so a stolen code on its own is worth nothing. 4. You get an access token (`lc_at_...`, one hour) and a refresh token (`lc_rt_...`). Call the V1 API with `Authorization: Bearer lc_at_...` - the token carries exactly the scopes the agency granted, enforced on every request. Read `scope` on the response rather than assuming: a granted set can be narrower than the one you asked for. Refresh with `grant_type=refresh_token` plus your client credentials; refresh tokens rotate on every use and the window slides while the integration stays active. The same endpoints, parameters and scopes are declared in the OpenAPI spec at [/docs/api](/docs/api) under the `appOAuth2` security scheme, so a generated client can drive the connection without reading this page. Webhook subscriptions your app creates with its token belong to the connection: the agency sees them under Settings > Integrations, and disconnecting disables them and revokes every token immediately. Test the whole flow before review: the consent screen works against your own sandbox from day one, no approval needed. Click **Open sandbox** in the portal to hand off into the sandbox agency, then open your authorize URL in the same browser and approve. The consent screen labels that agency as a sandbox; your developer portal session stays separate. Once the app is approved, any Lovelio agency can connect to it. ## 5. The checks run themselves The platform diagnostics are information for you and for the reviewer, never a gate. There is no button. Once Lovelio has seen your code do the connect flow against your sandbox, the checks start on their own and step 2 shows the report under "Lovelio's own checks". Step 2 also counts what Lovelio has seen your code do against the sandbox ("Lovelio has seen 2 of 4 things your code needs to do"). "Seen" is the happy path only: consent completes and your server exchanges the code, then one API call works with the token (plus one write landing if you hold a write scope, and one signed webhook answered with a 2xx if you hold `webhooks:write`). You are never asked to fail on purpose. If your code asks `/api/oauth/authorize` for a scope the app does not have, the redirect back to your callback carries `error=invalid_scope` and an `error_description` naming the missing scopes, and the same line appears in step 2 with a button to Access. What it checks: - **Auth**: requests without a key and with a made-up key are refused; your sandbox key works. - **Error handling**: errors carry the standard envelope (code, message, request ID) and writes demand an `Idempotency-Key`. - **Pagination**: cursor pagination pages cleanly with no repeated rows. - **Webhook signing**: it creates a subscription, fires the signed test ping, and verifies the HMAC-SHA256 signature end to end, then removes the subscription. - **Your public links**: the connect endpoint and every redirect URI are fetched. A `404` or a domain that does not resolve fails the run. A `401`, `403` or redirect passes because a sign-in wall on your connect endpoint is normal. Localhost and loopback callbacks are skipped, not failed. - **Lovelio's connection path**: your OAuth client exists and requests scopes, the token endpoint refuses a wrong client secret, Lovelio exercises its own sandbox connection path, a granted scope works and an ungranted one is refused, then temporary state is cleaned up. A red run tells you exactly which platform diagnostic failed and why. Fix it and click **Run checks again** in step 2. A green run goes **stale** if you reset the sandbox, rotate the secret, change the scope set, or change either of your two links afterwards, because what was proven is no longer what would ship. The checks run again on their own after any of those. A green platform result does not prove your partner callback or webhook handler; only Lovelio seeing your code do it in the sandbox does. Approval is a person's decision: the reviewer reads the diagnostics, the sandbox lines and your listing side by side, and nothing Lovelio saw switches Approve off on its own. If something is missing, you get a note asking for changes. ## 6. Request approval **Request approval** in step 4 needs exactly two things: a name and one sentence an agency owner would understand. Lovelio drafted both from your form; read them in step 3 and edit if you like. Everything else can come later, including while the app is in review, because an edit during review is logged and the reviewer looks again. Step 3 holds the description, category, support link and privacy policy link, an "About your app" write-up (a few paragraphs: what it does, who it is for, why use it) a logo (square PNG, JPG or WebP up to 1 MB) and up to 3 screenshots or short videos - once approved, they make up your app's own page at lovelio.ai/integrations/your-slug. Lovelio never invents links: a support or privacy link it did not have stays blank for you to fill in. Your connect address is not asked for here - it lives in Keys and callback. The checks report and what Lovelio saw in your sandbox ride along to the reviewer as information. We review by hand and reply by email: - **Approved** - your integration goes live in the [Lovelio integrations directory](https://lovelio.ai/integrations) straight away. - **Changes requested** - the note sits on step 4 and on the app list. Fix it and send it again. - **Rejected** - the note says why. ## 7. After approval A few rules keep the directory honest without slowing you down: - **Listing text publishes without re-review.** Name, description, the About write-up, category, tagline, support and privacy links stay editable in the portal while the app is approved, and the public directory picks up a save straight away. Changing connection URLs or rotating the client secret sends the app back for review. Screenshots and videos are also reviewed: on an approved app they wait for a quick Lovelio review before going live, and your page keeps the current media until then. - **Adding scopes forces re-review; removing them is free.** The scope set is what review approved, so asking for MORE takes the app off the directory and back to draft - request approval again to relist. Narrowing the set never costs review: the app stays approved and listed. Agencies that already connected keep the scopes they granted either way; only new connections wait for a re-approval. The API asks for `confirm_re_review: true` on a widening so it never happens by accident. - **New apps start in a limited rollout.** Approval sets a cap on active connections, sized by how much access the app requests (read-only apps get a high cap, apps touching email content, documents or marketplace writes a low one). Past the cap, an agency trying to connect sees an "app at capacity" page instead of the consent screen. When you are close, email [hello@lovelio.ai](mailto:hello@lovelio.ai) and we raise or remove it - your approval email states your starting cap. - **Usage is visible in the portal.** The Usage panel on your integration shows active connections against the cap, plus the last 30 days of API calls and webhook deliveries across every region your app lives in, sandbox included. - **Lovelio can suspend an app.** If an integration misbehaves, suspension takes it off the directory and stops its credentials and webhooks everywhere at once - existing connections stop working until it is resolved. Unsuspending restores the connections exactly as they were. ## Questions Email [hello@lovelio.ai](mailto:hello@lovelio.ai). If your integration needs something the API does not cover yet, say so in the submission description - API gaps reported by partners get prioritised. --- # SDKs Source: https://lovelio.ai/docs/agents/sdks # SDKs Two official clients, one file each, zero dependencies. Download the file, drop it into your project, done. No package manager required - they are plain source you own. | Language | Download | Requires | |---|---|---| | TypeScript / JavaScript | [lovelio.ts](/sdk/lovelio.ts) | Node 18+, Deno, Bun, or server-side edge workers | | Python | [lovelio.py](/sdk/lovelio.py) | Python 3.9+, standard library only | Both clients handle the whole API contract for you: - Bearer auth and the response envelope (data unwrapping, typed errors with `code`, `status`, `request_id`) - Auto-generated `Idempotency-Key` on every POST (the API requires one on mutating POSTs) - Auto-generated per-operation keys for batch entries that do not supply one - Cursor pagination, including an iterator that follows `next_cursor` to exhaustion - Retry with backoff on 429, 5xx and `IDEMPOTENCY_IN_PROGRESS`, honouring `Retry-After` and keeping the original key - Async task polling (`waitForTask` / `wait_for_task`) for 202 responses - Webhook signature verification (HMAC-SHA256, constant-time compare, replay-window check) Use these clients on your backend. Browser apps call that backend; keep Lovelio credentials out of browser bundles and local storage. ## TypeScript ```ts import { Lovelio, verifyWebhookSignature } from './lovelio' const client = new Lovelio({ apiKey: process.env.LOVELIO_API_KEY! }) // Lists return { data, meta }; iterate() pages for you const { data: active } = await client.jobs.list({ status: 'active' }) for await (const candidate of client.candidates.iterate()) { console.log(candidate.id) } // Async creates return a task handle - wait for the pipeline to finish const created = await client.jobs.create({ title: 'Senior Property Manager', client_id: 'cli_...', }) await client.waitForTask(created.task_id) // Actions run through batch await client.batch([ { op: 'add_note', payload: { candidate_id: 'cnd_...', note: 'Called, keen.' } }, ]) // In your webhook handler - verify against the RAW body const ok = await verifyWebhookSignature({ payload: rawBody, signature: req.headers['x-lovelio-signature'], timestamp: req.headers['x-lovelio-timestamp'], secret: process.env.LOVELIO_WEBHOOK_SECRET!, }) ``` ## Python ```python from lovelio import Lovelio, verify_webhook_signature client = Lovelio(api_key=os.environ["LOVELIO_API_KEY"]) active = client.jobs.list(status="active")["data"] for candidate in client.candidates.iterate(): print(candidate["id"]) created = client.jobs.create(title="Senior Property Manager", client_id="cli_...") client.wait_for_task(created["task_id"]) client.batch([ {"op": "add_note", "payload": {"candidate_id": "cnd_...", "note": "Called, keen."}}, ]) ok = verify_webhook_signature(raw_body, signature_header, timestamp_header, webhook_secret) ``` ## Errors Both clients raise one exception type on any non-2xx: `LovelioError` with `code` (the API's stable error code, e.g. `VALIDATION_ERROR`, `INSUFFICIENT_SCOPE`), `status`, `message`, and `request_id` for support. 429 and 5xx are retried automatically before the error reaches you. An `IDEMPOTENCY_OUTCOME_UNKNOWN` requires reconciliation, not a new key or waiting for the normal 24-hour expiry. Uncertain-operation reservations remain in place until the outcome is resolved. ## Hand this to your agent ``` Download https://lovelio.ai/sdk/lovelio.ts into the project, then use it with our LOVELIO_API_KEY to list active jobs, add today's Yes candidates to each, and print the ids it created. Wait for any task the API returns. ``` --- # Lovelio API reference Recruitment automation API. Create jobs, manage candidates, run ad-hoc actions, integrate with your tools. Generated from the OpenAPI 3.1 document at https://lovelio.ai/api/v1/openapi.json. API version 1.0.0. 182 paths, 266 operations. This is the plain-markdown copy of the reference rendered at https://lovelio.ai/docs/api. ## Fetch less than all of this | URL | What you get | | --- | --- | | `https://lovelio.ai/docs/api.md` | Everything: this header plus every operation in full. | | `https://lovelio.ai/docs/api.md?index=1` | This header plus the endpoint index. No per-operation detail. | | `https://lovelio.ai/docs/api.md?tag=Jobs` | This header plus one section in full. Comma-separate for several: `?tag=Jobs,Applications`. | | `https://lovelio.ai/api/v1/openapi.json` | The machine-readable source this file is generated from. | Tags: System, Accounts, Jobs, Job Ads, Candidates, Candidate Imports, Applications, Interviews, Submissions, Calls, Placements, Job Opportunities, Contractor Documents, Quotas, Opportunities, Marketplace, Webhooks, Batch, Activities, Documents, Tasks, Outreach, Talent Pools, Review Queue, Forms, Referees, Integrations, Chat Integrations, Analytics, Calendar, Scheduled Emails, Workflow Rules, Email Templates, Stages, Distribution, Candidate Evidence, Commands, Clients, Specs, Search. ## Base URL Docs live on lovelio.ai. The API does not. Every workspace belongs to a region and an API key only works on its own region's host. Calling `lovelio.ai/api/v1/...` returns a JSON error naming all three hosts rather than data. | Region | Base URL | | --- | --- | | Production (US (N. California)) | `https://us.lovelio.ai/api/v1` | | Production (EU (London)) | `https://eu.lovelio.ai/api/v1` | | Production (ANZ (Sydney)) | `https://anz.lovelio.ai/api/v1` | A workspace's exact host is shown in Settings > API keys. ## Authentication ```http Authorization: Bearer sk_live_... ``` API key, sent as Authorization: Bearer . 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. ## Pagination and shared parameters Paginated list endpoints declare the parameters they support below. For cursor-based lists, read `meta.next_cursor` from a response and pass it back as `after`. Bounded catalogue and configuration lists return their full result and do not take a cursor. | Name | In | Type | Description | | --- | --- | --- | --- | | `limit` | query | integer, 1-100, default 25 | 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. | | `after` | query | string | 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. | | `created_after` | query | string (date-time) | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | query | string (date-time) | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `Idempotency-Key` | header | string | 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. | ## Rate limit headers | Header | Type | Description | | --- | --- | --- | | `X-RateLimit-Limit` | integer | Requests allowed per minute | | `X-RateLimit-Remaining` | integer | Requests remaining in window | | `X-RateLimit-Reset` | integer | Unix timestamp when window resets | | `X-Idempotency-Operation-ID` | string (uuid) | Durable operation identity for replay or reconciliation. | ## Guides - https://lovelio.ai/docs/agents - what an agent can drive end to end - https://lovelio.ai/docs/agents/top-10-tasks - runnable examples for the ten most common calls - https://lovelio.ai/docs/agents/build-an-integration - sandbox agency, test API key, live webhook testing - https://lovelio.ai/docs/agents/error-handling - error envelope, request IDs, retries, idempotency keys - https://lovelio.ai/docs/agents/webhooks - subscribing and verifying HMAC signatures - https://lovelio.ai/docs/agents/sdks - single-file TypeScript and Python clients - https://lovelio.ai/docs/api/changelog - public API release history - https://lovelio.ai/llms-full.txt - all of the above inlined in one fetch ## Endpoint index ### System Health and status - `GET /health` - Health check - `POST /health` - Health check (POST) ### Accounts Account and API key management - `POST /accounts/signup` - Create account - `POST /accounts/verify-email` - Verify account email - `GET /accounts/me` - Get current account - `GET /accounts/{id}` - Get account - `PATCH /accounts/{id}` - Update account - `GET /accounts/{id}/users` - List users - `POST /accounts/{id}/users` - Invite a user - `GET /accounts/{id}/users/{userId}` - Get user - `PATCH /accounts/{id}/users/{userId}` - Update user - `DELETE /accounts/{id}/users/{userId}` - Delete user - `GET /accounts/{id}/teams` - List teams - `POST /accounts/{id}/teams` - Create team - `GET /accounts/{id}/teams/{teamId}` - Get team - `PATCH /accounts/{id}/teams/{teamId}` - Update team - `DELETE /accounts/{id}/teams/{teamId}` - Delete team - `GET /accounts/{id}/api-keys` - List API keys - `POST /accounts/{id}/api-keys` - Create API key - `DELETE /accounts/{id}/api-keys/{keyId}` - Revoke API key - `GET /accounts/{id}/transcription-usage` - Get video transcription usage - `POST /accounts/{id}/upgrade` - Comp an account outside Stripe Checkout - `GET /accounts/{id}/intake-slo` - Get intake pipeline SLO - `GET /accounts/{id}/intelligence` - Get company intelligence profile - `POST /accounts/{id}/intelligence/refresh` - Refresh company intelligence ### Jobs Job requisition management with AI enrichment - `GET /jobs` - List jobs - `POST /jobs` - Create job (async) - `POST /jobs/from-description` - Draft a job from a natural-language description (streaming) - `POST /jobs/from-description/{review_token}/confirm` - Confirm a staged draft and create the job (async) - `GET /jobs/from-description/{review_token}` - Get the current state of a staged job draft - `PATCH /jobs/from-description/{review_token}` - Update a staged job draft (fill gaps) - `POST /jobs/from-description/{review_token}/revise` - Apply a free-text revision to a staged draft - `GET /jobs/{id}/ad` - Get the latest job ad - `PATCH /jobs/{id}/ad` - Update a job ad - `POST /jobs/{id}/ad/rewrite` - AI-rewrite a job ad - `GET /jobs/{id}/social-draft` - Get a job's LinkedIn + X post drafts - `PATCH /jobs/{id}/social-draft` - Update a job's social post text - `GET /jobs/{id}` - Get job - `PATCH /jobs/{id}` - Update job - `DELETE /jobs/{id}` - Delete job - `POST /jobs/{id}/close` - Close or pause job - `POST /jobs/{id}/reopen` - Reopen job - `GET /jobs/{id}/summary` - AI job summary - `GET /jobs/{id}/ranking` - Stack-ranked interviewed candidates for a job - `GET /jobs/{id}/free-candidates` - Who is free for a contract job - `GET /jobs/{id}/share-bundle` - Get share-ready content bundle for a job ### Job Ads Public job postings and career pages - `GET /job-ads` - List job ads - `POST /job-ads` - Create job ad - `GET /job-ads/{id}` - Get job ad - `DELETE /job-ads/{id}` - Delete job ad - `POST /job-ads/{id}/expire` - Expire job ad ### Candidates Candidate profiles and talent database - `GET /candidates` - List candidates - `POST /candidates` - Create candidate - `GET /candidates/{id}` - Get candidate - `PATCH /candidates/{id}` - Update candidate - `DELETE /candidates/{id}` - Delete candidate - `DELETE /candidates/{id}/gdpr-delete` - GDPR delete candidate - `POST /candidates/search` - Search candidates - `GET /candidates/duplicates` - Find duplicate candidates - `POST /candidates/merge` - Merge candidates - `POST /candidates/from-cv` - Upload a CV and stage a candidate draft - `GET /candidates/from-description/{review_token}` - Get a staged candidate draft - `PATCH /candidates/from-description/{review_token}` - Patch fields on a staged candidate draft - `POST /candidates/from-description/{review_token}/confirm` - Create a candidate from a staged draft ### Candidate Imports Bulk CV import - migrate thousands of CVs into the talent bank - `POST /candidate-imports` - Start a bulk CV import - `GET /candidate-imports/{id}` - Get import report - `POST /candidate-imports/{id}/files` - Request upload slots - `POST /candidate-imports/{id}/finalize` - Confirm uploads ### Applications Application pipeline with AI assessment - `GET /applications` - List applications - `POST /applications` - Create application (async) - `GET /applications/{id}` - Get application - `PATCH /applications/{id}` - Update application - `POST /applications/{id}/assessment` - Re-assess application - `POST /applications/bulk-update` - Bulk update applications - `POST /phone-screens/from-description` - Stage a phone-screen log - `GET /phone-screens/from-description/{review_token}` - Get a staged phone-screen draft - `PATCH /phone-screens/from-description/{review_token}` - Patch fields on a staged phone-screen draft - `POST /phone-screens/from-description/{review_token}/confirm` - Confirm a phone-screen log - `POST /applications/{id}/stage` - Transition application stage ### Interviews Interview scheduling and feedback - `GET /interviews` - List interviews - `POST /interviews` - Schedule interview - `GET /interviews/{id}` - Get interview - `PATCH /interviews/{id}` - Update interview - `DELETE /interviews/{id}` - Delete interview - `GET /interviews/{id}/context` - Get interview preparation and debrief - `POST /interviews/{id}/cancel` - Cancel interview - `POST /interviews/{id}/scorecard` - Submit interview scorecard - `POST /interviews/{id}/schedule-link` - Generate candidate self-schedule link - `POST /interviews/from-description` - Stage an interview draft for an application - `GET /interviews/from-description/{review_token}` - Get a staged interview draft - `PATCH /interviews/from-description/{review_token}` - Patch fields on a staged interview draft - `POST /interviews/from-description/{review_token}/confirm` - Book the drafted interview - `POST /interviews/{id}/action` - Stage a reschedule or cancel draft for an existing interview - `GET /interviews/action-drafts/{review_token}` - Get a staged reschedule / cancel draft - `PATCH /interviews/action-drafts/{review_token}` - Patch fields on a staged reschedule / cancel draft - `POST /interviews/action-drafts/{review_token}/confirm` - Confirm a reschedule or cancel draft - `POST /scorecards/from-description` - Stage a scorecard draft for an interview - `GET /scorecards/from-description/{review_token}` - Get a staged scorecard draft - `PATCH /scorecards/from-description/{review_token}` - Patch fields on a staged scorecard draft - `POST /scorecards/from-description/{review_token}/confirm` - Submit a staged scorecard draft ### Submissions Client-facing candidate submissions with a tokenised review link and a live feedback loop - `GET /submissions` - List submissions - `POST /submissions` - Create and send a submission - `GET /submissions/{id}` - Get submission ### Calls Recorded calls: the transcript line by line, who spoke, the write-up and the recording - `GET /calls` - List calls - `POST /calls` - Book a call - `GET /calls/{id}` - Get call - `DELETE /calls/{id}` - Delete call (they said no) - `POST /calls/uploads` - Upload a call recording - `POST /calls/{id}/upload-parts` - Send a call recording in parts - `POST /calls/{id}/upload-complete` - Finish a call upload - `POST /calls/{id}/link` - Link a phone call to a person - `POST /calls/{id}/speakers` - Name a speaker ### Placements The record of the win: fee, start date, guarantee lifecycle - `GET /placements` - List placements - `POST /placements` - Create placement - `GET /placements/check-ins` - Contractors to check in with - `GET /placements/contractor-report` - Contract forecast and compliance report - `GET /placements/extension-asks` - Contracts ending with no plan - `GET /payroll-reference/positions` - Get your Positions - `PUT /payroll-reference/positions` - Push your Positions - `GET /payroll-reference/rate-templates` - Get your Rate templates - `PUT /payroll-reference/rate-templates` - Push your Rate templates - `GET /placements/{id}` - Get placement - `PATCH /placements/{id}` - Update placement ### Job Opportunities 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. - `GET /job-opportunities` - List job opportunities - `GET /job-opportunities/{id}` - Get job opportunity ### Contractor Documents Contractor documents: right to work, checks, licences and insurance on the person, and what each contract needs - `GET /candidates/{id}/papers` - List a candidate's documents - `POST /candidates/{id}/papers` - Save a document - `POST /candidates/{id}/contractor-page-link` - Get a contractor page link - `GET /placements/{id}/papers` - Check a placement's documents - `PUT /placements/{id}/papers/{kind}/waiver` - Mark a document not needed - `DELETE /placements/{id}/papers/{kind}/waiver` - Ask for a document again ### Quotas Quota plan, periods and the recognition board: credit-share money against targets for the agency, teams and consultants - `GET /quotas/plan` - Get quota plan - `GET /quotas/periods` - List quota periods - `GET /quotas/periods/{id}` - Get quota period board ### Opportunities 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. - `GET /opportunities/job-leads` - List job leads - `GET /opportunities/job-leads/{id}` - Get a job lead - `GET /opportunities/job-leads/{id}/floats/{adId}` - Get a float draft - `GET /opportunities/key-movements` - List key movements ### Marketplace 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. - `GET /marketplace/listings` - Browse marketplace listings - `POST /marketplace/listings` - Share to the marketplace - `GET /marketplace/listings/{id}` - Get marketplace listing - `PATCH /marketplace/listings/{id}` - Manage marketplace listing - `GET /marketplace/intros` - List marketplace intros - `POST /marketplace/intros` - Make a marketplace intro - `GET /marketplace/intros/{id}` - Get marketplace intro - `POST /marketplace/intros/{id}/respond` - Respond to a marketplace intro - `GET /marketplace/deals` - List marketplace deals - `GET /marketplace/deals/{id}` - Get marketplace deal - `PATCH /marketplace/deals/{id}` - Marketplace deal handshake ### Webhooks Event subscriptions with HMAC-SHA256 signing - `GET /webhooks` - List webhooks - `POST /webhooks` - Create webhook - `GET /webhooks/events` - List webhook events - `GET /webhooks/{id}` - Get webhook - `PATCH /webhooks/{id}` - Update webhook - `DELETE /webhooks/{id}` - Delete webhook - `POST /webhooks/{id}/rotate-secret` - Rotate webhook secret - `POST /webhooks/{id}/test` - Test webhook - `GET /webhooks/{id}/deliveries` - List webhook deliveries - `POST /webhooks/{id}/deliveries/{deliveryId}/replay` - Replay webhook delivery ### Batch Execute multiple canonical actions in a single request with per-op idempotency - `GET /actions` - List actions - `POST /batch` - Execute multiple actions in one request ### Activities Audit log and activity tracking - `GET /activities` - List activities - `POST /activities` - Add a note ### Documents Files attached to any record - CVs, contracts, briefs, right-to-work scans - `GET /documents` - List documents on a record - `POST /documents` - Upload a document - `GET /documents/{id}` - Get a document - `DELETE /documents/{id}` - Delete a document - `GET /documents/{id}/download` - Get a download link ### Tasks Async operation polling - `GET /tasks/{id}` - Get task status ### Outreach AI-powered candidate outreach - `POST /outreach/generate` - Generate AI outreach - `GET /outreach` - List outreach records - `POST /outreach` - Create outreach record ### Talent Pools Talent pool membership and candidate rediscovery - `GET /talent-pools` - List talent pools - `POST /talent-pools` - Create a talent pool - `GET /talent-pools/{id}` - Get talent pool - `PATCH /talent-pools/{id}` - Update talent pool - `DELETE /talent-pools/{id}` - Delete talent pool - `GET /talent-pools/{id}/members` - List pool members - `POST /talent-pools/{id}/members` - Add candidate to pool - `DELETE /talent-pools/{id}/members/{memberId}` - Remove pool member ### Review Queue Items Lovelio cannot decide on its own and needs a recruiter to handle - `GET /review-queue` - List review queue items - `PATCH /review-queue/{id}` - Update a review queue item ### Forms Form templates, phone screen execution, and reference check delivery - `GET /forms` - List forms - `POST /forms` - Create form - `GET /forms/{id}` - Get form with questions - `PATCH /forms/{id}` - Update form - `DELETE /forms/{id}` - Delete form - `POST /forms/{id}/questions` - Add question to form - `PATCH /forms/{id}/questions/{questionId}` - Update question - `DELETE /forms/{id}/questions/{questionId}` - Delete question - `GET /form-instances` - List form instances - `GET /form-instances/{id}` - Get form instance - `POST /form-instances/{id}/submit` - Save or complete a form instance - `POST /form-instances/screening` - Prepare screening instance - `POST /form-instances/reference` - Create reference instance - `POST /form-instances/{id}/send` - Send reference form to referee ### Referees Candidate referee management for reference checks - `GET /candidates/{id}/referees` - List referee contacts - `POST /candidates/{id}/referees` - Add referee - `PATCH /candidates/{id}/referees/{refereeId}` - Update referee - `DELETE /candidates/{id}/referees/{refereeId}` - Delete referee ### Integrations Third-party integrations (Slack, Calendar) - `GET /integrations/slack` - Get Slack integration - `PATCH /integrations/slack` - Update Slack settings - `DELETE /integrations/slack` - Disconnect Slack ### Chat Integrations AI chatbot platform connections (Slack, Teams, WhatsApp, Google Chat) and user identity mappings - `GET /integrations/chat` - List chat integrations - `POST /integrations/chat` - Connect chat platform - `PATCH /integrations/chat/{id}` - Update chat integration - `DELETE /integrations/chat/{id}` - Disconnect chat platform - `GET /integrations/chat/{id}/users` - List user mappings - `POST /integrations/chat/{id}/users` - Create user mapping - `DELETE /integrations/chat/{id}/users/{userId}` - Delete user mapping ### Analytics Hiring dashboard, pipeline funnel analysis, and KPI metrics - `GET /analytics/dashboard` - Dashboard statistics - `GET /analytics/pipeline` - Pipeline analysis - `GET /analytics/metrics` - Hiring metrics ### Calendar Shared calendar events for interviews, phone screens, reminders, deadlines, and meetings - `GET /calendar-events` - List calendar events - `POST /calendar-events` - Create calendar event - `GET /calendar-events/{id}` - Get calendar event - `PATCH /calendar-events/{id}` - Update calendar event - `DELETE /calendar-events/{id}` - Delete calendar event ### Scheduled Emails Superhuman-style scheduled candidate email sends. Draft, schedule, edit, cancel, or send-now before delivery. - `POST /emails` - Send candidate email now - `POST /emails/from-description` - Stage and stream a candidate email draft - `GET /emails/from-description/{review_token}` - Get a staged email draft - `PATCH /emails/from-description/{review_token}` - Patch fields on a staged email draft - `POST /emails/from-description/{review_token}/revise` - Apply a free-text rewrite to a staged email draft - `POST /emails/from-description/{review_token}/confirm` - Send or schedule a drafted email - `GET /scheduled-emails` - List scheduled emails - `POST /scheduled-emails` - Create scheduled email - `GET /scheduled-emails/{id}` - Get scheduled email - `PATCH /scheduled-emails/{id}` - Update scheduled email - `DELETE /scheduled-emails/{id}` - Cancel scheduled email - `POST /scheduled-emails/{id}/send-now` - Send scheduled email now ### Workflow Rules Per-company configuration for AI thresholds, HM deadlines, and follow-up cadences - `GET /workflow-rules` - Get workflow rules - `PATCH /workflow-rules` - Update workflow rules ### Email Templates Canonical transactional email templates and per-company AI instruction overrides - `GET /email-templates` - List email templates - `PATCH /email-templates` - Update one or more email templates ### Stages Canonical pipeline stage reference (labels, transitions, terminal flags) - `GET /stages` - List canonical pipeline stages ### Distribution Job board catalogue, posting rules, multi-board distribution, and the posting ledger - `GET /distribution/boards` - List job boards - `GET /distribution/rules` - List distribution rules - `POST /distribution/rules` - Create a distribution rule - `PATCH /distribution/rules/{id}` - Update a distribution rule - `DELETE /distribution/rules/{id}` - Delete a distribution rule - `GET /distribution/postings` - List job board postings - `POST /distribution/publish` - Distribute a job to boards ### Candidate Evidence - `POST /evidence/evaluations` - Check candidate evidence - `GET /evidence/evaluations/{id}` - Read an evidence review - `POST /evidence/packs` - Prepare a compact evidence pack - `GET /evidence/packs/{id}` - Read an evidence pack ### Commands - `POST /commands/resolve` - Resolve an everyday command ### Clients - `GET /clients` - List clients - `POST /clients` - Create client - `GET /clients/{id}` - Get client - `PATCH /clients/{id}` - Update client - `DELETE /clients/{id}` - Delete client - `GET /clients/duplicates` - Find duplicate clients - `POST /clients/merge` - Merge clients - `GET /clients/{id}/dna` - Get Client DNA - `POST /clients/{id}/dna` - Add Client DNA note - `GET /clients/{id}/sites` - List client sites - `POST /clients/{id}/sites` - Add client site - `GET /clients/{id}/contacts` - List client contacts - `POST /clients/{id}/contacts` - Add client contact - `PATCH /clients/{id}/contacts/{contactId}` - Update client contact - `DELETE /clients/{id}/contacts/{contactId}` - Delete client contact ### Specs - `GET /specs` - List specs - `POST /specs` - Create and send a spec - `GET /specs/{id}` - Get spec ### Search - `POST /search` - Natural language search --- ## System Health and status ### GET /health **Health check** 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. Operation ID: `getHealth` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | 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. | { success, data: object } | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `503` | 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. | { success, data: object, error } | ### POST /health **Health check (POST)** Same as GET. POST is accepted so this endpoint can be used as a webhook test target. Operation ID: `postHealth` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Both databases answered. | | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `503` | A database failed a read. See GET /health. | Error | ## Accounts Account and API key management ### POST /accounts/signup **Create account** 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. Operation ID: `createAccount` **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `email` | string | yes | A work email address. Personal addresses are refused. | | `company_name` | string | no | The agency name, up to 120 characters. Optional. | | `source` | string | no | Where the signup came from (e.g. "claude-agent"). Defaults to "api". | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | 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) }. | { success, data: object } | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | Another account already claims this email, or (for a work email) its domain (error.code CONFLICT). | Error | | `422` | Missing or invalid email, or a throwaway inbox such as Yopmail (error.field email). | Error | | `429` | Rate limit exceeded (3/hour, 5/day per IP). Retry-After header set. | Error | ### POST /accounts/verify-email **Verify account email** 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. Operation ID: `verifyAccountEmail` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `token` | string | yes | Verification token from the email link. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Email verified, account active | { success, data: object } | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | Token already used | Error | | `422` | Token missing, invalid, or expired | Error | ### GET /accounts/me **Get current account** Operation ID: `getMyAccount` Scopes: `accounts:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Account details | { data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /accounts/{id} **Get account** Operation ID: `getAccount` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Account details | { success, data: Account } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /accounts/{id} **Update account** Update mutable fields on the account. Partners can also mark onboarding as complete to bypass the in-app wizard. Operation ID: `updateAccount` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `company_name` | string | no | | | `tone_of_voice` | string \| null | no | | | `logo_url` | string \| null | no | | | `website_url` | string \| null | no | | | `location` | string \| null | no | | | `onboarding_completed_at` | boolean \| string (date-time) \| null | no | Pass true to mark onboarding complete (server sets NOW()), false/null to clear it, or an ISO 8601 timestamp to set it exactly. | | `timezone` | string | no | IANA timezone (e.g. "Europe/London"). Setting this marks timezone_source as "manual" so automated enrichment will not overwrite it. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated account | { success, data: Account } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /accounts/{id}/users **List users** Pagination: Returns the complete workspace user directory. No after cursor is accepted. Operation ID: `listUsers` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of users | { success, data: array of User } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /accounts/{id}/users **Invite a user** Operation ID: `createUser` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | Full name. Alternatively pass first_name + last_name. | | `first_name` | string | no | Given name. Preferred over name. | | `last_name` | string | no | Family name. | | `email` | string (email) | yes | Must be on the account's email_domain when one is set, else the invite is rejected. | | `phone` | string | no | | | `role` | string (`admin`, `team_leader`, `recruiter`, `resourcer`) | no | | | `team_id` | string | no | Team (tem_ id) the user joins when they accept the invite. | | `role_title` | string | no | | | `linkedin_url` | string | no | | | `slack_user_id` | string | no | | | `whatsapp_number` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | User invited | { success, data: User } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /accounts/{id}/users/{userId} **Get user** Operation ID: `getUser` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `userId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | User details | { success, data: User } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /accounts/{id}/users/{userId} **Update user** Operation ID: `updateUser` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `userId` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | Full name. Alternatively pass first_name + last_name; either way first/last and the display name stay in step. | | `first_name` | string | no | | | `last_name` | string | no | | | `email` | string (email) | no | Must be on the account's email_domain when one is set. | | `phone` | string | no | | | `role` | string (`admin`, `team_leader`, `recruiter`, `resourcer`) | no | | | `role_title` | string | no | | | `team_id` | string \| null | no | Assign the member to a team (tem_ id), or null to clear. Requires the user to have accepted their invite. | | `linkedin_url` | string | no | | | `slack_user_id` | string | no | | | `whatsapp_number` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated user | { success, data: User } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /accounts/{id}/users/{userId} **Delete user** Operation ID: `deleteUser` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `userId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `204` | User deleted | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /accounts/{id}/teams **List teams** Pagination: Returns the complete workspace team configuration. No after cursor is accepted. Operation ID: `listTeams` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of teams | { success, data: array of Team } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /accounts/{id}/teams **Create team** Operation ID: `createTeam` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `parent_team_id` | string \| null | no | Parent team this team nests under, or null/omitted for top level. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Team created | { success, data: Team } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /accounts/{id}/teams/{teamId} **Get team** Operation ID: `getTeam` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `teamId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Team details | { success, data: Team } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /accounts/{id}/teams/{teamId} **Update team** Operation ID: `updateTeam` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `teamId` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `parent_team_id` | string \| null | no | Re-parent the team. Send null to move it back to the top level. Must not create a cycle. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated team | { success, data: Team } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /accounts/{id}/teams/{teamId} **Delete team** Operation ID: `deleteTeam` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `teamId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `204` | Team deleted | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /accounts/{id}/api-keys **List API keys** Pagination: Returns the complete workspace API-key configuration. No after cursor is accepted. Operation ID: `listApiKeys` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of API keys | { success, data: array of ApiKey } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /accounts/{id}/api-keys **Create API key** 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. Operation ID: `createApiKey` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `scopes` | array of string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | API key created with full key value | { success, data: ApiKey, key } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### DELETE /accounts/{id}/api-keys/{keyId} **Revoke API key** Operation ID: `revokeApiKey` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `keyId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `204` | API key revoked | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /accounts/{id}/transcription-usage **Get video transcription usage** 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. Operation ID: `getTranscriptionUsage` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Usage snapshot | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /accounts/{id}/upgrade **Comp an account outside Stripe Checkout** 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. Operation ID: `upgradeAccount` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Account comped | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /accounts/{id}/intake-slo **Get intake pipeline SLO** 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. Operation ID: `getIntakeSlo` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Intake SLO reading | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /accounts/{id}/intelligence **Get company intelligence profile** 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. Operation ID: `getCompanyIntelligence` Scopes: `accounts:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Company intelligence profile | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /accounts/{id}/intelligence/refresh **Refresh company intelligence** 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. Operation ID: `refreshCompanyIntelligence` Scopes: `accounts:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | Refresh queued | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Jobs Job requisition management with AI enrichment ### GET /jobs **List jobs** Operation ID: `listJobs` Scopes: `jobs:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `status` | string (`draft`, `active`, `on_hold`, `closed`, `filled`) | no | | | `client_id` | string | no | Filter to jobs for one client (cli_ id). | | `team_id` | string | no | | | `title` | string | no | Case-insensitive substring match on the job title. | | `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated list of jobs | { success, data: array of Job, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /jobs **Create job (async)** Creates a job and triggers AI enrichment (description, criteria, interview questions). Returns 202 with a task ID to poll. Operation ID: `createJob` Scopes: `jobs:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `title` | string | yes | | | `mode` | string (`draft`, `active`) | no | 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` | string | no | Provenance label stored on the create task. Defaults to "api". | | `source_context` | string \| null | no | Free-text context stored alongside source. | | `compensation_research` | boolean, default false | no | When true, the create task also runs compensation research for the role. | | `client_id` | string | yes | 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` | string | no | Contact at the client (cct_ id). Must belong to client_id. | | `employment_type` | string (`full_time`, `part_time`, `contract`) | no | Basis of the role. Omit to leave unset. Any other value returns 422. | | `contract` | JobContractInput | no | | | `compensation` | object | no | Salary band for the role, plus what sits on top of base. package_total is derived and never sent. | | `compensation.base_min` | number, min 0 \| null | no | Must not exceed base_max. | | `compensation.base_max` | number, min 0 \| null | no | Must be at least base_min. | | `compensation.super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. | | `compensation.super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. | | `compensation.ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. | | `compensation.bonus_amount` | number, min 0 \| null | no | Bonus on top of base. | | `compensation.currency` | string | no | 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. | | `compensation.period` | string (`year`, `day`, `hour`) | no | 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` | string \| null | no | What great looks like 90 days in. Feeds AI enrichment of the job criteria. | | `location` | object | no | Structured location. `type` is one of `on_site`, `hybrid`, `remote`. For remote roles, city/country/country_code optionally define where candidates must be based. | | `location.type` | string (`on_site`, `hybrid`, `remote`) | no | | | `location.city` | string \| null | no | | | `location.state` | string \| null | no | | | `location.country` | string \| null | no | | | `location.country_code` | string \| null | no | ISO 3166-1 alpha-2 | | `team_id` | string | no | | | `hiring_manager_id` | string | no | | | `default_interview_format` | string (`video`, `phone`, `in_person`, `technical`), default "video" | no | Default interview format used when auto-booking interviews on stage transition. | | `is_evergreen` | boolean, default false | no | Create as an always-open pipeline job, excluded from performance metrics. | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | 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. | { success, data: Task } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /jobs/from-description **Draft a job from a natural-language description (streaming)** 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: \n\n` where 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). Operation ID: `draftJobFromDescription` Scopes: `jobs:write` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `description` | string | yes | Natural-language description of the role. | | `autopublish` | boolean, default false | no | 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` | string (`dashboard`, `slack`, `mcp`, `api`), default "api" | no | Caller self-identification for attribution. Does not affect behaviour. | | `client_id` | string | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | SSE stream of DraftEvent messages. The final `complete` event carries the full draft and a review_token to pass to /confirm. | string | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Missing or invalid description, or client_id does not match a client in this workspace. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /jobs/from-description/{review_token}/confirm **Confirm a staged draft and create the job (async)** 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. Operation ID: `confirmJobDraft` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | The review_token emitted in the `meta` and `complete` SSE events from the draft endpoint. | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `draft` | object | no | Optional edited draft to persist instead of the one originally streamed. | | `draft.title` | string | no | | | `draft.summary` | string | no | | | `draft.responsibilities` | array of string | no | | | `draft.requirements` | array of string | no | | | `draft.nice_to_haves` | array of string | no | | | `draft.benefits` | array of string | no | Candidate-facing benefits (medical, leave, perks). Drawn only from the recruiter's description or the client's profile - never the agency's own benefits. | | `draft.location` | string \| null | no | Denormalised display string ("Sydney, Australia" or "Remote"). Structured siblings on the draft object are location_type, location_city, location_country, location_country_code. | | `draft.location_type` | string (`In Office`, `Hybrid`, `Remote`) \| null | no | | | `draft.location_city` | string \| null | no | | | `draft.location_country` | string \| null | no | | | `draft.location_country_code` | string \| null | no | ISO 3166-1 alpha-2 | | `draft.compensation` | object \| null | no | | | `draft.compensation.base_min` | number \| null | no | | | `draft.compensation.base_max` | number \| null | no | | | `draft.compensation.currency` | string | no | | | `draft.compensation.period` | string (`Per Year`, `Per Day`, `Per Hour`) | no | How the figures are quoted on the draft. Omitted means the work type decides at confirm. | | `draft.employment_type` | string (`full_time`, `part_time`, `contract`) \| null | no | | | `draft.contract` | object \| null | no | 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. | | `mode` | string (`draft`, `active`) | no | 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` | string | no | Optional team ID to attach (tem_...). | | `hiring_manager_id` | string | no | Optional hiring manager user ID (usr_...). | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | Job creation queued. task_id returned in data. | { success, data: Task } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /jobs/from-description/{review_token} **Get the current state of a staged job draft** 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. Operation ID: `getJobDraft` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Draft not found. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /jobs/from-description/{review_token} **Update a staged job draft (fill gaps)** 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). Operation ID: `updateJobDraft` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `updates` | object | no | | | `updates.title` | string | no | | | `updates.client_id` | string | no | Client (cli_ id) the job is for - the one mandatory gap. Must belong to the account. | | `updates.client_name` | string | no | Optional display name override for the client. | | `updates.team_id` | string | no | | | `updates.team_name` | string | no | | | `updates.hiring_manager_id` | string | no | | | `updates.hiring_manager_name` | string | no | | | `updates.location` | object | no | | | `updates.location.display` | string | no | | | `updates.location.type` | string (`on_site`, `hybrid`, `remote`) | no | | | `updates.location.city` | string \| null | no | | | `updates.location.country` | string \| null | no | | | `updates.location.country_code` | string \| null | no | | | `updates.compensation` | object | no | | | `updates.compensation.base_min` | number, min 0 \| null | no | Must not exceed base_max. | | `updates.compensation.base_max` | number, min 0 \| null | no | Must be at least base_min. | | `updates.compensation.currency` | string | no | | | `updates.compensation.period` | string (`Per Year`, `Per Day`, `Per Hour`) | no | How the figures are quoted. Omit and the work type decides when the draft is confirmed. | | `updates.employment_type` | string (`full_time`, `part_time`, `contract`) | no | | | `updates.contract` | JobContractInput | no | | | `skip` | array of string | no | Gap fields to mark as skipped. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /jobs/from-description/{review_token}/revise **Apply a free-text revision to a staged draft** 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. Operation ID: `reviseJobDraft` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `instruction` | string | yes | The change the user wants, in their own words. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Invalid instruction or draft in a non-revisable state. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /jobs/{id}/ad **Get the latest job ad** 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. Operation ID: `getJobAd` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Job ad | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | No ad exists for this job. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /jobs/{id}/ad **Update a job ad** Edit a job ad's title, description, or published state. Accepts any subset of the three fields. Operation ID: `updateJobAd` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `title` | string | no | | | `description` | string | no | | | `published` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated ad | object | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | No ad exists for this job. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /jobs/{id}/ad/rewrite **AI-rewrite a job ad** 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. Operation ID: `rewriteJobAd` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `instruction` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Rewritten ad | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | No ad exists for this job. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /jobs/{id}/social-draft **Get a job's LinkedIn + X post drafts** Fetch the auto-generated LinkedIn and X (Twitter) social post drafts for a job, plus the OG image URL used for unfurl previews. Operation ID: `getSocialDraft` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Social draft | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Job not found. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /jobs/{id}/social-draft **Update a job's social post text** Edit the LinkedIn and/or X post text. og_image_url is preserved automatically. Operation ID: `updateSocialDraft` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `linkedin` | string | no | | | `twitter` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated social draft | object | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Job not found. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /jobs/{id} **Get job** Operation ID: `getJob` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Job details | { success, data: Job } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /jobs/{id} **Update job** Operation ID: `updateJob` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `title` | string | no | | | `status` | string (`active`, `on_hold`, `closed`, `filled`) | no | | | `location` | object | no | Structured location. `type` is one of `on_site`, `hybrid`, `remote`. For remote roles, city/country/country_code optionally define where candidates must be based. | | `location.type` | string (`on_site`, `hybrid`, `remote`) | no | | | `location.city` | string \| null | no | | | `location.country` | string \| null | no | | | `location.country_code` | string \| null | no | ISO 3166-1 alpha-2 | | `employment_type` | string (`full_time`, `part_time`, `contract`) | no | | | `contract` | JobContractInput | no | | | `compensation` | object | no | | | `compensation.base_min` | number, min 0 | no | Must not exceed base_max. | | `compensation.base_max` | number, min 0 | no | Must be at least base_min. | | `compensation.super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. | | `compensation.super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. | | `compensation.ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. | | `compensation.bonus_amount` | number, min 0 \| null | no | Bonus on top of base. | | `compensation.currency` | string | no | | | `compensation.period` | string (`year`, `day`, `hour`) | no | 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` | string \| null | no | 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` | string \| null | no | Contact at the client (cct_ id). Must belong to the job's client. | | `team_id` | string \| null | no | | | `hiring_manager_id` | string \| null | no | | | `default_interview_format` | string (`video`, `phone`, `in_person`, `technical`) | no | Default interview format used when auto-booking interviews on stage transition. | | `is_evergreen` | boolean | no | Mark or unmark the job as an always-open pipeline job (excluded from performance metrics). | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated job | { success, data: Job } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /jobs/{id} **Delete job** 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. Operation ID: `deleteJob` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | The acting user is neither an owner of the job nor an admin (error.code PERMISSION_DENIED). | Error | | `404` | Job not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | The job has job ads or applications and cannot be deleted (error.code CONFLICT). Close it with POST /jobs/{id}/close instead. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /jobs/{id}/close **Close or pause job** 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. Operation ID: `closeJob` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `reason` | string (`filled`, `closed`, `cancelled`, `on_hold`, `budget_frozen`), default "cancelled" | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Job closed or paused | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /jobs/{id}/reopen **Reopen job** Reopen a closed or filled job. Sets status to active. Requires jobs:write. Operation ID: `reopenJob` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Job reopened | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Plan job limit reached. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /jobs/{id}/summary **AI job summary** Operation ID: `getJobSummary` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | AI-generated role summary | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /jobs/{id}/ranking **Stack-ranked interviewed candidates for a job** 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. Operation ID: `getJobRanking` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Ranked candidate list | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Job not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /jobs/{id}/free-candidates **Who is free for a contract job** 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. Operation ID: `getJobFreeCandidates` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The free list | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Job not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | The job is not a contract job, or it has no start date. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /jobs/{id}/share-bundle **Get share-ready content bundle for a job** 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. Operation ID: `getJobShareBundle` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Share bundle | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Job not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Job Ads Public job postings and career pages ### GET /job-ads **List job ads** Operation ID: `listJobAds` Scopes: `jobs:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `job_id` | string | no | Filter to one job (job_ id). | | `status` | string (`draft`, `live`, `paused`, `expired`) | no | Filter by ad status. "publishing" is still accepted as an older name for draft. Any other value is a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated job ads | { success, data: array of object, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Invalid status filter. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /job-ads **Create job ad** Operation ID: `createJobAd` Scopes: `jobs:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | string | yes | External ID of the job this ad advertises. | | `channels` | array of string (`careers_page`, `jobs_widget`, `referio`, `linkedin`, `x`, `amplifiers`) | no | Distribution channels. Include "referio" to post to the referral marketplace (requires a referral_fee). | | `content` | object | no | | | `content.headline` | string | no | | | `content.body` | string | no | | | `referral_fee` | number | no | Fee paid for a successful Referio referral. Required when posting to the referio channel; Referio enforces a US$5,000 minimum. | | `referral_fee_currency` | string | no | ISO 4217 currency for referral_fee. Defaults to the ad currency. | | `expires_at` | string (date-time) \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | Job ad queued for generation and publishing. Poll data.poll_url; data.resource_id is the job_ad id. | { success, data: Task } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /job-ads/{id} **Get job ad** status is draft, live, paused or expired. shareable_url is the public careers page address, and is null unless the ad is live. Operation ID: `getJobAd` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Job ad details | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /job-ads/{id} **Delete job ad** 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. Operation ID: `deleteJobAd` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Job ad not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /job-ads/{id}/expire **Expire job ad** Operation ID: `expireJobAd` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Expired | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Candidates Candidate profiles and talent database ### GET /candidates **List candidates** 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. Operation ID: `listCandidates` Scopes: `candidates:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `email` | string | no | Exact (case-insensitive) email lookup. | | `tag` | string | no | | | `location_city` | string | no | Case-insensitive substring match on location. | | `do_not_approach` | boolean | no | Filter by the off-limits flag. Omit to list all candidates - the list includes flagged candidates by default. | | `contact_only` | boolean | no | Role filter. true = only people who exist purely as client contacts; false = only the candidate pool. Omit to list everyone. | | `rating` | integer, 1-5 | no | Exact star rating 1-5. | | `min_rating` | integer, 1-5 | no | Minimum star rating 1-5 ("4 and up" = 4). Unrated candidates never match. | | `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated candidates | { success, data: array of Candidate, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidates **Create candidate** Operation ID: `createCandidate` Scopes: `candidates:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | Full name. Alternatively pass first_name + last_name. | | `first_name` | string | no | 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` | string | no | Family name, stored as written alongside first_name. | | `email` | string | yes | | | `phone` | string \| null | no | | | `linkedin_url` | string \| null | no | | | `location` | object | no | Where the candidate lives. Stored as one "City, Region, Country" line. | | `location.city` | string | no | | | `location.region` | string | no | State or region | | `location.country` | string | no | Country name or ISO code | | `skills` | array of string | no | | | `resume_url` | string \| null | no | 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` | integer, 1-5 \| null | no | The agency's 1-5 star rating. | | `tags` | array of string | no | 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` | array of string \| null | no | Roles the candidate wants next. | | `preferred_seniority` | string (`intern`, `junior`, `mid`, `senior`, `staff`, `lead`, `principal`, `head`, `director`, `vp`, `c_suite`) \| null | no | | | `work_types` | array of string (`permanent`, `contract`, `temp`, `part_time`) \| null | no | | | `open_to_relocation` | boolean \| null | no | | | `available_from` | string (date) \| null | no | | | `availability_source` | string (`contract_end`, `candidate_reply`, `consultant`, `contractor_page`) | no | Where the available_from you are sending came from. Defaults to consultant. Stamped with the time of the write. | | `preferred_locations` | array of string \| null | no | Places the candidate wants to work; gazetteer-resolved asynchronously. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Created | { success, data: Candidate } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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). | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /candidates/{id} **Get candidate** Operation ID: `getCandidate` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Candidate details | { success, data: Candidate } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /candidates/{id} **Update candidate** 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. Operation ID: `updateCandidate` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `first_name` | string | no | Changes the given name only; the last name and name follow. Sending first_name or last_name wins over name. | | `last_name` | string | no | Changes the family name only; the first name stays as stored. | | `email` | string \| null | no | | | `phone` | string \| null | no | | | `linkedin_url` | string \| null | no | | | `location` | object | no | Where the candidate lives. Stored as one "City, Region, Country" line. | | `location.city` | string | no | | | `location.region` | string | no | State or region | | `location.country` | string | no | Country name or ISO code | | `skills` | array of string | no | | | `tags` | array of string | no | 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` | string \| null | no | Also accepted as current_job_title. | | `current_company` | string \| null | no | Also accepted as current_employer. | | `do_not_approach` | boolean | no | Off-limits flag. Flagged candidates are excluded from search, matching and suggestions. | | `open_to_work` | boolean \| null | no | Open-to-work flag. Null clears it back to never-captured. | | `rating` | integer, 1-5 \| null | no | The agency's 1-5 star rating. Null clears it. | | `salary_expectation` | string \| null | no | Raw salary expectation ("145k + super", "850/day"). The normalized annual figure, amount, period, and currency derive automatically. | | `notice_period` | string \| null | no | Raw notice period ("4 weeks"). notice_period_days derives automatically. | | `work_rights` | string \| null | no | Raw right-to-work statement ("citizen", "482 visa"). work_rights_status derives automatically. | | `preferred_roles` | array of string \| null | no | Roles the candidate wants next. Null clears. | | `preferred_seniority` | string (`intern`, `junior`, `mid`, `senior`, `staff`, `lead`, `principal`, `head`, `director`, `vp`, `c_suite`) \| null | no | Seniority level the candidate wants. Free text like "Head of" normalizes automatically. | | `work_types` | array of string (`permanent`, `contract`, `temp`, `part_time`) \| null | no | Work types the candidate is open to. Variants like "perm" or "full-time" normalize automatically. | | `open_to_relocation` | boolean \| null | no | | | `available_from` | string (date) \| null | no | Stated availability date (YYYY-MM-DD). Null clears. | | `availability_source` | string (`contract_end`, `candidate_reply`, `consultant`, `contractor_page`) | no | Where the available_from you are sending came from. Defaults to consultant. Stamped with the time of the write. | | `preferred_locations` | array of string \| null | no | Places the candidate wants to work. Replaces the FULL set on every write; each entry is gazetteer-resolved asynchronously for search. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: Candidate } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /candidates/{id} **Delete candidate** 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. Operation ID: `deleteCandidate` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Candidate not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | The candidate is on one or more jobs (error.code CONFLICT). The message names them. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /candidates/{id}/gdpr-delete **GDPR delete candidate** Permanently deletes all candidate data including applications, interviews, assessments, and stored CVs. Irreversible. Operation ID: `gdprDeleteCandidate` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidates/search **Search candidates** 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. Operation ID: `searchCandidates` Scopes: `candidates:read` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `query` | string | yes | 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"). | | `limit` | integer, 1-100, default 25 | no | Results per page. | | `page` | integer, min 1, default 1 | no | 1-based page into the ranked pool. The ranking is deterministic, so page N is always the same slice for the same query. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Ranked matches | { success, data: CandidateSearchResult, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | query is required, or limit/page out of range. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | The search compiler is temporarily unavailable. The API never degrades to a different matcher - retry. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /candidates/duplicates **Find duplicate candidates** 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`. Pagination: Returns one computed duplicate-review report, not a stored row collection. No after cursor is accepted. Operation ID: `findDuplicates` Scopes: `candidates:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Duplicate pairs | { success, data: array of object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidates/merge **Merge candidates** Operation ID: `mergeCandidates` Scopes: `candidates:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `keep_id` | string | yes | | | `merge_id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Merged | { success, data: Candidate } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /candidates/from-cv **Upload a CV and stage a candidate draft** 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. Each 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. Operation ID: `stageCandidateFromCv` Scopes: `candidates:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `file_base64` | string | yes | Raw base64-encoded CV bytes (data-URL prefix optional). | | `mime_type` | string | no | Optional and ignored. Lovelio reads the file type from the bytes; a file that is not a PDF or Word document is refused. | | `source` | string (`slack`, `mcp`, `dashboard`, `api`) | no | Provenance tag stored on the draft row. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Draft staged | { success, data: object } | | `400` | 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. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | QUOTA_EXCEEDED - the account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days). | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /candidates/from-description/{review_token} **Get a staged candidate draft** Read current state of a staged candidate draft. Use this to poll gaps after editing. Operation ID: `getCandidateDraft` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Draft not found or already deleted. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /candidates/from-description/{review_token} **Patch fields on a staged candidate draft** Update one or more fields on an in-flight candidate draft (name, email, phone, linkedin_url, location, current_title, current_company). Recomputes gaps. Operation ID: `updateCandidateDraft` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string \| null | no | | | `email` | string \| null | no | | | `phone` | string \| null | no | | | `linkedin_url` | string \| null | no | | | `location` | string \| null | no | | | `current_title` | string \| null | no | | | `current_company` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Draft missing, expired, already confirmed, or cancelled. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidates/from-description/{review_token}/confirm **Create a candidate from a staged draft** 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. Operation ID: `confirmCandidateDraft` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Candidate created. | { success, data: object } | | `400` | Draft missing, expired, or already confirmed. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Candidate Imports Bulk CV import - migrate thousands of CVs into the talent bank ### POST /candidate-imports **Start a bulk CV import** 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. Limits: 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. On 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. Operation ID: `createCandidateImport` Scopes: `candidates:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `file_count` | integer, 1-5000 | yes | How many files this import will send. | | `match_pools` | boolean, default true | no | Match imported candidates against talent pools with AI matching on as they land. Defaults to true; pass false to import without pool matching. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Import created | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | QUOTA_EXCEEDED - this account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days) | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `413` | PAYLOAD_TOO_LARGE - file_count is above 5,000 | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /candidate-imports/{id} **Get import report** 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). Operation ID: `getCandidateImport` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Import report | { success, data: CandidateImport } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Import not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidate-imports/{id}/files **Request upload slots** 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). Operation ID: `addCandidateImportFiles` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `files` | array of object | yes | | | `files[].filename` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Upload slots | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | QUOTA_EXCEEDED - this account has used its CV allowance (200 until the first payment, then 5,000 per rolling 30 days) | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /candidate-imports/{id}/finalize **Confirm uploads** 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. Operation ID: `finalizeCandidateImport` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `uploaded_item_ids` | array of string | no | Import item ids from add_candidate_import_files, each starts imi_. | | `complete` | boolean | no | Set true on the final call to close the upload phase. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Confirmed | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Applications Application pipeline with AI assessment ### GET /applications **List applications** Operation ID: `listApplications` Scopes: `applications:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `job_id` | string | no | | | `candidate_id` | string | no | | | `stage` | string | no | | | `source` | string | no | | | `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated applications with assessment scores | { success, data: array of Application, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /applications **Create application (async)** Attaches an existing candidate to a job and triggers AI assessment. Returns 202. Starting 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. Source 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). Operation ID: `createApplication` Scopes: `applications:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | string | yes | External job id (job_...). | | `candidate_id` | string | yes | External candidate id (cnd_...). | | `stage` | string (`funnel`, `yes`, `screen`, `submitted`), default "funnel" | no | Where the candidate starts on the job. | | `source` | string \| null | no | Source slug (linkedin, indeed, job_ad, referral, careers_page, ...). Mapped to a category + detail. Ignored when source_category is supplied. | | `source_category` | string (`Careers Page`, `Job Board`, `Referral`, `Talent Pool`, `Database Search`, `Social`, `Agency`, `Direct`, `Imported`, `Other`) \| null | no | 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` | string \| null | no | Granular sub-source (exact board, referrer, pool, or search). Kept as sent, with or without a source_category. | | `cover_note` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | Application queued for assessment | { success, data: Task } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /applications/{id} **Get application** Operation ID: `getApplication` Scopes: `applications:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Application with assessment | { success, data: Application } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /applications/{id} **Update application** 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. Operation ID: `updateApplication` Scopes: `applications:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `note` | string | no | Free-text note to store against the application. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: Application } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `410` | Gone - stage/status field rejected. Use POST /applications/{id}/stage or POST /batch. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /applications/{id}/assessment **Re-assess application** Queues a fresh assessment after the candidate, job requirements or Client DNA changed. The existing assessment remains readable until the new result replaces it. Operation ID: `reassessApplication` Scopes: `applications:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | app_ id. | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | Assessment queued. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /applications/bulk-update **Bulk update applications** 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. Operation ID: `bulkUpdateApplications` Scopes: `applications:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `updates` | array of object | no | One item per application. Send this or application_ids, not both. | | `updates[].id` | string | yes | Application external ID (app_ prefix). | | `updates[].status` | string (`funnel`, `maybe`, `yes`, `no`, `screen`, `submitted`, `client_interview`, `references`, `offer`, `placed`, `rejected`, `withdrew`) | no | The stage to move to. Leave out to update notes only. | | `updates[].notes` | string | no | Audit note for the move, or the new application notes when status is left out. | | `updates[].rejection_reason` | string | no | Kept when the stage is no or rejected. | | `updates[].email_options` | BulkUpdateEmailOptions | no | | | `application_ids` | array of string | no | Application external IDs (app_ prefix) that all get the same status. Needs status. | | `status` | string (`funnel`, `maybe`, `yes`, `no`, `screen`, `submitted`, `client_interview`, `references`, `offer`, `placed`, `rejected`, `withdrew`) | no | The stage every application_ids entry moves to. | | `note` | string | no | Audit note for the move, applied to every application_ids entry. | | `rejection_reason` | string | no | Kept when the stage is no or rejected, applied to every application_ids entry. | | `email_options` | BulkUpdateEmailOptions | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Bulk update results | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /phone-screens/from-description **Stage a phone-screen log** 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. Operation ID: `composePhoneScreenFromDescription` Scopes: `applications:write` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | string | yes | External application ID (app_ prefix) | | `initial_outcome` | string (`advance`, `reject`, `hold`, `no_show`) | no | Pre-fill outcome on the draft. Caller can change it via PATCH before confirm. | | `initial_notes` | string | no | Pre-fill notes on the draft. Required before confirm succeeds. | | `call_at` | string | no | Optional ISO-8601 timestamp of the call. | | `duration_min` | number | no | Optional call duration in minutes. | | `source` | string (`slack`, `mcp`, `dashboard`, `api`) | no | Provenance tag stored on the draft row. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Draft staged. Returns review_token, current draft, and remaining gaps. | { success, data: object } | | `400` | application_id missing or invalid, or body was not JSON. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Application not found in this company. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /phone-screens/from-description/{review_token} **Get a staged phone-screen draft** Read current state of a staged phone-screen draft: outcome, notes, call metadata, and remaining gaps. Operation ID: `getPhoneScreenDraft` Scopes: `applications:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Draft not found or already deleted. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /phone-screens/from-description/{review_token} **Patch fields on a staged phone-screen draft** Update one or more fields on an in-flight phone-screen draft (outcome, notes, call_at, duration_min). Recomputes gaps. Operation ID: `updatePhoneScreenDraft` Scopes: `applications:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `outcome` | string (`advance`, `reject`, `hold`, `no_show`) \| null | no | | | `notes` | string \| null | no | | | `call_at` | string \| null | no | ISO-8601 timestamp or null to clear | | `duration_min` | number \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /phone-screens/from-description/{review_token}/confirm **Confirm a phone-screen log** 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. Operation ID: `confirmPhoneScreenDraft` Scopes: `applications:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Phone screen logged. Response contains application_id, outcome, new_stage (nullable for hold / no_show), note_id. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /applications/{id}/stage **Transition application stage** 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. Operation ID: `transitionApplicationStage` Scopes: `applications:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Application external ID (app_ prefix) | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `stage` | string (`funnel`, `maybe`, `yes`, `no`, `screen`, `submitted`, `client_interview`, `references`, `offer`, `placed`, `rejected`, `withdrew`) | yes | | | `reason` | string | no | Optional audit note explaining the manual move. | | `notify_candidate` | boolean, default true | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | Stage transition completed | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Application not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Invalid stage, or a client-side stage requested for a client with no contact to log the send against. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Interviews Interview scheduling and feedback ### GET /interviews **List interviews** Operation ID: `listInterviews` Scopes: `interviews:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `job_id` | string | no | Only interviews on this job (job_ id). | | `candidate_id` | string | no | Only interviews for this candidate (cnd_ id). | | `application_id` | string | no | Only interviews on this application (app_ id). | | `status` | string (`scheduled`, `completed`, `no_show`, `cancelled`) | no | Coarse status: scheduled is pending, completed covers passed and failed. | | `scheduled_after` | string (date-time) | no | Only interviews scheduled at or after this ISO 8601 datetime. | | `scheduled_before` | string (date-time) | no | Only interviews scheduled at or before this ISO 8601 datetime. | | `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated interviews | { success, data: array of Interview, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /interviews **Schedule interview** 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. Operation ID: `createInterview` Scopes: `interviews:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | string | yes | | | `scheduled_at` | string (date-time) | no | | | `format` | string (`phone`, `video`, `in_person`, `technical`) | no | | | `flavour` | string (`internal`, `client`), default "internal" | no | 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` | string | no | Link a client interview to the submission it came from (sub_ id). | | `client_contact_ids` | array of string | no | 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` | integer | no | | | `duration_minutes` | integer | no | | | `video_link` | string | no | 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` | string | no | Where an in-person interview happens. Rides the calendar invite's LOCATION line and the invitation emails. | | `scheduling_mode` | string (`propose`, `automated`, `self_schedule`), default "propose" | no | | | `interviewer_ids` | array of string | no | Agency-side attendees (usr_ ids). Internal interviews only - a client interview is the client meeting the candidate and carries none. | | `notes_for_candidate` | string | no | | | `notes_for_interviewer` | string | no | | | `ignore_conflicts` | boolean, default false | no | 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** | Code | Description | Body | | --- | --- | --- | | `201` | 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). | { success, data: Interview, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | { success, data: object, error } | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /interviews/{id} **Get interview** Operation ID: `getInterview` Scopes: `interviews:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Interview details | { success, data: Interview } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /interviews/{id} **Update interview** Operation ID: `updateInterview` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `outcome` | string (`pending`, `passed`, `failed`, `no_show`, `cancelled`) | no | 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` | string (`scheduled`, `completed`, `cancelled`, `no_show`) | no | Legacy coarse status; completed records a pass. Use outcome to record a fail. | | `format` | string (`phone`, `video`, `in_person`, `technical`) | no | | | `scheduled_at` | string (date-time) | no | 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` | boolean, default false | no | 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` | string \| null | no | 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` | integer | no | | | `round` | integer | no | | | `notes_for_candidate` | string | no | | | `notes_for_interviewer` | string | no | | | `feedback` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: Interview } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | { success, data: object, error } | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /interviews/{id} **Delete interview** Soft deletes an interview. The record is hidden from all queries but not permanently removed. Requires interviews:write scope. Operation ID: `deleteInterview` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Interview not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /interviews/{id}/context **Get interview preparation and debrief** 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. Operation ID: `getInterviewContext` Scopes: `interviews:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | ivw_ id. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Interview context. | { success, data: InterviewContext } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /interviews/{id}/cancel **Cancel interview** Operation ID: `cancelInterview` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Cancelled | { success, data: Interview } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /interviews/{id}/scorecard **Submit interview scorecard** 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. Operation ID: `submitScorecard` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `scores` | object | no | Map of criterion name to numeric score (e.g. { "Technical": 4 }). | | `recommendation` | string (`strong_hire`, `hire`, `no_hire`, `strong_no_hire`) | yes | | | `notes` | string | no | Free-text scorecard notes. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Scorecard stored | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Missing or invalid recommendation. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /interviews/{id}/schedule-link **Generate candidate self-schedule link** 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. Operation ID: `generateInterviewScheduleLink` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `send_email` | boolean, default true | no | Email the candidate the link automatically. | | `ttl_days` | integer, 1-30, default 7 | no | Link validity window in days. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Schedule link created | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /interviews/from-description **Stage an interview draft for an application** 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. Operation ID: `prepareInterviewFromDescription` Scopes: `interviews:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | string | yes | External application ID (app_ prefix) | | `scheduled_at` | string | no | Optional ISO-8601 timestamp to pre-fill the datetime | | `format` | string (`phone`, `video`, `in_person`, `technical`, `panel`) | no | Optional pre-selected format. Defaults to the job's default_interview_format. | | `interviewer_id` | string | no | Optional hiring_manager UUID. Defaults to the job's hiring_manager_id. | | `duration_min` | number | no | Optional duration in minutes. Defaults to 30. | | `location` | string | no | Optional location (required at confirm time when format=in_person). | | `notes` | string | no | Optional interviewer notes / prep links. | | `source` | string (`slack`, `mcp`, `dashboard`, `api`) | no | Provenance tag stored on the draft row. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Draft staged. Body contains review_token, draft, gaps, predicted. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Application not found in this company. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | application_id missing or invalid. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /interviews/from-description/{review_token} **Get a staged interview draft** Read current state of a staged interview draft: scheduled_at, duration_min, format, interviewer_id, location, notes + gaps. Operation ID: `getInterviewDraft` Scopes: `interviews:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Draft not found or already deleted. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /interviews/from-description/{review_token} **Patch fields on a staged interview draft** 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. Operation ID: `updateInterviewDraft` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `scheduled_at` | string \| null | no | ISO-8601 timestamp or null to clear | | `duration_min` | number | no | | | `format` | string (`phone`, `video`, `in_person`, `technical`, `panel`) \| null | no | | | `interviewer_id` | string \| null | no | | | `location` | string \| null | no | | | `notes` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Draft missing, already confirmed, or invalid field value. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /interviews/from-description/{review_token}/confirm **Book the drafted interview** 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. Operation ID: `confirmInterviewDraft` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `scheduled_at` | string (date-time) | no | Re-confirm at this time (after a SCHEDULING_CONFLICT refusal offered suggestions). Patches the draft through the one update path before booking. | | `ignore_conflicts` | boolean, default false | no | Book through a known free/busy clash - an explicit override, never the default. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Interview booked. Response body contains `interview_id`. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /interviews/{id}/action **Stage a reschedule or cancel draft for an existing interview** 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. Operation ID: `prepareInterviewAction` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `action` | string (`reschedule`, `cancel`) | yes | | | `new_scheduled_at` | string | no | ISO-8601 timestamp. Required at confirm time when action=reschedule. | | `reason` | string | no | Free-text reason. Required at confirm time when action=cancel. | | `notify_candidate` | boolean | no | Whether the candidate is emailed about the change. Defaults true. | | `source` | string (`slack`, `mcp`, `dashboard`, `api`) | no | Provenance tag stored on the draft row. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Draft staged. Body contains review_token, draft, gaps, action. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Interview not found in this company. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Missing / invalid action, or interview already cancelled. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /interviews/action-drafts/{review_token} **Get a staged reschedule / cancel draft** Read current state of a staged reschedule / cancel draft: action, new_scheduled_at, reason, notify_candidate + gaps. Operation ID: `getInterviewActionDraft` Scopes: `interviews:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Draft not found or already deleted. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /interviews/action-drafts/{review_token} **Patch fields on a staged reschedule / cancel draft** Update one or more fields on an in-flight reschedule / cancel draft. Recomputes gaps. Fields: new_scheduled_at, reason, notify_candidate. Operation ID: `updateInterviewActionDraft` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `new_scheduled_at` | string \| null | no | ISO-8601 timestamp or null to clear | | `reason` | string \| null | no | | | `notify_candidate` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Draft missing, already confirmed, or invalid field value. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /interviews/action-drafts/{review_token}/confirm **Confirm a reschedule or cancel draft** 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. Operation ID: `confirmInterviewActionDraft` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `new_scheduled_at` | string (date-time) | no | 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` | boolean, default false | no | Move through a known free/busy clash - an explicit override, never the default. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Confirmed. Response body contains `interview_id`, `action`, `notify_candidate`. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /scorecards/from-description **Stage a scorecard draft for an interview** 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. Operation ID: `stageScorecardDraft` Scopes: `interviews:write` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `interview_id` | string | yes | External interview id (ivw_...). | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Draft staged | { success, data: object } | | `400` | Invalid or missing interview_id. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /scorecards/from-description/{review_token} **Get a staged scorecard draft** Read the current state of a staged scorecard draft plus remaining mandatory and warn-level gaps. Operation ID: `getScorecardDraft` Scopes: `interviews:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Draft not found or already deleted. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /scorecards/from-description/{review_token} **Patch fields on a staged scorecard draft** 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. Operation ID: `updateScorecardDraft` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `scores` | array of object | no | Full replacement of the per-criterion scores array. | | `scores[].criterion_id` | string | no | | | `scores[].criterion_name` | string | no | | | `scores[].category` | string | no | | | `scores[].scoring_type` | string | no | | | `scores[].score` | number \| null | no | | | `scores[].note` | string | no | | | `criterion_id` | string | no | Single-entry patch: patch this criterion with score + note. | | `score` | number \| null | no | | | `note` | string | no | | | `overall_recommendation` | string (`strong_hire`, `hire`, `no_hire`, `strong_no_hire`) \| null | no | | | `feedback` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Draft missing, expired, already confirmed, or cancelled. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /scorecards/from-description/{review_token}/confirm **Submit a staged scorecard draft** 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). Operation ID: `confirmScorecardDraft` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Scorecard submitted and interview outcome updated. | { success, data: object } | | `400` | Draft missing, expired, or already confirmed. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Submissions Client-facing candidate submissions with a tokenised review link and a live feedback loop ### GET /submissions **List submissions** Operation ID: `listSubmissions` Scopes: `submissions:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `job_id` | string | no | Filter to one job (job_ id). | | `client_id` | string | no | Filter to one client (cli_ id). | | `status` | string (`pending`, `viewed`, `partially_responded`, `completed`, `expired`, `revoked`) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated list of submissions, newest first | { success, data: array of Submission, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /submissions **Create and send a submission** 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. Operation ID: `createSubmission` Scopes: `submissions:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | string | yes | | | `items` | array of object | yes | | | `items[].application_id` | string | yes | | | `items[].summary` | string | no | 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. | | `items[].quotes` | array of object | no | 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[].quotes[].call_id` | string | yes | call_ id | | `items[].quotes[].start_seq` | integer, min 0 | yes | First transcript line | | `items[].quotes[].end_seq` | integer, min 0 | no | Last transcript line. Defaults to start_seq. At most 40 lines. | | `client_contact_id` | string | no | Must belong to the job's client. Defaults to the job's contact, then the primary contact. | | `title` | string | no | | | `greeting` | string | no | Opening line of the email, no trailing comma (e.g. "Hi Brett"). Defaults to "Hi {first name}". | | `email_subject` | string | no | 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` | string | no | 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` | string | no | 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` | string | no | Legacy covering note. It renders under the DEFAULT intro and is ignored when intro_body is set. Use intro_body instead. | | `allow_resubmit` | boolean, default false | no | 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` | string (`full`, `first_name`, `anonymous`), default "full" | no | 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` | boolean | no | 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** | Code | Description | Body | | --- | --- | --- | | `201` | Created submission. email_sent false means the link works but the email failed - resend from the product. | { success, data: Submission } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /submissions/{id} **Get submission** Operation ID: `getSubmission` Scopes: `submissions:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Submission with per-candidate response state | { success, data: Submission } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Submission not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Calls Recorded calls: the transcript line by line, who spoke, the write-up and the recording ### GET /calls **List calls** 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. Operation ID: `listCalls` Scopes: `calls:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `candidate_id` | string | no | Filter by candidate (cnd_). | | `client_contact_id` | string | no | Filter by client contact (cct_). | | `job_id` | string | no | Filter by job (job_). | | `application_id` | string | no | Filter by application (app_). | | `interview_id` | string | no | Filter by interview (ivw_). | | `client_id` | string | no | Filter by client (cli_). | | `owner_id` | string | no | Filter by the consultant who owns the call (usr_). | | `unlinked` | boolean | no | true: only phone calls that matched nobody by number and have no candidate or contact yet. Link each with POST /calls/{id}/link. | | `recorded` | boolean | no | true: only calls with a recording or transcript, leaving out calls a consultant logged by hand. | | `platform` | string | no | Comma-separated platforms: zoom, google_meet, microsoft_teams, lovelio, phone, in_person, other, aircall. Example: phone,aircall. | | `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated calls | { success, data: array of Call, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /calls **Book a call** 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. Operation ID: `bookCall` Scopes: `calls:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | no | Candidate (cnd_). One of candidate_id, client_contact_id, application_id or calendar_event_id is required. | | `client_contact_id` | string | no | Client contact (cct_). | | `application_id` | string | no | Application (app_). Books the call with its candidate. | | `job_id` | string | no | Job (job_) the call is about. | | `starts_at` | string (date-time) | no | Leave out to start now. | | `duration_minutes` | integer, 5-240, default 30 | no | | | `title` | string | no | Defaults to "Call with ". | | `notes` | string | no | | | `platform` | string (`google_meet`, `microsoft_teams`, `zoom`) | no | Which link to make. zoom needs the user to have connected Zoom. Falls back to one the calendar can make. | | `record` | boolean | no | Record the call. Leave it out to follow the call settings. | | `tell_them` | boolean | no | Say in the invite that the call is recorded. Leave it out to follow the call settings. | | `call_type` | string (`candidate_screen`, `client_briefing`, `reference`, `interview_debrief`, `business_development`) | no | | | `ignore_conflicts` | boolean | no | Book even when the time clashes with another event. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Call booked | { success, data: CalendarEvent } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /calls/{id} **Get call** One call with its people, every line of the transcript, the write-up and a one-hour link to the recording. Requires calls:read. Operation ID: `getCall` Scopes: `calls:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The call | { success, data: CallDetail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Call not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /calls/{id} **Delete call (they said no)** 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. Operation ID: `discardCall` Scopes: `calls:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | Not the consultant on the call, a team leader or an admin | Error | | `404` | Call not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /calls/uploads **Upload a call recording** 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. Operation ID: `startCallUpload` Scopes: `calls:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | no | Candidate (cnd_). One of candidate_id, client_contact_id or application_id is required. | | `client_contact_id` | string | no | Client contact (cct_). | | `application_id` | string | no | Application (app_). Puts the call on its candidate and job. | | `job_id` | string | no | Job (job_) the call is about. | | `calendar_event_id` | string | no | A meeting (cal_) in your own diary. Puts the call on whoever is on it. Needs a key that acts as a user. | | `parts` | boolean | no | true: send the file in parts through POST /calls/{id}/upload-parts instead of one PUT. | | `content_type` | string | yes | The file's MIME type. The file itself is checked at upload-complete. | | `client_ref` | string | no | Your own id for this recording. | | `title` | string | no | | | `started_at` | string (date-time) | no | When the call happened. | | `duration_seconds` | integer, min 1 | no | | | `platform` | string (`zoom`, `google_meet`, `microsoft_teams`, `phone`, `in_person`, `other`) | no | Where the call happened. Defaults to other. | | `call_type` | string (`candidate_screen`, `client_briefing`, `reference`, `interview_debrief`, `business_development`) | no | Shapes the write-up. Defaults to candidate_screen for a candidate, client_briefing for a contact. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Ready for the file | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Candidate, contact, application or job not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Validation error, a file type Lovelio cannot read, recording switched off, or a call deleted because they said no | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /calls/{id}/upload-parts **Send a call recording in parts** 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. Operation ID: `signCallUploadParts` Scopes: `calls:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `parts` | array of integer, min 1 | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | A URL for each part | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Call not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Part numbers outside 1 to the most a recording can have, or more than 100 at once | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /calls/{id}/upload-complete **Finish a call upload** 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. Operation ID: `finishCallUpload` Scopes: `calls:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `parts` | integer, min 1 | no | Sent in parts: how many. | | `bytes` | integer, min 1 | no | Sent in parts: the whole recording's length in bytes. | | `marks` | array of object | no | Moments to keep as clips once the transcript is in. | | `marks[].at_ms` | integer, min 0 | yes | Milliseconds from the start of the recording. | **Responses** | Code | Description | Body | | --- | --- | --- | | `202` | Accepted | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Call not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | The file has not finished uploading, or parts are missing (data.missing) | Error | | `422` | The file is not a recording, or is over 2 GB | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /calls/{id}/link **Link a phone call to a person** 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. Operation ID: `linkCallToPerson` Scopes: `calls:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | no | Candidate (cnd_). Pass this or client_contact_id. | | `client_contact_id` | string | no | Client contact (cct_). Pass this or candidate_id. | | `save_number` | boolean | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | The linked call. number_saved true when save_number put the number onto the person. | { success, data: Call } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Call, candidate or contact not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | The call is already linked, or is still being processed | Error | | `422` | Not a phone call, or not exactly one of candidate_id and client_contact_id | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /calls/{id}/speakers **Name a speaker** 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. Operation ID: `nameCallSpeaker` Scopes: `calls:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `participant_id` | string | yes | The speaker (cpt_), from participants on GET /calls/{id}. | | `candidate_id` | string | no | The call's candidate (cnd_). | | `client_contact_id` | string | no | A contact at the call's client (cct_). | | `user_id` | string | no | A consultant on your team (usr_). | | `name` | string | no | Anyone else, by name. | | `reset` | boolean | no | true: put back the name the recording gave. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The call with its people and transcript, as GET /calls/{id}. | { success, data: CallDetail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Call or speaker not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | The call has no transcript yet | Error | | `422` | Not exactly one of candidate_id, client_contact_id, user_id, name or reset, or that person is not on this call | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Placements The record of the win: fee, start date, guarantee lifecycle ### GET /placements **List placements** Operation ID: `listPlacements` Scopes: `placements:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `client_id` | string | no | Filter by client (cli_). | | `candidate_id` | string | no | Filter by candidate (cnd_). | | `job_id` | string | no | Filter by job (job_). | | `status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no | | | `payroll_approval` | string (`approved`, `waiting`) | no | 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. | | `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | | `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated placements | { success, data: array of Placement, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /placements **Create placement** 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. Operation ID: `createPlacement` Scopes: `placements:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | string | no | app_ id. Resolves candidate, client, and job. | | `tidy_up` | object | no | Defaults when omitted: withdraw every other live application, keep the job open. | | `tidy_up.keep_application_ids` | array of string | no | app_ ids of other live applications to leave alone. | | `tidy_up.close_job` | boolean | no | Close the job as Filled. Default false. | | `candidate_id` | string | no | 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` | string | no | cli_ id. | | `job_id` | string | no | job_ id. Disambiguates when the candidate is on more than one of the client's jobs. | | `salary` | number | no | First-year BASE salary. | | `super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. | | `super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. | | `ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. | | `bonus_amount` | number, min 0 \| null | no | Bonus on top of base. | | `currency` | string | no | ISO 4217 code. Omit to let it default (see the endpoint description). | | `fee_type` | string (`percent`, `fixed`), default "percent" | no | | | `fee_percent` | number | no | 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` | number | no | Fixed fee amount (fee_type fixed). | | `placement_type` | string (`permanent`, `contract`) | no | Defaults from the job's employment_type: a contract job logs a contract placement. | | `offer_date` | string (date) | no | When the candidate accepted. Defaults to the recorded acceptance date, otherwise today. | | `contract_end_date` | string (date) | no | Contract placements: the initial term's end date. Must be on or after start_date. | | `charge_rate` | number, min 0 | no | Contract placements: what the client pays, per rate_period. Must be at least pay_rate. | | `pay_rate` | number, min 0 | no | Contract placements: what the contractor gets, per rate_period. | | `rate_period` | string (`hourly`, `daily`, `weekly`) | no | | | `on_cost_percent` | number, 0-200 \| null | no | 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` | number, min 0 \| null | no | 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` | number, min 0 | no | Contract placements: expected gross profit over the initial term. Defaults to margin x term off the rates; an explicit value wins. | | `credits` | array of object | no | The credit split - one line per consultant, percents totalling 100. Defaults to the placement owner at 100%. | | `credits[].user_id` | string | no | The consultant's usr_ id. | | `credits[].percent` | number | no | | | `credits[].role` | string (`candidate_consultant`, `job_owner`, `business_development`, `other`) | no | | | `start_date` | string (date) | no | | | `guarantee_days` | integer | no | Defaults to the client's guarantee_days. | | `notes` | string | no | | | `hiring_manager_contact_id` | string \| null | no | 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` | string \| null | no | 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` | string \| null | no | The client's purchase order number for this placement. | | `invoice_notes` | string \| null | no | What accounts needs to bill this placement. | | `work_site_id` | string | no | 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` | object | no | 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. | | `work_site.label` | string | no | | | `work_site.street` | string | no | | | `work_site.city` | string | no | | | `work_site.region` | string | no | | | `work_site.postcode` | string | no | | | `work_site.country` | string | yes | ISO 3166-1 alpha-2. Required. | | `position_id` | string \| null | no | 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` | string \| null | no | 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` | array of string | no | 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` | object | no | 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. | | `contractor_details.payment_type` | string (`payg`, `abn`) \| null | no | Australia: paid PAYG through the agency, or invoicing under their own ABN. | | `contractor_details.abn` | string \| null | no | Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn. | | `contractor_details.entity_name` | string \| null | no | 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. | | `contractor_details.gst_registered` | string (`yes`, `no`) \| null | no | 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** | Code | Description | Body | | --- | --- | --- | | `201` | Placement logged. meta.tidy_up says what else happened. | { success, data: Placement, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /placements/check-ins **Contractors to check in with** 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. Operation ID: `listContractorCheckIns` Scopes: `placements:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The check-in list | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /placements/contractor-report **Contract forecast and compliance report** 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. Operation ID: `getContractorReport` Scopes: `placements:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `team_id` | string | no | Only contracts whose consultant sits in this team or a team inside it. A tem_ id. | | `owner_id` | string | no | Only this consultant's contracts. A usr_ id. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The contractor report | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /placements/extension-asks **Contracts ending with no plan** 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. Operation ID: `listExtensionAsks` Scopes: `placements:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The contracts to ask about | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | The database is still being updated for extension asks. Try again in a few minutes. | Error | ### GET /payroll-reference/positions **Get your Positions** The Positions you last pushed, with the ids you gave. Add include_retired=true to see ones you have stopped sending. Operation ID: `listPayrollPositions` Scopes: `placements:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `include_retired` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The list | { data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PUT /payroll-reference/positions **Push your Positions** 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. Operation ID: `replacePayrollPositions` Scopes: `placements:write` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `items` | array of object | yes | | | `items[].id` | string | yes | Your own id for this entry, up to 100 characters. This is the id placements carry back to you. | | `items[].name` | string | yes | What a consultant reads in the dropdown, up to 200 characters. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The list as it stands now, with how many entries were added and retired. | { data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | An entry has no id or name, an id appears twice, or the list is over 5,000 entries. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /payroll-reference/rate-templates **Get your Rate templates** The Rate templates you last pushed, with the ids you gave. Add include_retired=true to see ones you have stopped sending. Operation ID: `listPayrollRateTemplates` Scopes: `placements:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `include_retired` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The list | { data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PUT /payroll-reference/rate-templates **Push your Rate templates** 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. Operation ID: `replacePayrollRateTemplates` Scopes: `placements:write` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `items` | array of object | yes | | | `items[].id` | string | yes | Your own id for this entry, up to 100 characters. This is the id placements carry back to you. | | `items[].name` | string | yes | What a consultant reads in the dropdown, up to 200 characters. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The list as it stands now, with how many entries were added and retired. | { data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | An entry has no id or name, an id appears twice, or the list is over 5,000 entries. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /placements/{id} **Get placement** Operation ID: `getPlacement` Scopes: `placements:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Placement details | { success, data: Placement } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /placements/{id} **Update placement** 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. Operation ID: `updatePlacement` Scopes: `placements:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no | | | `salary` | number | no | First-year BASE salary. | | `super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. | | `super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. | | `ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. | | `bonus_amount` | number, min 0 \| null | no | Bonus on top of base. | | `currency` | string | no | | | `fee_type` | string (`percent`, `fixed`) | no | | | `fee_percent` | number | no | | | `fee_amount` | number | no | | | `placement_type` | string (`permanent`, `contract`) | no | | | `offer_date` | string (date) | no | | | `contract_end_date` | string (date) | no | Must be on or after start_date. | | `charge_rate` | number, min 0 | no | Must be at least pay_rate. | | `pay_rate` | number, min 0 | no | | | `rate_period` | string (`hourly`, `daily`, `weekly`) | no | | | `on_cost_percent` | number, 0-200 \| null | no | 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` | number, min 0 \| null | no | 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` | number, min 0 | no | | | `contract_plan` | string (`asked`, `extending`, `finishing`) \| null | no | 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` | string (date) | no | 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` | string (`client_ended`, `contractor_left`) \| null | no | 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` | string (date) \| null | no | 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` | string (date) \| null | no | 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` | number \| null | no | Contract placements only: the perm salary on conversion. | | `conversion_fee` | number \| null | no | Contract placements only: the conversion fee. Defaults off the client's fee terms and the conversion salary when omitted. Added into expected_gp. | | `credits` | array of object | no | Replaces the whole split. Percents must total 100. | | `credits[].user_id` | string | no | The consultant's usr_ id. | | `credits[].percent` | number | no | | | `credits[].role` | string (`candidate_consultant`, `job_owner`, `business_development`, `other`) | no | | | `start_date` | string (date) | no | | | `guarantee_days` | integer | no | | | `notes` | string | no | | | `hiring_manager_contact_id` | string \| null | no | The client contact who hired (cct_ id of a contact on the placement's client). Null clears it. | | `invoice_contact_id` | string \| null | no | 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` | string \| null | no | The client's purchase order number for this placement. Null or an empty string clears it. | | `invoice_notes` | string \| null | no | What accounts needs to bill this placement. Null or an empty string clears it. | | `work_site_id` | string \| null | no | 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` | string \| null | no | 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` | string \| null | no | 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` | array of string | no | 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` | object | no | 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. | | `contractor_details.payment_type` | string (`payg`, `abn`) \| null | no | Australia: paid PAYG through the agency, or invoicing under their own ABN. | | `contractor_details.abn` | string \| null | no | Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn. | | `contractor_details.entity_name` | string \| null | no | 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. | | `contractor_details.gst_registered` | string (`yes`, `no`) \| null | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: Placement } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Job Opportunities 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. ### GET /job-opportunities **List job opportunities** 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. Operation ID: `listJobOpportunities` Scopes: `jobs:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `stage` | string (`new`, `talking`, `keen`, `terms`, `lost`, `parked`) | no | | | `kind` | string (`role`, `candidate`) | no | | | `due` | string (`today`, `week`, `new`, `later`) | no | When the next contact is due. today includes overdue ones. new: never contacted yet. | | `client_id` | string | no | Filter by client (cli_). | | `owner_id` | string | no | Filter by the consultant working it (usr_). | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated job opportunities | { success, data: array of JobOpportunity, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | An unknown stage, kind or due, stage=won, a malformed client_id or owner_id, or a cursor whose opportunity has moved. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /job-opportunities/{id} **Get job opportunity** 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. Operation ID: `getJobOpportunity` Scopes: `jobs:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | opp_ id. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The job opportunity | { success, data: JobOpportunity } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | No such job opportunity, or not yours to see. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Contractor Documents Contractor documents: right to work, checks, licences and insurance on the person, and what each contract needs ### GET /candidates/{id}/papers **List a candidate's documents** Every document on file for the person, newest first: right to work, checks, licences, insurance, each with the day it stops counting. Operation ID: `listCandidatePapers` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Documents on file | { success, data: array of Paper, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Candidate not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidates/{id}/papers **Save a document** 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. Operation ID: `savePaper` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `kind` | string | yes | | | `country` | string | no | ISO country code. Required unless placement_id is given. | | `placement_id` | string | no | pla_ id. Must be a placement for this candidate. | | `details` | string | no | | | `issued_on` | string (date) | no | The date on the document, YYYY-MM-DD. | | `expires_on` | string (date) | no | The printed expiry, YYYY-MM-DD. | | `document_id` | string | no | doc_ id of a file already on the candidate. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Document saved | { success, data: Paper } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Candidate or placement not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Unknown kind for that country, a bad date, or no country | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /candidates/{id}/contractor-page-link **Get a contractor page link** 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. Operation ID: `getContractorPageLink` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | The link | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Candidate not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /placements/{id}/papers **Check a placement's documents** 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. Operation ID: `getPlacementPapers` Scopes: `placements:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The documents check | { success, data: PlacementPapers } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Placement not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PUT /placements/{id}/papers/{kind}/waiver **Mark a document not needed** 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. Operation ID: `waivePaper` Scopes: `placements:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `kind` | string | yes | The document word, e.g. police_check. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Marked not needed | PaperWaiverResult | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Placement not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Right to work, or a kind Lovelio does not know | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /placements/{id}/papers/{kind}/waiver **Ask for a document again** Undo a not needed mark: the contract asks for the document again. Maps to action waive_paper with waived false. Operation ID: `unwaivePaper` Scopes: `placements:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `kind` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Needed again | PaperWaiverResult | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Placement not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Quotas Quota plan, periods and the recognition board: credit-share money against targets for the agency, teams and consultants ### GET /quotas/plan **Get quota plan** 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. Operation ID: `getQuotaPlan` Scopes: `quotas:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The quota plan | { success, data: QuotaPlan } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /quotas/periods **List quota periods** 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. Pagination: Returns the newest bounded period window selected by limit; agencies ordinarily create at most 12 periods a year. No after cursor is accepted. Operation ID: `listQuotaPeriods` Scopes: `quotas:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 12 | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Quota periods | { success, data: array of QuotaPeriod, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /quotas/periods/{id} **Get quota period board** 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. Operation ID: `getQuotaPeriodBoard` Scopes: `quotas:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | qpd_ id, or `current`. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The period's quota board | { success, data: QuotaPeriod } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Opportunities 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. ### GET /opportunities/job-leads **List job leads** 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. Pagination: Returns one recruiter's complete watch list, capped at 200 companies. No after cursor is accepted. Operation ID: `listJobLeads` Scopes: `clients:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `user_id` | string | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | Watched companies, most new jobs first | { success, data: array of JobLead, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /opportunities/job-leads/{id} **Get a job lead** 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. Operation ID: `getJobLead` Scopes: `clients:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Job lead id, starts cwt_. | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `user_id` | string | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | The job lead with its ads | { success, data: JobLeadDetail, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not on this recruiter's watch list | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /opportunities/job-leads/{id}/floats/{adId} **Get a float draft** 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. Operation ID: `getCareersFloat` Scopes: `clients:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Job lead id, starts cwt_. | | `adId` | string | yes | Careers ad id, starts cad_. | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `user_id` | string | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | The float | { success, data: CareersFloat, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | No float drafted for that ad yet | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /opportunities/key-movements **List key movements** 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. Pagination: Returns the open key movements the caller may see, newest 300 at most; rows clear themselves once handled. No after cursor is accepted. Operation ID: `listKeyMovements` Scopes: `clients:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Open key movements, newest first | { success, data: array of KeyMovement, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Marketplace 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. ### GET /marketplace/listings **Browse marketplace listings** 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. Operation ID: `listMarketplaceListings` Scopes: `marketplace:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `kind` | string (`job`, `candidate`) | no | | | `mine` | boolean, default false | no | true = your own listings at any status. | | `status` | string (`live`, `paused`, `filled`, `expired`, `withdrawn`) | no | Only meaningful with mine=true (browse serves live only). | | `limit` | integer, max 100, default 25 | no | | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated listings | { success, data: array of MarketplaceListing, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /marketplace/listings **Share to the marketplace** 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. Operation ID: `createMarketplaceListing` Scopes: `marketplace:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `kind` | string (`job`, `candidate`) | yes | | | `job_id` | string | no | job_ id. Required for kind=job. | | `candidate_id` | string | no | cnd_ id. Required for kind=candidate. | | `headline` | string | yes | | | `chips` | array of string | no | Up to 6 fact chips. | | `pitch` | string | yes | | | `location` | string | no | | | `salary_min` | number | no | | | `salary_max` | number | no | | | `currency` | string, default "AUD" | no | | | `fee_percent` | number | no | The declared fee basis. Prefills from the client's fee schedule in-app. | | `owner_share_percent` | integer (`50`, `60`, `70`, `80`), default 50 | no | The split you keep. 50/50 is the industry norm. | | `candidate_aware` | boolean | no | Candidate listings only - must be true. | | `accept_terms` | boolean | no | Accept the current Lovelio Split Terms (required once per company, on first share or first intro). | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Listing live on the marketplace | { success, data: MarketplaceListing } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /marketplace/listings/{id} **Get marketplace listing** Your own listing at any status; another agency's only while it is live. Operation ID: `getMarketplaceListing` Scopes: `marketplace:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Listing | { success, data: MarketplaceListing } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /marketplace/listings/{id} **Manage marketplace listing** 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. Operation ID: `updateMarketplaceListing` Scopes: `marketplace:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `action` | string (`pause`, `resume`, `withdraw`, `filled`, `renew`) | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated listing | { success, data: MarketplaceListing } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /marketplace/intros **List marketplace intros** direction=received (default) lists intros waiting on your listings; direction=sent lists intros your agency made. Operation ID: `listMarketplaceIntros` Scopes: `marketplace:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `direction` | string (`received`, `sent`), default "received" | no | | | `kind` | string (`submission`, `request`) | no | | | `status` | string (`pending`, `accepted`, `declined`, `withdrawn`, `expired`) | no | | | `limit` | integer, max 100, default 25 | no | | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated intros | { success, data: array of MarketplaceIntro, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /marketplace/intros **Make a marketplace intro** 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. Operation ID: `createMarketplaceIntro` Scopes: `marketplace:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `listing_id` | string | yes | mkl_ id. | | `kind` | string (`submission`, `request`) | yes | | | `candidate_id` | string | no | cnd_ id in YOUR tenant (submissions only). | | `headline` | string | no | Anonymised headline (submissions only). | | `chips` | array of string | no | | | `pitch` | string | no | Anonymised pitch (submissions only). | | `note` | string | no | | | `job_ad_id` | string | no | 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` | boolean | no | Submissions only - must be true. | | `accept_terms` | boolean | no | Accept the current Lovelio Split Terms (required once per company). | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Intro pending with the listing owner | { success, data: MarketplaceIntro } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /marketplace/intros/{id} **Get marketplace intro** Visible to the two sides only: the agency that sent it and the agency whose listing it is on. Operation ID: `getMarketplaceIntro` Scopes: `marketplace:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Intro | { success, data: MarketplaceIntro } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /marketplace/intros/{id}/respond **Respond to a marketplace intro** 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. Operation ID: `respondToMarketplaceIntro` Scopes: `marketplace:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `action` | string (`check`, `accept`, `decline`, `withdraw`) | yes | | | `decline_reason` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | check / decline / withdraw result | { success, data: object } | | `201` | Accepted - the deal is formed | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | Active plan required | Error | | `403` | Not your move (e.g. only the sender withdraws) | Error | | `404` | Not found - unknown id, or your agency is not a party to this intro | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /marketplace/deals **List marketplace deals** Deals where your agency is a party, rendered from your side (role, your_share_percent, your_share_amount). Operation ID: `listMarketplaceDeals` Scopes: `marketplace:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `status` | string (`connected`, `in_progress`, `placed`, `dead`) | no | | | `role` | string (`owner`, `partner`) | no | | | `limit` | integer, max 100, default 25 | no | | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated deals | { success, data: array of MarketplaceDeal, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /marketplace/deals/{id} **Get marketplace deal** Visible to the two parties only. Operation ID: `getMarketplaceDeal` Scopes: `marketplace:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deal | { success, data: MarketplaceDeal } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /marketplace/deals/{id} **Marketplace deal handshake** 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. Operation ID: `updateMarketplaceDeal` Scopes: `marketplace:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `action` | string (`add_to_pipeline`, `mark_paid`, `mark_received`, `close`, `email`) | yes | | | `job_id` | string | no | add_to_pipeline only: the receiving agency's job (job_...) to run the candidate at. | | `reason` | string | no | close only, required: why the deal is ending - the other agency reads it. | | `subject` | string | no | email only, required: the subject line. | | `body` | string | no | email only, required: the message, plain text, written by the consultant. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated deal | { success, data: MarketplaceDeal } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | Active plan required | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Webhooks Event subscriptions with HMAC-SHA256 signing ### GET /webhooks **List webhooks** Operation ID: `listWebhooks` Scopes: `webhooks:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated webhook subscriptions | { success, data: array of Webhook, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /webhooks **Create webhook** 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. Operation ID: `createWebhook` Scopes: `webhooks:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `url` | string (uri) | yes | | | `events` | array of string (`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 ["*"] | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Webhook created with signing secret | { success, data: Webhook } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /webhooks/events **List webhook events** 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. Pagination: Returns the complete static webhook event catalogue. No after cursor is accepted. Operation ID: `listWebhookEvents` Scopes: `webhooks:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Event catalogue | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /webhooks/{id} **Get webhook** Operation ID: `getWebhook` Scopes: `webhooks:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Webhook details | { success, data: Webhook } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /webhooks/{id} **Update webhook** events is validated against the same catalogue as creation (see GET /webhooks/events). Operation ID: `updateWebhook` Scopes: `webhooks:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `url` | string (uri) | no | | | `events` | array of string (`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`, `*`) | no | | | `status` | string (`active`, `paused`) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated webhook | { success, data: Webhook } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /webhooks/{id} **Delete webhook** Removes the subscription. A storage failure returns 500; it never reports a successful deletion. Operation ID: `deleteWebhook` Scopes: `webhooks:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `204` | Deleted | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Webhook subscription not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | Could not read or delete the subscription. Retry the request. | Error | ### POST /webhooks/{id}/rotate-secret **Rotate webhook secret** Operation ID: `rotateWebhookSecret` Scopes: `webhooks:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | New signing secret | { success, data: Webhook } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /webhooks/{id}/test **Test webhook** 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. Operation ID: `testWebhook` Scopes: `webhooks:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Test delivery attempted | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /webhooks/{id}/deliveries **List webhook deliveries** Operation ID: `listDeliveries` Scopes: `webhooks:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `status` | string | no | | | `event` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated delivery history. Delivery ids use the dlv_ prefix. | { success, data: array of WebhookDelivery, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /webhooks/{id}/deliveries/{deliveryId}/replay **Replay webhook delivery** 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. Operation ID: `replayDelivery` Scopes: `webhooks:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `deliveryId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Replay queued | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Batch Execute multiple canonical actions in a single request with per-op idempotency ### GET /actions **List actions** 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. Pagination: Returns the complete static action catalogue behind POST /batch. No after cursor is accepted. Operation ID: `listActions` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | Return exactly one action by canonical name; 404 when unknown, 403 HUMAN_ONLY_ACTION when only a person may take it. | | `category` | string | no | Return only the actions in one category (for example pipeline, clients, comms). | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Action catalogue | { success, data: array of object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | HUMAN_ONLY_ACTION: the named action is done only by a person in the Lovelio app. The message says why. | Error | | `404` | Unknown action name | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /batch **Execute multiple actions in one request** 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. The callable action catalogue is generated from the same action registry the product dispatches and the same scope map this endpoint enforces. | Action | Required scope | Payload | What it does | | --- | --- | --- | --- | | `add_candidate_import_files` | `candidates:write` | `{ import_id, files }` | Request signed upload slots for original candidate CV files. | | `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. | | `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. | | `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. | | `add_form_question` | `forms:write` | `{ form_id, question_text, order_index, question_type, options, scoring_weight, flag_mode, required }` | Add form question. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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"). | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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). | | `bulk_add_to_talent_pool` | `candidates:write` | `{ candidate_ids: [...], pool_id? \| pool_name? }` | Add multiple candidates to a talent pool at once. | | `bulk_reject` | `applications:write` | `{ application_ids: [...], reason?, send_email? (false skips the rejection email) }` | Reject multiple applications at once. | | `bulk_send_email` | `emails:write` | `{ candidate_ids: [...], subject, body, document_ids?: [document ids every recipient gets] }` | Send the same email to multiple candidates. | | `cancel_interview` | `interviews:write` | `{ interview_id, reason? }` | Cancel a scheduled interview. Sends a cancellation notice. | | `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. | | `cancel_scheduled_email` | `emails:write` | `{ scheduled_email_id }` | Cancel an email that has been scheduled but not yet sent. | | `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. | | `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. | | `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. | | `close_job` | `jobs:write` | `{ job_id, reason? }` | Close a job (sets status=Closed). Existing applications are preserved. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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). | | `create_candidate_import` | `candidates:write` | `{ file_count, match_pools }` | Start a bulk import of original candidate CVs. | | `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. | | `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. | | `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. | | `create_form` | `forms:write` | `{ name, category, description, ai_augmentation_enabled }` | Create form. | | `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. | | `create_job_ad` | `jobs:write` | `{ job_id, title?, description? }` | Create a new public job ad for a role. | | `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. | | `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). | | `create_reference_instance` | `forms:write` | `{ application_id, referee_id, form_id, channel, mode }` | Prepare a phone or email reference questionnaire without sending it. | | `create_reminder` | `interviews:write` | `{ title, starts_at, notes?, candidate_id?, job_id?, application_id? }` | Create a reminder for the user at a specific time. | | `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". | | `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. | | `create_webhook` | `webhooks:write` | `{ url, events?: string[] }` | Create a webhook subscription. Generates a signing secret returned once. | | `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. | | `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. | | `delete_client_contact` | `clients:write` | `{ contact_id }` | Remove a contact from a client. | | `delete_document` | `documents:write` | `{ document_id }` | Delete one document. Removes the file itself, not just the listing - there is no undo. | | `delete_form` | `forms:write` | `{ form_id }` | Delete form. | | `delete_form_question` | `forms:write` | `{ form_id, question_id }` | Delete form question. | | `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. | | `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. | | `delete_webhook` | `webhooks:write` | `{ webhook_id }` | Delete a webhook subscription. Past deliveries are preserved. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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 ?" 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. | | `draft_extension_asks` | `candidates:write` | `{ placement_ids?: string[] }` | Draft the extension asks: "Keep past ?" 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). | | `draft_job_availability_asks` | `candidates:write` | `{ job_id }` | Draft "Are you free from ?" 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. | | `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. | | `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. | | `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. | | `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). | | `finalize_candidate_import` | `candidates:write` | `{ import_id, uploaded_item_ids, complete }` | Confirm uploaded CVs and queue parsing. Poll import status for completion. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `get_candidate_draft` | `candidates:read` | `{ review_token }` | Read the current state of a staged candidate draft plus remaining mandatory and warn-level gaps. | | `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. | | `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. | | `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. | | `get_interview_action_draft` | `interviews:read` | `{ review_token }` | Read the current state of a staged reschedule / cancel draft plus remaining gaps. | | `get_interview_draft` | `interviews:read` | `{ review_token }` | Read the current state of a staged interview draft plus remaining gaps. | | `get_interview_form_draft` | `interviews:read` | `{ instance_id }` | Read the current state of an interview form: instance, sections, scores, recommendation, gaps. | | `get_job_creation_status` | `jobs:read` | `{ task_id }` | Poll a create_job task runner for per-step progress (description, criteria, questions, ad, social). | | `get_job_draft` | `jobs:read` | `{ review_token }` | Read the current state of a streaming draft plus remaining gaps and task status. | | `get_phone_screen_draft` | `applications:read` | `{ review_token }` | Read the current state of a staged phone-screen draft plus remaining gaps. | | `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. | | `get_scorecard_draft` | `interviews:read` | `{ review_token }` | Read the current state of a staged scorecard draft plus remaining mandatory and warn-level gaps. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `mark_placement_status` | `placements:write` | `{ placement_id, status, reason? }` | Mark a placement as pending start, started, fell off (during guarantee), or completed. | | `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). | | `merge_candidates` | `candidates:write` | `{ primary_id, duplicate_id \| duplicate_ids: [...], fields?: { name\|job\|email\|phone\|location\|linkedin_url: } }` | 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. | | `merge_clients` | `clients:write` | `{ primary_id, duplicate_id \| duplicate_ids: [...], fields?: { name\|website\|phone\|address\|linkedin_url\|industry\|owner\|fee_terms\|xero_contact: } }` | 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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `reassess_application` | `applications:write` | `{ application_id }` | Queue a fresh candidate assessment for an application after its candidate, job requirements or Client DNA changed. | | `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. | | `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. | | `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. | | `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. | | `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. | | `remove_call_clip` | `calls:write` | `{ call_id, clip_id }` | Remove a clip from a call. The transcript is untouched. | | `remove_client_recruiter` | `clients:write` | `{ client_id, member_id }` | Remove a teammate from a client's recruiter list. | | `remove_client_site` | `clients:write` | `{ site_id }` | Remove a workplace from a client. Placements keep the country they were logged under. | | `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. | | `reopen_job` | `jobs:write` | `{ job_id, reason? }` | Reopen a closed or filled job (sets status=Active). | | `replay_webhook_delivery` | `webhooks:write` | `{ webhook_id, delivery_id }` | Replay webhook delivery. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `rotate_webhook_secret` | `webhooks:write` | `{ webhook_id }` | Rotate webhook secret. | | `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. | | `save_current_view` | `accounts:write` | `{ name, page ('jobs'\|'candidates'), query?, query_params? }` | Save the current search query as a named view. | | `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. | | `schedule_call` | `interviews:write` | `{ title, starts_at, ends_at?, candidate_id?, notes? }` | Schedule a phone call (with a candidate or internal). | | `schedule_email` | `emails:write` | `{ candidate_id, subject, body, scheduled_at }` | Schedule an email to send at a future time. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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). | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `send_screening_form` | `forms:write` | `{ application_id, form_id? }` | Create a screening form instance for an application and send it to the candidate. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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.) | | `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. | | `submit_form_instance` | `forms:write` | `{ form_instance_id, draft, responses }` | Save actual respondent answers or complete a phone reference or screen. Never invent answers. | | `submit_scorecard` | `interviews:write` | `{ interview_id, scores, recommendation, notes? }` | Submit an interview scorecard / feedback for an interview. | | `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. | | `test_webhook` | `webhooks:write` | `{ webhook_id }` | Test webhook. | | `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. | | `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. | | `update_brand_voice` | `accounts:write` | `{ prompt }` | Update the company's brand voice prompt used by every AI email/job ad generation. | | `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.). | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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). | | `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. | | `update_form` | `forms:write` | `{ form_id, name, description, ai_augmentation_enabled }` | Update form. | | `update_form_question` | `forms:write` | `{ form_id, question_id, question_text, question_type, order_index, options, scoring_weight, flag_mode, required }` | Update form question. | | `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. | | `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. | | `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. | | `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. | | `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. | | `update_job_ad` | `jobs:write` | `{ job_id \| job_ad_id, title?, description?, published? }` | Edit the title / description / published flag of a job ad. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `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. | | `update_social_draft` | `jobs:write` | `{ job_id, linkedin?, twitter? }` | Edit a job's LinkedIn and X post text. | | `update_webhook` | `webhooks:write` | `{ webhook_id, url, events, status }` | Update webhook. | | `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. | | `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. | | `withdraw_application` | `applications:write` | `{ application_id, reason? }` | Record that a candidate has withdrawn from a role. | | `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. | Some 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`. Operation ID: `executeBatch` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `operations` | array of object | yes | | | `operations[].id` | string | no | Optional client-supplied correlation ID returned on the matching response op. A server ID is minted if omitted. | | `operations[].op` | string (`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`) | yes | Canonical action name. The generated catalogue above gives the scope, payload hint, and behaviour for every accepted value. | | `operations[].payload` | object | yes | 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. | | `operations[].idempotency_key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | 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. | { success, data: object, meta } | | `400` | Batch exceeds 100 operations (error code: BATCH_TOO_LARGE). | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Malformed batch body (missing operations, invalid JSON). | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | Rate limit exceeded. The batch is rejected without partially consuming rate limit. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Activities Audit log and activity tracking ### GET /activities **List activities** 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. Operation ID: `listActivities` Scopes: `activities:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `resource_type` | string | no | Filter by resource type (job, candidate, application, etc.) | | `resource_id` | string | no | Filter by resource ID | | `activity_type` | string (`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`) | no | Filter by activity type | | `after` | string | no | 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. | | `from` | string (date-time) | no | Start date filter (ISO timestamp) | | `to` | string (date-time) | no | End date filter (ISO timestamp) | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated activity log | { success, data: array of Activity, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /activities **Add a note** 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. Operation ID: `createNote` Scopes: `activities:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `resource_type` | string (`job`, `job_ad`, `candidate`, `application`, `interview`, `client`, `placement`) | yes | | | `resource_id` | string | yes | External ID of the resource | | `note` | string | yes | Note text. "@Full Name" of a teammate mentions them. | | `mentions` | array of string | no | Teammates to mention: user ids (usr_...), emails or full names. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Note created. metadata.mentions lists who was mentioned, as { user_id, name }. | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Resource not found or not visible to this key | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Documents Files attached to any record - CVs, contracts, briefs, right-to-work scans ### GET /documents **List documents on a record** 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. Pagination: Returns the complete document list for one record. No after cursor is accepted. Operation ID: `listDocuments` Scopes: `documents:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `record_type` | string (`candidate`, `client`, `client_contact`, `job`, `job_ad`, `application`, `interview`, `placement`, `submission`, `spec`, `bd_target`, `job_opportunity`, `talent_pool`, `team`, `hiring_manager`) | yes | The kind of record to list documents for. | | `record_id` | string | yes | External ID of the record (cnd_..., cli_..., job_...). | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Documents on the record | { success, data: array of Document, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Record not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /documents **Upload a document** 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. Operation ID: `createDocument` Scopes: `documents:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`multipart/form-data`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `file` | string (binary) | yes | | | `record_type` | string (`candidate`, `client`, `client_contact`, `job`, `job_ad`, `application`, `interview`, `placement`, `submission`, `spec`, `bd_target`, `job_opportunity`, `talent_pool`, `team`, `hiring_manager`) | yes | | | `record_id` | string | yes | External ID of the record. | | `is_cv` | string (`true`, `false`) | no | Candidates only: make this the candidate's current CV. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Document stored | { success, data: Document } | | `400` | The bytes are not a supported file type, the file is empty, or it is over 25MB | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Record not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /documents/{id} **Get a document** 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. Operation ID: `getDocument` Scopes: `documents:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Document | { success, data: Document } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Document not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /documents/{id} **Delete a document** 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. Operation ID: `deleteDocument` Scopes: `documents:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Document not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /documents/{id}/download **Get a download link** 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. Operation ID: `downloadDocument` Scopes: `documents:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Signed download link | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Document not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Tasks Async operation polling ### GET /tasks/{id} **Get task status** 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. Operation ID: `getTask` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Task status | { success, data: TaskStatus } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Outreach AI-powered candidate outreach ### POST /outreach/generate **Generate AI outreach** 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. Operation ID: `generateOutreach` Scopes: `candidates:read` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | cnd_ id. | | `platform` | string (`email`, `linkedin`, `whatsapp`) | yes | | | `job_id` | string | no | Optional job_ id. Anchors the drafts to that role. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Outreach variants | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /outreach **List outreach records** The outreach you have recorded against candidates, newest first. Operation ID: `listOutreach` Scopes: `candidates:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `candidate_id` | string | no | Only this candidate (cnd_ id). | | `platform` | string (`email`, `linkedin`, `whatsapp`) | no | | | `status` | string (`draft`, `sent`, `replied`, `no_response`) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of outreach records | { success, data: array of Outreach, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /outreach **Create outreach record** Record outreach you sent yourself. Lovelio stores it against the candidate; it does not send anything. Operation ID: `createOutreach` Scopes: `candidates:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | cnd_ id. | | `platform` | string (`email`, `linkedin`, `whatsapp`) | yes | | | `body` | string | yes | The message you sent. | | `subject` | string \| null | no | Email only. | | `job_id` | string | no | Optional job_ id the outreach was about. | | `status` | string (`draft`, `sent`, `replied`, `no_response`), default "sent" | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Outreach record created | { success, data: Outreach } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Talent Pools Talent pool membership and candidate rediscovery ### GET /talent-pools **List talent pools** Operation ID: `listTalentPools` Scopes: `talent_pools:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated talent pools | { success, data: array of TalentPool, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /talent-pools **Create a talent pool** Operation ID: `createTalentPool` Scopes: `talent_pools:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `slug` | string | no | | | `eligibility` | string | no | | | `auto_add_enabled` | boolean | no | | | `min_job_fit` | integer \| null | no | | | `min_hm_fit` | integer \| null | no | | | `description` | string | no | | | `keep_warm_enabled` | boolean | no | | | `cover_color` | string (`cyan`, `green`, `lime`, `amber`, `orange`) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Talent pool created | { success, data: TalentPool } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /talent-pools/{id} **Get talent pool** Operation ID: `getTalentPool` Scopes: `talent_pools:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Talent pool | { success, data: TalentPool } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /talent-pools/{id} **Update talent pool** Update any pool field including auto-add rules. Operation ID: `updateTalentPool` Scopes: `talent_pools:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `eligibility` | string \| null | no | | | `auto_add_enabled` | boolean | no | | | `min_job_fit` | integer \| null | no | | | `min_hm_fit` | integer \| null | no | | | `description` | string \| null | no | | | `keep_warm_enabled` | boolean | no | | | `cover_color` | string (`cyan`, `green`, `lime`, `amber`, `orange`, null) \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated talent pool | { success, data: TalentPool } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /talent-pools/{id} **Delete talent pool** Permanently delete the pool. Its members, shares and scan verdicts go with it; the candidates themselves are never touched. Operation ID: `deleteTalentPool` Scopes: `talent_pools:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /talent-pools/{id}/members **List pool members** Operation ID: `listTalentPoolMembers` Scopes: `talent_pools:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `q` | string | no | Search within the pool: case-insensitive match on member name, email, job title, or employer. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | 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. | { success, data: array of object, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /talent-pools/{id}/members **Add candidate to pool** Idempotent: re-adding an existing member returns 200 with already_member=true. Operation ID: `addTalentPoolMember` Scopes: `talent_pools:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Already a member | | | `201` | Added to the pool | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### DELETE /talent-pools/{id}/members/{memberId} **Remove pool member** Operation ID: `removeTalentPoolMember` Scopes: `talent_pools:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `memberId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Removed | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Review Queue Items Lovelio cannot decide on its own and needs a recruiter to handle ### GET /review-queue **List review queue items** 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. Operation ID: `listReviewQueue` Scopes: `applications:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `resolved` | boolean, default false | no | Filter by resolved state: true for resolved items, false for open ones. Defaults to false. | | `review_type` | string (`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`) | no | | | `priority` | string (`urgent`, `high`, `normal`, `low`) | no | | | `include_snoozed` | boolean, default false | no | If true, include items whose snoozed_until is in the future. Defaults to false. | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of review queue items | { success, data: array of ReviewQueueItem, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Invalid stage, or a client-side stage was requested before the candidate was submitted to the client. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /review-queue/{id} **Update a review queue item** 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. Operation ID: `updateReviewQueueItem` Scopes: `applications:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Review queue external ID (rev_ prefix) | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `resolved` | boolean | no | | | `priority` | string (`urgent`, `high`, `normal`, `low`) | no | | | `snoozed_until` | string (date-time) \| null | no | ISO-8601 timestamp to hide the item until, or null to clear the snooze. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: ReviewQueueItem } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Forms Form templates, phone screen execution, and reference check delivery ### GET /forms **List forms** Pagination: Returns the complete form-template configuration for one agency. No after cursor is accepted. Operation ID: `listForms` Scopes: `forms:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of form templates | { success, data: array of Form, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /forms **Create form** Operation ID: `createForm` Scopes: `forms:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `category` | string (`screening`, `assessment`, `interview`, `onboarding`, `compliance`) | yes | | | `description` | string | no | | | `ai_augmentation_enabled` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Form created | { success, data: Form } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /forms/{id} **Get form with questions** Operation ID: `getForm` Scopes: `forms:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Form with questions | { success, data: Form } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /forms/{id} **Update form** Operation ID: `updateForm` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `description` | string \| null | no | | | `ai_augmentation_enabled` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated form | { success, data: Form } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /forms/{id} **Delete form** Operation ID: `deleteForm` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /forms/{id}/questions **Add question to form** Operation ID: `addFormQuestion` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `question_text` | string | yes | | | `order_index` | integer, min 0 | no | | | `question_type` | string (`text`, `rating`, `yes_no`, `multiple_choice`) | no | | | `options` | array of string | no | Required for multiple_choice: at least 2 non-empty choices. | | `scoring_weight` | number | no | | | `flag_mode` | string (`red`, `green`, `neutral`) | no | | | `required` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Question added | { success, data: FormQuestion } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### PATCH /forms/{id}/questions/{questionId} **Update question** Operation ID: `updateFormQuestion` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `questionId` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `question_text` | string | no | | | `question_type` | string (`text`, `rating`, `yes_no`, `multiple_choice`) | no | | | `order_index` | integer, min 0 | no | | | `options` | array of string \| null | no | | | `scoring_weight` | number \| null | no | | | `flag_mode` | string (`red`, `green`, `neutral`, null) \| null | no | | | `required` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: FormQuestion } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /forms/{id}/questions/{questionId} **Delete question** Operation ID: `deleteFormQuestion` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `questionId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /form-instances **List form instances** Returns compact summaries of form instances for discovery and pagination. Use GET /v1/form-instances/{id} for full question and response data. Operation ID: `listFormInstances` Scopes: `forms:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `instance_type` | string (`screening`, `reference`, `interview`, `feedback`) | no | | | `status` | string (`draft`, `sent`, `opened`, `started`, `completed`) | no | | | `application_id` | string | no | | | `referee_id` | string | no | | | `form_id` | string | no | | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of form instances | { success, data: array of FormInstance, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /form-instances/{id} **Get form instance** Returns a form instance with all questions and responses. Operation ID: `getFormInstance` Scopes: `forms:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Form instance with questions and responses | { success, data: FormInstance } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /form-instances/{id}/submit **Save or complete a form instance** 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. Operation ID: `submitFormInstance` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | fin_ id. | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `draft` | boolean, default false | no | | | `responses` | array of object | yes | | | `responses[].question_id` | string | yes | fiq_ id. | | `responses[].response_text` | string \| null | no | | | `responses[].response_rating` | number \| null | no | | | `responses[].response_boolean` | boolean \| null | no | | | `responses[].response_choice` | string \| null | no | | | `responses[].ai_suggested_score` | number \| null | no | | | `responses[].final_score` | number \| null | no | | | `responses[].flag` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft saved, reference completed or screening scored. data.kind identifies the result shape. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /form-instances/screening **Prepare screening instance** 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. Operation ID: `createScreeningInstance` Scopes: `forms:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | string | yes | | | `mode` | string (`ai`, `template`) | no | | | `template_form_id` | string | no | frm_ id used when mode is template. | | `regenerate` | boolean, default false | no | | | `brief` | string | no | Consultant guidance for AI question generation. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Screen ready with questions and existing responses. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | No mode for a new screen, no usable template, or insufficient candidate information. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /form-instances/reference **Create reference instance** 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. Operation ID: `createReferenceInstance` Scopes: `forms:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | string | yes | | | `referee_id` | string | yes | ref_ id returned by the candidate referee endpoints. | | `form_id` | string | no | Optional frm_ template. | | `channel` | string (`email`, `phone`), default "email" | no | | | `mode` | string (`ai`, `template`) | no | Question source. Omit for the product default. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Unfinished phone reference resumed; nothing was created | { success, data: object } | | `201` | Reference instance created | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /form-instances/{id}/send **Send reference form to referee** 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. Operation ID: `sendFormInstance` Scopes: `forms:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `email_subject` | string | no | Your own subject line. Same placeholders as email_body. | | `email_body` | string | no | 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` | string (date) | no | YYYY-MM-DD, in the future. The date the email asks for the reference by, and the day the first reminder goes. | | `preview` | boolean | no | Return the subject, html and text that would go, with a stand-in link, and send nothing. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Form sent, or the preview | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Referees Candidate referee management for reference checks ### GET /candidates/{id}/referees **List referee contacts** Returns the candidate's referee contact records and their submitted_at timestamps. A submitted contact is not a completed reference response or report. Pagination: Returns the complete referee list for one candidate. No after cursor is accepted. Operation ID: `listReferees` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of referee contacts for this candidate | { success, data: array of Referee } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /candidates/{id}/referees **Add referee** Operation ID: `createReferee` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `email` | string (email) | no | | | `phone` | string | no | | | `job_title` | string | no | | | `company` | string | no | | | `relationship` | string | no | | | `worked_from` | string | no | YYYY-MM. | | `worked_to` | string | no | YYYY-MM. | | `how_worked_together` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Referee added | { success, data: Referee } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### PATCH /candidates/{id}/referees/{refereeId} **Update referee** Operation ID: `updateReferee` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `refereeId` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `email` | string \| null | no | | | `phone` | string \| null | no | | | `job_title` | string \| null | no | | | `company` | string \| null | no | | | `relationship` | string \| null | no | | | `worked_from` | string \| null | no | | | `worked_to` | string \| null | no | | | `how_worked_together` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: Referee } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /candidates/{id}/referees/{refereeId} **Delete referee** Operation ID: `deleteReferee` Scopes: `candidates:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `refereeId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { success, deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Integrations Third-party integrations (Slack, Calendar) ### GET /integrations/slack **Get Slack integration** Operation ID: `getSlackIntegration` Scopes: `integrations:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Slack connection status | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /integrations/slack **Update Slack settings** Operation ID: `updateSlackIntegration` Scopes: `integrations:write` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /integrations/slack **Disconnect Slack** Operation ID: `deleteSlackIntegration` Scopes: `integrations:write` **Responses** | Code | Description | Body | | --- | --- | --- | | `204` | Disconnected | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Chat Integrations AI chatbot platform connections (Slack, Teams, WhatsApp, Google Chat) and user identity mappings ### GET /integrations/chat **List chat integrations** List all connected chat platforms (Slack, Teams, WhatsApp, Google Chat) for the company. Pagination: Returns the complete configured chat-connection list for one agency. No after cursor is accepted. Operation ID: `listChatIntegrations` Scopes: `integrations:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of connected platforms with chatbot status | { success, data: array of object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /integrations/chat **Connect chat platform** Programmatically connect a chat platform for the AI chatbot. Requires platform credentials. Operation ID: `connectChatPlatform` Scopes: `integrations:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `platform` | string (`slack`, `teams`, `whatsapp`, `google_chat`, `discord`, `telegram`, `github`, `linear`) | yes | | | `workspace_id` | string | yes | Platform workspace/team ID | | `workspace_name` | string | yes | Human-readable workspace name | | `credentials` | object | no | Platform-specific credentials (bot_token for Slack, etc.) | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Integration created | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### PATCH /integrations/chat/{id} **Update chat integration** Enable/disable the chatbot or update settings for a connected platform. Operation ID: `updateChatIntegration` Scopes: `integrations:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Integration ID (slk_ or cin_ prefix) | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `chatbot_enabled` | boolean | no | | | `settings` | object | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated integration | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /integrations/chat/{id} **Disconnect chat platform** Operation ID: `disconnectChatPlatform` Scopes: `integrations:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Disconnected | { success } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /integrations/chat/{id}/users **List user mappings** 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. Pagination: Returns the complete user-mapping list for one chat connection. No after cursor is accepted. Operation ID: `listChatUserMappings` Scopes: `integrations:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of user mappings | { success, data: array of object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /integrations/chat/{id}/users **Create user mapping** Manually map a platform user to a Lovelio user. Useful for bulk provisioning or when auto-mapping by email is not possible. Operation ID: `createChatUserMapping` Scopes: `integrations:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `platform_user_id` | string | yes | Platform-specific user ID (e.g. Slack user ID) | | `platform_workspace_id` | string | yes | 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` | string | yes | Lovelio user ID (usr_ prefix) | | `display_name` | string | no | | | `role` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Mapping created | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### DELETE /integrations/chat/{id}/users/{userId} **Delete user mapping** Operation ID: `deleteChatUserMapping` Scopes: `integrations:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `userId` | string | yes | User mapping ID (cum_ prefix) | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Mapping deleted | { success } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Analytics Hiring dashboard, pipeline funnel analysis, and KPI metrics ### GET /analytics/dashboard **Dashboard statistics** 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. Operation ID: `getDashboard` Scopes: `analytics:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Dashboard data | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /analytics/pipeline **Pipeline analysis** 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. Operation ID: `getPipelineAnalysis` Scopes: `analytics:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `days` | integer, 1-365, default 30 | no | Lookback period in days (clamped to 365) | | `job_id` | string | no | Filter to one job (job_ prefix). 422 when malformed, 404 when not in this account. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Funnel analysis with conversion rates | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /analytics/metrics **Hiring metrics** 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. Operation ID: `getHiringMetrics` Scopes: `analytics:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `days` | integer, 1-365, default 30 | no | Lookback period in days (clamped to 365) | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Hiring KPIs | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Calendar Shared calendar events for interviews, phone screens, reminders, deadlines, and meetings ### GET /calendar-events **List calendar events** 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. Operation ID: `listCalendarEvents` Scopes: `interviews:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `start` | string (date-time) | no | Only return events starting at or after this ISO-8601 timestamp. | | `end` | string (date-time) | no | Only return events starting strictly before this ISO-8601 timestamp. | | `event_type` | string (`interview`, `phone_screen`, `reminder`, `deadline`, `meeting`) | no | | | `application_id` | string | no | | | `candidate_id` | string | no | | | `job_id` | string | no | | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of calendar events | { success, data: array of CalendarEvent, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /calendar-events **Create calendar event** 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. Operation ID: `createCalendarEvent` Scopes: `interviews:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `title` | string | yes | | | `event_type` | string (`interview`, `phone_screen`, `reminder`, `deadline`, `meeting`) | yes | | | `starts_at` | string (date-time) | yes | | | `ends_at` | string (date-time) \| null | no | | | `all_day` | boolean | no | | | `notes` | string | no | | | `application_id` | string | no | | | `job_id` | string | no | | | `candidate_id` | string | no | | | `assigned_to` | string | no | User ID the event is assigned to. | | `video` | boolean | no | Add a video link. Off unless asked. | | `platform` | string (`google_meet`, `microsoft_teams`, `zoom`) | no | Which link to make. zoom needs the organiser to have connected Zoom. Falls back to one the organiser's calendar can make. | | `record` | boolean | no | Record the call. Leave it out to follow the owner's call settings. | | `call_type` | string (`candidate_screen`, `client_briefing`, `reference`, `interview_debrief`, `business_development`) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Calendar event created | { success, data: CalendarEvent } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /calendar-events/{id} **Get calendar event** Operation ID: `getCalendarEvent` Scopes: `interviews:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Calendar event external ID (cal_ prefix) | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Calendar event | { success, data: CalendarEvent } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /calendar-events/{id} **Update calendar event** Operation ID: `updateCalendarEvent` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `title` | string | no | | | `event_type` | string (`interview`, `phone_screen`, `reminder`, `deadline`, `meeting`) | no | | | `starts_at` | string (date-time) | no | | | `ends_at` | string (date-time) \| null | no | | | `all_day` | boolean | no | | | `notes` | string \| null | no | | | `assigned_to` | string \| null | no | | | `record` | boolean \| null | no | Turn recording on or off for this event. Null follows the owner's call settings. The link stays as it is. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated calendar event | { success, data: CalendarEvent } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /calendar-events/{id} **Delete calendar event** Operation ID: `deleteCalendarEvent` Scopes: `interviews:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Scheduled Emails Superhuman-style scheduled candidate email sends. Draft, schedule, edit, cancel, or send-now before delivery. ### POST /emails **Send candidate email now** 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. Operation ID: `sendCandidateEmail` Scopes: `emails:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | | | `subject` | string | yes | | | `body` | string | yes | | | `to_address` | string | no | Override recipient (default uses candidate.email) | | `job_id` | string | no | | | `application_id` | string | no | | | `document_ids` | array of string | no | 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** | Code | Description | Body | | --- | --- | --- | | `201` | Email accepted for immediate send | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /emails/from-description **Stage and stream a candidate email draft** 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: \n\n` where 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. Operation ID: `composeEmailFromDescription` Scopes: `emails:write` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | External candidate ID (cnd_ prefix) | | `application_id` | string | no | Optional external application ID (app_ prefix) for role-aware tone | | `intent` | string (`advance`, `reject`, `schedule`, `offer`, `freeform`) | no | What kind of email to write. Defaults to freeform. | | `instructions` | string | no | Free-text hints about what the email should say | | `schedule_at` | string | no | Optional ISO-8601 timestamp. If set, confirm schedules the send. | | `source` | string (`slack`, `mcp`, `dashboard`, `api`) | no | Provenance tag stored on the draft row. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | SSE stream of draft events. Content-Type: text/event-stream. | string | | `400` | candidate_id missing or invalid, schedule_at is not ISO-8601, or body was not JSON. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Candidate or application not found in this company. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /emails/from-description/{review_token} **Get a staged email draft** 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. Operation ID: `getEmailDraft` Scopes: `emails:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Draft state | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Draft not found or already deleted. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /emails/from-description/{review_token} **Patch fields on a staged email draft** Update one or more fields on an in-flight draft (subject, body, schedule_at, template_chip). Recomputes gaps. Operation ID: `updateEmailDraft` Scopes: `emails:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `subject` | string | no | | | `body` | string | no | | | `schedule_at` | string \| null | no | ISO-8601 timestamp or null to clear | | `template_chip` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated draft + remaining gaps | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Draft missing, expired, already confirmed, or cancelled. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /emails/from-description/{review_token}/revise **Apply a free-text rewrite to a staged email draft** 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. Operation ID: `reviseEmailDraft` Scopes: `emails:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `instruction` | string | yes | The change the user wants, in their own words. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated subject + body | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Invalid instruction or draft in a non-revisable state. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### POST /emails/from-description/{review_token}/confirm **Send or schedule a drafted email** 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. Operation ID: `confirmEmailDraft` Scopes: `emails:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `review_token` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Email sent or scheduled. Response body contains `email_message_id` + `email_thread_id` (immediate send) OR `scheduled_email_id` (scheduled send). | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Draft missing, expired, or already confirmed. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /scheduled-emails **List scheduled emails** 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. Operation ID: `listScheduledEmails` Scopes: `emails:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `status` | string (`draft`, `scheduled`, `sending`, `sent`, `cancelled`, `failed`) | no | | | `candidate_id` | string | no | | | `scheduled_before` | string (date-time) | no | | | `scheduled_after` | string (date-time) | no | | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of scheduled emails | { success, data: array of ScheduledEmail, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /scheduled-emails **Create scheduled email** 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. Operation ID: `createScheduledEmail` Scopes: `emails:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | External candidate ID (cnd_). | | `to_address` | string | no | Optional override for the destination email. Defaults to the candidate's primary email. | | `cc_addresses` | array of string | no | | | `bcc_addresses` | array of string | no | | | `subject` | string | yes | | | `body_html` | string | no | Optional HTML body. Either body_html or body_text is required. | | `body_text` | string | no | Optional plain-text body. Either body_html or body_text is required. | | `scheduled_at` | string (date-time) | yes | When to fire. Must be in the future. | | `application_id` | string | no | | | `job_id` | string | no | | | `created_by` | string | no | Optional external user ID (usr_) to credit. Defaults to the company's first admin. | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Scheduled email created | { success, data: ScheduledEmail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /scheduled-emails/{id} **Get scheduled email** Operation ID: `getScheduledEmail` Scopes: `emails:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | Scheduled email external ID (sem_ prefix). | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Scheduled email details | { success, data: ScheduledEmail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /scheduled-emails/{id} **Update scheduled email** Edit a scheduled email before it fires. Only permitted when status='scheduled'. Once the cron has claimed the row the API returns 422. Operation ID: `updateScheduledEmail` Scopes: `emails:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `to_address` | string | no | | | `cc_addresses` | array of string | no | | | `bcc_addresses` | array of string | no | | | `subject` | string | no | | | `body_html` | string \| null | no | | | `body_text` | string \| null | no | | | `scheduled_at` | string (date-time) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated | { success, data: ScheduledEmail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | No longer editable (already sent/cancelled/failed) or validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /scheduled-emails/{id} **Cancel scheduled email** Soft-cancel a scheduled email by setting status='cancelled'. Row is preserved for audit. Only permitted when status='scheduled'. Operation ID: `cancelScheduledEmail` Scopes: `emails:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Cancelled | { success, data: ScheduledEmail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Not in a cancellable state | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /scheduled-emails/{id}/send-now **Send scheduled email now** 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'. Operation ID: `sendScheduledEmailNow` Scopes: `emails:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Scheduled for immediate send | { success, data: ScheduledEmail } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Not in a sendable state | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Workflow Rules Per-company configuration for AI thresholds, HM deadlines, and follow-up cadences ### GET /workflow-rules **Get workflow rules** Returns the current workflow rules for the company. A default row is auto-created on first read. Operation ID: `getWorkflowRules` Scopes: `accounts:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Current workflow rules | { success, data: WorkflowRules } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /workflow-rules **Update workflow rules** Update any subset of the workflow rules fields. Each reject threshold must stay strictly below its matching yes threshold. Operation ID: `updateWorkflowRules` Scopes: `accounts:write` **Request body** (`application/json`) Schema: [`WorkflowRules`](#workflowrules) **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated workflow rules | { success, data: WorkflowRules } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Email Templates Canonical transactional email templates and per-company AI instruction overrides ### GET /email-templates **List email templates** Returns the merged view of every canonical Lovelio email template and any per-company overrides. Filter to a single template with template_key. Pagination: Returns the complete transactional-template catalogue. No after cursor is accepted. Operation ID: `listEmailTemplates` Scopes: `accounts:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `template_key` | string | no | Optional: return only the specified template. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of email templates | { success, data: array of EmailTemplate } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /email-templates **Update one or more email templates** 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. Operation ID: `updateEmailTemplates` Scopes: `accounts:write` **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `updates` | array of object | yes | | | `updates[].template_key` | string | yes | | | `updates[].ai_instructions` | string \| null | no | | | `updates[].enabled` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated templates | { success, data: array of EmailTemplate } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Validation error | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Stages Canonical pipeline stage reference (labels, transitions, terminal flags) ### GET /stages **List canonical pipeline stages** 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. Pagination: Returns the complete static pipeline-stage catalogue. No after cursor is accepted. Operation ID: `listStages` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | List of stages | { success, data: array of object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Distribution Job board catalogue, posting rules, multi-board distribution, and the posting ledger ### GET /distribution/boards **List job boards** The catalogue of integrated job boards available to connect, with your monthly posting allowance per board (limit, used, remaining for the current month). Pagination: Returns the complete static job-board catalogue. No after cursor is accepted. Operation ID: `listDistributionBoards` Scopes: `jobs:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of boards | { success, data: array of DistributionBoard } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /distribution/rules **List distribution rules** Operation ID: `listDistributionRules` Scopes: `jobs:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of rules | { success, data: array of DistributionRule } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /distribution/rules **Create a distribution rule** Route matching jobs to boards. Free/mixed boards auto-publish; paid boards and boards with pricing null (not priced by Lovelio) await confirmation. Operation ID: `createDistributionRule` Scopes: `jobs:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `target_board_slugs` | array of string | yes | | | `filter` | object | no | See the DistributionRule schema. country is an ISO 3166 alpha-2 code (a country name is normalised to one on write). | | `filter.country` | string | no | | | `filter.category` | string | no | | | `filter.job_type` | string (`Permanent`, `Contract`, `Temporary`) | no | | | `filter.team_id` | string | no | | | `active` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Created rule | { success, data: DistributionRule } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### PATCH /distribution/rules/{id} **Update a distribution rule** Operation ID: `updateDistributionRule` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `patch` | object | no | | | `patch.name` | string | no | | | `patch.target_board_slugs` | array of string | no | | | `patch.filter` | object | no | | | `patch.active` | boolean | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated rule | { success, data: DistributionRule } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /distribution/rules/{id} **Delete a distribution rule** Operation ID: `deleteDistributionRule` Scopes: `jobs:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `204` | Deleted | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /distribution/postings **List job board postings** 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. Operation ID: `listDistributionPostings` Scopes: `jobs:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | string | no | Filter to one job | | `job_ad_id` | string | no | Filter to one job ad | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Array of postings | { success, data: array of JobBoardPosting } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /distribution/publish **Distribute a job to boards** With board_slugs, publishes asynchronously to those boards (202 + task). Without, evaluates the company distribution rules and returns the resolved targets. Operation ID: `distributeJob` Scopes: `jobs:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | string | yes | | | `board_slugs` | array of string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Rule-resolved targets. Every board a matching rule selects is posted to automatically, whatever it costs - `auto` is the whole answer. | { success, data: object } | | `202` | Async task accepted | | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Candidate Evidence ### POST /evidence/evaluations **Check candidate evidence** 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. Operation ID: `evaluateCandidateEvidence` Scopes: `candidates:read` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `scope` | object | yes | 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. | | `checks` | array of object | no | Explicit ad hoc checks. Supply checks or job_id. Full compiled job requirements are never truncated to this limit. | | `checks[].id` | string | yes | | | `checks[].term` | string | yes | | | `checks[].label` | string | no | | | `checks[].strength` | string (`must`, `nice`, `exclude`) | no | | | `job_id` | string | no | Compile every structured requirement for this job through the shared search core. | | `source_policy` | string (`original_cv`), default "original_cv" | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: object, meta } | | `202` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: object, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | Scope or role denied. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Invalid group or checks. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /evidence/evaluations/{id} **Read an evidence review** 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. Operation ID: `getEvidenceEvaluation` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `cursor` | string | no | | | `limit` | integer, 1-100, default 50 | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: EvidenceEvaluation, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Review not found or no longer accessible. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | Candidate access limit reached. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /evidence/packs **Prepare a compact evidence pack** 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. Operation ID: `prepareEvidencePack` Scopes: `candidates:read` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `scope` | object | yes | 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. | | `checks` | array of object | no | Explicit ad hoc checks. Supply checks or job_id. Full compiled job requirements are never truncated to this limit. | | `checks[].id` | string | yes | | | `checks[].term` | string | yes | | | `checks[].label` | string | no | | | `checks[].strength` | string (`must`, `nice`, `exclude`) | no | | | `job_id` | string | no | Compile every structured requirement for this job through the shared search core. | | `source_policy` | string (`original_cv`), default "original_cv" | no | | | `purpose` | string (`submission`, `interview_preparation`, `job_comparison`) | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: object, meta } | | `202` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: object, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /evidence/packs/{id} **Read an evidence pack** 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. Operation ID: `getEvidencePack` Scopes: `candidates:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `cursor` | string | no | | | `limit` | integer, 1-100, default 50 | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: EvidencePack, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Pack not found or no longer accessible. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | Candidate access limit reached. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Commands ### POST /commands/resolve **Resolve an everyday command** 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. Operation ID: `resolveCommand` **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `message` | string | yes | | | `context` | object | no | | | `context.application_id` | string | no | Current application typed ID, checked against live access. | | `context.record_type` | string (`candidate`, `client_contact`) | no | | | `context.record_id` | string | no | Current candidate or client contact typed ID. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Permission-checked result. Candidate rows count against the agent access allowance. | { success, data: object, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Clients ### GET /clients **List clients** 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. Operation ID: `listClients` Scopes: `clients:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `q` | string | no | 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. | | `search` | string | no | Case-insensitive substring match on the client name. Searched for literally: % and _ match those characters, not any text. | | `domain` | string | no | Exact match on the normalised bare domain. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated list of clients, or one ranked page when q is set | { success, data: array of Client, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /clients **Create client** 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. Operation ID: `createClient` Scopes: `clients:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | Required if website is omitted. | | `website` | string | no | Providing this kicks off enrichment + Client DNA. | | `phone` | string | no | Company main phone or switchboard. | | `industry` | string | no | | | `description` | string | no | | | `locations` | array of string | no | Office locations as City, Country. | | `address` | string | no | | | `contacts` | array of object | no | Contacts to create with the client in the same resumable action. | | `contacts[].name` | string | yes | | | `contacts[].email` | string | no | | | `contacts[].phone` | string | no | | | `contacts[].title` | string | no | | | `contacts[].notes` | string | no | | | `contacts[].is_primary` | boolean | no | | | `operation_key` | string | no | Optional caller key for safely resuming a partially completed client-and-contacts create. | | `notes` | string | no | | | `allow_duplicate` | boolean | no | 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` | object | no | Initial agreed terms (importing your book) - becomes the client's fee schedule v1. Later changes go through the set_client_fee_terms action. | | `terms.standard_fee_percent` | number | no | A flat percent - becomes a single permanent fee band. | | `terms.contract_margin_percent` | number | no | Agreed margin percentage for contract or temp engagements. | | `terms.payment_terms_days` | integer | no | | | `terms.guarantee_days` | integer | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Created client (enrichment_status "pending" when a website was given) | { success, data: Client } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /clients/{id} **Get client** 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. Operation ID: `getClient` Scopes: `clients:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Client details | { success, data: Client } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Client not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### PATCH /clients/{id} **Update client** 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. Operation ID: `updateClient` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `website` | string | no | 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` | string \| null | no | Company main phone or switchboard. | | `industry` | string \| null | no | | | `description` | string \| null | no | | | `locations` | array of string | no | | | `address` | string \| null | no | | | `notes` | string \| null | no | | | `logo_url` | string \| null | no | | | `default_invoice_contact_id` | string \| null | no | 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** | Code | Description | Body | | --- | --- | --- | | `200` | Updated client | { success, data: Client } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | The agency self-client cannot be edited through the API | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /clients/{id} **Delete client** 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. Operation ID: `deleteClient` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Client not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /clients/duplicates **Find duplicate clients** 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`. Pagination: Returns one computed duplicate-review report, not a stored row collection. No after cursor is accepted. Operation ID: `findClientDuplicates` Scopes: `clients:read` **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Duplicate pairs | { success, data: array of object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /clients/merge **Merge clients** 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. Operation ID: `mergeClients` Scopes: `clients:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `keep_id` | string | yes | The client to keep (cli_...). | | `merge_id` | string | yes | The duplicate to fold into it (cli_...). | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Merged | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | The acting user may not merge clients, or cannot open one of the two. | Error | | `404` | One of the two clients was not found. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | keep_id or merge_id missing, malformed or the same, or one is the agency self-client. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /clients/{id}/dna **Get Client DNA** Returns the Client DNA that assessments, phone screens, interview forms and job ads use: the reflection, five traits and append-only refinement notes. Operation ID: `getClientDna` Scopes: `clients:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | cli_ id. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Client DNA, or dna null while it is not available. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /clients/{id}/dna **Add Client DNA note** Appends a meeting, call or text note and queues the shared Client DNA reanalysis. Existing notes never change. Operation ID: `addClientDnaNote` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | cli_ id. | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | string | yes | | | `source` | string (`text`, `voice`, `meeting`), default "text" | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Note stored and reanalysis queued. | { success, data: object } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /clients/{id}/sites **List client sites** 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. Pagination: Returns the complete site list for one client. No after cursor is accepted. Operation ID: `listClientSites` Scopes: `clients:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Sites, oldest first | { success, data: array of ClientSite } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /clients/{id}/sites **Add client site** 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. Operation ID: `createClientSite` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `label` | string | no | | | `street` | string | no | | | `city` | string | no | | | `region` | string | no | 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` | string | no | | | `country` | string | yes | ISO 3166-1 alpha-2. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | The site | { success, data: ClientSite } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | No country, neither a street nor a city, or an Australian region that names no state. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### GET /clients/{id}/contacts **List client contacts** Pagination: Returns the complete contact list for one client. No after cursor is accepted. Operation ID: `listClientContacts` Scopes: `clients:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Contacts at this client, primary first | { success, data: array of ClientContact, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /clients/{id}/contacts **Add client contact** 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). Operation ID: `addClientContact` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `email` | string | no | | | `phone` | string | no | Digits with an optional leading + country code; spaces, hyphens, dots and parentheses allowed. Rejected with a validation error otherwise. | | `title` | string | no | | | `reports_to` | string | no | Another contact (cct_ id) on this client this person reports to. Must belong to the same client. | | `is_primary` | boolean | no | | | `notes` | string | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Created contact | { success, data: ClientContact } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | Validation error - e.g. phone is not a valid phone number | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### PATCH /clients/{id}/contacts/{contactId} **Update client contact** Patching name renames the person, not just this contact - the new name shows everywhere that person appears. Operation ID: `updateClientContact` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `contactId` | string | yes | | **Request body** (`application/json`) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `email` | string \| null | no | | | `phone` | string \| null | no | Digits with an optional leading + country code; spaces, hyphens, dots and parentheses allowed. Rejected with a validation error otherwise. | | `title` | string \| null | no | | | `reports_to` | string \| null | no | Another contact (cct_ id) on the same client this person reports to. Send null to clear. Cannot be the contact itself. | | `is_primary` | boolean | no | | | `notes` | string \| null | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Updated contact | { success, data: ClientContact } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `422` | Validation error - e.g. phone is not a valid phone number | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### DELETE /clients/{id}/contacts/{contactId} **Delete client contact** Soft deletes a contact. Any job pointing at it keeps the reference cleared by the composite FK rules on the job side. Operation ID: `deleteClientContact` Scopes: `clients:write` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `contactId` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Deleted | { deleted, id } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Contact not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Specs ### GET /specs **List specs** Specs (Floats in AU/NZ): speculative submissions - one anonymous candidate profile sent to one client contact with no job. Requires submissions:read. Operation ID: `listSpecs` Scopes: `submissions:read` **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer, 1-100, default 25 | no | 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. | | `after` | string | no | 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. | | `candidate_id` | string | no | Filter to one candidate (cnd_ id). | | `client_id` | string | no | Filter to one client (cli_ id). | | `status` | string (`sent`, `viewed`, `interested`, `passed`, `converted`, `expired`, `revoked`) | no | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Paginated list of specs, newest first | { success, data: array of Spec, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ### POST /specs **Create and send a spec** 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. Operation ID: `createSpec` Scopes: `submissions:write` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `candidate_id` | string | yes | | | `client_id` | string | yes | | | `client_contact_id` | string | yes | Must belong to the client. | | `headline` | string | yes | Anonymous profile title, e.g. "Senior Quantity Surveyor - Tier 1 commercial". | | `pitch` | string | yes | Why this person is worth meeting. Employers generalised, never named. | | `chips` | array of string | no | Up to 6 short facts (years, sector, location). | | `why_client` | string | no | Why this candidate fits THIS client - shown on their private page. | | `email_subject` | string | yes | | | `email_greeting` | string | no | Opening line of the email, no trailing comma (e.g. "Hi Brett"). Defaults to "Hi {first name}". | | `email_body` | string | yes | Short personal note. The profile button and signature are added automatically. | | `attach_terms` | boolean, default true | no | | | `candidate_aware` | boolean, default false | no | The honest record: does the candidate know? | **Responses** | Code | Description | Body | | --- | --- | --- | | `201` | Created spec. email_sent false means the profile link works but the email failed - share it directly. | { success, data: Spec } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ### GET /specs/{id} **Get spec** Operation ID: `getSpec` Scopes: `submissions:read` **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Spec with its response state and conversion links | { success, data: Spec } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | 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. | Error | | `404` | Spec not found | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error | ## Search ### POST /search **Natural language search** 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. Operation ID: `nlSearch` **Header parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `Idempotency-Key` | string | yes | 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. | **Request body** (`application/json`, required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `query` | string | yes | Natural language search query | | `entity_type` | string (`candidates`, `applications`, `jobs`, `interviews`) | yes | The one entity type to search. Needs that type's read scope. | | `limit` | integer, 1-100, default 25 | no | Max results per page | | `page` | integer, min 1, default 1 | no | Page number | | `sort_by` | string | no | 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` | string (`asc`, `desc`), default "desc" | no | Not accepted for entity_type=candidates, as above. | **Responses** | Code | Description | Body | | --- | --- | --- | | `200` | Search results | { success, data: CandidateSearchResult \| EntitySearchResult, meta } | | `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error | | `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error | | `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error | | `403` | The key lacks the read scope for this entity_type. | Error | | `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error | | `409` | 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. | Error | | `422` | query or entity_type missing or invalid, or sort_by/sort_order passed with entity_type=candidates. | Error | | `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error | | `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error | | `500` | The search compiler is temporarily unavailable (candidates only). The API never degrades to a different matcher - retry. | Error | | `503` | Idempotency storage error: retry only the identical request with the same key. | Error | ## Schemas Objects referenced by the operations above. ### Account | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `company_name` | string | no | | | `slug` | string | no | | | `domain` | string \| null | no | | | `logo_url` | string \| null | no | | | `brand_colours` | array of string | no | | | `location` | string \| null | no | | | `tone_of_voice` | string \| null | no | | | `comped` | boolean | no | The account is comped: not billed, and its AI credits are not metered. Set by Lovelio only. | | `seats` | integer \| null | no | Retired on 2026-09-12 with per-seat pricing. Always null. Users are free and uncounted on every band. | | `plan_tier` | string (`premium`) | no | Legacy field. Lovelio has one plan with everything included, so this always reads premium. | | `plan_status` | string (`trialing`, `active`, `past_due`, `cancelled`) | no | | | `email_verified` | boolean | no | | | `status` | string | no | | | `website_url` | string \| null | no | | | `created_at` | string (date-time) | no | | | `enriched_at` | string (date-time) \| null | no | | | `brand_voice_prompt` | string \| null | no | | | `mission` | string \| null | no | Company mission - 1-2 sentences. Auto-extracted from the company website on signup; editable in the dashboard. | | `what_we_do` | string \| null | no | What problems the company solves and for whom - 1-2 sentences. Auto-extracted; editable. | | `why_join` | string \| null | no | Bullet list of reasons to work at the company. Auto-extracted; editable. | | `benefits` | string \| null | no | Bullet list of tangible benefits and perks. Auto-extracted; editable. Job ad generation never invents items not in this block. | | `company_values` | string \| null | no | Bullet list of cultural anchors / values that define how the team works. | | `role_intelligence` | object \| null | no | 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` | string (date-time) \| null | no | Set when the account holder finishes the in-app onboarding wizard. Null means the next dashboard visit will force the wizard. | | `onboarding_answers` | object | no | 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` | string | no | 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` | string (`default`, `manual`, `address`, `brandfetch`, `firecrawl`, `browser`) | no | How the timezone was set. "manual" means an admin or API partner set it explicitly and no automated process will overwrite it. | | `is_demo` | boolean | no | True for throwaway demo accounts (self-serve walk-in demos and Connect sandboxes). Always false for real customer accounts created via /v1/accounts/signup. | ### Activity | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `resource_type` | string (`job`, `job_ad`, `candidate`, `application`, `interview`, `placement`) | no | | | `resource_id` | string | no | | | `action` | string | no | | | `activity_type` | string (`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`) | no | | | `actor_type` | string (`user`, `bot`, `system`, `automation`, `api`) | no | | | `actor_id` | string \| null | no | | | `actor_email` | string \| null | no | | | `description` | string | no | | | `metadata` | object | no | Activity-specific data (scores, field changes, etc.) | | `created_at` | string (date-time) | no | | ### ApiKey | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `name` | string | no | | | `prefix` | string | no | | | `scopes` | array of string | no | | | `status` | string | no | | | `key_type` | string | no | | | `last_used_at` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | ### Application A candidate on a job. Deleting a candidate deletes their applications: they leave every list and GET /applications/{id} returns 404. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `job_id` | string \| null | no | | | `job_title` | string \| null | no | | | `candidate_id` | string | no | | | `candidate_name` | string \| null | no | | | `candidate_email` | string \| null | no | | | `candidate_phone` | string \| null | no | | | `candidate_location` | object \| null | no | Coarsened to suburb (or city) and state - never a street address. | | `candidate_location.city` | string | no | | | `candidate_linkedin_url` | string \| null | no | | | `candidate_cv_url` | string \| null | no | 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` | array of string | no | | | `current_title` | string \| null | no | Snapshot of the candidate current_title at the moment they applied. Never updated after insert. | | `current_company` | string \| null | no | Snapshot of the candidate current_company at the moment they applied. Never updated after insert. | | `stage` | string (`funnel`, `maybe`, `yes`, `no`, `screen`, `submitted`, `client_interview`, `references`, `offer`, `placed`, `rejected`, `withdrew`) | no | | | `status` | string | no | Deprecated alias for stage. Use stage instead. | | `source` | string \| null | no | Canonical source category: Careers Page, Job Board, Referral, Talent Pool, Database Search, Social, Agency, Direct, Imported, Web Search, or Other. | | `source_detail` | string \| null | no | Granular sub-source within the category - the exact board, referrer, pool, or search query. | | `assessment` | object \| null | no | | | `assessment.job_fit_score` | number, 0-100 | no | | | `assessment.hm_fit_score` | number, 0-100 \| null | no | 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). | | `assessment.overall_recommendation` | string (`strong_hire`, `hire`, `hold`, `talent_pool`, `reject`) | no | | | `assessment.summary` | string \| null | no | 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). | | `assessment.alternative_teams` | array of string | no | | | `assessment.alternative_roles` | array of string | no | | | `assessment.confidence_score` | number, 0-1 \| null | no | How complete and internally consistent the evidence was. | | `assessment.confidence_factors` | array of string | no | Evidence factors that raised or lowered confidence. | | `assessment.criteria_scores` | array of object | no | | | `assessment.criteria_scores[].criterion` | string \| null | no | | | `assessment.criteria_scores[].block` | string \| null | no | | | `assessment.criteria_scores[].scoring_type` | string \| null | no | | | `assessment.criteria_scores[].pass` | boolean \| null | no | | | `assessment.criteria_scores[].scale_score` | number \| null | no | | | `assessment.criteria_scores[].ai_reasoning` | string \| null | no | | | `assessment.version` | integer | no | | | `assessment.assessed_at` | string (date-time) \| null | no | | | `phone_screen_score` | number, 0-100 \| null | no | | | `parsed_profile` | ParsedProfile | no | | | `notes` | string \| null | no | | | `reference_summary` | string \| null | no | AI-consolidated summary across all referee responses. Populated when the final expected referee has submitted their form. | | `reference_flags` | array of object \| null | no | Structured red flags detected in referee responses. Medium/high severity flags automatically enqueue a reference_red_flag review. | | `reference_flags[].type` | string (`integrity`, `performance`, `interpersonal`, `other`) | no | | | `reference_flags[].referee` | string | no | | | `reference_flags[].quote` | string | no | | | `reference_flags[].severity` | string (`low`, `medium`, `high`) | no | | | `reference_summary_generated_at` | string (date-time) \| null | no | | | `expected_reference_count` | integer | no | 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` | string (date-time) \| null | no | When the candidate submitted their referee contacts through the Request References form. | | `applied_at` | string (date-time) | no | | | `status_updated_at` | string (date-time) | no | | ### BulkUpdateEmailOptions 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `skipRejectionEmail` | boolean | no | true moves to rejected without emailing the candidate. | | `skipWithdrawalAck` | boolean | no | true moves to withdrew without sending the acknowledgement. | ### CalendarEvent | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `title` | string | no | | | `notes` | string \| null | no | | | `event_type` | string (`interview`, `phone_screen`, `reminder`, `deadline`, `meeting`) | no | | | `starts_at` | string (date-time) | no | | | `ends_at` | string (date-time) \| null | no | | | `all_day` | boolean | no | | | `application_id` | string \| null | no | | | `job_id` | string \| null | no | | | `candidate_id` | string \| null | no | | | `assigned_to` | string \| null | no | User ID the event is assigned to. | | `created_by` | string \| null | no | | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | | `meeting_url` | string \| null | no | The Google Meet or Microsoft Teams link, once the calendar has made it. | | `video_platform` | string (`google_meet`, `microsoft_teams`, `zoom`, null) \| null | no | | | `record` | boolean \| null | no | The event's Record switch. Null follows the owner's call settings. | ### Call 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `source` | string (`notetaker`, `video_room`, `phone`, `upload`, `ai_screen`, `logged`, `desktop`) \| null | no | 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` | string (`zoom`, `google_meet`, `microsoft_teams`, `lovelio`, `phone`, `aircall`, `in_person`, `other`) \| null | no | aircall is a phone call through Aircall (source phone). Null for a platform this API version does not know yet. | | `call_type` | string \| null | no | 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` | string \| null | no | | | `status` | string (`scheduled`, `live`, `processing`, `ready`, `failed`, `cancelled`) \| null | no | ready once the transcript is in. | | `started_at` | string (date-time) \| null | no | | | `ended_at` | string (date-time) \| null | no | | | `duration_seconds` | integer \| null | no | | | `language` | string \| null | no | | | `owner_id` | string \| null | no | The consultant who owns the call (usr_). | | `candidate_id` | string \| null | no | | | `candidate_name` | string \| null | no | | | `candidate_deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `job_id` | string \| null | no | | | `job_title` | string \| null | no | | | `application_id` | string \| null | no | | | `interview_id` | string \| null | no | | | `client_id` | string \| null | no | | | `client_contact_id` | string \| null | no | | | `recording` | object | no | | | `recording.status` | string (`none`, `copying`, `stored`, `failed`, `deleted`) | no | stored while the recording is kept; deleted after 24 months. | | `recording.mime_type` | string \| null | no | | | `recording.delete_after` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### CallDetail Type: Call ### Candidate | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `url` | string (uri) | no | 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` | string | no | 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` | string | no | Family name: the stored last name, or everything after the first word of a name only ever written whole. | | `name` | string | no | | | `email` | string (email) \| null | no | | | `phone` | string \| null | no | | | `mobile` | string \| null | no | 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` | object \| null | no | Where the candidate lives, coarsened to suburb (or city) and state - "Balmain, NSW". Never a street address, whatever precision the record was captured at. | | `location.city` | string | no | | | `linkedin_url` | string \| null | no | | | `current_title` | string \| null | no | 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` | string \| null | no | 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` | integer \| null | no | Estimated years of experience from work history. | | `skills` | array of string | no | | | `education` | array of object | no | | | `education[].degree` | string \| null | no | | | `education[].institution` | string | no | | | `education[].year` | integer \| null | no | | | `parsed_profile` | ParsedProfile | no | | | `cv_url` | string \| null | no | 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` | string | no | | | `availability` | string (`unknown`, `available`, `passive`, `not_available`) | no | | | `source` | string \| null | no | How the candidate entered the system, e.g. 'bulk_import' for candidates created by a CV import. | | `tags` | array of string | no | 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` | boolean | no | Off-limits flag. Flagged candidates are excluded from search, matching and suggestions. | | `contact_only` | boolean | no | 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` | integer, 1-5 \| null | no | The agency's 1-5 star rating on the candidate. Null = not yet rated. | | `open_to_work` | boolean \| null | no | Open-to-work flag, from a LinkedIn sighting or a consultant's toggle. Null = never captured either way. | | `salary_expectation` | string \| null | no | Captured salary expectation, verbatim ("145k + super"). Null = never captured. | | `salary_expectation_annual` | number \| null | no | Normalized annual figure derived from salary_expectation, when parseable. | | `salary_currency` | string \| null | no | Currency code when the expectation stated one (AUD, USD, GBP, EUR, NZD). | | `notice_period` | string \| null | no | Captured notice period, verbatim ("4 weeks"). | | `notice_period_days` | integer \| null | no | Normalized days derived from notice_period (0 = immediately available). | | `work_rights` | string \| null | no | Captured right-to-work statement, verbatim ("Australian citizen"). | | `work_rights_status` | string (`citizen`, `permanent_resident`, `visa_holder`, `requires_sponsorship`) \| null | no | Normalized status derived from work_rights. | | `salary_expectation_amount` | number \| null | no | Amount in the candidate's own period derived from salary_expectation (850 for "850/day"). | | `salary_expectation_period` | string (`year`, `day`, `hour`) \| null | no | Period derived from salary_expectation. Day and hour rates never fabricate an annual figure. | | `preferred_roles` | array of string \| null | no | Roles the candidate said they want next. Null = never captured. | | `preferred_seniority` | string (`intern`, `junior`, `mid`, `senior`, `staff`, `lead`, `principal`, `head`, `director`, `vp`, `c_suite`) \| null | no | Seniority level the candidate wants. | | `work_types` | array of string (`permanent`, `contract`, `temp`, `part_time`) \| null | no | Work types the candidate is open to. | | `open_to_relocation` | boolean \| null | no | Whether the candidate said they would relocate. Null = never captured. | | `available_from` | string (date) \| null | no | Stated availability date. Complements notice_period in availability search. | | `availability_source` | string (`contract_end`, `candidate_reply`, `consultant`, `contractor_page`) \| null | no | 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` | string (date-time) \| null | no | 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` | array of string \| null | no | Places the candidate said they want to work. Gazetteer-resolved for search. | | `applications` | array of object | no | Summary of all applications for this candidate. | | `applications[].job_id` | string \| null | no | | | `applications[].job_title` | string \| null | no | | | `applications[].application_id` | string | no | | | `applications[].stage` | string | no | Current pipeline stage of the application. | | `applications[].status` | string | no | Deprecated alias for stage. Read stage instead. | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | | `enriched_at` | string (date-time) \| null | no | | ### CandidateImport | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `status` | string (`uploading`, `processing`, `complete`, `cancelled`) | no | | | `file_count` | integer | no | | | `created_at` | string (date-time) \| null | no | | | `completed_at` | string (date-time) \| null | no | | | `counts` | object | no | | | `counts.pending` | integer | no | | | `counts.processing` | integer | no | | | `counts.imported` | integer | no | New candidates created. | | `counts.merged` | integer | no | Existing candidates updated (matched by email). | | `counts.failed` | integer | no | Files that could not be read. | | `failures` | array of object | no | | | `failures[].filename` | string | no | | | `failures[].reason` | string | no | Human-readable reason the file was skipped. | | `role_matches` | array of object \| null | no | How the imported candidates compare with the open roles - embedding similarity only, no assessments. Null until matching has run. | | `role_matches[].job_id` | string | no | | | `role_matches[].job_title` | string | no | | | `role_matches[].strong_count` | integer | no | | | `role_matches[].matches` | array of object | no | | | `role_matches[].matches[].candidate_id` | string | no | | | `role_matches[].matches[].name` | string | no | | | `role_matches[].matches[].score` | integer | no | 0-100 similarity to the role description. | ### CandidateSearchResult 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `entity_type` | string (`candidates`) | no | Present on POST /search responses so a client can branch; absent from POST /candidates/search, which only ever searches candidates. | | `interpretation` | object | no | How the engine read the query. | | `interpretation.intent` | string \| null | no | The soft ask used for semantic ranking. | | `interpretation.facets` | array of object | no | | | `interpretation.facets[].label` | string | no | Plain-English label, as shown on the in-app chips. | | `interpretation.facets[].kind` | string | no | What the facet checks (role, skill, location, employer, ...). "unsupported" means the engine understood the ask but cannot filter on it yet. | | `interpretation.facets[].strength` | string (`must`, `nice`, `exclude`) | no | must filters, nice ranks, exclude removes. | | `total_count` | integer | no | 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` | integer | no | How many of those were ranked - the depth pagination can reach. | | `verification` | object | no | 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. | | `verification.cvs_read` | integer | no | How many CVs were read. | | `verification.confirmed` | integer | no | How many people were confirmed, by a CV read or by their work history. | | `verification.confirmed_from_records` | integer | no | The part of `confirmed` their work history proved with no CV read. These people never use the reading budget. | | `verification.not_checked` | integer | no | How many of the pool a bigger `verified_budget` would reach: past the budget, or a read that failed this time. | | `verification.no_cv` | integer | no | How many people inside the budget have no CV text on file. No budget reaches them. | | `page` | integer | no | | | `page_size` | integer | no | | | `has_more` | boolean | no | | | `notes` | array of object | no | 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. | | `notes[].code` | string | no | | | `notes[].message` | string | no | | | `results` | array of object | no | | | `results[].id` | string | no | External candidate id (cnd_...). | | `results[].name` | string \| null | no | | | `results[].email` | string \| null | no | | | `results[].location` | string \| null | no | | | `results[].current_job_title` | string \| null | no | | | `results[].current_employer` | string \| null | no | | | `results[].match_score` | integer | no | The engine's deterministic feature score, 0-100. Decides the order. | | `results[].band` | string (`strong`, `good`, `partial`) | no | Requirement-coverage band. | | `results[].coverage` | object | no | Requirements this candidate evidences, out of the total asked. | | `results[].coverage.matched` | integer | no | | | `results[].coverage.total` | integer | no | | | `mentioned_in_cv` | object | no | 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. | | `mentioned_in_cv.total_count` | integer | no | Real database count of the whole tier, which can exceed the rows returned. | | `mentioned_in_cv.facet_labels` | array of string | no | Which interpretation facets these people reached by a CV mention rather than by employment history. | | `mentioned_in_cv.results` | array of object | no | | | `mentioned_in_cv.results[].id` | string | no | | | `mentioned_in_cv.results[].name` | string \| null | no | | | `mentioned_in_cv.results[].email` | string \| null | no | | | `mentioned_in_cv.results[].location` | string \| null | no | | | `mentioned_in_cv.results[].current_job_title` | string \| null | no | | | `mentioned_in_cv.results[].current_employer` | string \| null | no | | ### CareersFloat 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | Starts cfl_. | | `job_lead_id` | string | no | | | `ad_id` | string | no | | | `status` | string (`shortlist`, `ready`, `sent`, `discarded`) | no | shortlist: people still being picked. ready: a draft waiting for a person to check and send. | | `company` | string | no | | | `job_title` | string | no | | | `job_location` | string \| null | no | | | `is_client` | boolean | no | | | `drafted_at` | string (date-time) \| null | no | | | `suggestions` | array of object | no | | | `suggestions[].candidate_id` | string | no | | | `suggestions[].name` | string | no | | | `suggestions[].title` | string \| null | no | | | `suggestions[].employer` | string \| null | no | | | `suggestions[].location` | string \| null | no | | | `suggestions[].why` | string | no | Why this person fits the ad. | | `excluded` | integer | no | | | `picked` | array of string | no | cnd_ ids, at most five. | | `profiles` | object | no | Anonymous profile per picked candidate, keyed by cnd_ id. | | `contacts` | array of object | no | | | `contacts[].id` | string | no | | | `contacts[].name` | string | no | | | `contacts[].title` | string \| null | no | | | `contacts[].email` | string | no | | | `contacts_without_email` | integer | no | | | `recipient_contact_id` | string \| null | no | | | `subject` | string | no | | | `greeting` | string | no | | | `body` | string | no | | | `sent_at` | string (date-time) \| null | no | | | `sent_to` | string \| null | no | | | `sent_count` | integer \| null | no | | ### Client 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `url` | string (uri) | no | 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` | string | no | | | `website` | string \| null | no | | | `phone` | string \| null | no | The company main phone or switchboard. Contact phone numbers live on client contacts. | | `domain` | string \| null | no | Normalised bare domain, e.g. "acme.com". Derived from website. | | `logo_url` | string \| null | no | | | `industry` | string \| null | no | | | `description` | string \| null | no | | | `locations` | array of string | no | | | `address` | string \| null | no | One-line postal address, shown on the client's terms document. | | `fee_schedule` | object | no | 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. | | `fee_schedule.currency` | string | no | | | `fee_schedule.fee_basis` | string (`package`, `base`) | no | What the percent applies to: total salary package or base salary. | | `fee_schedule.tiers` | array of object | no | Slab bands, ascending. Salaries from `from` upward (until the next band) pay `percent` on the whole salary. | | `fee_schedule.tiers[].from` | number | no | | | `fee_schedule.tiers[].percent` | number | no | | | `fee_schedule.minimum_fee` | number \| null | no | | | `fee_schedule.contract_margin_percent` | number \| null | no | Agreed margin percentage for contract or temp engagements. Separate from permanent placement fee bands. | | `fee_schedule.guarantee_days` | integer \| null | no | | | `fee_schedule.guarantee_remedy` | string (`replacement`, `refund_full`, `refund_pro_rata`, `refund_half`, `replacement_or_refund_half`, `none`) | no | | | `fee_schedule.guarantee_notes` | string \| null | no | | | `fee_schedule.payment_terms_days` | integer \| null | no | | | `fee_schedule.is_standard` | boolean | no | True when the client is on the agency standard (no approved variation). | | `fee_schedule.version` | integer | no | Schedule version - increments on every approved change. | | `notes` | string \| null | no | | | `default_invoice_contact_id` | string \| null | no | The contact who gets the invoice for this client's placements. New placements pre-fill it as their invoice contact. | | `company_facts` | object \| null | no | 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. | | `company_facts.headcount` | integer \| null | no | | | `company_facts.headcount_range` | string \| null | no | | | `company_facts.founded_year` | integer \| null | no | | | `company_facts.head_office` | object | no | | | `company_facts.head_office.city` | string \| null | no | | | `company_facts.head_office.region` | string \| null | no | | | `company_facts.head_office.country_code` | string \| null | no | | | `company_facts.company_type` | string \| null | no | Ownership as LinkedIn lists it, e.g. "Privately Held", "Public Company". Treat unknown values as text. | | `company_facts.specialties` | array of string | no | | | `company_facts.linkedin_industry` | string \| null | no | LinkedIn's industry label. Kept apart from industry, which Lovelio reads from the client's own website. | | `company_facts.linkedin_url` | string \| null | no | | | `enrichment_status` | string (`none`, `pending`, `complete`, `failed`) | no | Website enrichment progress. "none" for clients created without a website. | | `dna_status` | string (`none`, `building`, `complete`, `failed`) | no | Client DNA build progress. Assessments for this client's jobs use the DNA once complete. | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### ClientContact A person at the client: hiring manager, HR, finance. Contacts receive submissions and sit on jobs, always scoped to their client. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `client_id` | string | no | | | `url` | string (uri) | no | 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` | string \| null | no | 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` | string | no | 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` | string \| null | no | | | `phone` | string \| null | no | | | `title` | string \| null | no | | | `reports_to` | string \| null | no | Another contact (cct_ id) on the same client this person reports to. Builds the client org chart. | | `is_primary` | boolean | no | One primary per client; setting a new primary demotes the old one. | | `origin` | string (`relationship`, `works_here`) | no | "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` | string \| null | no | | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### ClientSite A client workplace. A contract placement names one as work_site_id, and the site's country decides which contractor payroll fields Lovelio collects. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `client_id` | string | no | | | `label` | string \| null | no | "Head office", "Parramatta warehouse". Optional. | | `street` | string \| null | no | | | `city` | string \| null | no | | | `region` | string \| null | no | 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` | string \| null | no | | | `country` | string | no | ISO 3166-1 alpha-2, upper case. Required. | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### DistributionBoard | Field | Type | Required | Description | | --- | --- | --- | --- | | `slug` | string | no | | | `name` | string | no | | | `provider` | string \| null | no | The integration provider serving this board, when it comes from a provider catalogue. | | `regions` | array of string | no | | | `industries` | array of string | no | | | `categories` | array of string | no | | | `pricing` | string (`free`, `paid`, `mixed`) \| null | no | 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` | object | no | | | `capabilities.edit` | boolean | no | | | `capabilities.expire` | boolean | no | | | `capabilities.applyBack` | boolean | no | | | `capabilities.statusQuery` | boolean | no | | | `monthly_post_limit` | integer \| null | no | 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` | integer | no | Posts consumed on this board in the current calendar month (company timezone). | | `posts_remaining_this_month` | integer \| null | no | Posts left this month (null = unlimited). Never negative. | ### DistributionRule | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `name` | string | no | | | `filter` | object | no | 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. | | `filter.country` | string | no | | | `filter.category` | string | no | | | `filter.job_type` | string (`Permanent`, `Contract`, `Temporary`) | no | | | `filter.team_id` | string | no | | | `target_board_slugs` | array of string | no | | | `active` | boolean | no | | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### Document A file attached to any record. Documents are polymorphic: the same endpoints serve candidates, clients, contacts, jobs, placements, talent pools and more. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `record_type` | string (`candidate`, `client`, `client_contact`, `job`, `job_ad`, `application`, `interview`, `placement`, `submission`, `spec`, `spec_submission`, `bd_target`, `job_opportunity`, `talent_pool`, `team`, `hiring_manager`) | no | The kind of record this document is filed against. | | `record_id` | string | no | External ID of the record it belongs to. | | `file_name` | string | no | | | `content_type` | string | no | | | `size_bytes` | integer \| null | no | | | `source` | string (`upload`, `migration`, `cv`, `contractor_page`) | no | 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` | boolean | no | Candidates only: this is the current CV, the file the resume parser and cv_url read. | | `uploaded_by_email` | string \| null | no | | | `source_created_at` | string (date-time) \| null | no | 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` | string (`pending`, `clean`, `infected`, `failed`) \| null | no | 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` | string (date-time) | no | | ### EmailTemplate Merged view of a canonical email template and its per-company override (if any). | Field | Type | Required | Description | | --- | --- | --- | --- | | `template_key` | string | no | | | `name` | string | no | | | `category` | string (`candidate`, `hiring_manager`, `referee`, `forms`) | no | | | `trigger` | string | no | | | `description` | string | no | | | `variables` | array of string | no | | | `default_instructions` | string | no | | | `ai_instructions` | string \| null | no | Per-company override of the default_instructions. null when no override exists. | | `enabled` | boolean | no | Whether Lovelio should send this template. Defaults to true. | | `has_override` | boolean | no | | | `updated_at` | string (date-time) \| null | no | | ### Error | Field | Type | Required | Description | | --- | --- | --- | --- | | `success` | boolean (`false`) | yes | | | `data` | any | yes | Usually null. Some errors include structured recovery details, such as remaining draft fields. | | `meta` | Meta | yes | | | `error` | object | yes | | | `error.code` | string | yes | | | `error.message` | string | yes | | | `error.field` | string | no | | | `error.docs` | string (uri) | yes | | | `error.request_id` | string | yes | Same request ID as meta.request_id. | ### EvidenceEvaluation | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `task_id` | string \| null | no | | | `status` | string | no | | | `scope_type` | string (`selection`, `talent_pool`, `job_applicants`, `import_batch`, `search`, `all`) | no | | | `checks` | array of object | no | | | `checks[].id` | string | no | | | `checks[].term` | string | no | | | `checks[].label` | string | no | | | `checks[].predicate` | object \| null | no | Complete shared search predicate, including explicit OR alternatives, numeric bounds, polarity and time windows. Interpret the whole predicate, never only the short label. | | `checks[].strength` | string (`must`, `nice`, `exclude`) | no | | | `rows` | array of object | no | | | `rows[].candidate_id` | string | no | | | `rows[].name` | string \| null | no | | | `rows[].status` | string (`pending`, `complete`, `missing_source`, `too_long`, `failed`, `stale`) | no | | | `rows[].scope_match` | string (`matched`, `not_established`, `unchecked`) | no | | | `rows[].source_hash` | string \| null | no | | | `rows[].cache_hits` | integer, min 0 | no | | | `rows[].error` | string \| null | no | | | `rows[].checks` | object | no | | | `progress` | object | no | | | `progress.total` | integer, min 0 | no | | | `progress.evaluated` | integer, min 0 | no | | | `progress.pending` | integer, min 0 | no | | | `progress.failed` | integer, min 0 | no | | | `progress.missing_source` | integer, min 0 | no | | | `progress.too_long` | integer, min 0 | no | | | `progress.stale` | integer, min 0 | no | | | `progress.cache_hits` | integer, min 0 | no | | | `progress.excluded` | integer, min 0 | no | | | `progress.unfinished_imports` | integer, min 0 | no | | | `progress.complete` | boolean | no | | | `next_cursor` | string \| null | no | | | `sources_checked` | array of string | no | | | `created_at` | string | no | | | `completed_at` | string \| null | no | | | `error` | string \| null | no | | | `result_url` | string | no | | ### EvidencePack | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `purpose` | string (`submission`, `interview_preparation`, `job_comparison`) | no | | | `compact` | object | no | | | `compact.positive_quote_budget` | integer, min 0 | no | | | `compact.omitted_passages` | array of object | no | | | `compact.omitted_passages[].candidate_id` | string | no | | | `compact.omitted_passages[].check_id` | string | no | | | `compact.full_evidence_url` | string | no | | | `context` | object | no | | | `context.as_of` | string | no | | | `context.job` | object \| null | no | | | `context.client_dna` | string \| null | no | | | `context.client_dna_included` | boolean | no | | | `context.preferences` | array of object | no | | | `context.preferences[].candidate_id` | string | no | | | `context.preferences[].values` | object | no | | | `evaluation` | EvidenceEvaluation | no | | | `coverage` | object | no | | | `coverage.sources_checked` | array of string | no | | | `coverage.sources_not_checked` | array of string | no | | | `coverage.complete` | boolean | no | | ### Form | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `name` | string | no | | | `category` | string (`screening`, `assessment`, `interview`, `onboarding`, `compliance`) | no | | | `description` | string \| null | no | | | `ai_augmentation_enabled` | boolean | no | | | `is_default` | boolean | no | | | `question_count` | integer | no | | | `created_at` | string (date-time) | no | | ### FormInstance | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `form_id` | string | no | | | `instance_type` | string (`screening`, `reference`, `interview`, `feedback`) | yes | | | `status` | string (`draft`, `sent`, `opened`, `started`, `completed`) | yes | | | `job_application_id` | string \| null | no | | | `referee_id` | string \| null | no | | | `candidate_referee_id` | string \| null | no | The public ref_ record when this is a reference. | | `interview_id` | string \| null | no | | | `channel` | string (`email`, `phone`, null) \| null | no | | | `taken_by` | string \| null | no | usr_ id of the consultant taking a phone reference. | | `call_started_at` | string (date-time) \| null | no | | | `call_ended_at` | string (date-time) \| null | no | | | `sent_at` | string (date-time) \| null | no | | | `opened_at` | string (date-time) \| null | no | | | `completed_at` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | | `questions` | array of FormInstanceQuestion | no | | | `responses` | array of FormResponse | no | | ### FormQuestion | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `order_index` | integer | no | | | `question_text` | string | no | | | `question_type` | string (`text`, `rating`, `yes_no`, `multiple_choice`) | no | | | `options` | array of string \| null | no | | | `scoring_weight` | number \| null | no | | | `flag_mode` | string (`red`, `green`, `neutral`) \| null | no | | | `required` | boolean | no | | ### Interview | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `application_id` | string \| null | no | | | `job` | object \| null | no | | | `job.id` | string | no | | | `job.title` | string \| null | no | | | `candidate` | object \| null | no | | | `candidate.id` | string | no | | | `candidate.name` | string \| null | no | | | `candidate.email` | string \| null | no | | | `candidate.deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `round` | integer | no | Interview round number (1-based). | | `format` | string (`phone`, `video`, `in_person`, `technical`, `panel`) | no | Interview format. | | `flavour` | string (`internal`, `client`) | no | 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` | string \| null | no | The submission this client interview came from, when booked off client feedback (sub_ id). | | `status` | string (`scheduled`, `completed`, `no_show`, `cancelled`) | no | Current interview status. Passed and failed interviews both read completed - see outcome for the actual result. | | `outcome` | string (`pending`, `passed`, `failed`, `no_show`, `cancelled`) | no | The interview result. Unlike status, this distinguishes a pass from a fail. | | `scheduled_at` | string (date-time) \| null | no | | | `candidate_confirmed_at` | string (date-time) \| null | no | Set when the candidate confirms attendance (e.g. replying YES to the WhatsApp confirmation). Null = not confirmed yet. Read-only. | | `client_confirmed_at` | string (date-time) \| null | no | 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` | integer \| null | no | | | `video_link` | string \| null | no | | | `location` | string \| null | no | Where an in-person interview happens. Rides the calendar invite's LOCATION line and the invitation emails. | | `interviewers` | array of object | no | | | `interviewers[].id` | string | no | | | `interviewers[].name` | string | no | | | `interviewers[].email` | string \| null | no | | | `client_contacts` | array of object | no | Client-side attendees on a client interview (cct_ ids). They receive the calendar invite and .ics at booking; they never constrain the offered times. | | `client_contacts[].id` | string \| null | no | | | `client_contacts[].name` | string \| null | no | | | `client_contacts[].email` | string | no | | | `notes_for_candidate` | string \| null | no | | | `notes_for_interviewer` | string \| null | no | | | `feedback` | object \| null | no | Structured interview feedback (JSONB). Populated by the unified interview form on submit: { recommendation, feedback, scores, decision_criteria, section_breakdown }. | | `reminder_sent_at` | string (date-time) \| null | no | Set by the interview-reminder cron when the 24h reminder emails are sent. | | `feedback_requested_at` | string (date-time) \| null | no | First time the hiring manager was asked for feedback after the interview ended. | | `feedback_chase_count` | integer | no | 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` | string \| null | no | Google Calendar event id when the interviewer has a connected calendar. Changes made in Google Calendar flow back to this row. | | `calendar_provider` | string (`google`, null) \| null | no | Which calendar provider is authoritative for this interview. | | `created_at` | string (date-time) | no | | ### InterviewContext | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | ivw_ id. | | `scheduledAt` | string (date-time) \| null | no | | | `whenLabel` | string | no | | | `durationMinutes` | integer \| null | no | | | `type` | string \| null | no | | | `round` | integer | no | | | `flavour` | string (`internal`, `client`) | no | | | `outcome` | string | no | | | `location` | string \| null | no | | | `videoLink` | string \| null | no | The meeting link. Null on a video interview means the client has not sent it yet. | | `candidate` | object | yes | | | `candidate.id` | string \| null | no | | | `candidate.name` | string | no | | | `candidate.photoUrl` | string \| null | no | | | `candidate.email` | string \| null | no | | | `job` | object | yes | | | `job.id` | string \| null | no | | | `job.title` | string \| null | no | | | `clientName` | string \| null | no | | | `applicationId` | string \| null | no | | | `applicationStage` | string \| null | no | | | `refereeMinRequired` | integer | no | How many references this application asked the candidate for. 2 when the application never set one. | | `inviteSkips` | array of object | no | 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. | | `inviteSkips[].kind` | string (`user`, `client_contact`) | no | | | `inviteSkips[].id` | string | no | | | `inviteSkips[].reason` | string (`template_disabled`, `record_predates_enablement`) | no | | | `clientContactNames` | array of string | no | | | `clientContact` | object \| null | no | The first client contact on the invite with a record behind them - the person the emailed feedback form goes to. Null on internal interviews. | | `clientContact.id` | string | no | cct_ id. | | `clientContact.name` | string \| null | no | | | `prepUrl` | string \| null | no | The client interviewer feedback link. Legacy name - it carries no prep. | | `scorecards` | array of object | yes | | | `scorecards[].instanceId` | string \| null | no | | | `scorecards[].prepUrl` | string \| null | no | | | `scorecards[].person` | object | no | | | `scorecards[].status` | string (`not_started`, `in_progress`, `submitted`) | no | | | `scorecards[].submittedAt` | string (date-time) \| null | no | | | `scorecards[].recommendation` | string \| null | no | | | `scorecards[].overall` | number \| null | no | | | `scorecards[].areas` | array of object | no | | | `scorecards[].feedback` | string \| null | no | | | `consolidated` | object | yes | Deterministic roll-up of all submitted interviewer cards. | | `nextMoves` | array of object | yes | | | `nextMoves[].action` | string | no | | | `nextMoves[].label` | string | no | | | `feedbackCalls` | object | no | 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. | | `feedbackCalls.client` | string (`none`, `started`, `awaiting_reply`, `logged`) | no | | | `feedbackCalls.candidate` | string (`none`, `started`, `awaiting_reply`, `logged`) | no | | | `notetaker` | object \| null | no | 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. | | `notetaker.state` | string (`booked`, `in_call`, `processing`, `ready`, `failed`, `over_cap`) | yes | | | `notetaker.joinAt` | string (date-time) | no | | | `notetaker.transcript` | string | no | | ### Job | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `url` | string (uri) | no | 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` | string | no | | | `status` | string (`draft`, `active`, `on_hold`, `closed`, `filled`) | no | 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` | object \| null | no | The client this job is for. Every job created in-product gets one; jobs created via this API may omit it. | | `client.id` | string | no | | | `client.name` | string \| null | no | | | `client.deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `client_contact` | object \| null | no | The contact at the client for this job. Always belongs to the job's client. | | `client_contact.id` | string | no | | | `client_contact.name` | string \| null | no | | | `client_contact.deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `team` | object \| null | no | | | `team.id` | string | no | | | `team.name` | string \| null | no | | | `owner_ids` | array of string | no | 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` | object \| null | no | | | `hiring_manager.id` | string | no | | | `hiring_manager.name` | string \| null | no | | | `location` | object \| null | no | 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. | | `location.type` | string (`on_site`, `hybrid`, `remote`) | no | | | `location.city` | string \| null | no | | | `location.country` | string \| null | no | | | `location.country_code` | string \| null | no | ISO 3166-1 alpha-2 country code | | `employment_type` | string (`full_time`, `part_time`, `contract`) \| null | no | | | `contract` | JobContract | no | | | `compensation` | object | no | | | `compensation.base_min` | number, min 0 \| null | no | Lower end of the salary band. Must not exceed base_max. | | `compensation.base_max` | number, min 0 \| null | no | Upper end of the salary band. Must be at least base_min. | | `compensation.ote` | number \| null | no | Older name of ote_amount, kept for existing readers. | | `compensation.super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. | | `compensation.super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. | | `compensation.ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. | | `compensation.bonus_amount` | number, min 0 \| null | no | Bonus on top of base. | | `compensation.package_total` | number \| null | no | 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. | | `compensation.currency` | string | no | | | `compensation.period` | string (`year`, `day`, `hour`) | no | 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` | string \| null | no | | | `spec` | object \| null | no | | | `spec.summary` | string | no | | | `spec.responsibilities` | array of string | no | | | `spec.requirements` | array of string | no | | | `spec.nice_to_have` | array of string | no | | | `assessment_criteria` | array of object | no | AI-generated criteria for assessing candidates. | | `interview_plan` | object \| null | no | AI-generated interview plan. | | `job_ad` | string \| null | no | Associated job ad ID. | | `share_links` | object \| null | no | Shareable URLs for the job. | | `stats` | object \| null | no | Application statistics. List responses carry { total_applications }; GET /jobs/{id} adds one count per pipeline stage. | | `target_start_date` | string (date) \| null | no | | | `compensation_research` | object \| null | no | Market compensation research data. | | `default_interview_format` | string (`video`, `phone`, `in_person`, `technical`, `panel`), default "video" | no | 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` | boolean | no | Retired. The AI voice screen no longer exists, so this is always false. | | `ai_screen_focus` | array of string \| null | no | Focus areas that shape the questions drafted for a phone screen. Read-only; nothing sets it any more. | | `is_evergreen` | boolean, default false | no | 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` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### JobBoardPosting | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `job_id` | string \| null | no | | | `job_ad_id` | string \| null | no | | | `board_slug` | string | no | | | `status` | string (`pending`, `publishing`, `live`, `expired`, `rejected`, `error`) | no | | | `url` | string \| null | no | | | `external_id` | string \| null | no | | | `error_code` | string \| null | no | | | `error_message` | string \| null | no | | | `published_at` | string (date-time) \| null | no | | | `updated_at` | string (date-time) | no | | ### JobContractInput 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `start_date` | string (date) \| null | no | | | `duration` | object \| null | no | | | `duration.value` | integer, min 1 | no | | | `duration.unit` | string (`weeks`, `months`) | no | | | `openings` | integer, 1-500 \| null | no | | | `charge_rate` | object \| null | no | | | `charge_rate.min` | number, min 0 \| null | no | | | `charge_rate.max` | number, min 0 \| null | no | | | `engagement_type` | string (`payg`, `abn`, `inside_ir35`, `outside_ir35`) \| null | no | 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. | ### JobLead A company whose careers page one recruiter watches. Lovelio reads it overnight. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | Starts cwt_. | | `company` | string | no | | | `domain` | string \| null | no | | | `careers_url` | string \| null | no | | | `client_id` | string \| null | no | Set when the company is already a client. | | `added_by` | string | no | | | `watched_since` | string (date-time) \| null | no | | | `status` | string | no | | | `last_read_at` | string (date-time) \| null | no | | | `open_jobs` | integer | no | | | `new_jobs` | integer | no | | | `new_overnight` | integer | no | | | `new_job_titles` | array of string | no | | | `floats` | object \| null | no | | | `floats.best_fit` | integer \| null | no | | | `floats.fits_pending_for` | array of string | no | cad_ ids still being matched. | | `floats.draft_ready` | boolean | no | | | `floats.last_sent` | object \| null | no | | | `floats.last_sent.who` | string | no | Only on colleague_sent. | | `floats.last_sent.status` | string | no | Only on fits.float. | | `floats.last_sent.count` | integer | no | | | `floats.last_sent.to` | string \| null | no | | | `floats.last_sent.sent_at` | string (date-time) \| null | no | | | `floats.colleague_sent` | object \| null | no | | | `floats.colleague_sent.who` | string | no | Only on colleague_sent. | | `floats.colleague_sent.status` | string | no | Only on fits.float. | | `floats.colleague_sent.count` | integer | no | | | `floats.colleague_sent.to` | string \| null | no | | | `floats.colleague_sent.sent_at` | string (date-time) \| null | no | | ### JobLeadDetail Type: JobLead ### JobOpportunity 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | opp_ id. | | `kind` | string (`role`, `candidate`) | no | role: a client may have a job. candidate: a person to place, with a role in mind. | | `title` | string | no | The role's title, or the person's name on a candidate opportunity. | | `role_title` | string \| null | no | The role being worked towards. A candidate opportunity needs one before it can become a job. | | `stage` | string (`new`, `talking`, `keen`, `terms`, `won`, `lost`, `parked`) | no | won means it became a job (converted_job_id). | | `client` | object \| null | no | | | `client.id` | string | no | cli_ id. | | `client.name` | string \| null | no | | | `contact` | object \| null | no | The person to call. | | `contact.id` | string | no | cct_ id. | | `contact.name` | string \| null | no | | | `contact.phone` | string \| null | no | | | `contact.email` | string \| null | no | | | `candidate_id` | string \| null | no | cnd_ id, on a candidate opportunity. | | `owner_id` | string \| null | no | usr_ id of the consultant working it. | | `salary_min` | number \| null | no | | | `salary_max` | number \| null | no | | | `currency` | string \| null | no | | | `possible_fee` | object \| null | no | 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. | | `possible_fee.amount` | number \| null | no | | | `possible_fee.percent` | number \| null | no | | | `possible_fee.basis_figure` | number \| null | no | The figure the percent is taken of. | | `money_hidden` | boolean | no | 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` | string (`manual`, `call`, `email`, `careers_watch`, `key_movement`, `float`, `agent`) | no | | | `source_detail` | string \| null | no | | | `last_contact_at` | string (date-time) \| null | no | | | `next_contact` | object \| null | no | When to make the next contact, in the agency's timezone. Null once Won, Lost or Parked. | | `next_contact.due_on` | string (date) | no | | | `next_contact.section` | string (`today`, `week`, `new`, `later`) | no | | | `next_contact.days_until` | integer | no | Negative when overdue. | | `reason_to_call` | string | no | The one fact to know before calling: what has happened since the last contact, else when that was. | | `suggestion` | object \| null | no | 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. | | `suggestion.id` | string | no | opq_ id. | | `suggestion.to_stage` | string (`talking`, `keen`, `terms`, `won`) | no | won means convert to a job. | | `suggestion.label` | string | no | What accepting it does, for example Move to Keen. | | `suggestion.quote` | string \| null | no | The contact's own words. | | `suggestion.evidence` | string | no | The evidence in one line: the quote, or the call or email it came from. | | `suggestion.said_by` | string \| null | no | | | `suggestion.said_at` | string (date-time) | no | | | `suggestion.source_type` | string (`email`, `call`, `logged_call`) | no | | | `suggestion.job` | string \| null | no | On a convert: the job it would open. | | `suggestion.blocked` | string \| null | no | On a convert: what it still needs before a person can accept it. | | `converted_job_id` | string \| null | no | job_ id, once Won. | | `stage_changed_at` | string (date-time) | no | | | `created_at` | string (date-time) | no | | ### KeyMovement | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | Starts kmv_. | | `kind` | string | no | | | `created_at` | string (date-time) \| null | no | | | `person` | string | no | | | `what_happened` | string | no | | | `why_they_matter` | string \| null | no | | | `candidate_id` | string \| null | no | | | `client_contact_id` | string \| null | no | | | `application_id` | string \| null | no | | | `job_id` | string \| null | no | | | `client_id` | string \| null | no | | | `url` | string | no | Opens the record in Lovelio. | ### MarketplaceDeal 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `intro_id` | string \| null | no | | | `listing_id` | string \| null | no | | | `listing_kind` | string (`job`, `candidate`) | no | | | `listing_headline` | string | no | | | `status` | string (`connected`, `in_progress`, `placed`, `dead`) | no | 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` | string (`owner`, `partner`) | no | Your side of this deal: owner listed it, partner made the intro. | | `counterpart_agency` | string | no | The other agency on the deal. | | `owner_share_percent` | integer (`50`, `60`, `70`, `80`) | no | | | `your_share_percent` | integer | no | | | `fee_percent` | number \| null | no | | | `salary_min` | number \| null | no | | | `salary_max` | number \| null | no | | | `currency` | string \| null | no | | | `terms_version` | string | no | The Split Terms version both agencies accepted. | | `revealed` | object \| null | no | The identity snapshot written once at accept: candidate name and contact, plus both consultants' contacts. | | `revealed_at` | string (date-time) \| null | no | | | `protection_ends_at` | string (date-time) | no | The 12-month introduction protection window. | | `placement_id` | string \| null | no | The owner's placement record (pla_). Null for the partner - the deal itself carries the shared money snapshot. | | `placement_status` | string (`pending_start`, `started`, `fell_off`, `completed`, null) \| null | no | | | `placed_salary` | number \| null | no | Requires the marketplace:financials:read scope - null without it. | | `placed_fee_amount` | number \| null | no | Requires the marketplace:financials:read scope - null without it. | | `placed_currency` | string \| null | no | The placement's real currency - render placed money in this. `currency` stays the listing's asking currency. | | `partner_share_amount` | number \| null | no | Requires the marketplace:financials:read scope - null without it. | | `your_share_amount` | number \| null | no | Your side of the placed fee, per the locked split. Requires the marketplace:financials:read scope - null without it. | | `placed_start_date` | string (date) \| null | no | | | `owner_marked_paid_at` | string (date-time) \| null | no | The paid/received handshake: the placing agency's stamp. | | `partner_marked_received_at` | string (date-time) \| null | no | The paid/received handshake: the receiving agency's stamp. | | `closed_at` | string (date-time) \| null | no | Set when an unplaced deal was deliberately closed. | | `closed_by` | string (`you`, `counterpart`, null) \| null | no | Which side closed it, from your point of view. | | `closed_reason` | string \| null | no | | | `created_at` | string (date-time) | no | | ### MarketplaceIntro 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `listing_id` | string \| null | no | | | `listing_headline` | string | no | | | `kind` | string (`submission`, `request`) | no | | | `direction` | string (`received`, `sent`) | no | received = an intro on your listing; sent = an intro your agency made. | | `status` | string (`pending`, `accepted`, `declined`, `withdrawn`, `expired`) | no | | | `from_agency` | object | no | | | `from_agency.name` | string | no | | | `from_agency.consultant` | string \| null | no | | | `candidate_id` | string \| null | no | 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` | object \| null | no | | | `anonymous_profile.headline` | string | no | | | `anonymous_profile.chips` | array of string | no | | | `anonymous_profile.pitch` | string | no | | | `note` | string \| null | no | | | `job_ad` | object \| null | no | 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. | | `job_ad.title` | string | no | | | `job_ad.url` | string (uri) | no | | | `fit_summary` | string \| null | no | AI facts-to-check against your listing (received submissions only). Facts, never verdicts. | | `attested_relationship` | boolean | no | The submitter attested they interviewed the candidate and the candidate agreed to be represented. | | `decline_reason` | string \| null | no | | | `prior_knowledge` | boolean \| null | no | Stamped at accept time: whether the receiving agency already knew the candidate (checked BEFORE the reveal). | | `responded_at` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | ### MarketplaceListing 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). | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `kind` | string (`job`, `candidate`) | no | | | `status` | string (`live`, `paused`, `filled`, `expired`, `withdrawn`) | no | | | `headline` | string | no | Anonymised headline, e.g. "Senior auditor, top-tier firm, Melbourne". | | `chips` | array of string | no | Up to 6 anonymised fact chips. | | `pitch` | string | no | The anonymised pitch. Deterministically scrubbed and moderated before it crosses tenants. | | `location` | string \| null | no | | | `agency` | object | no | The posting agency - always visible (anonymity protects clients and candidates, never the trading agencies). | | `agency.name` | string | no | | | `agency.location` | string \| null | no | | | `salary_min` | number \| null | no | | | `salary_max` | number \| null | no | | | `currency` | string \| null | no | | | `fee_percent` | number \| null | no | The declared fee basis (percent of first-year salary). | | `owner_share_percent` | integer (`50`, `60`, `70`, `80`) | no | The split the owner keeps. Lovelio takes 0% - the fee is split between the two agencies, full stop. | | `partner_share_percent` | integer | no | Always 100 - owner_share_percent. | | `mine` | boolean | no | True when your agency owns this listing. | | `source_job_id` | string \| null | no | The job behind your own listing (job_). Always null on other agencies' listings. | | `source_candidate_id` | string \| null | no | The candidate behind your own listing (cnd_). Always null on other agencies' listings. | | `expires_at` | string (date-time) | no | | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) \| null | no | | ### Meta | Field | Type | Required | Description | | --- | --- | --- | --- | | `request_id` | string | yes | | | `count` | integer | no | | | `has_more` | boolean | no | | | `next_cursor` | string \| null | no | | ### Outreach 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `candidate_id` | string | no | | | `job_id` | string \| null | no | | | `platform` | string (`email`, `linkedin`, `whatsapp`) | no | | | `subject` | string \| null | no | Email only. | | `body` | string | no | | | `status` | string (`draft`, `sent`, `replied`, `no_response`) | no | | | `sent_at` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | ### Paper 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `candidate_id` | string | no | cnd_ id. | | `placement_id` | string \| null | no | pla_ id. Set only for an engagement document, which answers one contract (public liability for one engagement). | | `country` | string | no | ISO country code the document counts in. | | `kind` | string | no | The document word: right_to_work, police_check, wwcc, white_card, forklift_licence, public_liability and so on. | | `name` | string \| null | no | The kind's name in that country. | | `details` | string \| null | no | What the document says: a visa subclass, a licence number, a card class. | | `issued_on` | string (date) \| null | no | The date on the document. | | `expires_on` | string (date) \| null | no | The printed expiry. | | `counts_until` | string (date) \| null | no | 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` | string \| null | no | doc_ id of the file on the candidate that shows it. | | `checked_at` | string (date-time) \| null | no | | | `sent_at` | string (date-time) \| null | no | 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` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### PaperWaiverResult | Field | Type | Required | Description | | --- | --- | --- | --- | | `success` | boolean | no | | | `data` | object | no | | | `data.placement_id` | string | no | pla_ id. | | `data.kind` | string | no | | | `data.waived` | boolean | no | | | `data.waived_at` | string (date-time) \| null | no | | ### Placement 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `number` | integer \| null | no | 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` | string \| null | no | The number as people read it out: P- then the number. | | `candidate_id` | string | no | | | `candidate_name` | string \| null | no | The candidate's name, embedded so list consumers never need a lookup per row. Null when the candidate is deleted. | | `candidate_first_name` | string \| null | no | 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` | string \| null | no | The candidate's last_name, the same value the candidate endpoints return. | | `candidate_mobile` | string \| null | no | 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` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `client_id` | string | no | | | `client_name` | string \| null | no | The client's name, embedded so list consumers never need a lookup per row. Null when the client is deleted. | | `client_deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `job_id` | string \| null | no | | | `job_title` | string \| null | no | | | `application_id` | string \| null | no | | | `salary` | number \| null | no | First-year BASE salary. Requires the placements:financials:read scope - null without it. | | `package` | object \| null | no | What sits on top of base and the resulting package total. Null without the placements:financials:read scope. | | `package.super_percent` | number \| null | no | | | `package.super_amount` | number \| null | no | | | `package.ote_amount` | number \| null | no | On-target earnings, including base. | | `package.bonus_amount` | number \| null | no | | | `package.total` | number \| null | no | 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` | string \| null | no | 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` | object | no | 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. | | `fee.type` | string (`percent`, `fixed`) | no | | | `fee.percent` | number \| null | no | | | `fee.amount` | number \| null | no | | | `placement_type` | string (`permanent`, `contract`) | no | 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` | string (date) \| null | no | When the candidate accepted. Defaults to the recorded acceptance date, otherwise today. Never uses the date the offer was made. | | `contract` | object \| null | no | 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. | | `contract.end_date` | string (date) \| null | no | | | `contract.charge_rate` | number \| null | no | Requires the placements:financials:read scope - null without it. | | `contract.pay_rate` | number \| null | no | Requires the placements:financials:read scope - null without it. | | `contract.rate_period` | string (`hourly`, `daily`, `weekly`) \| null | no | | | `contract.on_cost_percent` | number \| null | no | 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. | | `contract.on_cost_amount` | number \| null | no | 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. | | `contract.expected_gp` | number \| null | no | Expected gross profit over the initial term, in the placement's currency. Requires the placements:financials:read scope - null without it. | | `contract.plan` | string (`asked`, `extending`, `finishing`, `perm`) \| null | no | 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. | | `contract.state` | string (`starting`, `running`, `no_plan`, `asked`, `extending`, `perm`, `finishing`, `extended`, `finished`) | no | 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. | | `contract.extended_from` | string (date) \| null | no | The end date before the latest extension, while that date is still ahead. Null once it passes or when there is no extension. | | `contract.end_reason` | string (`client_ended`, `contractor_left`, `converted`) \| null | no | 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. | | `contract.converted_on` | string (date) \| null | no | The day the contractor started perm with the client. The contract ends the day before (end_date). | | `contract.next_contact_on` | string (date) \| null | no | 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. | | `contract.conversion` | object \| null | no | 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. | | `contract.conversion.salary` | number \| null | no | The perm salary. | | `contract.conversion.fee` | number \| null | no | The fee charged for the conversion. | | `contract.rate_history` | array of object \| null | no | 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. | | `contract.rate_history[].from` | string (date) \| null | no | | | `contract.rate_history[].to` | string (date) \| null | no | | | `contract.rate_history[].charge_rate` | number \| null | no | | | `contract.rate_history[].pay_rate` | number \| null | no | | | `contract.rate_history[].rate_period` | string (`hourly`, `daily`, `weekly`) \| null | no | | | `credits` | array of object | no | 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. | | `credits[].user_id` | string | no | | | `credits[].role` | string (`candidate_consultant`, `job_owner`, `business_development`, `other`) \| null | no | | | `credits[].percent` | number | no | | | `start_date` | string (date) \| null | no | | | `contracting` | object \| null | no | 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. | | `contracting.work_country` | string \| null | no | ISO 3166-1 alpha-2 of the workplace, copied from the site when the placement was logged. Picks the contractor field set. | | `contracting.work_site` | ClientSite | no | Where the work happens. One of the client's sites (GET /clients/{id}/sites). | | `contracting.timesheet_approvers` | array of object | no | 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. | | `contracting.timesheet_approvers[].contact_id` | string | no | | | `contracting.timesheet_approvers[].role` | string (`primary`, `secondary`, `additional`) | no | From the order: first primary, second secondary, the rest additional. Change it by reordering timesheet_approver_contact_ids. | | `contracting.timesheet_approvers[].name` | string \| null | no | | | `contracting.timesheet_approvers[].first_name` | string \| null | no | Read off name: the first word. Names are stored whole. | | `contracting.timesheet_approvers[].last_name` | string \| null | no | Read off name: everything after the first word. | | `contracting.timesheet_approvers[].email` | string \| null | no | | | `contracting.timesheet_approvers[].mobile` | string \| null | no | 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. | | `contracting.timesheet_approvers[].deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `contracting.position` | object \| null | no | The payroll partner's Position the agency picked for this contract, in the partner's own id. Null until picked. | | `contracting.position.id` | string | no | | | `contracting.position.name` | string | no | | | `contracting.rate_template` | object \| null | no | The payroll partner's Rate template the agency picked for this contract, in the partner's own id. Null until picked. | | `contracting.rate_template.id` | string | no | | | `contracting.rate_template.name` | string | no | | | `contracting.payroll_approval` | object \| null | no | 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. | | `contracting.payroll_approval.approved_at` | string (date-time) | no | | | `contracting.payroll_approval.approved_by` | object \| null | no | Null when that person has since been removed. | | `contracting.payment_terms_days` | integer \| null | no | The client's payment terms in force, off their fee schedule. Requires placements:contracting:read - null without it. | | `contracting.contractor` | object \| null | no | 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. | | `contracting.contractor.payment_type` | string (`payg`, `abn`) \| null | no | Australia: paid PAYG through the agency, or invoicing under their own ABN. | | `contracting.contractor.abn` | string \| null | no | Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn. | | `contracting.contractor.entity_name` | string \| null | no | 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. | | `contracting.contractor.gst_registered` | string (`yes`, `no`) \| null | no | 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` | integer \| null | no | Guarantee period in days from start_date. Defaults from the client's fee schedule when omitted on create. | | `status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no | 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` | string \| null | no | | | `billing` | object | no | 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. | | `billing.hiring_manager` | object \| null | no | The client contact who hired. Defaults to the job's client contact. | | `billing.hiring_manager.id` | string | no | | | `billing.hiring_manager.name` | string \| null | no | | | `billing.hiring_manager.email` | string \| null | no | | | `billing.invoice_contact` | object \| null | no | The client contact who gets the invoice. Defaults to the client's default_invoice_contact_id. | | `billing.invoice_contact.id` | string | no | | | `billing.invoice_contact.name` | string \| null | no | | | `billing.invoice_contact.email` | string \| null | no | | | `billing.po_number` | string \| null | no | | | `billing.invoice_notes` | string \| null | no | | | `invoice` | object \| null | no | 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. | | `invoice.provider` | string (`xero`) | no | | | `invoice.status` | string (`draft`, `submitted`, `authorised`, `paid`, `voided`, `deleted`) \| null | no | The invoice's status in Xero. Null while the draft is being made. Treat a value you do not recognise as unknown. | | `invoice.number` | string \| null | no | | | `invoice.amount` | number \| null | no | The invoice total. Null without the financial scope. | | `invoice.currency` | string \| null | no | | | `invoice.amount_due` | number \| null | no | What is still owed. Null without the financial scope. | | `invoice.paid_at` | string (date-time) \| null | no | | | `invoice.synced_at` | string (date-time) \| null | no | When Lovelio last read the invoice from Xero. | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### PlacementPapers 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `placement_id` | string | no | pla_ id. | | `candidate_id` | string | no | cnd_ id. | | `candidate_name` | string | no | | | `client_name` | string \| null | no | | | `placement_status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no | | | `start_date` | string (date) \| null | no | | | `end_date` | string (date) \| null | no | The contract end date. Null for an open-ended contract. | | `country` | string \| null | no | The country whose rules apply: the workplace, else the agency. | | `rules_label` | string | no | "Basics only" for a country Lovelio has no rules for. | | `summary` | string | no | The whole answer in one plain paragraph, ready to relay. | | `requirements` | array of object | no | | | `requirements[].kind` | string | no | | | `requirements[].name` | string | no | | | `requirements[].reason` | string (`right_to_work`, `pay`, `job`) | no | Why it is needed: everyone working, the pay route (an ABN contractor carries insurance), or the job asks for it. | | `requirements[].why` | string | no | One sentence saying why. | | `requirements[].scope` | string (`person`, `placement`) | no | person: one document serves every contract in the country. placement: this contract only. | | `requirements[].lasts_months` | integer \| null | no | How long one counts from its own date, when the rules say so. | | `requirements[].status` | string (`current`, `missing`, `expired`, `ends_first`, `to_check`, `not_needed`) | no | 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. | | `requirements[].waived` | object \| null | no | Set when marked not needed for this contract. | | `requirements[].waived.by_name` | string \| null | no | | | `requirements[].waived.at` | string (date-time) | no | | | `requirements[].paper` | object \| null | no | The document on file for it, if any. | | `requirements[].paper.id` | string | no | ppr_ id. | | `requirements[].paper.details` | string \| null | no | | | `requirements[].paper.issued_on` | string (date) \| null | no | | | `requirements[].paper.expires_on` | string (date) \| null | no | | | `requirements[].paper.counts_until` | string (date) \| null | no | | | `requirements[].paper.checked_by_name` | string \| null | no | | | `requirements[].paper.checked_at` | string (date-time) \| null | no | | | `requirements[].paper.sent_at` | string (date-time) \| null | no | | | `requirements[].paper.document_id` | string \| null | no | doc_ id. | | `requirements[].paper.placement_id` | string \| null | no | pla_ id, for an engagement document. | ### QuotaPeriod 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `label` | string | no | | | `start_date` | string (date) | no | Inclusive. | | `end_date` | string (date) | no | Inclusive. | | `status` | string (`open`, `published`, `locked`) | no | | | `agency_target` | number \| null | no | 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` | string (date-time) \| null | no | | ### QuotaPlan 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `cadence` | string (`monthly`, `quarterly`, `yearly`) | no | | | `currency` | string | no | ISO 4217 code targets are measured in. One currency per plan; other currencies are reported as their own lines, never converted. | | `recognition_basis` | string (`offer_accepted`, `start_date`) | no | When a placement counts: when the offer was accepted, or when the candidate starts (default). | | `include_permanent` | boolean | no | | | `include_contract` | boolean | no | Contract placements count their expected GP; perm placements count the fee. | | `extensions_rule` | string (`extension_start`, `not_counted`) | no | | | `quarter_start_month` | integer, 1-12 | no | First month of the cycle. 1 = Jan/Apr/Jul/Oct quarters; 7 = an Australian financial year. | | `lock_closed_periods` | boolean | no | | ### Referee | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `candidate_id` | string | no | | | `name` | string | no | | | `email` | string (email) \| null | no | | | `phone` | string \| null | no | Mobile number. | | `job_title` | string \| null | no | | | `company` | string \| null | no | Where the candidate and referee worked together. | | `relationship` | string \| null | no | | | `worked_from` | string \| null | no | Start of the period they worked together, YYYY-MM. | | `worked_to` | string \| null | no | End of the period they worked together, YYYY-MM. | | `how_worked_together` | string \| null | no | | | `source` | string (`manual`, `resume_parse`, `candidate_submitted`) | no | How the referee was added. | | `submitted_at` | string (date-time) \| null | no | 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` | string (date-time) | no | | ### ReviewQueueItem | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `application_id` | string \| null | no | | | `review_type` | string (`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`) | no | | | `priority` | string (`urgent`, `high`, `normal`, `low`) | no | | | `title` | string | no | | | `description` | string \| null | no | | | `action_required` | string \| null | no | | | `resolved` | boolean | no | | | `resolved_at` | string (date-time) \| null | no | | | `snoozed_until` | string (date-time) \| null | no | If set to a future time, the item is hidden from the default GET listing until this moment passes. | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### ScheduledEmail | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `candidate_id` | string | no | | | `application_id` | string \| null | no | | | `job_id` | string \| null | no | | | `thread_id` | string \| null | no | | | `email_message_id` | string \| null | no | | | `created_by` | string \| null | no | | | `to_address` | string | no | | | `cc_addresses` | array of string | no | | | `bcc_addresses` | array of string | no | | | `subject` | string | no | | | `body_html` | string \| null | no | | | `body_text` | string \| null | no | | | `status` | string (`draft`, `scheduled`, `sending`, `sent`, `cancelled`, `failed`) | no | | | `scheduled_at` | string (date-time) | no | | | `sent_at` | string (date-time) \| null | no | | | `cancelled_at` | string (date-time) \| null | no | | | `last_error` | string \| null | no | | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### Spec 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `candidate_id` | string | no | | | `client_id` | string | no | | | `client_contact_id` | string | no | | | `status` | string (`sent`, `viewed`, `interested`, `passed`, `converted`, `expired`, `revoked`) | no | | | `anonymous_profile` | object | no | The client-facing profile, exactly as approved by the consultant (and scrubbed of identifying details). | | `anonymous_profile.headline` | string | no | | | `anonymous_profile.chips` | array of string | no | | | `anonymous_profile.pitch` | string | no | | | `anonymous_profile.why_client` | string \| null | no | | | `email_subject` | string | no | | | `terms_attached` | boolean | no | Whether the agency terms of business PDF rode along as an email attachment. | | `terms_url` | string \| null | no | 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` | boolean | no | The honest record: does the candidate know they were specced? | | `url` | string \| null | no | 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` | string (date-time) | no | | | `expires_at` | string (date-time) | no | | | `first_viewed_at` | string (date-time) \| null | no | | | `responded_at` | string (date-time) \| null | no | | | `response` | string (`interested`, `passed`, null) \| null | no | | | `response_note` | string \| null | no | | | `response_rating` | integer, 1-5 \| null | no | The client's 1-5 rating, captured when they mark interest. Null if not rated. | | `wants_more` | boolean \| null | no | 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` | string \| null | no | 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` | string (date-time) \| null | no | When they last asked for more people. | | `converted_job_id` | string \| null | no | | | `converted_application_id` | string \| null | no | | | `created_at` | string (date-time) | no | | ### Submission 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `job_id` | string | no | | | `job_title` | string \| null | no | The job's title, embedded so list consumers never need a lookup per row. | | `client_id` | string | no | | | `client_name` | string \| null | no | The client's name, embedded so list consumers never need a lookup per row. Null when the client is deleted. | | `client_deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. | | `client_contact_id` | string | no | | | `status` | string (`pending`, `viewed`, `partially_responded`, `completed`, `expired`, `revoked`) | no | | | `title` | string \| null | no | | | `email_subject` | string \| null | no | 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` | string \| null | no | 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` | string \| null | no | 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` | string \| null | no | 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` | string \| null | no | 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` | string (`full`, `first_name`, `anonymous`) | no | 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` | string \| null | no | 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` | boolean | no | 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` | string (date-time) | no | 7 days from send; resending extends it. | | `first_viewed_at` | string (date-time) \| null | no | | | `completed_at` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | | `items` | array of SubmissionItem | no | | ### TalentPool | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `name` | string | no | | | `slug` | string | no | | | `eligibility` | string \| null | no | 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` | boolean | no | 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` | integer, 0-100 \| null | no | Optional AI assessment score floor gating the match. | | `min_hm_fit` | integer, 0-100 \| null | no | Optional Client Fit score floor gating the match (the field name is historical). | | `description` | string \| null | no | | | `keep_warm_enabled` | boolean | no | 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` | string (`cyan`, `green`, `lime`, `amber`, `orange`, null) \| null | no | Chosen cover-tile colour for the dashboard. Null falls back to a colour derived from the pool name. | | `created_at` | string (date-time) | no | | | `updated_at` | string (date-time) | no | | ### Task The 202 acknowledgement of an async operation. Poll poll_url, which returns a TaskStatus. | Field | Type | Required | Description | | --- | --- | --- | --- | | `task_id` | string | no | | | `status` | string (`queued`, `processing`, `completed`, `failed`) | no | | | `resource_id` | string \| null | no | | | `estimated_seconds` | integer | no | | | `poll_url` | string | no | | ### TaskStatus 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. | Field | Type | Required | Description | | --- | --- | --- | --- | | `task_id` | string | no | | | `status` | string (`queued`, `processing`, `completed`, `failed`) | no | | | `operation` | string (`create_job`, `describe_job`, `describe_email`, `publish_job_ad`, `distribute_job`, `enrich_account`, `parse_candidate_cv`, `assess_application`, `schedule_interview`) | no | | | `resource_id` | string \| null | no | | | `result` | object \| null | no | Operation-specific result payload once status is completed. | | `error` | object \| null | no | Error detail once status is failed. | | `started_at` | string (date-time) \| null | no | | | `completed_at` | string (date-time) \| null | no | | | `created_at` | string (date-time) | no | | | `poll_url` | string | no | | ### Team | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `name` | string | no | | | `parent_team_id` | string \| null | no | Parent team this team nests under in the org chart, or null at top level. | | `created_at` | string (date-time) | no | | ### User | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | 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` | string | no | | | `name` | string | no | | | `first_name` | string \| null | no | | | `last_name` | string \| null | no | | | `email` | string (email) | no | | | `role` | string (`admin`, `team_leader`, `recruiter`, `resourcer`) | no | | | `team_ids` | array of string | no | The team the accepted member sits on. Always [] while their invite is pending. | | `status` | string | no | | | `slack_user_id` | string \| null | no | | | `whatsapp_number` | string \| null | no | | | `phone` | string \| null | no | | | `linkedin_url` | string \| null | no | | | `created_at` | string (date-time) | no | | ### Webhook | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `account_id` | string | no | | | `url` | string (uri) | no | | | `events` | array of string | no | | | `status` | string (`active`, `paused`) | no | | | `created_at` | string (date-time) | no | | ### WebhookDelivery | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | no | | | `webhook_id` | string | no | | | `event` | string | no | | | `status` | string | no | | | `attempts` | integer | no | | | `last_response_code` | integer \| null | no | | | `last_error` | string \| null | no | | | `next_retry_at` | string (date-time) \| null | no | | | `payload` | object | no | | | `created_at` | string (date-time) | no | | ### WorkflowRules Per-company configuration for how Lovelio scores, triages, and follows up on applications. | Field | Type | Required | Description | | --- | --- | --- | --- | | `ai_assessment_job_fit_advance` | integer, 0-100 | no | 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` | integer, 0-100 | no | 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` | integer, 0-100 | no | 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` | integer, 0-100 | no | Client Fit score at or below which a new application receives the AI verdict "no" (default 50). | | `screen_advance_threshold` | integer, 0-100 | no | Phone screen score at or above which Lovelio recommends submitting the candidate to the client. Recommendations never move a candidate automatically. | | `screen_reject_threshold` | integer, 0-100 | no | Phone screen score at or below which Lovelio recommends parking the candidate. | | `submission_chase_days` | integer, 1-14 | no | 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` | integer, 1-720 | no | Hours after a scheduled interview before the interviewer gets a feedback nudge. Applies only when feedback_requests is "on". | | `referee_details_chase_days` | integer, 0-60 | no | | | `referee_details_escalate_days` | integer, 0-60 | no | | | `referee_form_chase_days` | integer, 1-14 | no | 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` | integer, 1-5 | no | Default number of referees requested per candidate. Adjustable per request. | | `hot_candidate_job_fit_threshold` | integer, 50-100 | no | 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` | integer, 50-100 | no | 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` | boolean | no | 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` | integer, 1-14 | no | 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` | string (`off`, `on`) | no | 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` | string (date-time) | no | | | `updated_at` | string (date-time) | no | |