The 360Onboard V2 API gives your server structured access to published flows, clients, onboarding progress, completed responses, and — when your account includes Client Portal — the complete post-onboarding workspace. Webhook V2 sends rich snapshots when a flow is published, a client is created, or a client completes onboarding.
Existing V1 integrations continue to work unchanged. New integrations should use V2. You do not need to migrate an existing integration until you are ready.
Choose MCP, the API, or Webhooks
360Onboard supports three complementary ways to automate your workspace:
- MCP is for working through an AI assistant such as Claude, ChatGPT, Codex, or Cursor. Connect once with OAuth, then ask the assistant to build flows, inspect responses, manage Client Portal work, configure custom domains, and handle other supported workspace operations in plain English. Start with Connect 360Onboard to Claude & ChatGPT with MCP.
- The V2 API is for software you are building. Use it when your server, application, or automation needs to read or change 360Onboard data directly and predictably.
- Webhooks V2 are for receiving events from 360Onboard. Use them when your system should react as soon as a flow is published, a client is created, or onboarding is completed.
These options are designed to work together. For example, your application can receive completion events through webhooks, your backend can retrieve the full response through the API, and your team can use MCP to investigate the result or create the next piece of Client Portal work.
MCP does not use the API key described below. It uses OAuth and the permissions of the connected 360Onboard account. The rest of this article documents the public V2 API and webhook contracts; the dedicated MCP guide covers connection and everyday use.
When placing a Document checkbox with flow_esignature_fields_update, pass label: "" if the PDF already contains the wording next to the box. Both manual and dynamic checkboxes can use a blank label. Other e-signature field types still require a non-empty label.
Client variables in flow actions
API Request, AI, and other flow templates can reference standard client details by name. Use {{client.first_name}}, {{client.last_name}}, {{client.full_name}}, {{client.email}}, {{client.company_name}}, or {{client.phone}}. In the API Request builder, choose these from Available variables. With MCP, call flow_list_variables for the action before configuring it.
For a POST request that passes an email in the query string, enter email as the key and {{client.email}} as its value. For an endpoint that expects a company parameter named companyname, keep that key and use {{client.company_name}} as its value. The action encodes client identity values in the path and query. Keep the request host fixed when using client variables. In JSON, put the token inside a quoted string, for example {"email":"{{client.email}}"}. A plain token like {{email}} can still be an earlier answer or action output. Existing client.company and client.companyname spellings also resolve to the company value.
An invited client uses their linked record. A fresh public registration uses only what that visitor entered. Anonymous runs and missing client values resolve blank unless the template supplies a fallback. Test request uses sample values and does not load a client record.
Portal file uploads
Use POST /v2/workspaces/{workspaceId}/portal/files/upload-url to stage a file. It requires Client Portal access and the can_create_clients permission in that workspace.
Send JSON metadata, for example:
{
"fileName": "Budget.xlsx",
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"size": 1024
}
The response contains signedUrl, publicUrl, and path. Upload the original bytes with PUT signedUrl and the file's Content-Type; use application/octet-stream when unknown. Do not send your 360Onboard API key to the storage URL. Then create the file through portal/files or portal/accounts/{accountId}/files, passing path as storagePath, publicUrl as url, and the intended name, MIME type, size, purpose, and access settings.
General attachments accept any file type, including PowerPoint, Excel, Word, CSV, and ZIP, up to 50 MiB (52,428,800 bytes). Office files remain downloadable originals; 360Onboard does not convert them into a slide or workbook editor. File previews offer Open and Download when inline preview is unavailable; unsupported and active content such as HTML is served as a download. Staging alone does not create or share a file record, send a file-created webhook, or start cloud transfer. Those actions follow the normal file-save route.
Invalid metadata returns 400; missing, invalid, negative, or oversized size returns 413. Authentication and workspace/permission checks still apply (401, 403, or 404); storage signing can fail with 500 or 502. The usual API rate limit applies (429). An optional Idempotency-Key replays an identical signing response for up to 24 hours; a conflicting request returns 409. Upload URLs can expire before that cache does, so request a fresh signing operation after expiration. Uploading bytes is a separate operation and is not automatically retried.
To read one workspace library file, use GET /v2/workspaces/{workspaceId}/portal/files/{fileId} with can_view_clients permission. It returns the full file, including updatedAt, access settings, and version history. Missing files and files outside that workspace return 404; permission denial returns 403. Account files use portal/accounts/{accountId}/files/{fileId} instead.
Before changing metadata or adding a version, read the full current file and its version history. When adding a version, base the append on that latest history; if the server returns 409 for conflicting version history, reread the file and reconcile before retrying instead of replaying a stale history. File updates require expectedRevision containing the exact updatedAt from that read. A missing revision returns 428; a stale revision returns 409 without saving. Read the current file and reconsider the edit before submitting a new update.
Authentication
An active Agency trial includes API access in one workspace for seven days from email verification, with no credit card required. Existing Free owners receive a fresh seven days at rollout. After trial expiry, trial API keys no longer authenticate and return 401; sign in to the app and choose a paid plan to restore access. Expiry retains saved data and does not restart on sign-in or email changes.
Generate an API key in Settings APIs, Webhooks & MCP API Keys. Public V2 requests pass that key in the apiKey query parameter.
GET https://api.360onboard.com/v2/workspaces?apiKey=sk_live_your_key_here
Base URL: https://api.360onboard.com/v2
Keep API keys on your server. Do not embed them in browser JavaScript, mobile applications, or public repositories.
API keys are account-level. After authenticating, list workspaces to find the workspaceId used by the remaining resource routes.
SEO analytics
SEO failure handling: DataForSEO HTTP 402 indicates provider billing rejection; check balance and cost limits. Billing/access failures stop with sanitized guidance. Free task reads and explicit rate-limit rejections use at most three exponential retries with jitter and a bounded request budget; ambiguous paid submissions never retry automatically. Known ranking tasks are polled without a second paid submission. The collection window includes queue waiting and stops six hours after job creation or at 180 worker attempts; expired queued jobs stop before paid submission, and new paid work requires at least 15 minutes remaining for collection. This reserve mitigates boundary risk; it is not a provider completion guarantee. Successful provider results are saved with claim-bound completion retries, rather than repeating the provider call. A compact view’s lastDestinations timestamp distinguishes completed empty destinations from a first collection still pending. These policies do not introduce immediate manual requeue or durable exponential job scheduling.
Use the production base URL https://api.360onboard.com/v2; append ?apiKey=YOUR_KEY to each request. Authentication, workspace scopes, Client Portal entitlement and rate limits apply.
Under /workspaces/{workspaceId}/portal:
GET analytics/availabilityrequires analytics permission and returns{ "available": true | false }. Agency Client analytics navigation appears only with connected DataForSEO and at least one active client with enabled SEO tracking, a non-empty website list, and an enabled Positions or Backlinks page. Deleted clients/workspaces and disconnected providers do not qualify. The same gate applies on desktop/mobile and direct agency analytics entry points. Setup remains accessible; reads never collect data or disclose credentials.GET analytics/connectionreads connection state, revision and ranking/backlink refresh defaults. It never returns API credentials.PUT analytics/connectionrequires settings permission and the full{revision, connected, rankingsFrequency, backlinksFrequency}body. On first connection or credential replacement, also supply DataForSEOloginandpasswordtogether through a secure client; use the provider API password. Each agency pays its own provider usage.revision: nullcreates settings; subsequent saves must use the latest returned revision. Disconnecting pauses collection and preserves results.GET accounts/{accountId}/analyticsrequires analytics permission. It returns saved setup and compact views keyed bywebsite:device:7,website:device:30, andwebsite:device:90, plus unfinished job status. Optionalwebsiteanddevice=desktop|mobileselect a configured dataset. Invalid/unassigned website selections fall back to the first assigned website; single-device tracking determines the device.setupOnly=1omits history/views/jobs for metadata reads. Raw snapshots are not returned. Job results prioritize unknown outcomes and return up to 100; reviewing one allows the next blocked request to become visible.PUT accounts/{accountId}/analyticsrequires settings permission and the full tracking body shown below. Limits are 10 distinct public website domains and 100 distinct keywords, each up to 200 characters. Keywords apply to every website.rankingsFrequencyandbacklinksFrequencyacceptdaily,weekly,monthly, ornullto inherit agency defaults.deviceacceptsdesktop,mobile, orboth. Enabled collection requires a connected provider and a website.pagescontrols client access; optionalsectionscontrols summary/trend/distribution/opportunities/keyword sections for Positions and summary/trend/destinations/link sections for Backlinks. A changed tracking target starts a new dataset; presentation and schedule edits preserve history. Omit read-onlydatasetRevisionfrom writes.POST accounts/{accountId}/analytics/jobs/{jobId}/reviewrequires settings permission and{ "reviewedProviderOutcome": true }. Use it only after checking the uncertain paid request in DataForSEO. It allows future scheduled checks, does not immediately repeat the charge, and returnsacknowledged: falseif the job is no longer unknown. Unknown paid submissions are never automatically retried.
Analytics homepage blocks use the existing home-blocks routes with type: "analytics", page: "positions" | "backlinks", display: "numbers" | "graph", range: "7" | "30" | "90", metrics and showBorders. Positions metrics are tracked, average, top10, improved, and declined; Backlinks metrics are domains, backlinks, new, and lost. Choose up to five metrics. The four default Positions summary cells omit tracked; the full Positions page shows all five. Blocks require a connected provider, and account-specific blocks require enabled client tracking with a website. Opening a block uses saved measurements only.
Example first setup, saved without starting collection:
{
"revision": null,
"websites": ["example.com"],
"keywords": ["brand strategy agency"],
"location": "United States",
"language": "English",
"device": "desktop",
"rankingsFrequency": null,
"backlinksFrequency": null,
"enabled": false,
"pages": { "positions": true, "backlinks": true }
}
Collection is scheduled by UTC daily/weekly/monthly periods. Reads reuse saved results and do not spend provider balance. First measurements have no invented comparisons; unranked top-100 checks remain distinct from pending checks and count as 101 in average-position metrics. New/lost backlink totals include the stored interval. The API returns 400 for invalid/missing setup, 401/403 for authentication/access failures, 404 for unavailable accounts, 409 for stale revisions, 429 for rate limits, 502 for provider validation failure and 503 for unavailable analytics storage. Portal writes accept an optional Idempotency-Key; revision checks still apply. After an uncertain write, read back before retrying. These operations send no emails or webhooks.
Discover Your Workspace
curl "https://api.360onboard.com/v2/workspaces?apiKey=sk_live_your_key_here"
{
"object": "list",
"data": [
{
"id": "workspace_uuid",
"object": "workspace",
"name": "Acme Agency",
"slug": "acme-agency",
"api_url": "https://api.360onboard.com/v2/workspaces/workspace_uuid"
}
]
}
Every workspace resource is scoped to the API-key owner. A workspace that does not belong to the key returns 404 rather than exposing whether another account owns it.
Adaptive Collaboration
Humans and agents can work in the same workspace. The app checks revisions while relevant views are active, refreshes message content automatically, and shows a refresh notice when an open editor changes elsewhere. A revision check returns small metadata; it does not fetch the content, merge edits, reserve an editor, or wake an idle assistant.
Check for Changes
Send POST /v2/workspaces/{workspaceId}/resources/check-changes?apiKey=... with UUID resource identities:
{
"resources": [
{
"type": "flow",
"id": "00000000-0000-4000-8000-000000000102",
"revision": "2026-10-18T01:00:00.000Z"
},
{
"type": "tasks",
"id": "00000000-0000-4000-8000-000000000101",
"accountId": "00000000-0000-4000-8000-000000000101",
"revision": null
}
]
}
{
"resources": [
{
"type": "flow",
"id": "00000000-0000-4000-8000-000000000102",
"status": "available",
"revision": "2026-10-19T01:00:00.123456Z"
},
{
"type": "tasks",
"id": "00000000-0000-4000-8000-000000000101",
"accountId": "00000000-0000-4000-8000-000000000101",
"status": "unavailable",
"revision": null
}
]
}
Each batch accepts at most 50 unique (type, accountId, id) identities and 200 entries before duplicates are coalesced. revision is optional and is an opaque comparison token. Compare it with your previously observed value; a changed token means read the current content. Do not send a metadata token as an editor precondition. Clock-dependent collections can also change token at minute boundaries. Responses use Cache-Control: no-store.
Use a flow UUID for flow/workflow, a conversation UUID for conversation.messages, and the workspace or account UUID for the relevant collection. Registered families are listed in ResourceRevisionDescriptor in OpenAPI. The new api-keys, webhooks, and analytics.connection families use the workspace UUID. API-key metadata describes only the authenticated actor's readable keys; callers cannot select another actor. Workspace-list metadata respects both the actor's access and the key's narrower workspace scope.
The same permissions and feature availability as the underlying read apply. API keys require settings permission and API access; webhooks require settings permission and the webhooks feature. Analytics requires analytics-view permission and Client Portal; its connection settings require settings permission and Client Portal. General integrations and flow metadata do not require Client Portal. Missing, deleted, unauthorized, or unsupported resource scopes all return unavailable without revealing resource content. Invalid descriptors return 400; invalid credentials return 401; unavailable API access returns 403; unavailable workspaces return 404; rate limits return 429; a failed metadata read returns 503.
Preserve the Version You Read
For the following portal operations, send expectedRevision copied exactly from the original full read's updatedAt, including its fractional precision. These paths are relative to /v2/workspaces/{workspaceId}/portal.
| Operations | Original revision |
|---|---|
Account, task, file, invoice, and service PATCH; task POST .../move | The resource's updatedAt |
Workspace/account task DELETE | The original task's updatedAt |
Account note PATCH/DELETE | The note's updatedAt from the full account notes list |
Task-option PATCH/DELETE | The option's updatedAt from its list or individual read |
Milestone PATCH, staged DELETE, and single-milestone POST .../publish | The milestone's updatedAt |
Home-template, milestone-template, or playbook PATCH/DELETE | The template or playbook's updatedAt from its list/read |
Workspace/account config and agency profile PUT | config.updatedAt or profile.updatedAt; null only when absent |
| Workspace/account home-block create, edit, delete, and move | Top-level updatedAt from the home-block list/read; null only when the shared config is absent |
Home-block revisions represent the shared workspace-default config, including account-specific blocks. Publishing all milestones requires an expectedRevisions object mapping every currently held milestone ID to its originally loaded updatedAt; the whole set is checked atomically. Task moves apply the revision check before atomically moving the task, direct subtasks, and comments, and clear account-bound references and assignees.
Workspace home-block list, read, and type-discovery operations require can_view_clients. Creating, updating, moving, and deleting workspace home blocks require can_manage_settings. Credentials without the required permission receive HTTP 403.
A home block's blockId is the short id returned by the list or read call, such as hb-1 (1 to 64 characters), not a UUID. The MCP tool portal_home_blocks_manage takes the same id as resource_id.
A Text home block uses type: "text" with a Markdown body of up to 6,000 characters, plus optional align and card. There is no separate title field: start a line with #, ## or ### for a heading. A title sent by an older integration is added to the top of the body as a ## heading. A YouTube, Vimeo, Loom or Wistia link alone on a line plays in the page. To show an uploaded file, put  on its own line, where <fileId> is a workspace file created with purpose resource. A client who cannot see that file sees the rest of the writing without it.
Shared client grouping uses GET /v2/workspaces/{workspaceId}/portal/client-display?apiKey=YOUR_KEY with can_view_clients. It returns only { "mode": "person", "updatedAt": "2026-10-19T01:00:00.123456Z" }; the mode is person or company. A missing profile returns the default person and updatedAt: null. PUT on the same path requires can_manage_settings and a body such as { "mode": "company", "expectedRevision": "2026-10-19T01:00:00.123456Z" }. The write checks the original profile revision atomically and preserves unrelated settings. Missing revisions return 428, stale revisions 409, invalid modes or revisions 400, and an absent profile 404; it does not create a profile. Neither operation sends notifications or calls a provider.
Send the precondition in the JSON body for DELETE too: {"expectedRevision":"2026-10-19T01:00:00.123456Z"}. A task deletion soft-deletes only that task; direct subtasks keep their existing behavior. A template deletion also removes its references from active workspace playbooks and soft-deletes playbooks left empty, all in one transaction. Stale deletions have no cleanup, activity, or webhook side effects. Notes are scoped to the authorized workspace and account and remain agency-only. Deleting a custom task option preserves each task's canonical base status or priority.
Playbook creates and updates recheck that their milestone templates are active in the authorized workspace inside the save transaction. If a template was deleted after the initial read, the save returns 400 with One or more milestone templates are unavailable and leaves the playbook unchanged. Read the library again and reconcile the selection before saving.
{
"title": "Review the proposal",
"expectedRevision": "2026-10-19T01:00:00.123456Z"
}
Missing revisions return 428 revision_required; stale revisions return 409 revision_conflict; malformed revisions return 400 invalid_revision. These errors include resourceType, resourceId, and recovery: "read_resource". On conflict, retain the intended edit, read the latest resource, reconcile the change, then submit a new save. Never automatically replace the revision on an old edit and retry. Existing flow expected_updated_at, client-task expectedUpdatedAt, and invoice-design revision contracts retain their existing names and types.
Reply from the Conversation You Read
Account and conversation message reads return revisions.contextRevision with content from the same database snapshot. An agency client-visible reply must include that UUID as expectedContextRevision. Capture it before composing and keep it unchanged while the reply is prepared. If somebody else replies first, the server rejects the stale reply with 409 reply_context_conflict; missing context returns 428 reply_context_required. Automatic message refresh must not silently replace the context of a reply already being composed.
{
"clientMessageId": "00000000-0000-4000-8000-000000000104",
"expectedContextRevision": "00000000-0000-4000-8000-000000000103",
"body": "I reviewed your request and will send the draft tomorrow.",
"kind": "message"
}
Generate one clientMessageId UUID per intended reply. After an uncertain network outcome, retry the exact payload with the same ID and original context. An accepted identical replay returns the existing message without repeating notifications or webhooks, even if the conversation has since advanced. Without a caller-provided ID, message-level retry identity is unavailable. Changing the content or reusing the ID for another actor causes a conflict. After a context conflict, read the conversation and decide whether another reply is still needed before creating a new ID.
A conversation-create replay returns HTTP 200, created: false, and may return revisions: null. A newly created conversation returns HTTP 201 with revisions. Read the conversation again for current context before preparing another reply; a successful replay is not a fresh conversation read.
Portal Idempotency-Key caching also binds requests to the authenticated actor. Cached message responses recheck current permission and account/conversation/message access. An old unbound cache entry or another actor's request cannot be replayed or silently executed again. A genuinely new conversation has no preceding reply context; send its first message's stable ID in message.clientMessageId. Internal notes do not advance client-visible reply context. Meeting-note imports share a fixed resource notice and do advance that context.
Message reads support paired timestamp/UUID cursors. Fully reconcile the loaded window before accepting its revision; when a paginated scan reports complete: false, continue using nextBefore. If page revisions differ, restart the reconciliation. Regular account history pages cap at 500 messages and conversation history pages at 100; loaded-window scans return up to 500 per page. Permission loss clears access instead of preserving stale content as if it were current.
Sign-in Email Changes
The public V2 workspace API does not expose account sign-in identity changes. Use Login & Security or the self-only account_email_manage MCP tool described in the MCP guide. The existing login address remains active until a six-digit code sent to the new inbox is verified. Current-password validation, code expiry, attempt and resend limits, and account isolation apply equally to app and MCP actions. Workspace-restricted API keys cannot manage account-wide identity. This addition does not change the public API paths or authentication contract.
Workspace Transfers
Paid Agency owners can hand a workspace they own to another person from Settings Workspace, or through the workspace_reseller_state_get and workspace_reseller_manage MCP tools. The billing plan is the only gate: any verified Agency owner on a lifetime plan, or on a monthly plan with a current period, can transfer, and a workspace received through a transfer cannot be transferred again. Trial, Free, and team-member access cannot transfer. MCP transfer actions need an account-wide owner credential; workspace-restricted API keys are refused.
Each invitation uses one resale slot. Agency includes three, and a seller can buy another for a one-time $20 card payment, which is a real charge. A slot stays in use while the invitation is pending and while the new owner holds the workspace, and returns to the pool when the invitation is cancelled or expires or the seller takes the workspace back. Bought slots are not refunded. Accepting a transfer never charges the new owner.
Some workspaces can't be transferred until the seller fixes something first. The state lists these per workspace in blockersByWorkspace, and the Transfer button is disabled with the reason. A workspace is blocked when it has domains that aren't verified or active, or repeat onboardings linked to another workspace. An invite for a blocked workspace is refused with 409 before any slot or payment is used. Connected cloud storage and Square never block a transfer.
Everything inside the workspace moves to the new owner, including flows, clients, responses, files, portal content, and branding. Every connected account and every kind of in-flight work is the seller's choice: transfer it with the workspace (the default) or disconnect it. connectionsByWorkspace lists them with an ID, kind, provider, account label and, for grouped kinds, itemCount. Kinds are stripe, domain, cloud, square, smtp, twilio, crm, export, webhooks, meeting_notes, gmail, outlook, seo, platforms, calendar, payments, paypal, ai_keys, pabbly, and the in-flight reminders, scheduled_sends and flow_shares, where disconnecting cancels the pending work. The MCP invite takes a keep decision for every ID in connectionChoices. Labels are names and addresses only, never credentials.
Some accounts can only be transferred while something live depends on them, and keepRequired says why: stripe_subscriptions when active subscriptions bill through the Stripe account, stripe_open_payments when clients have unpaid payments on it, cloud_files when files are stored in the storage account, and square_subscriptions when live subscriptions bill through the Square account. Payment steps in flows alone never lock Stripe, and a cancelled subscription stops locking it. Disconnecting a locked account is refused with 409 (RESELLER_STRIPE_SUBSCRIPTIONS_NEED_CONNECTION, RESELLER_STRIPE_OPEN_PAYMENTS_NEED_CONNECTION, RESELLER_CLOUD_FILES_NEED_CONNECTION or RESELLER_SQUARE_SUBSCRIPTIONS_NEED_CONNECTION). To disconnect it, cancel the subscriptions or settle the payments, then disconnect the account from the workspace's settings before sending the transfer. A transferred account keeps working for the new owner. Nothing is revoked at the provider, so the same accounts stay connected in the seller's other workspaces.
cancelsByWorkspace lists what a transfer always cancels whatever the seller chooses, as { kind, count } items: pending team invitations for that workspace, queued emails, and email replies waiting for review.
An invitation lasts 24 hours from when the new owner's email goes out: when it is sent, when it is resent, or, for a bought slot, once the payment completes. Anything the seller adds to the workspace while the invitation is pending goes with it; a kind the seller set to disconnect is still disconnected when the transfer is accepted, and an account that picks up something live in the meantime transfers.
The seller's teammates can move with the workspace. teamByWorkspace lists, per workspace, the seller's teammates who have access, each with teamMemberId, userId, firstName, lastName, email, role and onlyThisWorkspace (true when that workspace is their only one). teamSeats ({ max, used, free }) is the seller's own team seats. An invite takes teamMemberIds (up to 100 teammate IDs, default none), who join the new owner's team at accept with their role and access (leave the new owner out of this list), and extraSeats (0 to 100, default 0). The new owner's team has 3 seats included plus extraSeats, lent from the seller's team seats, and each teammate beyond 3 needs an extra seat. The seller's net cost is extraSeats minus the selected teammates who are only on this workspace, minus 1 if the new owner is on the seller's team only on this workspace, and it must fit in teamSeats.free; those seats free up when the new owner accepts. While an invite is pending, its lent seats count against the seller minus what it will free, never below zero. Accepted transfers count their extraSeats in full. Pending and transferred items carry extraSeats, teamSeats (3 plus extraSeats) and teamMemberIds, and transferred items also carry teamSeatsUsed, the seats the new owner's team uses.
The set_seats action (transferId, extraSeats) changes an accepted transfer's extra seats. An invite that lists the new owner in teamMemberIds is refused with 400 RESELLER_TEAM_INCLUDES_RECIPIENT ("The new owner can't also be in the teammates list. Leave them out and send again."). Seat problems are refused with 409: RESELLER_TEAM_CHANGED ("Your team changed. Review who goes with the workspace and send again."), RESELLER_TEAM_NEEDS_SEATS ("Give one extra seat for each teammate beyond the 3 included."), RESELLER_SEATS_UNAVAILABLE ("You don't have enough free team seats for that.") and RESELLER_SEATS_IN_USE ("Their team already uses more seats than that. They need to remove teammates first."). Seats lent to transferred workspaces count toward the seller's own team seat limit, so a team invitation refused with PLAN_LIMIT_REACHED for team_seat also carries lentSeats, the number of those seats.
Taking a workspace back resets it. The seller asks with the take_back action (the exact workspace name and a reason); the new owner and the seller each get an email, and the new owner has 24 hours to dispute it with 360Onboard. Until then nothing changes, takeBackDueAt on the transferred workspace shows when the reset happens, and the seller can stop it with cancel_take_back. When the 24 hours are up, everything 360Onboard stores for that workspace is deleted and every connection with it, the new owner and their clients lose access, and the seller gets a brand new empty workspace with the same name. The teammates who moved with the workspace are removed from the new owner's team, because they joined at accept. Files in anyone's own cloud storage, such as Google Drive or Dropbox, are never touched, and nothing is revoked at a provider.
360Onboard can pause new transfers, for example while it runs its own lifetime deal. During a pause, new invitations and slot purchases are refused, the state reports when the pause ends, and invitations already sent can still be accepted. Inviting teammates to a workspace is never paused. The public V2 API has no transfer routes, and this addition does not change existing API paths or authentication.
API Endpoints
Client portal member language
Read GET /workspaces/{workspaceId}/portal/accounts/{accountId}/members?apiKey=YOUR_KEY to get each member's id and saved language. With can_create_clients, use PATCH /workspaces/{workspaceId}/portal/accounts/{accountId}/members/{memberId}?apiKey=YOUR_KEY to set the built-in system email and invoice PDF language for that person. Use the member's id, not their personId.
{ "language": "hi" }
The response is { "ok": true, "language": "hi", "updated": 1 }. The codes match the flow language list below. Use en or null to clear the saved choice and use the existing fallback. This does not send an email, change the agency's own interface, or translate authored copy. An unsupported or missing language returns 400, an unauthorized key returns 401, missing client-management permission returns 403, and an inaccessible account or member returns 404. For an uncertain retry, reuse an optional Idempotency-Key with the identical request.
Service visibility
Client Portal services use three visibility choices: Draft · team only, All clients, and Specific clients. Draft has no client audience. Saving or unpublishing with active: false clears clientAccountIds to null; it is not retained for future publication. Existing purchases keep their agreed price and delivery.
Use POST /workspaces/{workspaceId}/portal/services to create and PATCH /workspaces/{workspaceId}/portal/services/{serviceId} to edit. Both require the workspace client-management permission; updates require the exact expectedRevision from a full service read. A published service uses clientAccountIds: null for all clients or a nonempty array of account UUIDs for specific clients. Each selected account must belong to the workspace. Empty selections and foreign accounts are rejected.
Publishing a draft requires an explicit audience choice. For example, after reading the current revision, publish to all clients with:
{
"active": true,
"clientAccountIds": null,
"expectedRevision": "2026-10-26T12:00:00Z"
}
To return it to team-only Draft, send active: false with that service's latest revision. To publish it again, choose the audience again. Missing audience on draft publication returns 400; a missing revision returns 428, and a stale revision returns 409. Read and reconcile before retrying. MCP portal_services_manage uses the same rules for create, update, publish, and unpublish; publish takes the audience in payload.clientAccountIds.
Selling a service through an order form
Set onboardingFlowId on a service to an active V2 client onboarding flow in the same workspace. That flow becomes the service's order form and sells it through the flow's public Buy Now link; send null to unlink it. Each flow sells at most one service. An archived, foreign, non-client, or already-linked flow returns 400.
The order form's payment step sets the price, so the service's own amountCents is not charged. The payment step can use a fixed amount or Base price + answers, where priced choice answers add to an optional base price. The server prices the order only from the client's saved answers and the published flow version. POST /workspaces/{workspaceId}/portal/accounts/{accountId}/services/{serviceId}/purchase returns 409 for a service with an order form, because the client orders it through the form.
When a client pays the order form, the purchase is recorded as paid on their portal account. If they have no account, one is created and a portal invite is sent. The delivery plan runs once per payment. Use GET /workspaces/{workspaceId}/flows/{flowId} or MCP flow_public_link to get the link.
For one-time Stripe card payments, a payment step's content.statementDescriptorSuffix sets the bank statement text. The bank shows the Stripe account's short statement prefix, then * , then this text, 22 characters in total. Leave it empty to show the account's full statement name. If Stripe rejects the text, the payment still goes through with the account's statement name. Subscriptions keep the account's statement name.
Append ?apiKey=sk_live_your_key_here to every request. When a URL already has query parameters, append the key with &apiKey=....
Flows
| Method | Endpoint | Purpose |
|---|---|---|
GET | /workspaces/{workspaceId}/flows | List published V2 flows. Supports page and limit up to 100. |
GET | /workspaces/{workspaceId}/flows/{flowId} | Get a complete sanitized flow, including steps, design, and public URL. |
GET | /workspaces/{workspaceId}/flows/{flowId}/stats | Get total, completed, in-progress, and not-started clients plus completion rate. |
POST | /workspaces/{workspaceId}/flows/{flowId}/trigger | Start one onboarding from an external event with mapped questionnaire prefills. |
A rich flow contains its name, type, schema version, published status, design configuration, public-link settings, final public URL, and sanitized step definitions. API headers, webhook secrets, outbound URLs, static recipients, and private integration target IDs are not exposed.
An Embed step shows an outside page you built elsewhere, such as a proposal in Framer or Webflow. In a flow, its step type is embed and it carries embed: { url, full_page, continue_label }. With full_page on (the default), the page fills the screen with Back and Continue in a bar at the bottom, and continue_label renames Continue. In a response, an Embed step reports acknowledged once the client has viewed it and moved on.
design.customization.locale is the built-in client interface language, with English as the default when omitted. Supported codes are en, fr, es, de, it, ja, ko, zh (Simplified Chinese), zh-TW (Traditional Chinese), no, ru, hi (Hindi), and pt-BR (Brazilian Portuguese). Flow reads expose this setting; the public API does not provide a language mutation. Use the builder or MCP flow_set_language with the exact revision from flow_get, then publish to the intended onboarding target. Saved versioned submissions use their assigned definition's language. Registration, recovery, validation, payment and signing controls, and platform-access instructions follow the flow language. Agency-authored content stays unchanged, and provider-hosted checkout or authorization windows use the languages supported by that provider.
design.customization.requireEmailVerificationToResume controls the saved-submission code prompt. Omitted values mean true. The builder and MCP flow_update setting require_email_verification_to_resume use the same staged changes: publish before the setting changes the live registration page.
New e-signature, scheduling, and platform-access steps created with MCP flow_create, or added as new steps through flow_update, are required unless the step sets isRequired: false. Steps that already exist keep their saved setting. An optional e-signature step that the signer has started still has to be finished: the signer cannot move past it with a half-signed document, and the response stays in_progress until every signer on that document has signed. An optional e-signature that nobody started does not hold the response open. The signed copy's email subject and PDF are named after the e-signature step's title.
E-signature fields can show the client's own record, such as the first_name, last_name, email, company_name, and phone sent with POST /workspaces/{workspaceId}/clients. With MCP flow_esignature_fields_update, set lockToClientRecord: true on a name, email, or company field assigned to the first signer: the signer sees the full name, email, or company name saved on the client record and cannot change it. If the record has no value, the signer fills it in. A dynamicContent field can set sourceFieldId to client.full_name, client.first_name, client.last_name, client.email, client.company_name, or client.phone; it is never editable and stays blank when the record has no value. The signed PDF prints the value from the record. A public-link visitor who starts a new submission sees only the details they typed, never a stored record with the same email.
Finished e-signature PDFs are flattened so their fields can no longer be edited, then sealed with a 360Onboard digital seal and a DigiCert trusted timestamp. Any change to a sealed file shows as edited. An e-signature step in a flow includes deliver_as_images (default false). When true, the signed copy is delivered as page images with no selectable text; otherwise it is a sealed PDF with real text. Set it in the builder or with MCP flow_step_update (deliverAsImages in the e-signature step content). In a response, the signed document's sha256 is the fingerprint of that sealed file. Anyone can check a signed PDF, and see when it was signed and by whom, at 360onboard.com/verify.
Questionnaire fields can carry answer rules, set in the builder or through MCP flow_create, flow_update and flow_steps_batch_add as rules on a form field. matches_field and differs_from_field compare the answer with another field (fieldId) on the same step or an earlier one, for example a confirm-email field that must match the email field. Date fields also accept date_not_past, date_not_future, date_weekdays_only, date_min and date_max (date as YYYY-MM-DD), date_min_days_ahead (days) and date_min_age (years, 1 to 120). Each rule needs a unique id and can set its own message of up to 300 characters. Rules are checked in the client's browser and again when the step is saved, with dates compared in UTC; hidden fields never block. A save that breaks a rule is refused with a validation error, and the client sees the rule's message under the field.
In an employee flow, the client_portal step is a Team access step: it invites the person to your team instead of creating a Client Portal account. Through MCP, set its access in clientPortalContent.teamAccess with the same role, permissions, and workspace, client, and flow access options as a team invite from Settings. The owner role is not accepted.
{
"data": {
"id": "flow_uuid",
"object": "flow",
"name": "Client Onboarding",
"type": "client",
"status": "published",
"schema_version": 2,
"public_url": "https://onboard.acme.com/start",
"step_count": 4,
"steps": [
{
"id": "step-1",
"object": "flow_step",
"position": 0,
"type": "questionnaire",
"title": "Company details",
"fields": []
}
]
}
}
A flow trigger starts a new onboarding for each distinct event key; it does not update an existing onboarding. Configure and publish an enabled inbound trigger on a V2 flow first, then map fields from the event's data object to questionnaire fields. Mapped values appear as editable defaults and are not submitted answers until the client submits the questionnaire. The flow must be a published V2 client or employee flow with a valid enabled trigger configuration in its published definition.
Send a stable Idempotency-Key for each logical external event. It must contain 1–200 letters, numbers, dots, underscores, colons, or hyphens. Within the generic 24-hour idempotency cache, a replay returns the cached original status and body with Idempotent-Replayed: true; if the original request created an onboarding, that replay remains HTTP 201 and retains its original optional camel-case identity fields. When the route reaches the durable event check (for example, after the response cache expires), a completed event returns HTTP 200 with Idempotent-Replayed: true and omits those optional fields. A fresh creation is HTTP 201 without the replay header. Do not reuse a key for different event data. If setup is processing, retry the identical request with the same key after the Retry-After delay. If the response says setup_outcome_unknown, inspect its returned onboarding before taking action; do not send a new key or invitation. A removed or archived onboarding conflicts after durable lookup; while a cached response exists, that response replays first.
Initial invitation email is off by default in the flow's inbound-trigger settings. When enabled, the response's invitation_requested field reports that setting; it does not confirm that an email was delivered or read.
curl -X POST \
"https://api.360onboard.com/v2/workspaces/workspace_uuid/flows/flow_uuid/trigger?apiKey=sk_live_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: crm-contact-evt-8472" \
-d '{
"client": {
"email": "alex@example.test",
"first_name": "Alex",
"last_name": "Morgan",
"company_name": "Northstar Studio",
"phone": "+1-555-0100"
},
"data": {
"crm_contact_id": "crm-8472",
"company": { "name": "Northstar Studio" },
"monthly_budget": 2500
}
}'
The response returns the onboarding ID and link, flow and workspace IDs, creation time, invitation setting, nullable flow-version ID/generation, and setup_state (complete, processing, or unknown). Fresh creation may include firstName, lastName, companyName, and phone. Cached replays retain those original optional fields; durable event replays omit them. Processing returns 202 with Retry-After: 5. An unknown result returns 409 with the existing onboarding in data.
The request body is limited to 256,000 bytes. The data object may be at most 16 levels deep and 5,000 nodes, with arrays up to 500 items and strings up to 10,000 characters. The reserved keys __proto__, prototype, and constructor are rejected.
Working Design
The API can read and edit the current V2 authoring design, including staged changes. This is separate from the published-only flow endpoint above. Use these production endpoints:
GET https://api.360onboard.com/v2/workspaces/{workspaceId}/flows/{flowId}/working-design?apiKey=sk_live_your_key_here
PATCH https://api.360onboard.com/v2/workspaces/{workspaceId}/flows/{flowId}/working-design?apiKey=sk_live_your_key_here
Both calls require API access and an active V2 flow in the API key's and acting user's allowed workspace. Reading requires can_view_flows; editing requires can_edit_flows. GET returns data.design, editable data.copy, the exact data.updatedAt revision and data.staged. Its choices lists recognized themes, layouts and compatible modes, fonts and their roles, image sources, copy fields, and the layouts and modes that display hero artwork. Use those choices rather than guessing IDs.
Send only the properties you intend to change, with expected_updated_at copied from the latest read. For example, this sets one palette color and resets the saved type and shape overrides:
{
"expected_updated_at": "2026-10-26T12:00:00Z",
"design": {
"overrides": {
"primaryColor": "#123456",
"displayFont": null,
"bodyFont": null,
"baseSize": null,
"density": null,
"radiusScale": null,
"customFont": null,
"customFontUrl": null
}
},
"copy": { "heroTitle": "Welcome, {{first_name}}" }
}
An override set to null is removed so the theme's value is inherited. Omitted overrides keep their saved values. To match Reset palette, set primaryColor, accentColor, backgroundColor and foregroundColor to null. To match Reset type & shape, clear the seven typography fields shown above; this also removes saved custom-font metadata.
The write contract is strict: colors use six-digit hex values; font selections come from choices.fonts; density is compact, comfortable or dramatic; radius is tight, normal or round; base size is between 0.75 and 1.5. customFont, customFontUrl, customFontFaces and customFontVariable accept only null for clearing, and clearing customFont or customFontUrl also removes the font's extra weight files. Add or replace custom font files, including extra weights, through the builder's validated upload. Reads preserve existing custom fonts, custom family names, background patterns and authored text, so their output is deliberately broader than the write contract. Do not send an entire read object back as a patch.
design also accepts recognized theme, layouts, mode, layoutConfig and heroArtwork fields. Hero artwork appears in the Split hero layout in website mode; other hero layouts retain it without displaying it. A URL image uses { "url": "https://images.example.test/hero.jpg", "source": "url" }. An Unsplash image uses source: "unsplash" and an unsplash object containing photoId, photographerName, photographerUrl and downloadLocation; the tracking URL must be on https://api.unsplash.com/. Set design.heroArtwork.image to null to remove only that image, keeping its alt text. New imageAlt values are limited to 500 characters and new copy values to 2000 characters per field. Existing longer authored text is preserved on reads and unrelated edits.
mode is website (each questionnaire step on one page) or slideshow (one question at a time, shown in the builder as Question style: One question at a time). slideshow.transition sets how slideshow mode moves between questions: vertical (the default), horizontal or fade. Clients who prefer reduced motion always get a fade. Changing theme never changes mode.
backdrop puts a photo behind the whole flow. style is photo (sharp, under a wash of the page color) or glass (heavily blurred and slightly dimmed, with see-through cards), image uses the same URL or Unsplash shape as hero artwork, and strength is subtle, balanced or bold. For glass, text (auto, light or dark) sets the text color over the photo, and cards (clear, frosted or solid) sets how see-through cards and fields are; auto follows the photo, and picking dark or light text with frosted or solid cards helps when the photo makes text hard to read. auto and clear are the defaults and are not stored, and new Glass flows start with frosted cards. Its fields merge into the saved backdrop, so you can change only the strength, style, text or cards; null removes it. Featured photos are listed in choices.backdrop.featured.
welcomeScreen turns the welcome screen on or off. Send false and clients go straight to the first step; send true to show it again. It is the same setting as Design Pages Show welcome screen in the builder, and reads always report it (true unless it was turned off). Like other design changes, it reaches clients when the flow is published.
choices.themes lists the 15 themes in the builder's gallery, Glass and Lilac first. Older theme IDs are still accepted, and flows that use them keep rendering. Changing theme without sending backdrop brings the new theme's own photo (Glass, Glass Dark, Terra, Atelier) unless the flow has a photo of its own, and drops the old theme's photo if it was never changed. The background pattern (dots for Lilac and Pebble, grid for Swiss and Ledger) follows the theme the same way.
Draft edits save to the draft. Edits to published flows remain staged until a separate publication action; the design endpoint never publishes. Updates return the accepted updatedAt, staged state and unsplashTracking. New Unsplash selections are tracked after saving. A failed or unknown tracking result does not undo the saved edit; do not automatically retry an unknown outcome.
Invalid properties, values or image metadata return 400; missing permission returns 403; unavailable, foreign or non-V2 flows return 404; rate limits return 429. A stale revision returns 409: read again, reconcile the intended changes, and use the new revision. Never overwrite another editor's changes by blindly retrying the old payload. The full request, response and error schemas are in the OpenAPI document.
The equivalent MCP tools are flow_design_get and flow_design_update. See Design Your Onboarding Flow for the builder controls and the MCP guide for agent use.
Clients
| Method | Endpoint | Purpose |
|---|---|---|
GET | /workspaces/{workspaceId}/clients | List V2 clients. Supports flow_id, page, and limit. |
POST | /workspaces/{workspaceId}/clients | Create a client in a published V2 flow and optionally send the invitation. |
GET | /workspaces/{workspaceId}/clients/{clientId} | Get the client, progress, complete flow, and final onboarding URL. |
PATCH | /workspaces/{workspaceId}/clients/{clientId} | Update supplied identity fields. |
DELETE | /workspaces/{workspaceId}/clients/{clientId} | Soft-delete the client onboarding record. |
GET | /workspaces/{workspaceId}/clients/{clientId}/progress | Get completion percentage, step counts, response ID, and activity timestamps. |
POST | /workspaces/{workspaceId}/clients/{clientId}/remind | Send an invitation reminder unless the client is already complete. |
POST | /workspaces/{workspaceId}/clients/{clientId}/submissions | Start a blank repeat submission for an existing identified V2 client. |
Create a client:
curl -X POST \
"https://api.360onboard.com/v2/workspaces/workspace_uuid/clients?apiKey=sk_live_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: acme-client-2026-08-27" \
-d '{
"flow_id": "flow_uuid",
"email": "jane@acme.com",
"first_name": "Jane",
"last_name": "Smith",
"company_name": "Acme Corp",
"phone": "+15551234567",
"send_invitation": true
}'
flow_id and email are required. send_invitation defaults to true.
When the email belongs to a person who is in more than one of your clients, pass portal_account_id to say which client the flow is for. It must be one of that person's current clients, or the request fails with 400 invalid_portal_account. Without it, the flow is not tied to either client. MCP client_create takes the same portal_account_id, and client_find_by_email lists the person's clients and their IDs.
The returned client includes the complete associated flow and the final onboarding URL. When the workspace has an appropriate verified custom domain, that custom-domain URL is returned.
Start a Fresh Submission
This operation is available at https://api.360onboard.com/v2.
Use this operation when the client wants to start a separate submission. The source must be active, identified, and in the same workspace; its published V2 flow must allow repeat submissions. email must match the existing contact. This creates a blank assignment and response without copying previous answers or changing profile values, and sends no invitation, email, or webhook. Give its private opening URL only to the intended client. Published registration pages offer Start and Continue explicitly. “Require email verification to resume” is on by default; turning it off sends a private resume link valid for 24 hours. A valid session can reopen the same response during its original two-hour window with either setting.
curl -X POST \
"https://api.360onboard.com/v2/workspaces/workspace_uuid/clients/client_uuid/submissions?apiKey=sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"request_key": "11111111-1111-4111-8111-111111111111",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.test",
"company_name": "Example Studio",
"phone": "+15555550123"
}'
The response contains client_id, response_id, the stable client_link, and opening_url. The actor needs can_create_clients in the workspace. The opening link expires five minutes after the submission was first created; later retries return opening_url: null and never renew guest access. request_key is a UUID; reuse it with the same payload after a timeout to get the same submission. Existing answers and profile values stay intact. Invalid input or an email mismatch returns 400, missing creation permission returns 403, an unavailable source returns 404, disabled repeat submissions return 409, and incomplete setup returns 503.
The MCP tool client_start_new_submission performs the same action with workspace_id, client_id, request_key, and the identity fields above. It shares the same creation permission, workspace boundaries, retry behavior, and opening-link expiry.
Safe Retries with Idempotency-Key
Client creation supports an optional Idempotency-Key header for 24 hours.
- Retrying the same request with the same key returns the original response without creating another client.
- Reusing the key with different request data returns a conflict instead of performing an ambiguous action.
- Use a unique key for every logical client-creation operation.
This is especially important for automation platforms that retry after timeouts and cannot tell whether the first request succeeded.
Responses
| Method | Endpoint | Purpose |
|---|---|---|
GET | /workspaces/{workspaceId}/responses | List rich V2 responses. Supports flow_id, client_id, and status. |
GET | /workspaces/{workspaceId}/responses/{responseId} | Retrieve one response with its related client, flow, and typed step results. |
Response steps preserve their real type instead of flattening everything into generic key/value data. Depending on the flow, a response can include:
- Questionnaire answers and uploaded files
- E-signature signers, signed-document URL, audit events, timestamps, and PDF hash
- Payment amount, currency, provider, and payment time
- Platform access grants and completed guided-access steps
- Scheduling results
- Embed steps the client viewed (
acknowledged) - AI and API outputs
- CRM, export, email, SMS, webhook, and client-portal action results
The step list follows the flow version assigned to that response. A disabled step with no recorded response or completion evidence is omitted. If the step has a saved answer, payment receipt, signature artifact, or carried completion history, its result remains available even after the step is disabled.
Ephemeral-field values and outbound integration secrets are never included.
A restarted versioned submission can reuse a verified completed step from an earlier submission. Such a step includes an optional completion_source object with type: "prior_submission", the original response_id, its flow_version_id, and the original completed_at timestamp (nullable). Payment amounts and signing details describe the original receipt; this does not represent another charge or signature. A step completed within the current submission omits completion_source.
If that reused completion later becomes invalid, a completed submission retains an optional previous_completion object with status: "revoked", the original response/version/time, and source_available. This is historical metadata, not evidence that the step is currently satisfied. The step omits current receipt/answer details in this case. An unavailable original submission can retain its identifier without granting access to deleted or unrelated records.
{
"id": "provider-file-id",
"object": "file",
"name": "brand-assets.zip",
"size_bytes": 824193,
"mime_type": "application/zip",
"storage_provider": "google_drive",
"url": "https://drive.google.com/file/d/final-file-id",
"uploaded_at": "2026-08-27T18:00:00Z"
}
AutomateNexus CRM results and MCP setup
Add to CRM supports AutomateNexus alongside SuiteDash, SwipeOne, NinjaPipe, and Flowlu. Configure a read and write REST API key in Settings Integrations CRM Sync, or use MCP crm_settings_list followed by crm_settings_connect with provider: "automatenexus", credentials: {apiKey: "..."}, and the original expectedRevision (null only for an absent connection). AutomateNexus MCP server keys cannot authenticate this connector.
The action matches contacts by exact email, creates a contact when no match exists, and uses PATCH to preserve other custom fields on updates. New contacts require both first and last name and go to the CRM's main workspace. The builder discovers existing Contacts fields and offers Refresh fields. Choose Enter field keys manually whenever you prefer, or use the automatic manual fallback if discovery fails; mappings and values are preserved when switching modes. Field definitions must still be created in AutomateNexus Settings Custom fields. MCP crm_list_fields returns discovered keys, labels, types, option values, manual-mapping support, and any discovery error; use an exact existing Field Key supplied by the user when discovery is unavailable. A mapped note is attached to the contact. Deal and field-definition creation are not part of this connector.
CRM response steps expose provider, sent, external_id, error, fired_at, and fields. For example, a successful AutomateNexus result has provider: "automatenexus", sent: true, external_id: "contact_uuid", and error: null. CRM fields is the resolved mapping object (nullable email, firstName, lastName, company, phone, note, and a custom array of {label, value}), or null before an attempt. Failed lookup, contact write, or note delivery is reported as an error; a failed note can follow a successful contact write. Do not blindly replay external writes after an unknown outcome. Public API authentication and workspace permissions are unchanged.
Client Portal API
Accounts that include Client Portal receive an additional API surface for managing the work that happens after onboarding. It covers client accounts, tasks, milestones, conversations, files, invoices, members, internal notes, templates, activity, portal customization, and agency-profile data.
Client Portal routes use the same API key and workspace scoping as the rest of V2. Their base path is:
https://api.360onboard.com/v2/workspaces/{workspaceId}/portal
Append ?apiKey=sk_live_your_key_here to every request. Send an Idempotency-Key header with POST, PATCH, PUT, and DELETE requests that may be retried.
Availability and Discovery
Start with the discovery endpoint instead of hard-coding the route catalog:
curl "https://api.360onboard.com/v2/workspaces/workspace_uuid/portal?apiKey=sk_live_your_key_here"
The response includes the workspace-specific Client Portal base URL, authentication and idempotency guidance, all supported routes, their HTTP methods, and payload contracts.
If Client Portal is not included for the account, every Client Portal API and MCP operation returns HTTP 403 with a stable error:
{
"error": {
"code": "client_portal_unavailable",
"message": "Client portal not available"
}
}
Portal Overview and Configuration
The endpoints below are relative to /workspaces/{workspaceId}/portal.
| Method | Endpoint | Purpose |
|---|---|---|
GET | /summary | Return dashboard totals, revenue, client health, upcoming tasks, and recent activity. |
GET | /conversations | List account conversations for the workspace. |
GET | /flows | List flows that can be attached to portal work. |
GET | /ledger | Return the workspace payment ledger. |
GET | /link-preview?url={url} | Retrieve safe metadata for a link preview. |
GET, PUT | /config | Read or update the workspace-default portal sidebar, home, theme, and login configuration. |
GET, PUT | /profile | Read or update the client-facing agency profile and team presentation. |
GET | /artifacts/{responseId}/{stepId} | Retrieve a portal-visible onboarding artifact for a completed response step. |
Website files use the link's social-preview image, title and description in the compact preview. Select Review to load the full website review. /link-preview and MCP portal_workspace_manage with action: "link_preview" and query.url return the same metadata (domain, title, image, description, favicon). Missing metadata stays null; a site without a social image, such as example.com, uses a text fallback. Open Graph and Twitter image URLs may be relative and use either attribute order. This is a metadata read with no file mutation or review session side effect.
Client Portal broadcasts
Use Client work Broadcasts to post a top bar, sidebar banner, or poster inside client portals. Broadcasts do not send emails, chat messages, or webhooks. The API and MCP require Client Portal access, can_view_clients, can_manage_settings, and access to all clients in the workspace.
Use /v2/workspaces/{workspaceId}/portal as the prefix and append ?apiKey=YOUR_SERVER_KEY to each request.
-
GET /broadcasts?offset=0&limit=40returns{broadcasts, nextOffset}ordered newest first.limitis 1–100.GET /broadcasts/{broadcastId}returns{broadcast}with its current status, unique-recipient counts (seen,dismissed,clicked), andupdatedAt. -
POST /broadcasts/audiencetakes{audience}and returns{count}without saving or publishing. Use{ "kind": "all" },{ "kind": "specific", "accountIds": ["<client account UUID>"] }, or{ "kind": "rule", "field": { "kind": "company" }, "value": "Northstar Studio" }. A custom field rule usesfield: {"kind":"custom", "id":"<client field UUID>"}. Rules and all-clients audiences include future matching clients. Specific audiences accept 1–500 client account IDs from the same workspace. -
POST /broadcastscreates a draft by default or publishes explicitly withaction: "publish". For example, send this body to prepare a draft without showing it to clients.{ "action": "save", "broadcast": { "placement": "sidebar", "title": "Holiday hours", "message": "Hi {{client.first_name}}, we'll be back January 2.", "audience": { "kind": "all" }, "startsAt": "2026-12-24T09:00:00-08:00", "endsAt": "2027-01-02T09:00:00-08:00", "actions": [{ "label": "View calendar", "destination": { "kind": "portal", "section": "calendar" } }] } } -
PATCH /broadcasts/{broadcastId}takes{action, broadcast, expectedRevision}forsave(draft only) orpublish. To stop a live or scheduled notice, send{action: "end", expectedRevision}withoutbroadcast.DELETE /broadcasts/{broadcastId}takes{expectedRevision}and removes a draft or ended notice and its counts. Duplicate an ended notice by creating a new draft with its content and new dates.
placement is top, sidebar, or poster. A top bar shows only its title on one line; align is center (default) or left, and any message sent with a top bar is dropped. Sidebar banners and posters need a message of up to 600 or 2,000 characters. Titles take 200 characters and button labels 120. Messages are Markdown. A picture or GIF is a line of its own written as . Older sidebar banners and posters with image: {url, alt} still work, and the picture moves to the top of the message. Buttons take {label, destination} with a portal section or { "kind": "external", "url": "https://example.com" }. Top bars and sidebar banners take one button, posters take two. tone defaults to normal, with important using the portal's accent. dismissible defaults to true and is required for posters. posterFrequency defaults to once. With every_visit, closing a poster hides it for that visit only, and it comes back on the next visit until it ends.
Personalize the title, message, and button labels with variables: {{client.first_name}}, {{client.last_name}}, {{client.full_name}}, {{client.email}}, {{client.company_name}}, {{client_field.<client field UUID>}}, and {{date.today}}, {{date.weekday}}, {{date.month}}, or {{date.year}}. Each client sees their own values. The older {first_name} and {company} still work.
Only one sidebar banner shows at a time. Publishing a sidebar banner that would be up at the same time as another live or scheduled sidebar banner for any of the same clients returns 400. Give it a startsAt after the other one ends. POST /broadcasts/audience also accepts an optional sidebar: {startsAt, endsAt, ownId?}, where both times may be null, and then returns sidebarClash ({id, title, endsAt} or null) next to count. Pass ownId when checking an edit of an existing banner.
Timestamps need an ISO 8601 offset. A blank startsAt begins when you publish. endsAt must be later than the start time and in the future when you publish. A blank endsAt means the notice stays live until ended. status is draft, scheduled, live, or ended. Seen and dismissed state is per person and an edit does not reset it.
Use the exact updatedAt from your original read as expectedRevision. Missing revisions return 428, invalid requests 400, inaccessible records 404, and stale edits or invalid transitions 409. Reread the full notice before reconciling a conflict. Use Idempotency-Key for identical write retries as the same actor within the API's replay window. In MCP, use portal_broadcasts_manage. preview_audience is read-only, publish is immediate or scheduled, and only delete is a dry run until confirmed.
Broad currency support for Client Portal APIs
The API accepts the app's catalog of 155 current ISO 4217 currencies for portal services and invoices. The catalog excludes funds, precious-metal codes, and retired currencies. Currency codes are case-insensitive on input and are normalized to lowercase. The OpenAPI schema lists the exact supported codes.
Service prices use amountCents as an integer in the currency's ISO minor unit, so the field is not always cents. For example, USD 12500 is $125.00, JPY 100 is ¥100, and KWD 1234 is KWD 1.234. A complete service offer must cost at least one major currency unit: JPY 1, USD 100, or KWD 1000 minor units. Partial updates accept a raw amountCents value from 1; the app validates the resulting price against the resulting currency before saving. The maximum remains 99,999,999 minor units.
Invoice amount and item unit prices use major currency units. amount is the pre-tax subtotal; the app calculates tax and the tax-inclusive total. Invoice totals and tax are rounded to the currency's supported precision of 0, 2, or 3 decimal places. Item unit prices may use fractional precision before line aggregation. For example, an invoice request for ¥1,234 uses "amount": 1234 and "currency": "jpy"; a KWD 1.234 amount uses "amount": 1.234 and "currency": "kwd".
Online payments have additional provider limits. Stripe must be connected, support the selected currency, and be able to represent the amount. An invoice defaults to external payment when Stripe cannot take that currency and amount; explicitly selecting an unsupported Stripe method is rejected. Invoice payment-method availability can be narrower than the workspace-level methods. Subscription billing requires Stripe, while recurring invoices configured for client-paid settlement can use external payment. External receipts, including checks and bank transfers, can still be recorded through the full-settlement endpoint described in External invoice payments.
Ledger rows retain amountCents for compatibility. For portal invoices it is the original rounded-hundredths value, so JPY 10.5 appears as amountCents: 1050 and KWD 1.234 as amountCents: 123. Onboarding rows keep their stored fixed-hundredths value in amountCents. The new amount field gives the exact major-unit invoice amount (10.5 JPY or 1.234 KWD); onboarding amount remains the stored fixed-hundredths value divided by 100. Use currency to interpret the amount. Historical portal invoice currency labels, including retired or unknown codes, remain readable; new writes accept only the current app catalog.
The dashboard summary adds currency and currencyTotals. currency is USD when USD appears among open invoices or paid invoices included in the revenue window; otherwise it is the alphabetically first reported currency, or USD when no currencies are reported. Draft invoices and paid invoices outside the revenue window do not determine the primary currency. currencyTotals gives outstanding amounts, monthly revenue, revenue series, period revenue, and invoice metrics separately for each currency. Within currencyTotals[].invoices and primary-currency metrics.invoices, count is an integer invoice count; overdue, upcoming, and undated are monetary amounts and may include fractional values. The top-level outstanding, monthlyRevenue, revenueSeries, metrics.revenue, and metrics.invoices describe only the primary currency. Client, task, and health counts remain workspace-wide. Amounts in different currencies are never added together or converted.
Client Accounts and Account Activity
Portal accounts are the companies or client workspaces shown in Client Portal. They are separate from an onboarding client submission and can contain multiple portal members.
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /accounts | List portal accounts or create one. |
GET, PATCH, DELETE | /accounts/{accountId} | Read, update, or soft-delete an account. |
GET | /accounts/{accountId}/activity | Read the account activity timeline. |
GET | /accounts/{accountId}/engagement | Read the account engagement history. |
GET, POST, PATCH | /accounts/{accountId}/comments | List, create, resolve, or reopen comments for an account resource. |
GET, PUT | /accounts/{accountId}/config | Read or update this account's portal customization overrides. |
GET, POST | /accounts/{accountId}/meeting-notes | List imported meeting notes, unlinked import candidates and connected providers, or import a meeting. Add transcript=false to the list to leave each transcript out; read one note with GET /meeting-notes/{meetingId} for its transcript. |
Task Activity Pagination
Task-targeted activity supports cursor pagination. Existing callers continue to receive { "events": [...] } unless they opt in with paginate=1, targetType=task, and a task UUID in targetId.
limit defaults to 100 and is capped at 500. The task target is filtered within the authorized workspace and account before pagination. When audience=client, internal activity is omitted. If the task is hidden from that client view, deleted, or nonexistent, the API returns the same 404 response with code task_not_found so it does not reveal whether a task exists outside the client's visible view.
curl "https://api.360onboard.com/v2/workspaces/11111111-1111-4111-8111-111111111111/portal/accounts/22222222-2222-4222-8222-222222222222/activity?apiKey=YOUR_API_KEY&paginate=1&targetType=task&targetId=33333333-3333-4333-8333-333333333333&audience=client&limit=1"
The paginated response includes a stable cursor. Send both cursor fields with the same account and task filters to load the next page:
{
"events": [
{
"id": "44444444-4444-4444-8444-444444444444",
"targetType": "task",
"targetId": "33333333-3333-4333-8333-333333333333",
"action": "completed",
"createdAt": "2026-10-14T11:45:00.000Z",
"actorType": "client",
"actorName": "Jordan Lee"
}
],
"hasMore": true,
"cursor": {
"before": "2026-10-14T11:45:00.000Z",
"beforeId": "44444444-4444-4444-8444-444444444444"
}
}
For the next page, add before and beforeId from cursor to the same request. Both cursor fields are required together, and they are valid only with paginate=1 and a task target. The paginated shape is { "events": [...], "hasMore": boolean, "cursor": { "before": "...", "beforeId": "..." } | null }. Without pagination, or for other target types, the existing { "events": [...] } response is preserved. Invalid target/cursor combinations return HTTP 400; an inaccessible account remains 404. A client-audience task that is hidden, deleted, or nonexistent returns HTTP 404 with code task_not_found.
That task-not-found response has the same shape for every unavailable client task:
{ "error": "Task not found", "code": "task_not_found" }
For example, if the returned cursor is before=2026-10-14T11:45:00.000Z and beforeId=44444444-4444-4444-8444-444444444444, request the next page with both values:
curl "https://api.360onboard.com/v2/workspaces/11111111-1111-4111-8111-111111111111/portal/accounts/22222222-2222-4222-8222-222222222222/activity?apiKey=YOUR_API_KEY&paginate=1&targetType=task&targetId=33333333-3333-4333-8333-333333333333&audience=client&limit=1&before=2026-10-14T11%3A45%3A00.000Z&beforeId=44444444-4444-4444-8444-444444444444"
Create an account without sending an invitation:
curl -X POST \
"https://api.360onboard.com/v2/workspaces/workspace_uuid/portal/accounts?apiKey=sk_live_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: acme-portal-account-001" \
-d '{
"companyName": "Acme Corp",
"slug": "acme-corp",
"status": "onboarding"
}'
Include primaryContact when you also want to provision the first portal member. Member payloads support email, name fields, company name, role, sendInvite, and resendExisting.
Tasks and Milestones
Account tasks belong to a client account. Workspace tasks are unassigned work that can be organized before it is associated with a client.
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /accounts/{accountId}/tasks | List or create account tasks. |
GET, PATCH, DELETE | /accounts/{accountId}/tasks/{taskId} | Read, update, or soft-delete an account task. |
POST | /accounts/{accountId}/tasks/{taskId}/move | Move a task to another account in the same workspace using targetAccountId. |
GET, POST | /tasks | List or create unassigned workspace tasks. |
GET, PATCH, DELETE | /tasks/{taskId} | Read, update, or soft-delete a workspace task. |
GET, POST, PATCH | /tasks/{taskId}/comments | List, create, resolve, or reopen internal task comments. |
GET, POST | /accounts/{accountId}/milestones | List milestones or create a draft milestone. |
GET, PATCH, DELETE | /accounts/{accountId}/milestones/{milestoneId} | Read a milestone or stage edits/removal. |
POST | /accounts/{accountId}/milestones/{milestoneId}/transition | Start, submit, approve, request changes, or reopen a milestone. |
POST | /accounts/{accountId}/milestones/{milestoneId}/publish | Publish the held changes for one milestone. |
POST | /accounts/{accountId}/milestones/publish | Publish all held milestone changes for an account. |
POST | /accounts/{accountId}/milestones/{milestoneId}/remind | Email the client when a published milestone is waiting for client approval. Returns 409 with code milestone_not_started while the milestone's start date is still ahead. |
Task payloads support status, priority, milestone and parent relationships, assignees, dates, dependencies, recurrence, flow attachments, file attachments, and ordering. Milestone payloads support approval rules, automatic start/finish rules, dates, descriptions, covers, and ordering.
Task, milestone, and milestone-template descriptions are Markdown. Start a line with #, ## or ### for a heading; **bold**, *italic*, ~~strikethrough~~, - and 1. lists, > quotes, and [links](https://example.com) show formatted. Plain text shows as written, with each new line kept, so existing plain-text descriptions look the same. In a task description, a line holding only [file: name] shows that attached file in place. The name must exactly match an attachments[].name on the same task, so send the attachment in the same call. A YouTube, Vimeo, Loom, Wistia, Figma, Notion, Google Docs or Sheets, Calendly, or Cal.com link alone on its own line shows as an embedded card; a [text](url) link stays a link.
Each task attachments[] item can carry an optional addedIn that records where the file came from. It decides what happens when the file is removed:
description: added through the task description. The file leaves the task once no line in the description or the task's comments shows its[file: name]. The call that adds the file keeps it, so send the attachment and its line together. A file uploaded in the app's task window comes back when its line and attachment are sent back right away.task: made for this task, such as a file uploaded on the task's Files tab.- Left out: a file attached from Files, or an older attachment. Removing it only unlinks it from the task.
When a description or task file leaves the task, a client file is deleted from the client's Files, with its comments, unless another task still uses it. A workspace library file is only unlinked. Set addedIn only on files you created for the task: tagging an existing Files entry makes it deletable when it leaves the task.
Start dates control what the client sees. A task with a future startAt, and a milestone with a future startDate, stay hidden from the client until that moment. A hidden milestone also hides its tasks, its files, and the flows sent from its tasks. Send the start of the day in the agency's time zone as an ISO timestamp; a null start date shows the item right away. The agency always sees everything. Starting a milestone early through transition moves its start date to now, so the client sees it immediately.
In the client portal, client-team members can open the same task details from the Tasks view or from a task inside a milestone. They can save all four task statuses, reassign client-owned tasks within the same account, and manage files allowed by the task's permissions. Agency-owned and unassigned tasks are read-only in the client portal. The task Activity tab shows recorded task history.
Messages and Attachments
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /accounts/{accountId}/messages | List messages or send a client message/internal note. |
PATCH, DELETE | /accounts/{accountId}/messages/{messageId} | Mark a message as read or soft-delete it. |
POST | /accounts/{accountId}/messages/attachments | Upload a message attachment with multipart/form-data. |
GET | /accounts/{accountId}/messages/{messageId}/attachments/{attachmentIndex} | Retrieve an attachment associated with a message. |
Set kind to message for client-visible communication or note for an internal agency note. A message must include a non-empty body or at least one attachment. Creating a client-visible message can notify the client.
An agency message can include an optional subject of up to 300 characters. The subject is ignored on notes and thread replies. When the workspace has Gmail connected, a message with a subject is sent as a real email from that Gmail address to the client people in the conversation, instead of the usual new-message notification. Replies in that message's thread continue the same email thread as Re: <subject>. Without a connected Gmail, the subject is saved and shown in bold above the message, and the client gets the usual notification. Message responses include subject, which is null when there is none.
To send a message, note, thread reply, or comment later instead of now, use Scheduled Sends.
Change Who Can See a Conversation
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /conversations | List conversations, or start one with its first message. |
GET | /conversations/{conversationId} | List agency teammates who can see this client and could be added to the conversation by name. |
PATCH | /conversations/{conversationId} | Add people by name, or change who else can see the conversation. |
GET, POST | /conversations/{conversationId}/messages | Read or send messages in one conversation. |
Besides the people named in it, a conversation can be visible to two groups: team (agency teammates with access to this client) and client (everyone else at the client company). Each group has on (can see it), canReply, and notify (gets new-message notifications). New agency conversations start with both groups off. The main conversation is always visible to everyone, so its access cannot change.
A PATCH body accepts participantIds (client people from this conversation's company), staffUserIds (teammates who can see this client), and access. Groups you leave out of access keep their current settings. Send at least one person or one access change. For example, to let everyone at the client company read and reply without notifying them:
{ "access": { "client": { "on": true, "canReply": true, "notify": false } } }
The response lists the people added and the conversation's access after the change. A conversation holds up to 25 named people. Only callers who can reply in the conversation can change it; a caller who can only read gets HTTP 403. When you narrow the team's access, you are named in the conversation so it always keeps a teammate who can answer. Changing access sends no message. The same access, staffUserIds, and the older sharedWithCompany switch are accepted when starting a conversation with POST /conversations.
Scheduled Sends
You can schedule a client message, internal note, thread reply, or comment to go out at a later time. A scheduled item is stored on its own, not in the conversation. Until it is sent, nobody else can see it, nobody is notified, and it does not count as unread.
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /scheduled-sends | List your open scheduled items or schedule a new one. |
PATCH, DELETE | /scheduled-sends/{scheduledId} | Edit the text or time of a scheduled item, or cancel it before it is sent. |
These endpoints require the client-management permission (can_create_clients). Each person only sees and manages the items they scheduled themselves. Items the same user scheduled in the app or through MCP appear here too.
Schedule a Send
A schedule request has three fields:
path: the send route to run later, relative to/workspaces/{workspaceId}/portal.body: exactly what you wouldPOSTto that route to send it now.sendAt: the date and time to send, in ISO 8601 format with a time zone offset, such as2026-11-10T09:00:00-05:00or2026-11-10T14:00:00Z. It must be in the future and no more than one year ahead. A time without an offset is rejected.
path | What it sends |
|---|---|
accounts/{accountId}/messages | A client message (kind: "message") or internal note (kind: "note") on an account. |
conversations/{conversationId}/messages | A message in a conversation. Set replyTo to a message ID to reply in that message's thread. |
accounts/{accountId}/comments | A comment on a client's task, milestone, or file. The body is { "targetType": "task", "targetId": "...", "body": "..." }, with targetType set to task, milestone, or file. |
tasks/{taskId}/comments | An internal comment on a workspace task. |
files/{fileId}/comments | An internal comment on a workspace-library file. |
file-groups/{groupId}/comments | A comment on a workspace-library file group (folder). |
curl -X POST \
"https://api.360onboard.com/v2/workspaces/workspace_uuid/portal/scheduled-sends?apiKey=sk_live_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: schedule-weekly-update-8472" \
-d '{
"path": "accounts/account_uuid/messages",
"body": {
"kind": "message",
"body": "<p>Your weekly report is ready. Take a look when you have a minute.</p>"
},
"sendAt": "2026-11-10T09:00:00-05:00"
}'
A successful request returns HTTP 201:
{
"scheduled": {
"id": "00000000-0000-4000-8000-000000000201",
"kind": "message",
"url": "/api/v2/portal/accounts/account_uuid/messages",
"path": "accounts/account_uuid/messages",
"targetKey": "accounts/account_uuid/messages||",
"text": "Your weekly report is ready. Take a look when you have a minute.",
"internal": false,
"richText": false,
"attachmentCount": 0,
"sendAt": "2026-11-10T14:00:00.000Z",
"status": "scheduled",
"error": null,
"createdAt": "2026-11-07T18:30:00.000Z",
"sentAt": null,
"undoSend": false
}
}
sendAt is always returned in UTC. text is a plain-text preview of the body. internal is true for internal notes. richText is true when a chat message has formatting or mentions beyond plain paragraphs and line breaks. undoSend is true for a message held for undo (see below).
Notes on the body:
- It is checked when you schedule, using the same rules as sending now. A message needs a non-empty
bodyor at least one attachment. A comment needs 1 to 4,000 characters. - Leave out
expectedContextRevision. If you include it, it is removed. A scheduled message is sent to the conversation as it is at send time, including any replies posted after you scheduled it. - If you leave out
clientMessageId(messages) orclientRequestId(comments), one is created for you, so a retried delivery posts the item only once. - To attach files, upload them first with
POST /accounts/{accountId}/messages/attachments, then put the returned attachment objects in the body'sattachmentsarray.
For accounts/... paths, the account must be one you can access when you schedule. Other paths are only checked at send time, so check the list for failures. You can have up to 100 open items (scheduled, sending, or failed) at a time. Send an Idempotency-Key with the schedule request and reuse it when retrying an uncertain request, so the same item is not scheduled twice.
Hold a Message So It Can Be Undone
Add "undoSend": true to hold a message for 30 seconds, the same as Undo send in the app. Use it to give a person a short window to take a message back before the client sees it.
- The server sets the send time to 30 seconds from now.
sendAtis still required but is ignored, so any valid time works. - Only the two message paths can be held:
accounts/{accountId}/messagesandconversations/{conversationId}/messages. A comment path returns400. - Unlike a later scheduled send, the
bodymust includeexpectedContextRevisionfrom your latest full read of the messages, just as a direct agency reply does. A missing or out-of-date revision returns409withreply_context_conflict. Read the messages again, check the reply still fits, and retry. - To undo, send
DELETE /scheduled-sends/{scheduledId}before the 30 seconds are up. A held message that already went out cannot be cancelled. - If you do nothing, the per-minute job sends it, so expect it to arrive up to a minute or so after the 30 seconds.
What Happens at Send Time
A job runs every minute and sends items that are due. Expect an item to go out within a minute or two after its sendAt. It is sent through the same route as an immediate send, as the person who scheduled it. At that moment the normal checks run again: your permission, Client Portal availability, whether the account, conversation, task, or file still exists, and the body rules. Notifications and webhooks fire just as they would for an immediate send.
| Result | What happens |
|---|---|
| Sent | The item is posted and no longer appears in the list. Read the conversation or comments to see it. |
| Temporary error (timeouts, rate limits, or server errors) | The item stays scheduled, error shows the last problem, and it is tried again on the next run, up to 5 attempts. |
| Lost access, missing target, or invalid body | The item becomes failed and error explains why. It is not retried on its own. |
List, Edit, Reschedule, and Cancel
GET /scheduled-sends returns { "scheduled": [...] } with your items whose status is scheduled, sending, or failed, soonest first, up to 200 items. Sent and cancelled items are not listed. To narrow the list to one composer, pass the targetKey value from an item, URL-encoded, for example ?targetKey=accounts/account_uuid/messages||.
PATCH /scheduled-sends/{scheduledId} takes text, sendAt, or both:
{
"text": "Your weekly report is ready. I added the October numbers too.",
"sendAt": "2026-11-10T10:30:00-05:00"
}
textis plain text, up to 8,000 characters. Changing a chat message's text replaces its formatting and mention links with plain text; line breaks are kept. Sending the same text leaves the original formatting unchanged.- The path, attachments, and other body fields cannot be changed. To change them, cancel the item and schedule a new one.
- Only
scheduledandfaileditems can be edited. Saving afaileditem tries it again: at the newsendAtif you send one, otherwise at its original time if that is still in the future, or about one minute from now if it has passed.
DELETE /scheduled-sends/{scheduledId} cancels an item and returns { "cancelled": true }. Cancelling an item that is already cancelled also succeeds.
Scheduled Send Errors
| Code | Meaning |
|---|---|
400 | Invalid fields, a path that cannot be scheduled, a time in the past or more than one year ahead, nothing to update, or a body that would fail to send. |
403 | The API key's user lacks the client-management permission, or Client Portal is not available. |
404 | The account in path is not one you can access, or the scheduled item does not exist or belongs to someone else. |
409 | The item is being sent right now, or was already sent or cancelled. |
429 | You already have 100 open scheduled items, or the API rate limit was reached. |
503 | Scheduled sending is not available in this environment. |
Client portal members can also schedule messages and comments from their own portal. Their scheduled items are private to them and do not appear in this API.
Files, File Groups, Comments, and Annotations
Account paths manage files belonging to one client. Top-level /files and /file-groups paths manage reusable workspace-library resources.
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /accounts/{accountId}/file-groups | List or create account file groups. |
PATCH, DELETE | /accounts/{accountId}/file-groups/{groupId} | Update or soft-delete an account file group. |
GET, POST | /accounts/{accountId}/files | List or create account file records. |
GET, PATCH, DELETE | /accounts/{accountId}/files/{fileId} | Read, update, or soft-delete an account file. |
GET, POST | /file-groups | List or create workspace-library groups. |
PATCH, DELETE | /file-groups/{groupId} | Update or soft-delete a workspace-library group. |
GET, POST | /files | List or create workspace-library files. |
GET, PATCH, DELETE | /files/{fileId} | Read, update, or soft-delete a workspace-library file. |
GET, POST, PATCH | /files/{fileId}/comments | List, create, resolve, or reopen internal workspace-file comments. |
GET, POST | /files/{fileId}/annotations | List visual annotations or add a pin/reply. |
PATCH, DELETE | /files/{fileId}/annotations/{annotationId} | Edit, resolve, or soft-delete an annotation. |
File records support purpose, format, kind, storage path or URL, description, approval and contract state, access rules, versions, and display order. A file description is Markdown, with the same headings, emphasis, lists, quotes, and links as task descriptions; plain text shows as written. Creating a file record does not upload binary content unless the specific endpoint uses multipart/form-data.
Invoices, Members, and Internal Notes
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /accounts/{accountId}/invoices | List invoices or create one. |
GET, PATCH, DELETE | /accounts/{accountId}/invoices/{invoiceId} | Read, update, or soft-delete an invoice. |
GET | /accounts/{accountId}/invoices/{invoiceId}/pdf | Generate and download the invoice PDF. |
POST | /accounts/{accountId}/invoices/{invoiceId}/send | Queue an invoice email; requires a stable Idempotency-Key. |
GET | /accounts/{accountId}/invoices/{invoiceId}/send | Read the latest recipient delivery outcomes. |
POST | /accounts/{accountId}/invoices/{invoiceId}/payment | Record a full external payment confirmed by the agency. |
POST | /accounts/{accountId}/invoices/{invoiceId}/payment-link | Create a private pay link for one invoice. See Invoice pay links. |
GET, POST | /accounts/{accountId}/members | List members or provision/invite a member. |
DELETE | /accounts/{accountId}/members/{memberId} | Remove a member from the account. |
POST | /accounts/{accountId}/members/{memberId}/password | Set the member's portal password. |
POST, DELETE | /accounts/{accountId}/members/{memberId}/photo | Upload or remove the member's profile photo. |
GET, POST | /accounts/{accountId}/notes | List or create agency-only account notes. |
PATCH, DELETE | /accounts/{accountId}/notes/{noteId} | Update or soft-delete an internal note. |
POST | /accounts/{accountId}/meet | Create a Google Meet and send the join link to the client. |
Invoice creation requires amount (the pre-tax subtotal) and supports currency, status, dates, memo, billing details, line items, payment options, external-payment instructions, and recurring-billing metadata. Payment timestamps and references are response fields; use the dedicated payment endpoint to record an external receipt. Member invitations, milestone reminders, client-visible messages, and meeting creation can send external notifications.
Calendar and Client Booking
| Method | Endpoint | Purpose |
|---|---|---|
GET | /calendar | List meetings, task dates, and milestone dates in a date range. |
POST | /calendar/meetings | Schedule a meeting. |
GET, PATCH, DELETE | /calendar/meetings/{meetingId} | Read, edit or reschedule, or cancel a meeting. |
POST | /calendar/conflicts | List overlapping meetings without saving anything. |
POST | /calendar/meet-link | Create a Google Meet room link. |
GET, PUT | /calendar/settings | Read or save your own time zone, weekly hours, and hidden calendar item types. |
GET, PUT | /calendar/booking/settings | Read or save client booking settings and which calendar links clients see. |
GET, POST | /calendar/booking/event-types | List or create the kinds of meeting offered. |
PUT, DELETE | /calendar/booking/event-types/{eventTypeId} | Update or delete an event type. |
PUT | /calendar/booking/event-types/{eventTypeId}/my-hours | Set your own hours for one event type. |
GET | /calendar/booking/slots | List open times for an event type. |
GET, POST | /calendar/booking/requests | List meeting requests in a thread, or schedule a meeting with a client. |
POST | /calendar/booking/requests/{requestId} | Accept, decline, or suggest another time for a request. |
GET /calendar takes from and to (ISO 8601 with an offset, at most 400 days apart) and optional accountId, types (meeting, task, milestone), memberId, and includeCancelled=true. It returns {range, meetings, tasks, milestones}. Teammates limited to specific clients see only those clients plus meetings they organize or attend.
Creating a meeting takes title, startsAt, and endsAt, plus optional timeZone, accountId (null for an internal meeting), description, locationType (video, phone, in_person, or custom), location, joinUrl, internalNotes, organizerUserId, and attendees. Attendees are {type: "team", userId}, {type: "client", personId} for a contact on accountId, or {type: "external", email, name}. Create and update return {meeting, conflicts}; conflicts warn about overlapping meetings and never block the save. Cancelling keeps the record and is safe to repeat. Clients only see meetings on their own account that they are invited to, and never see internalNotes. Each team member connects their own Google Calendar in the app (Calendar settings), not through the API; meetingClient booking. PUT /calendar/booking/settings with enabled: true turns on booking open times inside 360Onboard (it needs Google Calendar); false uses the agency's saved calendar links, the same ones onboarding flows use. Clients only see booking once the agency has set it up: the Book a meeting button stays hidden until 360Onboard can offer open times or at least one calendar link is shown. When 360Onboard can't offer its own open times (booking is off, no event type is visible to clients, or a host still needs to connect Google Calendar or save hours), clients book on the saved links instead, minus those in hiddenBookingLinkIds (leave it out to keep the list, send [] to show all). Booking settings responses include bookingLinks ([{id, name, url}], read-only), bookingLink (the first of them), selfBookingOpen (true), and notReady ([{name, reason}], the people holding booking back, with reason no_calendar, calendar_disconnected, or no_hours). Other settings: availabilityMode, useConversationPeople, requiresApproval, durationMinutes, minNoticeHours, maxDaysAhead, bufferBeforeMinutes and bufferAfterMinutes (0 to 240, free time kept around busy events), blockAllDayEvents (false lets all-day events such as bill reminders not block booking), mainBookingLinkId, inviteTeamMembers (false keeps teammates off the Google invite), clientCalendarEnabled (false stops clients connecting their own Google Calendar; when connected, clients only see times they are free, and we only read busy times, never event details), and reminderRules. Updates take expectedRevision. Writing booking settings and event types needs the workspace owner or an admin.
Meeting reminders. reminderRules is {attendees: [{minutes, templateId?}], hosts: [{minutes, templateId?}]}, at most five each, 5 to 20160 minutes before the start. Attendees (clients and their guests) get a reminder card in the thread and a Meeting reminder email with the calendar file; hosts (the organizer and teammates on the meeting) get an email. templateId gives one reminder its own email (a custom email template in this workspace, made with POST /email-templates), so a reminder a day out can help people prepare while one minutes before just sends the join link; without it, or if that template is deleted, the shared Meeting reminder or Host meeting reminder email is sent. Defaults are 1440 and 60 minutes for attendees and none for hosts. An event type's reminderRules (and rules for notice and buffers) replace the workspace ones for that type; null uses the workspace values. Each reminder is sent once; rescheduling moves it, cancelling drops it, and reminders whose time has already passed when a meeting is booked are skipped.rations, notice, and how far ahead) only apply once booking open times inside 360Onboard is turned on. Writing booking settings and event types needs the workspace owner or an admin.
External invoice payments
When an agency receives an invoice payment outside Stripe, it can record the full receipt through POST /v2/workspaces/{workspaceId}/portal/accounts/{accountId}/invoices/{invoiceId}/payment?apiKey=YOUR_SERVER_KEY. This records the agency-confirmed payment; it does not contact a bank, transfer money, or charge a payment method. The invoice must be eligible for an external payment and cannot be a draft, subscription setup invoice, or recurring template. The endpoint reconciles any unfinished Stripe attempt before settling the invoice. A checkout in progress, an unsafe Stripe attempt, a conflicting settlement, or an ineligible invoice returns 409.
The required paidAt value must include Z or an explicit timezone offset. paymentMethod is ach, bank_transfer, cash, check, or other; paymentRef is optional, trimmed, and limited to 500 characters. An optional Idempotency-Key makes API retries safe within the normal API cache. Repeating the operation after a successful settlement as the same agency actor returns the existing invoice without changing its original payment details or sending another paid receipt; the body must still be valid.
POST /v2/workspaces/00000000-0000-4000-8000-000000000001/portal/accounts/00000000-0000-4000-8000-000000000101/invoices/00000000-0000-4000-8000-000000000701/payment?apiKey=YOUR_SERVER_KEY
Content-Type: application/json
Idempotency-Key: bank-transfer-INV-1042
{
"paidAt": "2026-10-15T12:00:00-07:00",
"paymentMethod": "ach",
"paymentRef": "TRANSFER-1042"
}
A successful 200 response contains the invoice with status: "paid", the recorded payment date and method, the agency actor and recording timestamp. It also writes the normal paid activity and retries eligible service fulfillment. For enrolled invoices, the first transition to paid queues the editable Invoice paid email described below. Invalid input returns 400, missing or out-of-scope resources return 404, missing capability returns 403, and an unexpected server failure returns 500. Do not treat a server error as proof that settlement failed; check the invoice before retrying.
Invoice amount is the tax-inclusive total in responses; create and update payloads use amount as the pre-tax subtotal. paymentMethods accepts unique stripe and/or external choices. It defaults to both when Stripe Connect is available and otherwise to external only; subscription billing requires Stripe. externalPaymentUrl accepts HTTP or HTTPS URLs and externalPaymentInstructions accepts plain text supported by invoice PDFs. Create requests cannot set status to paid; generic updates cannot mark an unpaid invoice paid, reopen a paid invoice, or reprice a paid invoice. Use the payment endpoint for an external receipt.
Invoice emails
For the agency and client walkthrough, see Send Invoices and Payment Receipts in 360Onboard.
With Client Portal and client-management permission, POST /v2/workspaces/{workspaceId}/portal/accounts/{accountId}/invoices/{invoiceId}/send?apiKey=YOUR_SERVER_KEY queues an email for the existing payable invoice. It does not duplicate the invoice or charge a payment. Drafts become sent. Subscription setup, future-dated invoices, and nonpayable recurring templates retain their existing behavior.
Send a required Idempotency-Key header of 1–200 letters, numbers, dots, underscores, colons, or hyphens. There is no request body. Reuse the same key for a retry; use a new key only for an intentional resend. The invoice operation remains deduplicated beyond the general 24-hour API response cache. A successful response is 202 with queued, operationKey, recipientCount, and message. Queueing does not confirm provider acceptance or inbox delivery.
Recipients are the account's current client portal members with email addresses, deduplicated by normalized email. The first enqueue snapshots recipients and invoice details. The free-form billTo display lines do not choose recipients, and retries do not add new members. The email uses the workspace's editable Invoice ready template, brand color, sender, reply-to, and SMTP/provider settings. Both invoice email defaults omit a logo; agencies can add a Logo block in the editor if desired. View invoice opens the invoice's private pay link, described below. A client already signed in to that client's portal goes straight to the invoice in the portal; anyone else sees the invoice and can pay it without signing in. Payment reminder emails use the same link.
GET on the same /send path requires client-view permission and returns deliveries, at most the latest 100 records in newest-first order. Each contains id, kind, operation_key, recipient_email, status, attempts, created_at, updated_at, and last_error. There is no pagination on this read. Statuses are queued, running, accepted, unknown, failed, or skipped. accepted confirms provider acceptance only. Unknown outcomes stop automatic retries to avoid duplicate mail. Missing recipients leave a failed paid-receipt record; removed members, disabled templates, or changed payment status can be skipped.
For invoices enrolled in this email workflow, a full online payment or agency-recorded external payment queues one Invoice paid confirmation per snapshotted recipient. Subscription setup anchors do not generate receipts; actual paid cycle invoices do. Existing paid invoices are not backfilled. Both email defaults are editable under Email templates; disabling one prevents its delivery.
Missing/invalid keys return 400; unavailable scoped resources return 404; absent recipients, ineligible invoices, or conflicting/in-progress API reservations return 409. Ordinary API authorization, plan, rate-limit, and server errors also apply. Retry an uncertain send request with its original key. In MCP, use portal_invoices_manage with send plus idempotency_key, or email_status to inspect outcomes; both require account_id and resource_id.
Invoice pay links
POST /v2/workspaces/{workspaceId}/portal/accounts/{accountId}/invoices/{invoiceId}/payment-link?apiKey=YOUR_SERVER_KEY returns { "url": "...", "expiresAt": "..." }: the same private pay link the invoice email button opens. It requires Client Portal with can_view_invoices and can_manage_invoices. There is no request body. Nothing is emailed and no payment is made.
The link is valid for 90 days. It opens a page for that one invoice that needs no client portal sign-in. From it, the client can pay the invoice (one-time with Stripe or Square, or start a recurring invoice) and download its PDF, and nothing else. Managing an existing subscription still needs portal sign-in. A client who is already signed in to that client's portal is sent straight to the invoice inside the portal instead.
The link works like a password for that invoice, so share it only with the client. A draft invoice has no pay link and returns 409; send the invoice first. Each call signs a new link with a fresh expiry, and earlier links stay valid until they expire. GET on the invoice also returns payment_link (null for a draft). In MCP, use portal_invoices_manage with payment_link, account_id, and resource_id. In the app, agencies can use Copy pay link on the invoice.
Agent Support
| Method | Endpoint | Purpose |
|---|---|---|
POST | /workspaces/{workspaceId}/agent-support/messages | Ask Agent Support a product/API question or continue a support conversation. |
GET | /workspaces/{workspaceId}/agent-support/conversations/{conversationId} | Retrieve a support conversation and its escalation status by turn. |
Submit a concise goal and issue with a UUID idempotency key. Reuse the same key and request when retrying a timed-out support turn. To ask for a person, explicitly set request_human_support to true; it defaults to false, and support never sends an escalation email based on its own inference. An explicit request sends a report email to david@360onboard.com and returns a human_support status. accepted means the email provider accepted the message; it does not confirm delivery or reading. If status is unknown, do not create another escalation just to retry; inspect the conversation first.
{
"idempotency_key": "88888888-8888-4888-8888-888888888888",
"goal": "Connect a published flow to our CRM",
"attempted_tool": "flow_get",
"issue": "The API response does not show the configured inbound field mapping.",
"expected": "The mapping should be visible in the published flow definition.",
"observed": "The returned flow has no inbound mapping details.",
"request_human_support": true
}
A support response includes conversation and turn IDs, a status, and an answer string, which is nullable while the turn has no completed answer. It does not return an answers array. HTTP 400 reports invalid_json or invalid_request; HTTP 409 reports idempotency_conflict. HTTP 429 and 503 may contain either the standard error object or a support result, depending on whether the limit/error came from API authentication or the support service. Retry using the same idempotency key and request; Retry-After is returned whenever the route knows the wait time, including HTTP 202/429 or an HTTP 200 escalation result with human_support.status: rate_limited. When escalation was requested, human_support reports its status and may include a report ID, retry delay, and provider acceptance timestamp. Conversation-history turns include human_support as an object or null; a recorded status object may also contain its turn_id. Support-message requests and human-escalation emails each have a separate limit of 12 per hour per authenticated owner/API actor, shared across that actor's workspaces, in addition to the standard API limit.
Portal Templates and Saved Replies
| Method | Endpoint | Purpose |
|---|---|---|
GET, POST | /home-templates | List or create reusable portal-home layouts. |
PATCH, DELETE | /home-templates/{templateId} | Update or soft-delete a home template. |
GET, POST | /milestone-library | List templates/playbooks or create one. |
PATCH, DELETE | /milestone-library/{kind}/{id} | Update a milestone template or delete a template/playbook. |
POST | /milestone-library/copy | Copy selected milestone templates and their tasks to an account. |
GET, POST | /saved-replies | List or create message-composer saved replies. |
DELETE | /saved-replies/{id} | Soft-delete a saved reply. |
Using Client Portal Through MCP
The same Client Portal capabilities are available to connected AI agents through the 360Onboard MCP server at https://app.360onboard.com/api/mcp. MCP uses OAuth instead of an API key. See Connect 360Onboard to Claude & ChatGPT with MCP for setup instructions.
The MCP exposes these Client Portal tools:
portal_capabilities_list— discover every available portal route and payload contract.portal_accounts_manage— accounts, activity, engagement, comments, and account customization. For task activity, passquery.paginate=1,query.targetType=task, andquery.targetId; continue with both returned cursor fields. Client-audience reads omit internal events and return the sametask_not_found404 for hidden, deleted, or nonexistent tasks.portal_tasks_manage— account tasks, workspace tasks, moves, and internal comments.portal_milestones_manage— milestones, transitions, publishing, and reminders.portal_messages_manage— messages, internal notes, attachments, read state, and deletion.portal_broadcasts_manage— preview audiences, draft, publish, schedule, end, or delete portal-only top bars, sidebar banners, and posters.portal_scheduled_sends_manage: schedule a message, note, thread reply, or comment for later withschedule(payload{path, body, sendAt}), thenlist,update(payload{text?, sendAt?}), orcancelit. See Scheduled Sends.portal_files_manageandportal_file_groups_manage— account and workspace-library resources, comments, and annotations.portal_invoices_manage— invoices and PDFs, external-payment recording (record_payment), invoice email (sendwithidempotency_key), and delivery outcomes (email_status), and private pay links (payment_link).portal_members_manageandportal_notes_manage— portal access and agency notes.portal_workspace_manage— summaries, conversations, flow choices, ledger, configuration, profile, link previews, and meetings.portal_calendar_manage— the calendar, meetings (schedule, reschedule, cancel), your calendar settings, client booking settings and the calendar links clients see, event types, open times, and meeting requests.portal_templates_manage— home templates, milestone templates/playbooks, account copies, and saved replies.portal_request— an escape hatch for routes returned byportal_capabilities_listwhen no specialized tool covers the operation.
Only MCP actions that delete or remove something default to a dry run: deletes, cancelling a scheduled send, cancelling a meeting, deleting an event type, removing a portal member, removing a profile photo, and DELETE requests sent through portal_request. These return a preview until the agent repeats the operation with dry_run=false and confirm=true. Every other action, including creates, updates, milestone publishing and reminders, portal-password changes, and meeting creation, runs right away and ignores dry_run. This protection is specific to MCP; REST API callers are responsible for implementing their own confirmation and authorization controls.
Invoice design and uploaded fonts
These endpoints use the same workspace permissions, validation, revision checks, and renderer as Settings Client Portal Invoice design.
GET /v2/workspaces/{workspaceId}/portal/invoice-designreturnsdesign,revision,logoUrl, the saved workspacetheme, andfontWeights(the extra weight files saved for the invoice's own custom font). Requirescan_view_clients.PUT /v2/workspaces/{workspaceId}/portal/invoice-designsaves{ "design": <complete design>, "expectedRevision": <revision from GET> }. OptionalserviceInvoiceLinessets how order form invoices list a purchase:single(the default) shows one line with the service, anditemizedlists the service, then each priced answer the client picked with its own price. Omit it to keep the saved choice. OptionalfontWeightssaves extra weight files for the custom font (see below); omit it to keep the saved ones, which are cleared whencustomFontUrlchanges. Requirescan_manage_settings. A stale revision returns409; read and reconsider before retrying.POST /v2/workspaces/{workspaceId}/portal/invoice-design/fontaccepts multipart fieldfile: TTF, OTF, WOFF, or WOFF2, up to 5 MiB. Requirescan_manage_settings. It validates the actual font and returnscustomFont,customFontUrl, andcustomFontVariable.customFontVariableis read from the font file itself:truemeans it is a variable font that holds every weight, so no extra weight files are needed. Uploading stores a public workspace branding asset; it does not save settings, change Client theme, issue an invoice, or send an email. For the public API, the optionalIdempotency-Keyheader supports identical retries within the general 24-hour replay window. Without it, each retry creates a new asset. UI and MCP uploads do not retry automatically.POST /v2/workspaces/{workspaceId}/portal/invoice-design/previewaccepts{ "design": <complete design>, "receipt": false }and returns a sample PDF. Requirescan_view_clients.receipt:truepreviews a paid receipt.sample: "order"previews a paid order form receipt instead, laid out byserviceInvoiceLines(singleoritemized). OptionalfontWeightspreviews unsaved weight files; without it, the saved ones are used whilecustomFontUrlis unchanged. An unavailable or incompatible font returns422; no invoice or payment is created.
Append ?apiKey=YOUR_SERVER_KEY to each endpoint. Ordinary API authorization, workspace access, rate limits, and server errors apply. Invalid design/font input returns 400. Font URLs from another workspace or external sources are rejected.
To use an uploaded invoice font, read the design, upload the file, set design.font to "custom", copy the returned customFont and customFontUrl, and save the complete design with the read revision. The design also includes layout (classic, minimal, studio, wave), accentColor, backgroundColor, showLogo, logoSize (small, medium), businessName, address, email, taxId, notes, and footer. font:null and accentColor:null follow the saved workspace Client theme dynamically. backgroundColor:null uses pure white independently of Client theme. Built-in font overrides are default, editorial, and rounded. To remove the invoice font, omit customFont and customFontUrl and set font:null.
A custom font often comes as separate files, one per weight (Regular, Semibold, Bold). Upload each file, then send fontWeights: { "customFontFaces": [{ "url": <upload result>, "weight": 600, "fileName": "Brand-SemiBold.ttf" }], "customFontVariable": false }. The main customFontUrl file is Regular (400); each extra file has a weight from 100 to 900 other than 400, one file per weight. Set customFontVariable to the value the upload returned for the main file. PDFs draw bold text from the file closest to 700. Weight files belong to the main file they were saved with and are ignored if it changes. This leaves Client theme unchanged and applies to invoices and receipts, including existing downloads.
MCP exposes the same workflow through portal_invoice_design_manage: get, font_upload with file_name and file_base64 (it also returns customFontVariable), update with the complete design, expected_revision, and optional font_weights, and preview. Upload alone does not save the design.
Webhooks V2
Webhooks let 360Onboard notify your server instead of requiring you to poll the API. V2 intentionally supports three high-value events:
| Event | When it fires | Included data |
|---|---|---|
flow.created | A V2 flow is published for the first time. | Complete sanitized flow, steps, design, timestamps, and public URL. |
client.created | A client onboarding is created. | Client identity, progress, complete flow, and final onboarding URL. |
client.completed | A client completes the flow and final storage processing settles. | Client, flow, typed response steps, uploads, signed documents, payments, grants, and audit information. |
Configure an endpoint in Settings APIs, Webhooks & MCP Webhooks, or use the webhook-endpoint API described below. New V2 endpoint URLs must use public HTTPS addresses.
Event Envelope and Headers
Every webhook is an HTTPS POST containing an immutable event snapshot.
POST https://your-server.com/360onboard/webhook
Content-Type: application/json
User-Agent: 360Onboard-Webhooks/2.0
X-360Onboard-Webhook-Id: event_uuid
X-360Onboard-Event: client.completed
X-360Onboard-Timestamp: 1787853600
X-360Onboard-Signature: t=1787853600,v1=a1b2c3...
X-360Onboard-Delivery-Attempt: 1
{
"id": "event_uuid",
"object": "event",
"api_version": "v2",
"type": "client.completed",
"workspace_id": "workspace_uuid",
"created_at": "2026-08-27T18:00:00Z",
"data": {
"client": {},
"flow": {},
"response": {}
}
}
flow.created
{
"type": "flow.created",
"data": {
"flow": {
"id": "flow_uuid",
"name": "Q3 Client Onboarding",
"status": "published",
"public_url": "https://onboard.acme.com/q3-onboarding",
"steps": []
}
}
}
client.created
{
"type": "client.created",
"data": {
"client": {
"id": "client_uuid",
"full_name": "Jane Smith",
"email": "jane@acme.com",
"company_name": "Acme Corp",
"flow_id": "flow_uuid",
"flow_name": "Q3 Client Onboarding",
"url": "https://onboard.acme.com/jane-smith",
"progress": {},
"flow": {}
}
}
}
client.completed
{
"type": "client.completed",
"data": {
"client": {},
"flow": {},
"response": {
"id": "response_uuid",
"status": "completed",
"completed_at": "2026-08-27T18:00:00Z",
"steps": [
{
"id": "upload-step",
"type": "questionnaire",
"status": "completed",
"fields": [
{
"id": "brand_assets",
"label": "Upload your brand assets",
"type": "file",
"value": {
"object": "file",
"name": "brand-assets.zip",
"storage_provider": "google_drive",
"storage_connection_id": "00000000-0000-4000-8000-000000000801",
"url": "https://drive.google.com/file/d/final-file-id"
}
}
]
},
{
"id": "contract-step",
"type": "esignature",
"status": "completed",
"signers": [],
"document": {
"status": "completed",
"url": "https://project-ref.supabase.co/storage/v1/object/public/360onboard-files/owner_uuid/flow_uuid/signed-documents/platform/contract_key/pdf_hash.pdf",
"storage_provider": "supabase",
"sha256": "document_hash",
"finalized_at": "2026-08-27T17:59:58Z"
},
"audit_events": []
}
]
}
}
}
Final Cloud-Storage URLs
For client.completed, 360Onboard waits while queued or active cloud-storage transfers settle. A file answer that finishes mirroring can use the connected-provider URL and includes storage_connection_id, the original workspace connection UUID when known. This value is null for platform-stored files and legacy files without recorded provenance. Client Portal file and attachment metadata uses the camelCase field storageConnectionId; each version retains its own connection ID. Changing the preferred upload account never retargets these existing references. These IDs are provenance fields only: the public V2 API does not expose routes for connecting or managing storage accounts; use Settings or MCP for those actions.
Signed contracts follow a separate retention rule. When V2 completion processing runs or retries, it recovers missing contract-copy queue requests; this does not sweep previously completed submissions. Existing copy jobs keep their original destination; if no job was saved, recovery uses the currently preferred connected account. Before the submission completes, the initial copy request remains best effort. New contracts keep a permanent 360Onboard storage URL and report storage_provider: "supabase"; a connected account receives a separate agency copy, which does not replace or delete the platform copy. When an authorized response-detail or contract-media read opens an older external contract, 360Onboard attempts to retain the original PDF on the platform and verifies its recorded SHA-256 when available. A successful copy updates the stored reference while preserving the original signature evidence. If copying fails or the source is unavailable, the existing reference remains so a later read can retry. Bulk response lists and multi-response exports do not start this copy-back. For links that predate hashes, public downloads may be used; retrieving a private provider file requires a server-recorded hash and matching storage provider. The client.completed response keeps its established fields, and completion emails link to the retained platform PDF.
Delivery History and Replay
V2 records every delivery attempt, including its status, attempt count, next retry time, HTTP response status/body, error, timestamps, and original event payload.
In 360Onboard, open Settings Developer Webhooks. Each V2 endpoint shows its ten most recent deliveries with the event type, success or failure, HTTP response code, and delivery time. Select a delivery to expand its attempts, request payload, response body, and error. Select Replay to send the original immutable event again.
Delivery history and replay are also available through the V2 API. The log lives in 360Onboard; it is not installed on the receiving website. A receiving application can maintain its own inbound log if desired.
GET /workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries
Use limit to request up to 100 recent deliveries.
{
"object": "list",
"data": [
{
"id": "delivery_uuid",
"object": "webhook_delivery",
"event_id": "event_uuid",
"event_type": "client.completed",
"status": "succeeded",
"attempts": 1,
"response_status": 200,
"response_body": "ok",
"last_error": null,
"delivered_at": "2026-08-27T18:00:02Z",
"payload": {}
}
]
}
Replay a delivery:
POST /workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/replay
Replay resets the delivery attempt and sends the original immutable event payload again. It does not rebuild the event from current database values.
Design receivers to be idempotent by storing X-360Onboard-Webhook-Id. If that event ID has already been processed, return a successful response without performing the downstream action twice.
Automatic Retries
Network errors and non-2xx responses are retried up to eight total attempts. The retry schedule is approximately:
- 1 minute
- 5 minutes
- 15 minutes
- 1 hour
- 4 hours
- 12 hours
- 24 hours
Return a 2xx response promptly after safely accepting the event. Perform slow downstream work asynchronously on your own system.
Verifying Webhook Signatures
Webhook V2 signatures are always enabled. Save the whsec_... secret shown when the endpoint is created.
To verify a request:
- Read the raw request body without parsing or reformatting it.
- Read
X-360Onboard-Timestampand reject stale timestamps. - Build the signed value as
timestamp.rawBody. - Calculate HMAC-SHA256 with the endpoint secret.
- Compare the hexadecimal result with the
v1value inX-360Onboard-Signatureusing a timing-safe comparison.
import crypto from "node:crypto";
export function verify360OnboardWebhook(rawBody, headers, secret) {
const timestamp = headers.get("X-360Onboard-Timestamp");
const signatureHeader = headers.get("X-360Onboard-Signature") || "";
const received = signatureHeader
.split(",")
.find((part) => part.startsWith("v1="))
?.slice(3);
if (!timestamp || !received) return false;
const ageSeconds = Math.abs(Date.now() / 1000 - Number(timestamp));
if (!Number.isFinite(ageSeconds) || ageSeconds > 300) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
const receivedBuffer = Buffer.from(received, "hex");
const expectedBuffer = Buffer.from(expected, "hex");
return receivedBuffer.length === expectedBuffer.length &&
crypto.timingSafeEqual(receivedBuffer, expectedBuffer);
}
Managing Webhook Endpoints Through the API
| Method | Endpoint | Purpose |
|---|---|---|
GET | /workspaces/{workspaceId}/webhook-endpoints | List V2 endpoints. |
POST | /workspaces/{workspaceId}/webhook-endpoints | Register an endpoint. The signing secret is returned once. |
PATCH | /workspaces/{workspaceId}/webhook-endpoints/{endpointId} | Update URL, subscribed events, or active state. |
DELETE | /workspaces/{workspaceId}/webhook-endpoints/{endpointId} | Delete an endpoint and its delivery history. |
POST | /workspaces/{workspaceId}/webhook-endpoints/{endpointId}/rotate-secret | Rotate the signing secret and return the replacement once. |
GET | /workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries | Inspect delivery attempts and original payloads. |
POST | /workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/replay | Replay the original event. |
Create an endpoint:
curl -X POST \
"https://api.360onboard.com/v2/workspaces/workspace_uuid/webhook-endpoints?apiKey=sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/360onboard/webhook",
"events": ["flow.created", "client.created", "client.completed"]
}'
The response contains the endpoint plus its signing secret. Store the secret immediately because it is not shown again. If it is lost, use the rotate-secret endpoint.
Errors and Rate Limits
Errors use a stable machine-readable code and human-readable message:
{
"error": {
"code": "response_not_found",
"message": "Response not found."
}
}
Common status codes:
200— successful read or action201— resource created400— invalid request401— missing or invalid API key403— API or Client Portal capability is not included for the account404— workspace or resource not found409— idempotency conflict429— rate limit exceeded500— server error
The public API allows 100 requests per minute per API key. Responses include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. A 429 response also includes Retry-After.
Use webhooks for real-time updates instead of repeatedly polling responses.
Storage and signed contracts: Completed signed contracts retain their primary copy on 360Onboard, and configured connected storage receives a separate agency copy. New signed-document snapshots therefore return the platform URL and storage_provider: "supabase"; transferred client uploads continue to return their connected-provider location. Authorized response-detail and contract-media reads attempt to copy older externally stored signed contracts back to the platform, validating the recorded PDF hash when available. Successful copies update the stored reference without deleting the agency copy. If copying fails or the original file is unavailable, existing references remain intact and later access can retry. Authentication, permissions, workspace scoping, response fields, and file access routes remain the same. Legacy or hashless historical links use public downloads only; private provider copies require a server-recorded PDF hash. Inaccessible historical files keep their original references. Bulk response lists and multi-response exports keep existing references without triggering historical transfers; opening an individual response or contract attempts copy-back. Completion emails link to the retained platform PDF.
Support: david@360onboard.com
The invoice editor uses the same Colors and Fonts controls as Client theme, with the preview in the middle and layout, logo, business details, and invoice content on the right. backgroundColor sets the page background for HTML and every PDF page. A null or omitted value uses pure white, independently of the workspace background. Reset branding restores inherited primary/font values and a pure white page background without modifying the Client theme.


