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

### Placements

The record of the win: fee, start date, guarantee lifecycle

- `GET /placements` - List placements
- `POST /placements` - Create placement
- `GET /placements/check-ins` - Contractors to check in with
- `GET /placements/contractor-report` - Contract forecast and compliance report
- `GET /placements/extension-asks` - Contracts ending with no plan
- `GET /payroll-reference/positions` - Get your Positions
- `PUT /payroll-reference/positions` - Push your Positions
- `GET /payroll-reference/rate-templates` - Get your Rate templates
- `PUT /payroll-reference/rate-templates` - Push your Rate templates
- `GET /placements/{id}` - Get placement
- `PATCH /placements/{id}` - Update placement

---

## Placements

The record of the win: fee, start date, guarantee lifecycle

### GET /placements

**List placements**

Operation ID: `listPlacements`

Scopes: `placements:read`

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1-100, default 25 | no | Rows per page. Clamped to the 1-100 range rather than rejected, so asking for 500 returns 100 - read meta.has_more and page with the cursor. Unparseable values fall back to 25. |
| `after` | string | no | meta.next_cursor from the previous page, passed unchanged. Leave it out for the first page. A value Lovelio did not issue is a 422 VALIDATION_ERROR, never page 1 again. |
| `client_id` | string | no | Filter by client (cli_). |
| `candidate_id` | string | no | Filter by candidate (cnd_). |
| `job_id` | string | no | Filter by job (job_). |
| `status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no |  |
| `payroll_approval` | string (`approved`, `waiting`) | no | Contract and temp placements only. approved: an admin approved it for payroll (contracting.payroll_approval is set). waiting: not yet approved and not fallen off. A payroll partner uses approved to catch up on any placement.approved it missed. |
| `created_after` | string (date-time) | no | Only rows created at or after this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. |
| `created_before` | string (date-time) | no | Only rows created at or before this ISO 8601 date or datetime (inclusive). Malformed values are a 422, never silently ignored. |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | Paginated placements | { success, data: array of Placement, meta } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### POST /placements

**Create placement**

Log a placement: the win. Every placement traces back to a job and a live application. Pass application_id (app_) to log it against the application - it moves to placed automatically. Or pass candidate_id + client_id: the candidate must already be live on exactly one of the client's OPEN jobs - Active or On Hold (pass job_id to disambiguate) - and the placement links to that application; otherwise the request fails validation. A placement on a Closed or Filled job is refused whichever way it is addressed: reopen the job first. Fee percent and guarantee default off the client's fee schedule (banded by salary, minimum fee applied) when omitted; fee.amount is computed at write time. Contract rates and expected GP cannot be negative, charge_rate must be at least pay_rate, and contract_end_date cannot precede start_date. Currency, when omitted, resolves in this order: the client's own fee terms, then the acting user's default_currency, then the agency's standard fee schedule, then the agency's country. A key with no acting user behind it skips the user step. Lovelio never converts between currencies. A placement also tidies up: the candidate's other live applications are withdrawn with a timeline note naming the placement, and their future interviews on those applications are cancelled with the candidate and the interviewer told (each email gated by its own automation switch). Pass tidy_up.keep_application_ids to keep named applications live. The job stays open, since jobs can be multi-hire, unless tidy_up.close_job is true, in which case it closes as Filled. What happened is reported in meta.tidy_up (withdrawn_application_ids, kept_application_ids, cancelled_interview_ids, job_closed, problems). Requires placements:write.

Operation ID: `createPlacement`

Scopes: `placements:write`

**Header parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | yes | Unique key for one logical mutation, scoped to the account. Completed results expire after 24 hours; uncertain executions retain their safety reservation until reconciled. The key is claimed before side effects. Identical completed retries replay the saved response. Concurrent retries return 409 IDEMPOTENCY_IN_PROGRESS. Changed JSON, form fields, record ids, filenames, content types, or file bytes return 409 IDEMPOTENCY_KEY_REUSED. Random multipart boundaries do not affect matching. |

**Request body** (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `application_id` | string | no | app_ id. Resolves candidate, client, and job. |
| `tidy_up` | object | no | Defaults when omitted: withdraw every other live application, keep the job open. |
| `tidy_up.keep_application_ids` | array of string | no | app_ ids of other live applications to leave alone. |
| `tidy_up.close_job` | boolean | no | Close the job as Filled. Default false. |
| `candidate_id` | string | no | cnd_ id. Required with client_id when no application_id. The candidate must be live on one of the client's open jobs. |
| `client_id` | string | no | cli_ id. |
| `job_id` | string | no | job_ id. Disambiguates when the candidate is on more than one of the client's jobs. |
| `salary` | number | no | First-year BASE salary. |
| `super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. |
| `super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. |
| `ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. |
| `bonus_amount` | number, min 0 \| null | no | Bonus on top of base. |
| `currency` | string | no | ISO 4217 code. Omit to let it default (see the endpoint description). |
| `fee_type` | string (`percent`, `fixed`), default "percent" | no |  |
| `fee_percent` | number | no | Defaults to the band on the client's fee schedule (minimum fee applied). The band and the percent are taken of the client's fee basis: base salary, or the package total. |
| `fee_amount` | number | no | Fixed fee amount (fee_type fixed). |
| `placement_type` | string (`permanent`, `contract`) | no | Defaults from the job's employment_type: a contract job logs a contract placement. |
| `offer_date` | string (date) | no | When the candidate accepted. Defaults to the recorded acceptance date, otherwise today. |
| `contract_end_date` | string (date) | no | Contract placements: the initial term's end date. Must be on or after start_date. |
| `charge_rate` | number, min 0 | no | Contract placements: what the client pays, per rate_period. Must be at least pay_rate. |
| `pay_rate` | number, min 0 | no | Contract placements: what the contractor gets, per rate_period. |
| `rate_period` | string (`hourly`, `daily`, `weekly`) | no |  |
| `on_cost_percent` | number, 0-200 \| null | no | Contract placements: employer on-cost as a percent of pay (tax, pension, holiday), for a worker on the agency's payroll. Leave empty when the worker invoices the agency. Counts in the margin and in expected_gp. Send this or on_cost_amount, not both. |
| `on_cost_amount` | number, min 0 \| null | no | Contract placements: employer on-cost as an amount per rate_period (for example 120 a day), for a worker on the agency's payroll. Counts in the margin and in expected_gp. Send this or on_cost_percent, not both. |
| `expected_gp` | number, min 0 | no | Contract placements: expected gross profit over the initial term. Defaults to margin x term off the rates; an explicit value wins. |
| `credits` | array of object | no | The credit split - one line per consultant, percents totalling 100. Defaults to the placement owner at 100%. |
| `credits[].user_id` | string | no | The consultant's usr_ id. |
| `credits[].percent` | number | no |  |
| `credits[].role` | string (`candidate_consultant`, `job_owner`, `business_development`, `other`) | no |  |
| `start_date` | string (date) | no |  |
| `guarantee_days` | integer | no | Defaults to the client's guarantee_days. |
| `notes` | string | no |  |
| `hiring_manager_contact_id` | string \| null | no | The client contact who hired (cct_ id of a contact on the client). Left out, it is the job's client contact. Null means none. |
| `invoice_contact_id` | string \| null | no | The client contact who gets the invoice (cct_ id of a contact on the client). Left out, it is the client's default_invoice_contact_id. Null means none. The first one a client's placement names becomes that client's default when it has none. |
| `po_number` | string \| null | no | The client's purchase order number for this placement. |
| `invoice_notes` | string \| null | no | What accounts needs to bill this placement. |
| `work_site_id` | string | no | Contract placements: where the work happens, a site_ id on the same client (GET /clients/{id}/sites). Its country decides which contractor payroll fields apply. A site on another client returns 422. |
| `work_site` | object | no | Contract placements: add the workplace inline instead of work_site_id. Creates the site on the client (or reuses the same address) and links it. Ignored when work_site_id is sent. |
| `work_site.label` | string | no |  |
| `work_site.street` | string | no |  |
| `work_site.city` | string | no |  |
| `work_site.region` | string | no |  |
| `work_site.postcode` | string | no |  |
| `work_site.country` | string | yes | ISO 3166-1 alpha-2. Required. |
| `position_id` | string \| null | no | Contract placements: the payroll partner's own id for the Position, from GET /payroll-reference/positions. An id not on that list returns 422. |
| `rate_template_id` | string \| null | no | Contract placements: the payroll partner's own id for the Rate template, from GET /payroll-reference/rate-templates. An id not on that list returns 422. |
| `timesheet_approver_contact_ids` | array of string | no | Contract placements: who approves the timesheets, first approver first. cct_ ids of contacts on the placement's client, each with an email; anything else returns 422. |
| `contractor_details` | object | no | Contract placements: the contractor's payroll-facing details for the work country, stored on the candidate. Needs a work site so the country is known. Australia: payment_type, abn, entity_name and gst_registered; the ABN is checksum-validated. |
| `contractor_details.payment_type` | string (`payg`, `abn`) \| null | no | Australia: paid PAYG through the agency, or invoicing under their own ABN. |
| `contractor_details.abn` | string \| null | no | Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn. |
| `contractor_details.entity_name` | string \| null | no | Australia, ABN only: the legal entity the ABN belongs to, as on the ABN register. A recipient-created tax invoice (RCTI) is issued to it. Dropped when payment_type is payg. |
| `contractor_details.gst_registered` | string (`yes`, `no`) \| null | no | Australia, ABN only: whether the entity is registered for GST, which decides the GST line on an RCTI. Writes also take true or false. Dropped when payment_type is payg. |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `201` | Placement logged. meta.tidy_up says what else happened. | { success, data: Placement, meta } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `409` | Idempotency errors: IDEMPOTENCY_IN_PROGRESS means retry the identical request with the same key after Retry-After. IDEMPOTENCY_KEY_REUSED needs a fresh key for a distinct request. IDEMPOTENCY_OUTCOME_UNKNOWN must be reconciled before any new key is used. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |
| `503` | Idempotency storage error: retry only the identical request with the same key. | Error |

### GET /placements/check-ins

**Contractors to check in with**

The contractors to check in with this week: contracts finishing within 8 weeks with no free date a person confirmed since the 8 weeks began, and placed contractors not heard from in 30 days (no reply, call or confirmed date). Anyone with an ask still open is left out. The same list the Contractors page and home show. Finishing contracts come first, soonest end first, then the longest quiet. Draft the emails with the draft_contractor_check_ins action and send them with send_availability_asks; nothing is sent by this read. Pure read.

Operation ID: `listContractorCheckIns`

Scopes: `placements:read`

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The check-in list | { success, data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### GET /placements/contractor-report

**Contract forecast and compliance report**

The manager's contract forecast: every live contract (running, starting or finishing) with its GP week by week for the next 13 weeks, added up for the whole agency, for each team (a team counts the teams inside it) and for each consultant. A week is the agency's standard week (38 hours in Australia, 37.5 in the UK, 40 elsewhere, or the figure set in Settings) over 5 days. Hourly and daily contractors lose the public holidays where they work (country and state); weekly rates bill through them. Each contract stops at its end date. document_issues counts the documents missing, expired, running out before the contract ends or waiting to be checked. The same figures as the Contractors page Forecast view and the get_contractor_report action. Money fields are null unless the key holds placements:financials:read. A key acting as a user who cannot see everyone's billings and GP gets GP on that user's own contracts only, and the totals add up only those. Money is one line per currency; Lovelio never converts. Pure read.

Operation ID: `getContractorReport`

Scopes: `placements:read`

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `team_id` | string | no | Only contracts whose consultant sits in this team or a team inside it. A tem_ id. |
| `owner_id` | string | no | Only this consultant's contracts. A usr_ id. |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The contractor report | { success, data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### GET /placements/extension-asks

**Contracts ending with no plan**

Contracts ending within 8 weeks with no plan (not asked, will be extended or finishing, and not going perm) and no extension ask sent about their current end date yet. The same list the Contractors page shows, soonest end first. Draft the asks with the draft_extension_asks action ("Keep Priya past 13 Nov?" to the client contact, "Want to stay on?" to the contractor) and send them with send_extension_asks; the answers set the contract plan or offer an Extend with the new date filled in. Nothing is sent by this read. Pure read.

Operation ID: `listExtensionAsks`

Scopes: `placements:read`

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The contracts to ask about | { success, data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |
| `503` | The database is still being updated for extension asks. Try again in a few minutes. | Error |

### GET /payroll-reference/positions

**Get your Positions**

The Positions you last pushed, with the ids you gave. Add include_retired=true to see ones you have stopped sending.

Operation ID: `listPayrollPositions`

Scopes: `placements:read`

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `include_retired` | boolean | no |  |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The list | { data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### PUT /payroll-reference/positions

**Push your Positions**

Send the whole list every time. Entries you send are live (new ones are added, renamed ones updated, retired ones come back). Entries you leave out are retired, never deleted: a placement that already picked one keeps it, but nobody can pick it again. The whole list is checked first, so one bad entry changes nothing. Up to 5,000 entries. Consultants then pick from this list on a contract placement, and the pick comes back to you on placement.updated as contracting.position. Sending the same list again changes nothing.

Operation ID: `replacePayrollPositions`

Scopes: `placements:write`

**Request body** (`application/json`, required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of object | yes |  |
| `items[].id` | string | yes | Your own id for this entry, up to 100 characters. This is the id placements carry back to you. |
| `items[].name` | string | yes | What a consultant reads in the dropdown, up to 200 characters. |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The list as it stands now, with how many entries were added and retired. | { data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `422` | An entry has no id or name, an id appears twice, or the list is over 5,000 entries. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### GET /payroll-reference/rate-templates

**Get your Rate templates**

The Rate templates you last pushed, with the ids you gave. Add include_retired=true to see ones you have stopped sending.

Operation ID: `listPayrollRateTemplates`

Scopes: `placements:read`

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `include_retired` | boolean | no |  |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The list | { data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### PUT /payroll-reference/rate-templates

**Push your Rate templates**

Send the whole list every time. Entries you send are live (new ones are added, renamed ones updated, retired ones come back). Entries you leave out are retired, never deleted: a placement that already picked one keeps it, but nobody can pick it again. The whole list is checked first, so one bad entry changes nothing. Up to 5,000 entries. Consultants then pick from this list on a contract placement, and the pick comes back to you on placement.updated as contracting.rate_template. Sending the same list again changes nothing.

Operation ID: `replacePayrollRateTemplates`

Scopes: `placements:write`

**Request body** (`application/json`, required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of object | yes |  |
| `items[].id` | string | yes | Your own id for this entry, up to 100 characters. This is the id placements carry back to you. |
| `items[].name` | string | yes | What a consultant reads in the dropdown, up to 200 characters. |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | The list as it stands now, with how many entries were added and retired. | { data: object } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `422` | An entry has no id or name, an id appears twice, or the list is over 5,000 entries. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### GET /placements/{id}

**Get placement**

Operation ID: `getPlacement`

Scopes: `placements:read`

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | Placement details | { success, data: Placement } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

### PATCH /placements/{id}

**Update placement**

Patch fields (salary, fee, start_date, guarantee_days, notes, contract terms, the contract plan, a rate change from a date, an early end with a reason, a conversion to perm), replace the credit split, or move the lifecycle status (pending_start / started / fell_off / completed). Status changes dispatch a placement.status_changed webhook, and every change dispatches one placement.updated carrying the placement as GET returns it plus changed_fields. fee.amount is recomputed when any fee input moves; expected_gp is recomputed when a contract's rates or term move unless set directly. Contract rates and expected GP cannot be negative, charge_rate must be at least pay_rate, and contract_end_date cannot precede start_date. credits replaces the whole split and must total 100.

Operation ID: `updatePlacement`

Scopes: `placements:write`

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |

**Request body** (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no |  |
| `salary` | number | no | First-year BASE salary. |
| `super_percent` | number, 0-100 \| null | no | Superannuation as a percent of base. Australian packages only (currency AUD). Ignored when super_amount is set. |
| `super_amount` | number, min 0 \| null | no | Superannuation as an amount. Australian packages only (currency AUD). Wins over super_percent. |
| `ote_amount` | number, min 0 \| null | no | On-target earnings, INCLUDING base. The package takes the larger of OTE and base. |
| `bonus_amount` | number, min 0 \| null | no | Bonus on top of base. |
| `currency` | string | no |  |
| `fee_type` | string (`percent`, `fixed`) | no |  |
| `fee_percent` | number | no |  |
| `fee_amount` | number | no |  |
| `placement_type` | string (`permanent`, `contract`) | no |  |
| `offer_date` | string (date) | no |  |
| `contract_end_date` | string (date) | no | Must be on or after start_date. |
| `charge_rate` | number, min 0 | no | Must be at least pay_rate. |
| `pay_rate` | number, min 0 | no |  |
| `rate_period` | string (`hourly`, `daily`, `weekly`) | no |  |
| `on_cost_percent` | number, 0-200 \| null | no | Contract placements: employer on-cost as a percent of pay (tax, pension, holiday), for a worker on the agency's payroll. Leave empty when the worker invoices the agency. Counts in the margin and in expected_gp. Send this or on_cost_amount, not both. |
| `on_cost_amount` | number, min 0 \| null | no | Contract placements: employer on-cost as an amount per rate_period (for example 120 a day), for a worker on the agency's payroll. Counts in the margin and in expected_gp. Send this or on_cost_percent, not both. |
| `expected_gp` | number, min 0 | no |  |
| `contract_plan` | string (`asked`, `extending`, `finishing`) \| null | no | Contract placements only: what happens on the contract's end date. asked: the client has been asked. extending: the client agreed to extend and only the paperwork is left. finishing: the contract ends. To record a contract going perm, set converted_on and conversion_salary instead. The plan is stored against the end date it answers (the one after this patch, when contract_end_date moves in the same request), so a later extension retires it and contract.plan reads null. Null clears it. To agree an extension, move contract_end_date (and the rates) instead. |
| `rates_from` | string (date) | no | Contract placements only: the day new charge_rate / pay_rate / rate_period (sent in the same request) start applying. The earlier rates are kept for the weeks before it (contract.rate_history). A day inside an earlier stretch changes that stretch from the day and keeps every later change. Omit it to correct the current rates. Must be on or before contract_end_date. |
| `contract_end_reason` | string (`client_ended`, `contractor_left`) \| null | no | Contract placements only: why the contract is ending early. Send it with the earlier contract_end_date. converted is set by converted_on, never directly. |
| `converted_on` | string (date) \| null | no | Contract placements only: the day the contractor goes perm with the client. The contract then ends the day before, contract.end_reason reads converted, and the contractor is no longer shown as available. Null undoes the conversion. |
| `next_contact_on` | string (date) \| null | no | Contract placements that are running or about to start: the day to contact the contractor next (YYYY-MM-DD, today or later). The consultant gets a reminder that day and it goes in their calendar. Null clears it. |
| `conversion_salary` | number \| null | no | Contract placements only: the perm salary on conversion. |
| `conversion_fee` | number \| null | no | Contract placements only: the conversion fee. Defaults off the client's fee terms and the conversion salary when omitted. Added into expected_gp. |
| `credits` | array of object | no | Replaces the whole split. Percents must total 100. |
| `credits[].user_id` | string | no | The consultant's usr_ id. |
| `credits[].percent` | number | no |  |
| `credits[].role` | string (`candidate_consultant`, `job_owner`, `business_development`, `other`) | no |  |
| `start_date` | string (date) | no |  |
| `guarantee_days` | integer | no |  |
| `notes` | string | no |  |
| `hiring_manager_contact_id` | string \| null | no | The client contact who hired (cct_ id of a contact on the placement's client). Null clears it. |
| `invoice_contact_id` | string \| null | no | The client contact who gets the invoice (cct_ id of a contact on the placement's client). Can differ from the hiring manager. Null clears it. |
| `po_number` | string \| null | no | The client's purchase order number for this placement. Null or an empty string clears it. |
| `invoice_notes` | string \| null | no | What accounts needs to bill this placement. Null or an empty string clears it. |
| `work_site_id` | string \| null | no | Move the work to another of the client's sites (site_ id); work_country follows it. Null clears the site and keeps the country. |
| `position_id` | string \| null | no | Contract placements: the payroll partner's own id for the Position, from GET /payroll-reference/positions. An id not on that list returns 422. |
| `rate_template_id` | string \| null | no | Contract placements: the payroll partner's own id for the Rate template, from GET /payroll-reference/rate-templates. An id not on that list returns 422. |
| `timesheet_approver_contact_ids` | array of string | no | Replaces the whole approver list, in order. cct_ ids of contacts on the placement's client, each with an email. An empty list clears it. |
| `contractor_details` | object | no | Replaces the contractor's details for the placement's work country (set work_site_id first). Australia: payment_type, abn, entity_name and gst_registered. |
| `contractor_details.payment_type` | string (`payg`, `abn`) \| null | no | Australia: paid PAYG through the agency, or invoicing under their own ABN. |
| `contractor_details.abn` | string \| null | no | Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn. |
| `contractor_details.entity_name` | string \| null | no | Australia, ABN only: the legal entity the ABN belongs to, as on the ABN register. A recipient-created tax invoice (RCTI) is issued to it. Dropped when payment_type is payg. |
| `contractor_details.gst_registered` | string (`yes`, `no`) \| null | no | Australia, ABN only: whether the entity is registered for GST, which decides the GST line on an RCTI. Writes also take true or false. Dropped when payment_type is payg. |

**Responses**

| Code | Description | Body |
| --- | --- | --- |
| `200` | Updated | { success, data: Placement } |
| `400` | Invalid request. Correct the named field or add the required Idempotency-Key. | Error |
| `401` | AUTHENTICATION_REQUIRED: supply the full key or token on the correct environment and region. The same code covers a credential that is no longer usable: a revoked key and an authorising user whose access an admin has paused. The message says which. | Error |
| `402` | PREMIUM_REQUIRED: the agency has no active plan, so the whole account is closed to people and agents alike until an admin signs in at lovelio.ai and turns it back on. Stop retrying and tell whoever runs the integration. | Error |
| `403` | Access refused. Check the error code and the required permissions. ACCOUNT_SUSPENDED means an admin at Lovelio has made the whole agency dark: nothing will work until that is lifted, and no credential change helps. CONNECTION_PENDING_APPROVAL means a consultant's connection is waiting for an admin at the agency to approve it: the credential is valid, so do not refresh or reconnect; the person gets an email when it is live. | Error |
| `405` | METHOD_NOT_ALLOWED: use one of the methods in the Allow header. | Error |
| `423` | RESTORE_IN_PROGRESS: the agency is being put back to an earlier time, which takes seconds. Nothing was written. Wait for the Retry-After header (60 seconds), then send the same request again. | Error |
| `429` | RATE_LIMIT_EXCEEDED: wait for Retry-After seconds before retrying. DAILY_LIMIT_REACHED: the key has accessed today's allowance of candidates. The allowance is set by the agency (200 a day by default for a key acting for a non-admin, and an agency can raise it, lower it, or choose to be told rather than stop); records already returned today do not count again, and the allowance resets with the person's day. | Error |
| `500` | INTERNAL_ERROR: retry with backoff. An idempotent POST must keep the same key. | Error |

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

### Placement

The agency's win: a candidate placed with a client for a fee. Created against an application (moves it to placed) or logged directly with candidate_id + client_id.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | no |  |
| `number` | integer \| null | no | The agency's own placement number: each agency counts its placements from 1 in the order they were made, and a number is never reused. Key a timesheet or payroll assignment to it. Null only for a moment while a release rolls out. |
| `reference` | string \| null | no | The number as people read it out: P- then the number. |
| `candidate_id` | string | no |  |
| `candidate_name` | string \| null | no | The candidate's name, embedded so list consumers never need a lookup per row. Null when the candidate is deleted. |
| `candidate_first_name` | string \| null | no | The candidate's first_name, the same value the candidate endpoints return, so a two-word given name ("Mary Anne") stays whole. |
| `candidate_last_name` | string \| null | no | The candidate's last_name, the same value the candidate endpoints return. |
| `candidate_mobile` | string \| null | no | A mobile number in international form, for a two-factor code. Null when the phone on file is not a mobile, or its country cannot be told (the US and Canada never read as mobile). A local number reads in the work country, then the candidate's own. |
| `candidate_deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. |
| `client_id` | string | no |  |
| `client_name` | string \| null | no | The client's name, embedded so list consumers never need a lookup per row. Null when the client is deleted. |
| `client_deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. |
| `job_id` | string \| null | no |  |
| `job_title` | string \| null | no |  |
| `application_id` | string \| null | no |  |
| `salary` | number \| null | no | First-year BASE salary. Requires the placements:financials:read scope - null without it. |
| `package` | object \| null | no | What sits on top of base and the resulting package total. Null without the placements:financials:read scope. |
| `package.super_percent` | number \| null | no |  |
| `package.super_amount` | number \| null | no |  |
| `package.ote_amount` | number \| null | no | On-target earnings, including base. |
| `package.bonus_amount` | number \| null | no |  |
| `package.total` | number \| null | no | The larger of OTE and base, plus super, plus bonus. What a percent fee is taken of when the client's terms price on the package. |
| `currency` | string \| null | no | ISO 4217 code the placement was billed in. Fixed at write time and never re-derived - changing an agency or user default does not relabel existing placements. |
| `fee` | object | no | The placement fee. amount is the single billing figure: for percent fees it is the fee basis figure * percent / 100, computed at write time, where the basis is the client's fee_basis (base salary, or the package total); for fixed fees it is the amount as entered. The whole object is null without the placements:financials:read scope. |
| `fee.type` | string (`percent`, `fixed`) | no |  |
| `fee.percent` | number \| null | no |  |
| `fee.amount` | number \| null | no |  |
| `placement_type` | string (`permanent`, `contract`) | no | Perm or contract. Defaults from the job's employment_type on create. A perm placement's value is its fee amount; a contract placement's value is its expected GP. |
| `offer_date` | string (date) \| null | no | When the candidate accepted. Defaults to the recorded acceptance date, otherwise today. Never uses the date the offer was made. |
| `contract` | object \| null | no | Contract terms - present only when placement_type is contract. expected_gp defaults to margin (charge_rate - pay_rate) times the working units between start_date and end_date, and can be set directly; an explicit value always wins. |
| `contract.end_date` | string (date) \| null | no |  |
| `contract.charge_rate` | number \| null | no | Requires the placements:financials:read scope - null without it. |
| `contract.pay_rate` | number \| null | no | Requires the placements:financials:read scope - null without it. |
| `contract.rate_period` | string (`hourly`, `daily`, `weekly`) \| null | no |  |
| `contract.on_cost_percent` | number \| null | no | Employer on-cost as a percent of pay, set only for a worker on the agency's payroll (null means the worker invoices the agency), up to six decimals so a stacked Australian on-cost (super, then payroll tax and workers comp on pay plus super) lands on the cent. Requires the placements:financials:read scope - null without it. |
| `contract.on_cost_amount` | number \| null | no | Employer on-cost as an amount per rate_period, for a worker on the agency's payroll. A placement carries on_cost_percent or on_cost_amount, never both; both null means the worker invoices the agency. Requires the placements:financials:read scope - null without it. |
| `contract.expected_gp` | number \| null | no | Expected gross profit over the initial term, in the placement's currency. Requires the placements:financials:read scope - null without it. |
| `contract.plan` | string (`asked`, `extending`, `finishing`, `perm`) \| null | no | What happens on end_date: asked (the client has been asked about extending), extending (will be extended: the client agreed and only the paperwork is left) or finishing. perm appears only on contracts saved with the retired Going perm plan; going perm is now a conversion (converted_on). A plan answers one end date, so moving end_date (an extension) makes this null until a plan is set for the new date. Set it with PATCH contract_plan. |
| `contract.state` | string (`starting`, `running`, `no_plan`, `asked`, `extending`, `perm`, `finishing`, `extended`, `finished`) | no | Where the contract stands today, the same state the Contractors page shows. starting: not started yet. finished: end_date has passed, or the placement fell off or completed. perm: a conversion is recorded (converted_on) and the contract is still running. asked, extending, finishing: the current plan. extended: the end date moved later and the old end is still ahead. no_plan: ends inside the next 8 weeks with no plan. running: ends later, or has no end date. |
| `contract.extended_from` | string (date) \| null | no | The end date before the latest extension, while that date is still ahead. Null once it passes or when there is no extension. |
| `contract.end_reason` | string (`client_ended`, `contractor_left`, `converted`) \| null | no | Why the contract ended before its agreed end date: client_ended, contractor_left, or converted (the contractor went perm with the client). Null when it runs to end_date. Extending the contract clears it. |
| `contract.converted_on` | string (date) \| null | no | The day the contractor started perm with the client. The contract ends the day before (end_date). |
| `contract.next_contact_on` | string (date) \| null | no | The day the consultant picked to contact the contractor next, or null. On that day the consultant gets a reminder from 8am their time, and it sits in their calendar. A date still to come keeps the contractor off the check-in list until then. |
| `contract.conversion` | object \| null | no | Present when converted_on is set. The conversion fee is included in expected_gp. Both figures require the placements:financials:read scope - null without it. |
| `contract.conversion.salary` | number \| null | no | The perm salary. |
| `contract.conversion.fee` | number \| null | no | The fee charged for the conversion. |
| `contract.rate_history` | array of object \| null | no | Every stretch of rates over the contract, oldest first. The last entry is the current charge_rate and pay_rate, running to end_date. A rate change from a date keeps the earlier rates for the weeks they applied, and expected_gp adds each stretch up. Requires the placements:financials:read scope - null without it. |
| `contract.rate_history[].from` | string (date) \| null | no |  |
| `contract.rate_history[].to` | string (date) \| null | no |  |
| `contract.rate_history[].charge_rate` | number \| null | no |  |
| `contract.rate_history[].pay_rate` | number \| null | no |  |
| `contract.rate_history[].rate_period` | string (`hourly`, `daily`, `weekly`) \| null | no |  |
| `credits` | array of object | no | The credit split: who this win counts for, at what percent. Always totals 100. Defaults to the placement owner at 100%. user_id is the consultant's usr_ id, the one GET /accounts/{id}/users lists. WHO is credited always comes through; `percent` is null without the placements:financials:read scope. |
| `credits[].user_id` | string | no |  |
| `credits[].role` | string (`candidate_consultant`, `job_owner`, `business_development`, `other`) \| null | no |  |
| `credits[].percent` | number | no |  |
| `start_date` | string (date) \| null | no |  |
| `contracting` | object \| null | no | The timesheet and payroll hand-off. Present only when placement_type is contract; null on a perm placement. The country of the WORKPLACE (work_site.country) decides which contractor fields Lovelio collects, whoever the contractor is and wherever the agency is: an Australian site carries the Australian fields, a country with no pack yet returns contractor null. work_site and timesheet_approvers come with placements:read. payment_terms_days and contractor need the placements:contracting:read scope and are null without it. Lovelio never holds a tax file number or bank details; collect those from the contractor yourself. |
| `contracting.work_country` | string \| null | no | ISO 3166-1 alpha-2 of the workplace, copied from the site when the placement was logged. Picks the contractor field set. |
| `contracting.work_site` | ClientSite | no | Where the work happens. One of the client's sites (GET /clients/{id}/sites). |
| `contracting.timesheet_approvers` | array of object | no | Who approves the contractor's timesheets, first approver first. Each is a contact on the placement's client with an email. The order is the role: the first is primary, the second secondary, any more additional. |
| `contracting.timesheet_approvers[].contact_id` | string | no |  |
| `contracting.timesheet_approvers[].role` | string (`primary`, `secondary`, `additional`) | no | From the order: first primary, second secondary, the rest additional. Change it by reordering timesheet_approver_contact_ids. |
| `contracting.timesheet_approvers[].name` | string \| null | no |  |
| `contracting.timesheet_approvers[].first_name` | string \| null | no | Read off name: the first word. Names are stored whole. |
| `contracting.timesheet_approvers[].last_name` | string \| null | no | Read off name: everything after the first word. |
| `contracting.timesheet_approvers[].email` | string \| null | no |  |
| `contracting.timesheet_approvers[].mobile` | string \| null | no | A mobile number in international form, for a two-factor code. Null when the phone on file is not a mobile, or its country cannot be told (the US and Canada never read as mobile). A local number reads in the work country. |
| `contracting.timesheet_approvers[].deleted` | boolean | no | True when the record was deleted: its id stays, and its name and contact details read null. |
| `contracting.position` | object \| null | no | The payroll partner's Position the agency picked for this contract, in the partner's own id. Null until picked. |
| `contracting.position.id` | string | no |  |
| `contracting.position.name` | string | no |  |
| `contracting.rate_template` | object \| null | no | The payroll partner's Rate template the agency picked for this contract, in the partner's own id. Null until picked. |
| `contracting.rate_template.id` | string | no |  |
| `contracting.rate_template.name` | string | no |  |
| `contracting.payroll_approval` | object \| null | no | An admin at the agency approved this contract or temp placement for payroll. Null while it waits. The moment it is set, placement.approved fires once, carrying this placement: that is the payroll partner's trigger. Later edits arrive on placement.updated as usual; approval is never undone by an edit. Set by a person in Lovelio, never through the API. |
| `contracting.payroll_approval.approved_at` | string (date-time) | no |  |
| `contracting.payroll_approval.approved_by` | object \| null | no | Null when that person has since been removed. |
| `contracting.payment_terms_days` | integer \| null | no | The client's payment terms in force, off their fee schedule. Requires placements:contracting:read - null without it. |
| `contracting.contractor` | object \| null | no | The contractor's payroll-facing details for the work country. Keys are exactly the fields Lovelio collects for that country, every one present and null when not yet on file. Null when the work country has no field set yet, and null without placements:contracting:read. Australia (AU): payment_type, abn, entity_name and gst_registered. |
| `contracting.contractor.payment_type` | string (`payg`, `abn`) \| null | no | Australia: paid PAYG through the agency, or invoicing under their own ABN. |
| `contracting.contractor.abn` | string \| null | no | Australia: the 11-digit ABN, digits only, checksum-validated. Required when payment_type is abn. |
| `contracting.contractor.entity_name` | string \| null | no | Australia, ABN only: the legal entity the ABN belongs to, as on the ABN register. A recipient-created tax invoice (RCTI) is issued to it. Dropped when payment_type is payg. |
| `contracting.contractor.gst_registered` | string (`yes`, `no`) \| null | no | Australia, ABN only: whether the entity is registered for GST, which decides the GST line on an RCTI. Writes also take true or false. Dropped when payment_type is payg. |
| `guarantee_days` | integer \| null | no | Guarantee period in days from start_date. Defaults from the client's fee schedule when omitted on create. |
| `status` | string (`pending_start`, `started`, `fell_off`, `completed`) | no | Lifecycle: pending_start until the candidate starts, started while inside (or past) the guarantee, fell_off when they leave during the guarantee, completed when the guarantee is cleared. |
| `notes` | string \| null | no |  |
| `billing` | object | no | Who accounts bills and how: the details the agency's own accounts system needs. Set them with hiring_manager_contact_id, invoice_contact_id, po_number and invoice_notes on create or PATCH. |
| `billing.hiring_manager` | object \| null | no | The client contact who hired. Defaults to the job's client contact. |
| `billing.hiring_manager.id` | string | no |  |
| `billing.hiring_manager.name` | string \| null | no |  |
| `billing.hiring_manager.email` | string \| null | no |  |
| `billing.invoice_contact` | object \| null | no | The client contact who gets the invoice. Defaults to the client's default_invoice_contact_id. |
| `billing.invoice_contact.id` | string | no |  |
| `billing.invoice_contact.name` | string \| null | no |  |
| `billing.invoice_contact.email` | string \| null | no |  |
| `billing.po_number` | string \| null | no |  |
| `billing.invoice_notes` | string \| null | no |  |
| `invoice` | object \| null | no | The draft invoice in the agency's connected Xero, and whether it is paid. Lovelio makes a draft when a perm placement with a fee is logged, dated on the start date, and updates it while it is still a draft; the agency approves and sends it from Xero. Lovelio never approves, sends or chases an invoice. Null until the placement goes to Xero. Send one by hand with the send_placement_to_xero action. |
| `invoice.provider` | string (`xero`) | no |  |
| `invoice.status` | string (`draft`, `submitted`, `authorised`, `paid`, `voided`, `deleted`) \| null | no | The invoice's status in Xero. Null while the draft is being made. Treat a value you do not recognise as unknown. |
| `invoice.number` | string \| null | no |  |
| `invoice.amount` | number \| null | no | The invoice total. Null without the financial scope. |
| `invoice.currency` | string \| null | no |  |
| `invoice.amount_due` | number \| null | no | What is still owed. Null without the financial scope. |
| `invoice.paid_at` | string (date-time) \| null | no |  |
| `invoice.synced_at` | string (date-time) \| null | no | When Lovelio last read the invoice from Xero. |
| `created_at` | string (date-time) | no |  |
| `updated_at` | string (date-time) | no |  |
