# 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 <key>. Three key types: sk_live_ (production), sk_test_ (development - same workspace, same data, marked as a test key; use a separate workspace if you need isolated test data), and sk_trial_ (issued at signup, expires 14 days later - swap to a live key from Settings > API keys). Keys are server-generated, shown once at creation, and scoped per permission (or admin for everything). The regional /api/mcp endpoint also accepts these keys through the Authorization header, with the same scopes and record access. Current key status and scopes are rechecked on every request. Lovelio Connect apps authenticate with the OAuth access token from the connect flow instead (Authorization: Bearer lc_at_...; personal MCP clients use mcp_at_...) - it carries exactly the scopes the agency approved, enforced on every request. Personal actions use the current membership role and record access; direct account administration requires an admin. Consultant OAuth scopes also follow the current agency rule. Additional scopes require fresh consent. Money is gated at FIELD level, not route level: the three scopes placements:financials:read, clients:financials:read and marketplace:financials:read unlock salary, fee, contract rates, expected GP, commission percents, the client fee schedule and split-fee deal amounts. Without them those fields return null and everything else on the record still comes through - a read never 403s for want of a money scope. admin satisfies all three. A key or connection that acts as a person also carries that person's money view: when their user type has "See everyone's billings and GP" switched off (Settings > Permissions), money fields come back null on every record that is not their own (a placement they own or share credit on, a job they own and its placements, their own listings and deals), totals count their own placements only, and a write to money on someone else's placement returns a validation error. A company key with no person behind it sees every figure its scopes allow. A fourth field gate, placements:contracting:read, unlocks the timesheet and payroll hand-off on a contract placement: the client's payment terms and how the contractor is paid (Australia: PAYG or ABN, and the ABN). Requesting any of them puts a Connect app in the elevated review tier. See /docs/agents/build-an-integration.

## 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

Filtered to: Batch.

### 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

---

## 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 <date>?" for contracts finishing soon, a "How is it going?" check-in for the quiet ones. Returns the drafts (candidate_id, placement_id, channel, email_subject, email_body, free_from); nothing is sent. A person reads them, can change them, and sends them with send_availability_asks, 25 at a time. Each reply sets that person's free date. Someone who agreed to WhatsApp (record_whatsapp_consent) is drafted a WhatsApp ask instead: channel "whatsapp", whatsapp_preview is the approved message exactly as they will read it, whatsapp_buttons its buttons, whatsapp_wait why it cannot go right now (outside 8am to 6pm on a weekday, their time), can_email whether email is a fallback. WhatsApp is off until Lovelio and the agency switch it on. |
| `draft_extension_asks` | `candidates:write` | `{ placement_ids?: string[] }` | Draft the extension asks: "Keep <name> past <end date>?" to the client contact and "Want to stay on?" to the contractor, for every contract on list_extension_asks (up to 50 emails) or the placement_ids given (any contract still waiting on a plan or asked). The client email never names the client. Returns the drafts (placement_id, to: client\|contractor, client_contact_id, channel, email_subject, email_body); nothing is sent. A person reads them, can change them, and sends them with send_extension_asks. The client is always emailed; a contractor who agreed to WhatsApp is drafted the approved WhatsApp ask (whatsapp_preview, whatsapp_buttons, whatsapp_wait, can_email). |
| `draft_job_availability_asks` | `candidates:write` | `{ job_id }` | Draft "Are you free from <start date>?" emails for everyone on a contract job's free list whose free date no person confirmed in the last 7 days and who can be reached. Returns the drafts (candidate_id, channel, email_subject, email_body, free_from); nothing is sent. A person reads them, can change them, and sends them with send_availability_asks. Each reply sets that person's free date. Someone who agreed to WhatsApp (record_whatsapp_consent) is drafted a WhatsApp ask instead: channel "whatsapp", whatsapp_preview is the approved message exactly as they will read it, whatsapp_buttons its buttons, whatsapp_wait why it cannot go right now (outside 8am to 6pm on a weekday, their time), can_email whether email is a fallback. WhatsApp is off until Lovelio and the agency switch it on. |
| `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: <record id> } }` | Merge duplicate records of one person into a primary record. Every application, note and CV is kept; fields optionally says which record a field value comes from. |
| `merge_clients` | `clients:write` | `{ primary_id, duplicate_id \| duplicate_ids: [...], fields?: { name\|website\|phone\|address\|linkedin_url\|industry\|owner\|fee_terms\|xero_contact: <record id> } }` | Merge duplicate records of one client company into a primary record. Every job, contact, placement and note is kept, and a link or a read that names the old record opens the merged client. fields optionally says which record a field value comes from; left out, the primary keeps its values and its blanks are filled from the others. The agency's own client cannot be merged. |
| `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 |

## Schemas

Objects referenced by the operations above.

### 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. |

### Meta

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `request_id` | string | yes |  |
| `count` | integer | no |  |
| `has_more` | boolean | no |  |
| `next_cursor` | string \| null | no |  |
