Automate Customers with API V1
Use canonical customer identities, native workflows, scoped access and safe revisions across the Customers API.
Use Customers V1 to automate deliberately supported customer work in one authorized workspace. The source contract covers Businesses, Contacts, relationships, Leads and configuration, Follow-ups, Site Visits, native Calendar, Review Gaps, settings, staged file imports, exports and review-first assistance. Use the matching released OpenAPI document to establish deployed availability; these guides do not deploy an API.
Authenticate and request minimum access
Register a developer application, approve the exact permissions in Access, then give the key or OAuth client its own explicit subset. API keys, confidential Client Credentials and Authorization Code with PKCE use the existing authentication options. Delegated access also requires the person's explicit consent to the requested supported scopes.
Every request intersects current application approval, credential/client scope, issued token scope, consent where applicable, current human permissions, active membership and workspace plan. Network policy, platform suspension/security epoch, rate and concurrent-request limits also apply. Human Bearer sessions retain their native permission rules. A workspace supplied in JSON cannot override authentication.
Newly supported scopes are never automatically added to existing approvals, keys, clients, issued tokens or historical consents. Approve/grant them explicitly and acquire a suitably scoped token. ManageAny broadens ownership under the native feature; it grants no lifecycle, configuration or sharing action by itself. See the exact scope and endpoint reference.
Use canonical resource and relationship identities
Business, Contact, Lead, activity, Calendar entry and configuration IDs are Prastav GUIDs. A name, phone or email is not an update identity. A Contact is independent from a Business. The BusinessContact association has its own associationId and modifiedAtUtc; Primary identifies the primary Contact for that Business, not a person's preferred employer.
Addresses, tax registrations, Units and Departments belong to a Business. Use the parent Business ETag for their commands and retain returned child GUIDs. Retiring these children deactivates them under native dependency and primary replacement rules. Contact phones are updated through the existing Contact PUT as a complete collection, preserving persisted phone IDs and explicitly selecting Default/WhatsApp flags. There is no parallel phone or relationship store.
Follow-ups and Site Visits support Business-only, Contact-only or Lead context. Supplying two parties never manufactures a BusinessContact link. Lead Business/Contacts and Primary Contact/roles describe that enquiry and remain separate from customer master relationships. Read the user record guides for field meanings.
Create and read core records
The original three collection POST contracts remain {record, sourceId?, externalRecordId?}. They return 201 with a canonical identity result, Location and ETag. This artificial Business example has no external binding:
POST /api/v1/businesses
X-QX-Key: EXAMPLE_PUBLIC_ID.EXAMPLE_SECRET
Content-Type: application/json
Idempotency-Key: example-business-create-001
{"record":{"businessName":"Example Workshop","mainEmail":"office@example.test"}}
Idempotency-Key is optional and supported only by Business, Contact and Lead core creates. Equal authorized retries within seven days return the committed identity; different semantics conflict. Other new POST operations use native command/state identities and must not be treated as generic idempotent creates. See Contract Standard V1.
Core detail GET returns a strong ETag. Keep it unchanged, including quotes. Lists support bounded native filters and sorting, page >= 1, pageSize 1–100 and offset <= 10,000; narrower operation limits still apply. Search is at most 240 characters. Summary, journey, related activity and Review Gap reads remain independently permission-filtered.
Update without overwriting newer work
Core Business/Contact/Lead PUT and Business child commands require If-Match. Use the exact current tag from the matching GUID detail read. Missing is 428; weak, foreign or stale tags fail; wildcard and multiple validators are not accepted. A normalized no-op still checks the revision and preserves native timestamps and audit silence.
Relationship edits/unlink/primary use the association revision, not the Business or Contact revision. A relationship read returns associationId and modifiedAtUtc. Its canonical strong tag is "{associationId without hyphens}.{UTC ticks divided by 10}", using the same PostgreSQL microsecond representation as record ETags. A relationship write also returns that association ETag. Do not replace a tag after a conflict without reviewing the current relationship.
Follow-up and Site Visit detail GETs return their parent ETag. Their mutating commands require that parent If-Match; native Update and occurrence-reschedule requests additionally retain their exact expectedModifiedAtUtc fields. Occurrence reschedule uses the item's own revision and, where required, expectedChainModifiedAtUtc. This preserves the pending occurrence identity.
Lead lifecycle/configuration and native Calendar commands use their exact native expectedModifiedAtUtc body value. Read it from the current Lead/configuration/entry/profile/share projection. This is distinct from core Lead PUT's If-Match. Import review uses the returned batch revision as expectedVersion. Never silently replace a stale revision, automatically replay an unsafe command or claim rollback from a lost HTTP response.
Review and finish Leads
Core API creation starts Pending with API origin. Review accepts through the native Inbox rules; Ignore and Spam classify the pending enquiry. Owner assignment, Business/Contact association and Primary/role actions use their own commands. Creating or assigning someone else's work needs the corresponding conditional native permissions.
POST /api/v1/leads/70000000-0000-4000-8000-000000000001/review
Content-Type: application/json
{"expectedModifiedAtUtc":"2026-11-16T06:00:00Z","ownerUserId":"70000000-0000-4000-8000-000000000002"}
This revision and these IDs are artificial. For a real request, read the Lead and use an eligible member returned by the authorized people lookup. ReviewInbox and AssignOwner for another owner may both be required. Current settings can require an owner before leaving Inbox.
Open, Close, Convert, Correct status, Archive and Unarchive preserve the native lifecycle and reasons. Convert does not create a Proposal. Move requires the actual MoveStage/ChangePipeline permission as appropriate, owner scope and any destination Stage effect permission. Remove Pipeline clears placement while retaining status and history. Pipeline/Stage management needs ManagePipelines; List configuration and member operations need ManageLists. Retirement retains historical references and validates destinations/default replacement atomically. See Leads and Pipelines and Lists.
Schedule activities and use Calendar privacy
Use Follow-up and Site Visit contracts for native assignment, occurrences, notes, completion and archive. Use native Calendar for appointments/reminders, authorized ranges, member schedules, work-hour profiles, sharing, availability and Find a time. Range is limited to 120 days and 50 explicitly authorized schedules; availability-only sharing returns opaque Busy information. An empty or incomplete external coverage response must not be treated as free time.
Calendar View does not grant source activity View/Update. Share and ManageSchedule do not bypass semantic source permissions. Native Calendar V1 range excludes external overlay records; connection administration, provider OAuth, external source selection, destination policies and sync/reconciliation commands stay private. Native entry saves may retain existing explicitly consented synchronization intent, but cannot connect an account or create consent.
Final Save checks current authority after scheduling preflight, in the native transaction. Authority changes during a command fail closed; inspect current state before an explicit new attempt. Provider I/O never runs under the developer application save fence. Calendar explains local time, sharing and conflict choices.
Review Gaps, settings and assistance
Review Gap definitions are static metadata. Results and summaries aggregate only currently authorized source families. A category count can overlap another category; total records are deduplicated. Dashboard widget contracts remain private.
Settings reads return saved values or unsaved defaults. A null updatedAtUtc means an authorized administrator must explicitly initialize defaults before editing. Settings updates require View/Update and the current native revision; Lead policy fields also need Leads.ManageSettings, while duration/conflict fields need CustomerCalendar.ManageSettings. The V1 settings body cannot change provider activation, import behavior or AI-provider controls.
Smart Paste previews Business-only extraction. Enrichment search explicitly selects GooglePlaces or WebsiteMetadata, returning candidates without provider diagnostics. Apply selected fields uses Business Update and current If-Match. RulesOnly core-field suggestions use Customers.AiAssist plus source View; explicit selected application additionally requires source Update and If-Match. Original/suggested values are recomputed before saving through native validation; unselected fields and child identities are preserved. Internal AI orchestration jobs and unsafe generic target application remain private. See assistance.
External identities, jobs and recovery
Optional external reference binding remains limited to Businesses, Contacts and Leads. SourceId is a separately authorized workspace source; defaults are explicit. An invalid explicit source never falls back. Binding an existing GUID requires the source revision and native If-Match and does not mutate the customer record. No name/email/phone merge is performed.
Follow the import/export job lifecycle for durable work, status, result downloads and eligible recovery. A queued response is not completion. API Activity provides payload-free troubleshooting evidence. Keep X-Request-ID/correlation references; never log credentials, tokens or sensitive response bodies unnecessarily.
400 needs corrected input; 401 needs valid authentication; 403 needs current authority; 404 does not disclose cross-tenant existence. Resolve 409 business/native revision conflicts, 412 ETag conflicts and 428 missing preconditions before another attempt. Respect positive Retry-After on 429. After 500/503 or connection loss, inspect the existing record/operation before retrying. See security.
Deliberately private boundaries
Permanent customer deletion remains the human assessment, dependency/fingerprint confirmation and receipt workflow. No unrestricted customer DELETE, bulk delete bypass or generic restore is public. Contact outbound sharing, provider imports/exports and sync commands, connected account grants/tokens, worker claim/chunk/completion callbacks, internal AI prompts/provider jobs, dashboard widgets, raw audit administration and Proposal creation stay outside this catalogue. Read recovery and deletion and connected sources for the supported human workflows.