Locus integrations
API / MCP Docs
Bring your own AI client. Read structured location evidence and the saved tenant research you permit, with the source and uncertainty attached.
Read-only MCP. Check the authenticated capability catalogue for your current account access and the evidence actually available. Public data coverage remains limited.
Choose your integration
| Integration | Purpose | Availability |
|---|---|---|
| Read-only MCP | Read existing permitted evidence and saved research. No research execution or allowance spending. | Existing documented connection; authenticated capabilities determine current access and source coverage. |
| Partner REST | Customer-approved research, selected allowance funding and exact-version report delivery. | Implemented, gated preview. Production enablement and partner/source approval are unverified; onboarding required. |
| General-purpose REST queries | Arbitrary structured data queries over REST. | Planned; not provided by the partner workflow. |
MCP connection consent, scopes and tokens cannot authorize partner REST calls, spending or report delivery. Partner connection consent also requires a separate customer approval for each research request and destination.
Connect your client
One server URL, account sign-in and explicit OAuth consent.
Read guideQuery useful evidence
Read source fields, exact geographies and saved decisions.
Read guideCheck the coverage
See the pilot slices, import adapters and withheld capabilities.
Read guideConnect to Locus Data
Use a remote MCP client that supports Streamable HTTP and OAuth authorization code with S256 PKCE. Ask Locus chat is optional. This release exposes MCP tools; a separate general-purpose REST query API is planned. The separate partner REST preview describes approved research and delivery, not MCP tool calls.
- Add the server URL to your client’s remote MCP connections.
- Sign in to Locus in the browser opened by your client. Review the client name and requested scopes before allowing access.
- Call
list_data_capabilities, thenget_data_dictionary. Query only a geographic slice that has current records.
Check your first read
Ask your agent to call list_data_capabilities, then get_data_dictionary, and report the countries, sources, fields and access limitations returned by your connection. Query a location only when the catalogue identifies current permitted records. Keep source dates, units, expiry and uncertainty with the result. If no current slice is available, report that limitation and stop.
Copy only the server URL above, without Markdown asterisks or tracking parameters. Successful sign-in does not guarantee that a particular dataset is loaded. Historical examples may have expired; reads do not start research or spend research credits.
Manage or revoke your connections
OAuth endpoints for client developers
- Protected resource metadata
/.well-known/oauth-protected-resource/api/mcp/data- Authorization server metadata
/.well-known/oauth-authorization-server- Registration / authorization / token / revocation
/api/mcp/oauth/register/api/mcp/oauth/authorize/api/mcp/oauth/token/api/mcp/oauth/revoke
Dynamic registration supports public clients using token_endpoint_auth_method: none. Redirects must exactly match a registered HTTPS or loopback URI. Authorization and token requests require the server URL as resource. Authorization requests also require state, scope and S256 PKCE. Authorization responses include the issuer in iss.
Access tokens last 15 minutes. OAuth metadata advertises offline_access for clients that request refresh access; it grants no additional data access. Refresh tokens rotate, retain the original 30-day deadline, and revoke the connection if an old refresh token is replayed. A revoked or expired connection needs fresh authorization. Tokens go in the Authorization header; never supply browser cookies or provider keys.
Read tools
Every tool is read-only. Reads do not call a model, acquire new evidence, start research or spend credits.
Discover
get_connection_profile · list_data_capabilities · get_data_dictionary · inspect_coverage
Start here. Inspect current scope, entitlement, loaded coverage, field names and original units.
Query structured data
query_data · read_evidence
Select one exact geography, a family and optional source or entity. Results include provenance, uncertainty, expiry and a continuation cursor.
Read a data family
query_demographics · query_local_supply · read_property · read_traffic_context · read_planning_context · read_market_observations · read_pulse_observations
The same bounded query, with family already selected. A tool name does not imply that records are loaded.
Read saved decisions
list_saved_reports · read_report · read_property_fit · read_property_comparison
List owned saved analyses and consented tenant comparisons. Follow a returned read reference with read_report; artifactId also accepts saved-analysis IDs. Legacy rows expose metadata with explicit body restrictions. The fit/comparison aliases remain limited to consented tenant artifacts.
Read projects
list_projects · read_project_candidates
List up to 50 projects; provide projectId to read up to 100 candidate decisions and their report references. Notes and arbitrary saved payloads are excluded.
Structured query examples
These are tool arguments for an authorized MCP client. Pilot results are limited observations, subject to their original expiry. An empty result cannot establish that a property, business or permit is absent.
English conservation-area context
{
"name": "read_planning_context",
"arguments": {
"geography": "England:51.5407,-0.1464",
"sourceId": "planning_constraints",
"limit": 10
}
}A conservation-area designation is planning context. It is not a planning application or permission.
NYC property facts
{
"name": "read_property",
"arguments": {
"geography": "NYC:1000010010",
"sourceId": "nyc_pluto",
"limit": 10
}
}Read tax-lot building and commercial gross area. These measures cannot establish the usable area of an individual unit.
Arguments, result fields and continuation
To follow a project report, call read_project_candidates and use its returned reportReference. list_saved_reports accepts an optional projectId, limit (1–25) and after. Continue with its returned next using the same filters. A saved report being listed does not establish permission to export all its source content.
read_report accepts the returned ID in artifactId. It returns an exact consented tenant comparison or permitted legacy metadata with a reason for withheld content. Send a returned version as expectedVersionto detect changes. A legacy metadata hash is not an immutable evidence artifact or a new source observation. Unknown source dates and expiry stay unknown.
query_data, read_evidence and inspect_coverage require family and geography. Family readers omit family. Optional selectors are sourceId, entityId, limit (1–100, default 25), and after. Use the returned next as after with the same selectors when truncated is true.
Each row contains fields, units, entityId, entityKind, geography, sourceId, sourceUrl, attribution, vintage, retrievedAt, expiresAt and uncertainty. Preserve these alongside any derived answer. Buildings, parcels, identifiers, titles and commercial units are different entities.
Coverage and availability
Prepared location intelligence is available across active country datasets, subject to your package and source permissions. The authenticated catalogue lists current countries, sources and metric families. Use COUNTRY:longitude,latitude for a precise point. Named views select one representative point, not whole-city totals. Historical UK/US pilot extracts have fixed expiry and may no longer be available.
The authenticated capability catalogue reports what is currently loaded and permitted. “Reviewed” below means a source projection passed review; it does not mean records are loaded or your connection can read them.
| Source | Review status | Coverage / interpretation |
|---|---|---|
| spatial_demographics | reviewed | Active prepared country datasets; COUNTRY:longitude,latitude or a named supported view. Bounded native-area metrics from permitted retained sources. Exact country, source, metric and package access checked on read; no acquisition. |
| spatial_local_supply | reviewed | Active prepared country datasets; COUNTRY:longitude,latitude or a named supported view. Bounded native-area metrics from permitted retained sources. Exact country, source, metric and package access checked on read; no acquisition. |
| spatial_traffic | reviewed | Active prepared country datasets; COUNTRY:longitude,latitude or a named supported view. Bounded native-area metrics from permitted retained sources. Exact country, source, metric and package access checked on read; no acquisition. |
| statcan_prepared | reviewed | Retained Canadian source areas: Toronto or CA:longitude,latitude. Official retained source-area measures; dates and units stay separate. No acquisition or catchment aggregation. |
| abs_prepared | reviewed | Retained Australian source areas: Sydney or AU:longitude,latitude. Official retained source-area measures; dates and units stay separate. No acquisition or catchment aggregation. |
| os_open_uprn | reviewed | Great Britain; loaded extracts only. Identifier/coordinate context; no postal addresses or unit/parcel equivalence. |
| hmlr_inspire | reviewed | England/Wales; loaded local-authority extracts only. Indicative freehold polygon index; INSPIRE ID is not a title number. |
| ros_parcels | reviewed | Scotland; loaded subset only. Ground-level ownership polygons, incomplete cadastral subset. |
| nyc_pluto | reviewed | NYC; loaded tax-lot extracts only. Tax-lot building/commercial area, not usable unit area, availability or rent. |
| nyc_dob | reviewed | NYC DOB NOW Build approved permits; loaded extracts only. Excludes electrical, elevator, LAA and legacy systems. Permit is not completion or blanket use consent. |
| ons_census | reviewed | UK source statistical areas; retained observations only. Source-area resident/workplace statistics, not footfall or catchment totals. |
| census_acs | reviewed | US retained Census geographies only. ACS estimates; retain vintage and margins of error. |
| census_lodes | reviewed | US selected state/block/vintage extracts only. Workplace job counts; publication lag/disclosure protection, not live headcount or footfall. |
| overture_places | reviewed | Loaded release/geographic extracts only. Release-pinned places; incomplete business census, no expansion intent. |
| overture_buildings | restricted | Global candidate. Mixed source licences including ODbL; per-feature rights/geometry pipeline not reviewed. |
| planning_london | restricted | London. Guest API documented; current external-AI/redistribution rights and operational coverage not proven. No acquisition enabled. |
| planning_national | unsupported | England. Official planning-application collection reports zero records/no providers (checked 21 October 2026). |
| planning_constraints | reviewed | England; loaded local conservation-area observations only. Designation context, not a planning application, use consent or complete constraints search. |
| hmlr_ccod | restricted | England/Wales. No direct marketing; address reuse/redistribution restrictions. Not an owner-prospecting or external-AI feed. |
| nc_onemap | restricted | North Carolina, separate parcel candidate. External redistribution/protected fields review and bounded validation pending. |
| regrid | unsupported | US. Nationwide paid access; trial is not a continuing free dependency. |
| voa_ratings | restricted | England/Wales candidate. External-AI/redistribution terms unreviewed. Rateable value is not achieved commercial rent. |
Access, limits and errors
data:public- Reviewed public extracts, subject to current plan access.
data:saved- Owned saved-report metadata and reviewed normalized evidence. Legacy bodies without external-AI rights and expiry remain withheld.
data:projects- Your permitted project metadata and candidate decisions. Private notes are excluded.
data:pulse- Reviewed normalized Pulse observations, subject to monitoring access. Legacy payloads are withheld.
data:briefs- Your saved tenant comparisons with separate, explicit per-report external-AI consent.
Scopes grant an upper bound. Each request also checks your current account, existing plan entitlement, ownership, source policy and evidence expiry. There is no separate MCP price or allowance. Reads never reset or renew an exhausted allocation.
- 60 authenticated requests per account per minute, shared across connections.
- 64 KiB request body; bounded query pages up to 100 rows; a 256 KiB total response ceiling.
- No arbitrary SQL, provider credentials, model calls, owner prospecting or research-execution tools.
- available / unavailable
- Permitted current rows exist / no permitted current rows in this slice. No new acquisition is triggered.
- restricted / unsupported
- Rights, scope or entitlement withholds this capability / the release does not support it.
- HTTP 401 / 429
- Authorize again if the connection expired or was revoked / wait for the next read window. Do not loop retries.
- RESPONSE_TOO_LARGE
- Reduce the query limit. Report readers return an error if the frozen publication exceeds the response ceiling.
For protocol details, see the official MCP authorization specification. For Locus evidence interpretation, see Data sources and Methodology.
Partner REST: customer-approved research
Gated contract preview, reviewed 2 December 2026. This workflow is implemented behind separate connection and research gates. Production enablement, onboarding and applicable source rights have not been verified for this preview. Contact Locus before building against an assigned environment. Local acceptance is not production availability.
Partner REST supports approved research and destination-bound report delivery where enabled. It is separate from read-only MCP and is not a general-purpose REST data query or chat API. Fresh provider acquisition, automatic billing/checkout and arbitrary report generation are not available in this implementation.
Download the OpenAPI 3.1 preview. The connection-only reference omits research operations and refresh grants. This is a static documentation snapshot using a fictional server, not a live discovery endpoint or enablement signal. Runtime request/publication schemas generate the reference; service response shapes and route limitations are documented separately. The coverage handler is not currently dispatched by the public route and is excluded from executable OpenAPI paths.
1. Onboarding and connection
Request onboarding through Locus contact. Locus must provision a confidential client, backend secret, exact HTTPS callback URLs and registered delivery destinations. There is no public partner registration endpoint, client-credentials customer grant, implicit flow or browser-only client-secret flow. Development loopback HTTP callbacks are development-only.
Use the HTTPS origin assigned during onboarding, called ORIGIN below. Do not assume the public website is enabled for your client. REST resource/audience: ORIGIN/api/v1; issuer: ORIGIN/api/v1/oauth. Discover them at ORIGIN/.well-known/oauth-protected-resource/api/v1 and ORIGIN/.well-known/oauth-authorization-server/api/v1/oauth. Discovery itself requires the connection service to be enabled.
- Partner backend: generate a unique state and PKCE verifier; retain them securely for the initiating user/request. Derive the S256 challenge. Construct the authorization query shown below. Never put a client secret in that URL.
- Customer browser: open
ORIGIN/api/v1/oauth/authorize. Locus handles login and consent for a verified customer account. It returns to the exact registered callback withcode,stateandiss, orerror=access_denied. Validate state and issuer before accepting the callback. - Partner backend: exchange the one-use code using
POST /api/v1/oauth/token,application/x-www-form-urlencoded, HTTP Basic client authentication and the retained verifier, exact redirect URI and REST resource. The authorization intent expires after ten minutes. Client identifiers/secrets belong only on the backend.
Scopes: coverage:read in connection-only mode; research mode adds research:quote research:execute research:read reports:read reports:pdf. Request only what the enabled integration needs. offline_access is not a partner REST scope. The MCP registration endpoint, issuer, resource, scopes and credentials do not apply here.
Opaque access tokens expire after 900 seconds. Research-enabled exchange returns a refresh token; confidential backend refresh uses the same token endpoint and REST resource. Store the newly rotated refresh token atomically and discard the old one. Replaying an old refresh token revokes the connection and unfinished work. Rotation retains the original maximum 30-day family deadline. Reauthorize after revocation/expiry; do not retry refresh concurrently.
POST /api/v1/oauth/revoke uses HTTP Basic and a form containing token and optional token_type_hint. Revoking an access token revokes that token; revoking a refresh token in research mode disconnects its connection. Customers can also disconnect in Locus. The verified Locus owner, client, connection and registered destination bind later calls. Optional partner_user_reference and request_reference are correlation values, not authority to impersonate a customer.
Fictional authorization query fields (browser URL; no backend secret)
{
"response_type": "code",
"client_id": "example-integration",
"redirect_uri": "https://partner.example.invalid/locus/callback",
"resource": "https://locus.example.invalid/api/v1",
"scope": "coverage:read research:quote research:execute research:read reports:read reports:pdf",
"state": "example-csrf-state-unique-per-request",
"code_challenge": "DEnYkjBpb_PAMcpaEopOEh41ib-HLBf6BEh-0MwkXSE",
"code_challenge_method": "S256",
"destination_id": "example-workspace",
"partner_user_reference": "example-user-17",
"request_reference": "example-request-42"
}Fictional code-exchange form fields (backend only; HTTP Basic required)
{
"grant_type": "authorization_code",
"code": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"code_verifier": "ccccccccccccccccccccccccccccccccccccccccccc",
"redirect_uri": "https://partner.example.invalid/locus/callback",
"resource": "https://locus.example.invalid/api/v1"
}200 token response - fictional tokens, backend storage only
{
"access_token": "fffffffffffffffffffffffffffffffffffffffffff",
"token_type": "Bearer",
"refresh_token": "ddddddddddddddddddddddddddddddddddddddddddd",
"expires_in": 900,
"scope": "coverage:read research:quote research:execute research:read reports:read reports:pdf"
}Fictional refresh form fields (backend only)
{
"grant_type": "refresh_token",
"refresh_token": "ddddddddddddddddddddddddddddddddddddddddddd",
"resource": "https://locus.example.invalid/api/v1"
}2. Coverage, quotes and funding
Coverage routing limitation: a validated GET /api/v1/coverage handler exists, but the current catch-all route does not dispatch it. Do not rely on this URL as an executable coverage preflight yet. Its intended query is country_code (two uppercase letters), postal_code (1–20 characters), business_type (2–100) and optional report_kind (single_location_intelligence or location_comparison). A repaired, enabled deployment must be verified before use.
The handler evaluates retained postal representative-point evidence for its fixed approximately one-mile slice; it does not prove address-level coverage, evaluate a custom radius or acquire data. Its supported/partial/unavailable status, footprint, source_periods, missing_sections and channel permissions must travel with the result. App permission does not imply partner-report or raw-data permission; raw data remains not approved. Coverage handler failures may be reported as rights-unavailable, so that response alone does not establish absent source records. Quotes revalidate the exact requested radius, source, funding and rights.
Backend: POST /api/v1/research/quotes with a Bearer token, JSON and research:quote. Choose one operation, supplied candidates, business type, exact funding and the registered destination. A single report requires one candidate; comparison requires 2–10 and current customer comparison entitlement. The actual limit may be lower. Address labels are customer assertions; research is postal-point context, not verified premises facts.
Quote fields and limits: candidate address 3–250 characters, country code two uppercase letters, postal code 1–20, optional client reference up to 100; business type 2–100, niche up to 100, purpose up to 100 (default general_local_intelligence), brief up to 2,000, positive radius at most 48,280 m (default 1,609.344), accept_partial default false. A nonempty custom brief or unsupported niche is rejected by the current snapshot executor even though the request schema accepts the field. Radius is canonicalized for source matching; a schema-valid radius does not promise prepared coverage.
A quote expires in 15 minutes and reserves no units. It binds source versions, canonical postal scope, business, partial acceptance, funding and destination. Equivalent postal candidates may collapse to one research child. maximum_units counts fresh children; compatible same-owner research is reused without another unit or provider call. “Fresh” means a new charged research operation from reviewed retained evidence here, not fresh provider acquisition. Source versions are bound internally; the public quote exposes an opaque input_hash and source periods, not a list of source-version IDs.
Funding is explicitly {type, reference}: subscription selects an existing owned subscription; add_on an existing purchased report allowance; locus_introductory an approved Locus-funded campaign. No automatic fallback, purchase, cash charge or subscription creation occurs. Introductory eligibility, campaign dates, cohort, remaining budget and prior redemption apply; fresh introductory funding is limited to one single-location unit. Obtain a valid funding reference through the enabled onboarding/customer workflow: there is no funding-list or checkout REST endpoint in this contract.
Coverage handler fixture: connection-only unavailable response (not proof of a working route)
{
"status": "unavailable",
"reason": "PARTNER_RESEARCH_NOT_ENABLED",
"channels": {
"app": "not_evaluated",
"partner_report": "not_approved",
"raw_data": "not_approved"
},
"footprint": [],
"source_periods": [],
"research_available": false,
"units_reserved": 0,
"required_inputs": [
"country_code",
"postal_code",
"business_type"
],
"missing_sections": [
"Partner source permissions and research execution are not yet enabled."
]
}Backend quote request — fictional subscription reference
{
"operation": "single_location_intelligence",
"candidates": [
{
"address": "Example unit, London",
"country_code": "GB",
"postal_code": "SW1A 1AA",
"client_reference": "example-candidate-a"
}
],
"business_type": "cafe",
"business_niche": "",
"purpose": "general_local_intelligence",
"radius_meters": 1609.344,
"brief": "",
"accept_partial": false,
"funding": {
"type": "subscription",
"reference": "example-owned-subscription"
},
"destination": {
"id": "example-workspace",
"request_reference": "example-request-42"
}
}201 quote response — synthetic fixture, not live coverage
{
"quote_id": "11111111-1111-4111-8111-111111111111",
"input_hash": "1111111111111111111111111111111111111111111111111111111111111111",
"expires_at": "2026-12-02T12:15:00.000Z",
"maximum_units": 1,
"funding": {
"type": "subscription",
"reference": "example-owned-subscription"
},
"candidates": [
{
"postal_code": "SW1A 1AA",
"address": "Example unit, London",
"reused": false,
"missing_sections": [],
"source_period": "Illustrative fixture period; not live coverage",
"data_mode": "synthetic_local_fixture"
}
],
"approval_url": "https://locus.example.invalid/api/v1/approvals/11111111-1111-4111-8111-111111111111",
"data_mode": "synthetic_local_fixture"
}3. Customer approval, execution and cancellation
Open the returned approval_url in the customer browser. Locus displays the exact business/scope, source periods, reused/fresh candidates, missing sections, maximum units, funding and destination. The authenticated customer submits a same-origin CSRF-protected approve/deny form. Connection consent alone cannot spend units or authorize report delivery.
The approval page currently returns HTML with a link to Locus requests; it does not automatically redirect to the initiating integration. Keep the initiating request correlated in the partner backend and poll GET /api/v1/research/quotes/{id}. It returns pending → approved / denied / expired, then consumed after admission. An approved unexpired quote returns approval_grant; the current response can still include it after consumption, so always inspect the state. Keep it on the backend; do not put it in a URL. Changed or expired terms require a new quote and customer approval.
Backend: submit {quote_id, approval_grant} to POST /api/v1/research using research:execute and an Idempotency-Key of 8–120 ASCII letters/digits, underscore, dot, colon or hyphen. Persist one key per intended operation. Retrying the same key and exact input returns the same operation ID; changed terms conflict. Do not create a new key merely because the response was lost. The admission receipt reports queued even on replay; poll status for the current state.
202 means accepted, not completed. Respect its Retry-After: 3 before polling status_url with research:read. States are queued → running → succeeded / partially_succeeded / failed, with cancelled and expired terminal alternatives. The execution deadline is ten minutes after admission; no completion SLA is established. Status contains child outcomes, units.held/captured/released, optional failure code and exact-version report links only when published.
Admission holds the selected allowance; useful publication captures it. No-value children release holds without a debit or usable report action. Useful negative findings consume allowance; partial comparisons charge only useful fresh children. POST /api/v1/research/{id}/cancel needs research:execute, no request body, and is idempotent. Cancellation, expiry or disconnection releases unfinished holds; already committed useful work remains chargeable. Poll rather than assume cancellation reverses completed work.
200 approved quote (backend polling)
{
"quote_id": "11111111-1111-4111-8111-111111111111",
"maximum_units": 1,
"expires_at": "2026-12-02T12:15:00.000Z",
"state": "approved",
"approval_grant": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
}Backend submission JSON; Idempotency-Key: example-request-42
{
"quote_id": "11111111-1111-4111-8111-111111111111",
"approval_grant": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
}202 admission response; Retry-After: 3
{
"operation_id": "22222222-2222-4222-8222-222222222222",
"status": "queued",
"status_url": "/api/v1/research/22222222-2222-4222-8222-222222222222"
}200 status after completion — synthetic fixture
{
"operation_id": "22222222-2222-4222-8222-222222222222",
"status": "succeeded",
"children": [
{
"postal_code": "SW1A 1AA",
"status": "succeeded",
"quality_status": "useful"
}
],
"units": {
"held": 0,
"captured": 1,
"released": 0
},
"report": {
"id": "33333333-3333-4333-8333-333333333333",
"version": 1,
"json_url": "/api/v1/reports/33333333-3333-4333-8333-333333333333?version=1",
"pdf_url": "/api/v1/reports/33333333-3333-4333-8333-333333333333/pdf?version=1"
}
}4. Exact-version report delivery
Fetch only the status result’s report ID/version using the Bearer connection authorized for that customer and destination. JSON requires reports:read; PDF requires reports:pdf. A positive integer version query parameter is mandatory; current publications are version 1. There is no implicit latest version, anonymous PDF link, report list or push/webhook delivery API.
JSON contains the frozen report projection plus checksum and delivery (grant_id, destination_id, version, retrieved/acknowledged state). Locations contain supported facts, optional assessments, market landscape, quality/missing sections, source period, attribution and data mode. Ranking is explicitly withheld in the current schema; empty fields do not establish zero demand or competitors. The OpenAPI defines the complete closed report schema; caller-authored reports and private/raw provider payloads are not accepted.
The PDF response is application/pdf with attachment disposition. X-PDF-Checksum is SHA-256 of the exact PDF bytes; X-Report-Checksum is SHA-256 of canonical frozen report JSON. The JSON checksum excludes itself and the added delivery object. Canonicalization recursively sorts object keys using the service’s JavaScript key ordering, preserving arrays, then hashes compact UTF-8 JSON; cross-language canonicalization interoperability is not independently certified. Do not hash the full augmented response as the frozen report or assume the two checksums match.
Available means a publication/grant exists; retrieved means an authorized retrieval was recorded, not proof the recipient persisted all bytes. Acknowledge only after your destination has received the exact version: POST /api/v1/reports/{id}/delivery-ack, scope reports:read, using version, registered destination, returned grant and your stable receipt reference. Repeating the same receipt is idempotent; changing it returns IDEMPOTENCY_CONFLICT. The response gives the acknowledgement timestamp. Acknowledgement is separate from report usefulness or funding settlement.
Every retrieval rechecks owner, client, connection, destination, version, current source rights/version and access expiry. Reads are private/no-store. Expiry or source withdrawal can block later retrieval even after availability; downloaded third-party copies cannot be recalled. The report JSON does not expose a general access-expiry timestamp, so do not invent one.
200 JSON report — synthetic fixture with frozen checksum and delivery grant
{
"report_id": "33333333-3333-4333-8333-333333333333",
"version": 1,
"business_type": "cafe",
"kind": "single_location_intelligence",
"locations": [
{
"label": "Example unit, London",
"country_code": "GB",
"postal_code": "SW1A 1AA",
"facts": {
"population": 100
},
"market_landscape": [],
"quality": {
"status": "useful",
"missing_sections": []
},
"source_period": "Illustrative fixture period; not live coverage",
"attribution": "Synthetic documentation fixture",
"data_mode": "synthetic_local_fixture"
}
],
"unavailable_locations": [],
"ranking": {
"status": "withheld",
"reason": "No comparable ranking established by this illustrative fixture."
},
"next_steps": [
"Verify applicable source scope before using a real report."
],
"locus_url": "https://locus.example.invalid/partner/reports/33333333-3333-4333-8333-333333333333?version=1",
"data_mode": "synthetic_local_fixture",
"checksum": "eddf40d6dd3f25a0bba56e93aa80e8b7587b0230c24e653b80ffe74f6e775dc1",
"delivery": {
"grant_id": "44444444-4444-4444-8444-444444444444",
"destination_id": "example-workspace",
"version": 1,
"state": "retrieved"
}
}Backend delivery acknowledgement JSON
{
"version": 1,
"destination_id": "example-workspace",
"grant_id": "44444444-4444-4444-8444-444444444444",
"receipt_reference": "example-received-42"
}200 acknowledgement receipt
{
"report_id": "33333333-3333-4333-8333-333333333333",
"version": 1,
"state": "acknowledged",
"acknowledged_at": "2026-12-02T12:03:00.000Z"
}5. Endpoints, limits and recovery
| Method | Path (relative to ORIGIN) | Authority | Success |
|---|---|---|---|
| GET | /api/v1/oauth/authorize | Customer browser | Registered client + S256 PKCE → consent/login, then registered callback |
| POST | /api/v1/oauth/consent | Customer browser | Locus session + same-origin form + CSRF → 303 callback |
| POST | /api/v1/oauth/token | Partner backend | client_secret_basic → 200 access token / rotated refresh |
| POST | /api/v1/oauth/revoke | Partner backend | client_secret_basic → 200 {} (idempotent) |
| POST | /api/v1/research/quotes | research:quote | 201 quote; reserves nothing |
| GET | /api/v1/research/quotes/{id} | research:quote | 200 state; approval_grant after customer approval |
| GET / POST | /api/v1/approvals/{id} | Customer browser | Locus session; GET approval page / POST decision form → HTML |
| POST | /api/v1/research | research:execute | Idempotency-Key + approved quote → 202 queued receipt |
| GET | /api/v1/research/{id} | research:read | 200 operation, children, unit counts and report links when published |
| POST | /api/v1/research/{id}/cancel | research:execute | 200 current terminal or cancelled state |
| GET | /api/v1/reports/{id}?version=1 | reports:read | 200 frozen JSON + checksum + delivery grant |
| GET | /api/v1/reports/{id}/pdf?version=1 | reports:pdf | 200 application/pdf + checksum headers |
| POST | /api/v1/reports/{id}/delivery-ack | reports:read | 200 receipt; changed receipt conflicts |
OAuth and coverage-handler forms/queries reject duplicate keys and more than 24 fields. OAuth body/query limit is 8,192 bytes; coverage query 2,048; approval decision body 4,096; research/ack JSON body 16,384. Unknown schema fields are rejected. The report schema caps 10 locations and 500 landscape records per location; no paginated report/research list or continuation cursor exists. The partner routes do not implement MCP’s 256 KiB total response limit or 100-row query paging.
Current rate windows are shared service-wide, not a per-partner SLA: authorization/consent 60 each per minute; token/revoke 120 each; coverage and research GETs share 120, research POSTs share the token window at 120. Poll conservatively. One active queued/running research operation per customer is admitted; the global queue limit is deployment-configured. Comparison entitlement may allow fewer than the schema’s ten candidates.
OAuth errors use {error, error_description}: invalid_request, invalid_client, invalid_grant, invalid_target, access_denied, unsupported_grant_type or temporarily_unavailable. Token/revoke need Basic authentication; resource calls use Bearer. Business failures use the envelope below. HTTP 429/503 includes Retry-After: 60; only these statuses set retryable=true. Respect that hint and poll an uncertain operation before resubmission. A 503 does not itself identify whether the feature is disabled, busy or a read failed.
- 400 / 413: INVALID_REQUEST, PAYLOAD_TOO_LARGE
- Correct the shape/content type/size; do not blindly repeat.
- 401 / 403: INVALID_TOKEN, INSUFFICIENT_SCOPE, PARTNER_NOT_AUTHORISED, APPROVAL_REQUIRED
- Refresh/reauthorize where appropriate; obtain scope/customer approval or correct the destination. Do not substitute MCP credentials or another owner.
- 404: NOT_FOUND
- May conceal a different owner/destination/version or disabled API. It does not prove no underlying research exists.
- 409: QUOTE_STALE, APPROVAL_ALREADY_USED, IDEMPOTENCY_CONFLICT, RESEARCH_ALREADY_RUNNING, INTRO_ALREADY_REDEEMED
- Inspect the existing quote/operation. Requote and reapprove changed terms. Preserve the original key for uncertain same-input admission; never change a receipt to force another acknowledgement.
- 410: QUOTE_EXPIRED, REPORT_ACCESS_EXPIRED
- Obtain a new quote/approval or applicable source access; repeating an expired grant cannot renew it.
- 422: COVERAGE_UNAVAILABLE, REPORT_RIGHTS_UNAVAILABLE, REPORT_KIND_UNSUPPORTED, PARTIAL_APPROVAL_REQUIRED, COMPARISON_LIMIT_EXCEEDED, FUNDING_INSUFFICIENT, CAMPAIGN_INELIGIBLE
- Change the unsupported request or funding with customer agreement. Request partial acceptance explicitly when applicable. No silent broader geography, funding fallback or acquisition occurs.
- 429 / 503: RATE_LIMITED, CONCURRENCY_LIMITED, QUEUE_FULL, RESEARCH_UNAVAILABLE
- Wait for Retry-After, check current work, and retry only unchanged authorized input where appropriate. Persistent unavailable service requires Locus intervention, not an endless retry loop.
Async failure.code is distinct from an HTTP rejection; examples include INSUFFICIENT_EVIDENCE and RESEARCH_UNAVAILABLE. Read unit settlement and report presence. Preserve request_id for support. Generic “Request denied” messages do not replace the machine code. Successful delivery can become unavailable later under source restrictions.
Business error envelope — fictional correlation ID
{
"error": {
"code": "QUOTE_STALE",
"message": "Request denied.",
"retryable": false,
"request_id": "55555555-5555-4555-8555-555555555555"
}
}Walkthrough boundary: the examples above form one fictional single-location request: backend connection → customer consent → backend quote → separate customer approval → same-key backend submission → polling → exact-version retrieval → acknowledgement. Values are fixtures, dates are illustrative, and no example certifies coverage or spends real allowance. Use onboarding-assigned configuration and permitted evidence for any enabled integration.