Loppee Account API
The Account API from Loppee — 6 operation(s) for account.
Operations 6
POST
/v1/account/destination-address-suggestions
Suggest service addresses for a signed-in customer
#
The Account API from Loppee — 6 operation(s) for account.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/loppee-com:loppee-com-account-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Loppee Business Registry API for External Agents Account API
version: '3.0'
summary: Business registry and scoped workflow access for customer- and administrator-operated external agents.
description: 'Customers and administrators supply and operate their external agents. Loppee provides scoped API/MCP access and keys only; it does not provide, host, or operate an agent or AI service. Under v3, this access is available at no charge for now. Loppee v3 exposes explicit Verified and Listed business classes. Category recommendations may also contain a reviewed_registry section within the three-mile Free reach and an exclusive fallback_registry section containing at most one unclaimed record; owner-submitted and claimed-but-unpublished Registry records are never fallback results. Exact/genuine-prefix name recommendations preserve direct-entity relevance and may contain confirmed-reviewer Registry rows without radius entitlement or unrated fallback. Registry businesses retain their explicit claim_status and disclosure and are not currently published as Verified or Listed. Confirmed reviewer ratings influence quality only within the applicable class or Registry pool. Local category discovery and recommendations require a current precise location proof or handoff, a user-confirmed validated destination authority, or a saved_exact Home location. City/state, ZIP, and saved_coarse locations are neutral area context for business-name disambiguation only: they return no local category or recommendation results, cannot activate Sponsored placement, and record no impressions. A connected assistant''s current location comes only from the registered Loppee iPhone; provider IP, caller-supplied coordinates, host metadata, and computer/browser location are rejected as current-location authority. Exact and genuine-prefix business-name lookup remains universal; without precise location it is commercially neutral.'
servers:
- url: https://loppee.com
description: Production
tags:
- name: Account
paths:
/v1/account/location-handoffs:
post:
operationId: createLocationHandoff
summary: Ask the customer to approve precise location
description: 'Creates a provider-neutral, short-lived location request. Current location is iPhone-app-only: a successful current request returns poll_location_handoff or open_loppee_phone_app and never returns location_url. If phone authority is unavailable, creation fails closed; caller coordinates, provider IP, computer/browser location, and host metadata are never substitutes. For poll_location_handoff, tell the customer to approve in the Loppee iPhone app, wait poll_after_seconds, and poll once. For open_loppee_phone_app, instruct: Open Loppee on iPhone → Account → My AI agents → Pending location requests. A connected-assistant current-location handoff is organic-only: no Sponsored ordering or labels, exposure accounting, or recommendation attribution. A destination request may return a secure browser location_url. The agent receives readiness and normal business results, never an address or coordinates.'
security:
- AgentApiKey: []
- AgentBearer: []
responses:
'201':
description: Consent link created.
content:
application/json:
schema:
$ref: '#/components/schemas/LocationHandoffCreateResponse'
'403':
description: A consumer personal-agent key is required.
'429':
description: Too many active or recently created requests.
'503':
description: The registered Loppee iPhone authority is unavailable; no browser, provider-IP, metadata, or caller-coordinate fallback is permitted.
tags:
- Account
/v1/account/location-handoffs/{handoff_id}:
get:
operationId: getLocationHandoffStatus
summary: Check a customer location request
description: Returns only lifecycle status, expiry, and remaining bounded uses. It never returns latitude, longitude, an address, or exact accuracy.
security:
- AgentApiKey: []
- AgentBearer: []
parameters:
- name: handoff_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Current request status.
content:
application/json:
schema:
$ref: '#/components/schemas/LocationHandoffStatusResponse'
'404':
description: Unknown, foreign, revoked, or unavailable request.
tags:
- Account
/v1/account/location-proofs:
post:
operationId: createCustomerLocationProof
summary: Create a private customer location proof
description: Accepts one fresh, consented device-location reading from a signed-in Loppee customer and returns only an opaque short-lived proof id. Exact coordinates are encrypted, never returned, and never placed in a search URL.
security:
- SupabaseCustomerBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomerLocationProofRequest'
responses:
'201':
description: Private location proof created.
content:
application/json:
schema:
$ref: '#/components/schemas/CustomerLocationProofResponse'
'400':
description: The location reading is stale, outside supported US bounds, or less accurate than 500 metres.
'401':
description: A valid signed-in customer session is required.
'403':
description: The session is not an active customer account.
'429':
description: Too many location-proof requests.
tags:
- Account
/v1/account/destination-location-proofs:
post:
operationId: createCustomerDestinationLocationProof
summary: Validate a customer-selected service destination
description: First-party customer/mobile route. Accepts one real US service address in the POST body, validates it server-side with Google Address Validation, and returns only an opaque short-lived destination proof. It never returns the submitted or normalized address, coordinates, or exact accuracy. Google Maps attribution must remain visible in the first-party destination UI.
security:
- SupabaseCustomerBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DestinationLocationProofRequest'
responses:
'201':
description: Private destination proof created.
content:
application/json:
schema:
$ref: '#/components/schemas/DestinationLocationProofResponse'
'400':
description: The address is invalid, unsupported, incomplete, ambiguous, or cannot safely mint premise-level authority.
'401':
description: A valid signed-in customer session is required.
'403':
description: The session is not an active customer account.
'409':
description: Premise-proximity confirmation is required, or its opaque confirmation token is invalid, expired, replayed, or bound to another authority/address/provider anchor.
'429':
description: Too many destination-proof requests.
'503':
description: Server-side address validation or destination authority storage is unavailable.
tags:
- Account
/v1/account/destination-address-suggestions:
post:
operationId: suggestCustomerDestinationAddresses
summary: Suggest service addresses for a signed-in customer
description: First-party customer/mobile and authenticated handoff UI route; not an external-agent API. After four normalized characters, it forwards only the partial input through Loppee to Google Places Autocomplete (New) and returns at most five display-text-only suggestions. Loppee does not retain the partial input or suggestion list. Provider ids, coordinates, address metadata, and autocomplete session tokens are never returned. The UI must keep manual entry available and show Google Maps attribution with the suggestions.
security:
- SupabaseCustomerBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DestinationAddressSuggestionsRequest'
responses:
'200':
description: Display-only address suggestions.
content:
application/json:
schema:
$ref: '#/components/schemas/DestinationAddressSuggestionsResponse'
'400':
description: The partial input is shorter than four normalized characters, too long, or malformed.
'401':
description: A valid signed-in customer session is required.
'403':
description: The session is not an active customer account or an API/agent key was supplied.
'404':
description: Destination address suggestions are disabled on this deployment.
'429':
description: Too many address-suggestion requests.
'503':
description: Google Places Autocomplete (New) is unavailable or returned an invalid response.
tags:
- Account
/v1/account/location-proofs/{location_proof_id}:
delete:
operationId: revokeCustomerLocationProof
summary: Clear a private customer location proof
description: Revokes and cryptographically scrubs one proof belonging to the signed-in customer. It never returns coordinates.
security:
- SupabaseCustomerBearer: []
parameters:
- name: location_proof_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Proof revoked or already terminal.
content:
application/json:
schema:
$ref: '#/components/schemas/CustomerLocationProofRevocationResponse'
'401':
description: A valid signed-in customer session is required.
'404':
description: Unknown, foreign, or unavailable proof.
tags:
- Account
components:
schemas:
DestinationAddressSuggestion:
type: object
additionalProperties: false
required:
- full_text
- main_text
- secondary_text
properties:
full_text:
type: string
minLength: 1
maxLength: 280
main_text:
type: string
minLength: 1
maxLength: 180
secondary_text:
type: string
maxLength: 220
DestinationAddressSuggestionsRequest:
type: object
additionalProperties: false
required:
- input
properties:
input:
type: string
minLength: 4
maxLength: 280
description: Normalized partial US service-address text. This first-party display request contains no session token, place id, coordinates, or proof authority.
LocationHandoffStatusResponse:
type: object
additionalProperties: false
required:
- handoff_id
- location_kind
- status
- approval_expires_at
- usable_until
- uses_remaining
- next_action
- agent_receives_coordinates
properties:
handoff_id:
type: string
format: uuid
location_kind:
enum:
- current
- destination
status:
enum:
- awaiting_user
- ready
- declined
- expired
- used_up
- revoked
approval_expires_at:
type:
- string
- 'null'
format: date-time
usable_until:
type:
- string
- 'null'
format: date-time
uses_remaining:
type: integer
minimum: 0
next_action:
enum:
- search_with_location_handoff
- wait_for_iphone_location
- open_loppee_phone_app
- wait_for_user_approval
- ask_user_to_open_location_url
- create_new_location_handoff
- continue_without_precise_location
request_mode:
enum:
- automatic
- approval_required
location_url:
type: string
format: uri
agent_receives_coordinates:
const: false
oneOf:
- properties:
location_kind:
const: current
next_action:
enum:
- search_with_location_handoff
- wait_for_iphone_location
- open_loppee_phone_app
- create_new_location_handoff
- continue_without_precise_location
required:
- location_kind
- next_action
- request_mode
not:
required:
- location_url
- properties:
location_kind:
const: destination
next_action:
const: ask_user_to_open_location_url
required:
- location_kind
- next_action
- location_url
not:
required:
- request_mode
- properties:
location_kind:
const: destination
next_action:
enum:
- search_with_location_handoff
- wait_for_user_approval
- create_new_location_handoff
- continue_without_precise_location
required:
- location_kind
- next_action
not:
anyOf:
- required:
- location_url
- required:
- request_mode
DestinationAddressSuggestionsResponse:
type: object
additionalProperties: false
required:
- suggestions
properties:
suggestions:
type: array
maxItems: 5
items:
$ref: '#/components/schemas/DestinationAddressSuggestion'
CustomerLocationProofRequest:
type: object
additionalProperties: false
required:
- latitude
- longitude
- accuracy_meters
- captured_at
properties:
latitude:
type: number
minimum: -90
maximum: 90
longitude:
type: number
minimum: -180
maximum: 180
accuracy_meters:
type: number
exclusiveMinimum: 0
maximum: 500
captured_at:
type: string
format: date-time
DestinationLocationProofResponse:
type: object
additionalProperties: false
required:
- location_proof_id
- status
- location_kind
- display_label
- usable_until
- uses_remaining
- address_returned
- coordinates_returned
properties:
location_proof_id:
type: string
format: uuid
status:
const: ready
location_kind:
const: destination
display_label:
const: Selected service address
usable_until:
type: string
format: date-time
uses_remaining:
type: integer
minimum: 0
maximum: 20
address_returned:
const: false
coordinates_returned:
const: false
CustomerLocationProofRevocationResponse:
type: object
additionalProperties: false
required:
- location_proof_id
- status
- revoked
- coordinates_returned
properties:
location_proof_id:
type: string
format: uuid
status:
enum:
- revoked
- expired
- used_up
revoked:
type: boolean
coordinates_returned:
const: false
LocationHandoffCreateResponse:
type: object
additionalProperties: false
required:
- handoff_id
- location_kind
- status
- approval_expires_at
- poll_after_seconds
- next_action
- agent_receives_coordinates
properties:
handoff_id:
type: string
format: uuid
location_kind:
enum:
- current
- destination
status:
const: awaiting_user
location_url:
type: string
format: uri
approval_expires_at:
type: string
format: date-time
poll_after_seconds:
type: integer
minimum: 1
request_mode:
enum:
- automatic
- approval_required
next_action:
enum:
- poll_location_handoff
- open_loppee_phone_app
- ask_user_to_open_location_url
agent_receives_coordinates:
const: false
oneOf:
- properties:
location_kind:
const: current
next_action:
enum:
- poll_location_handoff
- open_loppee_phone_app
required:
- location_kind
- next_action
- request_mode
not:
required:
- location_url
- properties:
location_kind:
const: destination
next_action:
const: ask_user_to_open_location_url
required:
- location_kind
- next_action
- location_url
not:
required:
- request_mode
CustomerLocationProofResponse:
type: object
additionalProperties: false
required:
- location_proof_id
- status
- usable_until
- uses_remaining
- coordinates_returned
properties:
location_proof_id:
type: string
format: uuid
status:
const: ready
usable_until:
type: string
format: date-time
uses_remaining:
type: integer
minimum: 0
maximum: 20
coordinates_returned:
const: false
DestinationLocationProofRequest:
type: object
additionalProperties: false
required:
- address
properties:
address:
type: string
minLength: 5
maxLength: 280
description: A real US service address. It is accepted only in this POST body and is never returned, placed in a URL, or exposed to an external agent.
premise_proximity_confirmation_token:
type: string
pattern: ^[A-Za-z0-9_-]{43}$
description: Opaque one-time token from the immediately preceding premise-proximity challenge for the same address and authority.
securitySchemes:
AgentApiKey:
type: apiKey
in: header
name: X-LOPPEE-API-Key
description: Scoped agent key. Admin-agent requests are authorized only by the key's explicit allowed_actions; admin-agent keys cannot delete users or agents.
AgentBearer:
type: http
scheme: bearer
description: Bearer form of a scoped agent key for non-admin agent workflows. Admin routes deliberately require X-LOPPEE-API-Key for agent keys so Authorization remains unambiguous for human Supabase admin sessions.
SupabaseAdminBearer:
type: http
scheme: bearer
description: Supabase Auth access token with MFA/AAL2 for a user listed in admin_users.
SupabaseSessionBearer:
type: http
scheme: bearer
description: Signature-verified Supabase Auth access token used only to resolve the session's mutually exclusive customer, owner, or admin role. Role-specific operations still enforce their own account and AAL2 requirements.
SupabaseCustomerBearer:
type: http
scheme: bearer
description: 'Signature-verified Supabase Auth access token for an active customer account. AAL2 is operation-specific: endpoints that explicitly require step-up reject AAL1; ordinary review MFA follows deployment policy.'
SupabaseOwnerBearer:
type: http
scheme: bearer
description: Supabase Auth access token with MFA/AAL2 for an active owner account. Customer/admin role overlap is rejected by runtime and database role-exclusivity guards.
StripeSignature:
type: apiKey
in: header
name: Stripe-Signature
description: Stripe webhook signature verified against the configured endpoint secret before any mutation.
OwnerEvidenceScanCallback:
type: apiKey
in: header
name: X-Loppee-Scan-Callback-Token
description: Single-intent HMAC callback authority supplied only to the private Render Workflow task.
JobResumeScanCallback:
type: apiKey
in: header
name: X-Loppee-Job-Resume-Scan-Callback-Token
description: Dedicated single-intent callback authority supplied only to the private job-resume scanner task; it is bound to the immutable scan authority and exact file fingerprint.
ExternalAgentWebhookHmac:
type: apiKey
in: header
name: X-Webhook-Signature-V2
description: Lowercase hexadecimal HMAC-SHA256 of '<X-Webhook-Timestamp>.<raw request body>' using the one-time endpoint signing secret. The signing secret authenticates this delivery only and grants no Loppee API authority.
x-loppee-trust-model: v3
x-loppee-sponsored-ordering:
status: disabled
model: neutral
commercial_influence: none
free_exposure_floor: null
requires_precise_location_authority: true
coarse_context_commercial_influence: none
x-loppee-local-discovery-location-policy:
schema_version: precise-local-discovery.v1
precise_authorities:
- current_precise_location
- validated_destination
- saved_exact
coarse_context_sources:
- city_state
- zip
- provider_ip
- saved_coarse
- caller_supplied_coordinates
coarse_context_allowed_uses:
- area_context
- name_disambiguation
coarse_context_local_results: false
coarse_context_commercial_influence: none
coarse_context_sponsored_placement: false
coarse_context_impressions_recorded: false
connected_assistant_current_handoff_commercial_influence: none
connected_assistant_current_handoff_sponsored_placement: false
connected_assistant_current_handoff_exposure_recorded: false
connected_assistant_current_handoff_recommendation_attribution_recorded: false
connected_assistant_current_location_source: registered_loppee_iphone_only
connected_assistant_rejected_current_location_sources:
- provider_ip
- caller_supplied_coordinates
- host_location_metadata
- computer_or_browser_location
universal_name_match_types:
- exact
- genuine_prefix
universal_name_without_precise_commercial_influence: none
universal_name_without_precise_sponsored_placement: false
destination_result_attribution:
display_text: Google Maps
translate: false
required_for_location_context_sources:
- destination_location_handoff
- destination_location_proof
statement: 'Local category discovery and recommendations require a current precise location proof or handoff, a user-confirmed validated destination authority, or a saved_exact Home location. City/state, ZIP, and saved_coarse locations are neutral area context for business-name disambiguation only: they return no local category or recommendation results, cannot activate Sponsored placement, and record no impressions. A connected assistant''s current location comes only from the registered Loppee iPhone; provider IP, caller-supplied coordinates, host metadata, and computer/browser location are rejected as current-location authority. Exact and genuine-prefix business-name lookup remains universal; without precise location it is commercially neutral.'