# Approve pending action Source: https://docs.sapt.ai/api-reference/actions/approve-pending-action https://api.sapt.ai/openapi.json post /actions/{actionId}/approve Approve a pending action. The action handler is executed immediately with the approver's identity. # Reject pending action Source: https://docs.sapt.ai/api-reference/actions/reject-pending-action https://api.sapt.ai/openapi.json post /actions/{actionId}/reject Reject a pending action. The action will not be executed. # Conversion insights Source: https://docs.sapt.ai/api-reference/ads/conversion-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/conversion Per-action-type conversion counts, values, and costs. # Conversion time-series insights Source: https://docs.sapt.ai/api-reference/ads/conversion-time-series-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/conversion-time-series Daily (or rolled-up) per-action-type conversion counts and values. # Create ad Source: https://docs.sapt.ai/api-reference/ads/create-ad https://api.sapt.ai/openapi.json post /socials/ads/ads/{projectId}/{accountId} Create a new ad within an ad set (PAUSED by default, pending review) # Create ad set Source: https://docs.sapt.ai/api-reference/ads/create-ad-set https://api.sapt.ai/openapi.json post /socials/ads/adsets/{projectId}/{accountId} Create a new ad set within a campaign (PAUSED by default) # Create campaign Source: https://docs.sapt.ai/api-reference/ads/create-campaign https://api.sapt.ai/openapi.json post /socials/ads/campaigns/{projectId}/{accountId} Create a new campaign (PAUSED by default for safety) # Delete ad Source: https://docs.sapt.ai/api-reference/ads/delete-ad https://api.sapt.ai/openapi.json delete /socials/ads/ads/{projectId}/{accountId}/{adId} Delete (archive) an ad. Cannot be undone. # Delete ad set Source: https://docs.sapt.ai/api-reference/ads/delete-ad-set https://api.sapt.ai/openapi.json delete /socials/ads/adsets/{projectId}/{accountId}/{adSetId} Delete (archive) an ad set. Cannot be undone. # Delete campaign Source: https://docs.sapt.ai/api-reference/ads/delete-campaign https://api.sapt.ai/openapi.json delete /socials/ads/campaigns/{projectId}/{accountId}/{campaignId} Delete (archive) a campaign. Cannot be undone. # Demographic insights Source: https://docs.sapt.ai/api-reference/ads/demographic-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/demographic Age/gender breakdown for a campaign, ad set, or ad. # Engagement insights Source: https://docs.sapt.ai/api-reference/ads/engagement-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/engagement Likes, comments, shares, saves, and other engagement actions for the entity. # Get ad accounts Source: https://docs.sapt.ai/api-reference/ads/get-ad-accounts https://api.sapt.ai/openapi.json get /socials/ads/accounts/{projectId}/{accountId} Get all ad accounts accessible by the connected Facebook account # Get ads hierarchy Source: https://docs.sapt.ai/api-reference/ads/get-ads-hierarchy https://api.sapt.ai/openapi.json get /socials/ads/hierarchy/{projectId}/{accountId}/{adAccountId} Get complete campaign/ad set/ad hierarchy in one optimized request. Use `datePreset=maximum` to pull lifetime insights for paused/historical campaigns (the `last_30d` default returns null insights for entities with no recent spend). # Get all ad accounts in project Source: https://docs.sapt.ai/api-reference/ads/get-all-ad-accounts-in-project https://api.sapt.ai/openapi.json get /socials/ads/accounts/{projectId} Get every ad account reachable across all Meta connections in the project, deduped by ad-account id. Each row carries the connectionId whose token reaches it — pass that as `accountId` to downstream `/hierarchy`, etc. # Platform & placement insights Source: https://docs.sapt.ai/api-reference/ads/platform-&-placement-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/platform Publisher platform × placement-position breakdown (Facebook feed, IG Reels, etc.). # Time-series insights Source: https://docs.sapt.ai/api-reference/ads/time-series-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/time-series Daily (or rolled-up) impressions/reach/clicks/spend over the chosen window. Pass `timeIncrement` (1..90) to roll up to N-day buckets; default daily. # Update ad set status Source: https://docs.sapt.ai/api-reference/ads/update-ad-set-status https://api.sapt.ai/openapi.json patch /socials/ads/adsets/{projectId}/{accountId}/{adSetId}/status Pause or resume an ad set # Update ad status Source: https://docs.sapt.ai/api-reference/ads/update-ad-status https://api.sapt.ai/openapi.json patch /socials/ads/ads/{projectId}/{accountId}/{adId}/status Pause or resume an ad # Update campaign status Source: https://docs.sapt.ai/api-reference/ads/update-campaign-status https://api.sapt.ai/openapi.json patch /socials/ads/campaigns/{projectId}/{accountId}/{campaignId}/status Pause or resume a campaign. ACTIVE = spending money. # Video insights Source: https://docs.sapt.ai/api-reference/ads/video-insights https://api.sapt.ai/openapi.json get /socials/ads/insights/{projectId}/{accountId}/video Video play counts and quartile retention (P25/P50/P75/P95/P100) for video ads. # Get agent Source: https://docs.sapt.ai/api-reference/agents/get-agent https://api.sapt.ai/openapi.json get /projects/{projectId}/agents/{agentId} Get a single agent definition by ID # List agents Source: https://docs.sapt.ai/api-reference/agents/list-agents https://api.sapt.ai/openapi.json get /projects/{projectId}/agents List all agent definitions for a project # Delete library asset Source: https://docs.sapt.ai/api-reference/assets/delete-library-asset https://api.sapt.ai/openapi.json delete /projects/{projectId}/assets/{assetId} Permanently delete a library file and its asset record. Requires assets:manage. Does not check shared references: delete only after all consumers have finished using the file. Published email delivery images are protected. Returns deletedCount: 0 when already absent from this project, making retries safe. Content and social-post records are not deleted. # Get library asset Source: https://docs.sapt.ai/api-reference/assets/get-library-asset https://api.sapt.ai/openapi.json get /projects/{projectId}/assets/{assetId} # List library assets Source: https://docs.sapt.ai/api-reference/assets/list-library-assets https://api.sapt.ai/openapi.json get /projects/{projectId}/assets Find library asset IDs and URLs for this project. Requires assets:read. Supports filename/tag search and limit/offset pagination. # Record uploaded assets Source: https://docs.sapt.ai/api-reference/assets/record-uploaded-assets https://api.sapt.ai/openapi.json post /projects/{projectId}/assets REST mirror of the assets.recordUploads tRPC procedure. Accepts user and service-account API keys; every r2Key must be one this project minted. # Request presigned asset upload URLs Source: https://docs.sapt.ai/api-reference/assets/request-presigned-asset-upload-urls https://api.sapt.ai/openapi.json post /projects/{projectId}/assets/upload-urls REST mirror of the assets.getUploadUrls tRPC procedure (for OAuth/REST clients). # Update library asset Source: https://docs.sapt.ai/api-reference/assets/update-library-asset https://api.sapt.ai/openapi.json patch /projects/{projectId}/assets/{assetId} Update feature or tags. Does not replace file bytes. Requires assets:write; editing another uploader’s asset also requires assets:manage. # Check whether the current identity has a project permission Source: https://docs.sapt.ai/api-reference/auth/check-whether-the-current-identity-has-a-project-permission https://api.sapt.ai/openapi.json get /auth/check-permission Debug endpoint. Resolves the caller identity and returns whether it holds the given project-scoped permission. # Get current identity Source: https://docs.sapt.ai/api-reference/auth/get-current-identity https://api.sapt.ai/openapi.json get /auth/me Returns the resolved identity for the current credentials, including permissions and API key scope. # Cancel a booking Source: https://docs.sapt.ai/api-reference/calendar/cancel-a-booking https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/bookings/{uid}:cancel Cancel an existing booking. Pass `seatUid` to cancel a single seat on a seated booking; omit it to cancel the whole booking. # Create a booking Source: https://docs.sapt.ai/api-reference/calendar/create-a-booking https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/bookings Create a booking for an event type at a specific start time. Persists on the connected calendar provider and emits a `calendar.booking.created` audit event. # Create a Google Calendar booking Source: https://docs.sapt.ai/api-reference/calendar/create-a-google-calendar-booking https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/google/events Write a booking event onto the connected Google Calendar (primary by default). Sends a real Google invite when an attendee email is supplied, and re-checks freeBusy — returning 409 if the slot was taken. Requires the connection to have granted the calendar.events write scope. # Create a schedule Source: https://docs.sapt.ai/api-reference/calendar/create-a-schedule https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/schedules Create a new availability schedule. `timeZone` controls how `availability`/`overrides` times are interpreted. Setting `isDefault: true` makes any event type without an explicit `scheduleId` use this schedule. Emits `calendar.schedule.created`. # Create an event type Source: https://docs.sapt.ai/api-reference/calendar/create-an-event-type https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/event-types Create a new bookable event type. Use `locations` to set Zoom/Meet/in-person/custom-link, `beforeEventBuffer`/`afterEventBuffer` for buffer time, `bookingFields` to add intake questions, and `scheduleId` to bind to a specific availability schedule. Emits `calendar.event_type.created`. # Delete a Google Calendar event Source: https://docs.sapt.ai/api-reference/calendar/delete-a-google-calendar-event https://api.sapt.ai/openapi.json delete /projects/{projectId}/calendar/google/events/{eventId} Delete an event from the connected Google Calendar. Idempotent — deleting an already-gone event still succeeds. Emails attendees a cancellation unless `notifyAttendees=false`. # Delete a schedule Source: https://docs.sapt.ai/api-reference/calendar/delete-a-schedule https://api.sapt.ai/openapi.json delete /projects/{projectId}/calendar/schedules/{scheduleId} Delete an availability schedule. Event types bound to it via `scheduleId` fall back to the default schedule. Emits `calendar.schedule.deleted`. # Delete an event type Source: https://docs.sapt.ai/api-reference/calendar/delete-an-event-type https://api.sapt.ai/openapi.json delete /projects/{projectId}/calendar/event-types/{eventTypeId} Delete an event type. Existing bookings made against it remain. Emits `calendar.event_type.deleted`. # Get a booking Source: https://docs.sapt.ai/api-reference/calendar/get-a-booking https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/bookings/{uid} Fetch a single booking by its uid on the connected calendar provider. # Get a schedule Source: https://docs.sapt.ai/api-reference/calendar/get-a-schedule https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/schedules/{scheduleId} Fetch a single availability schedule by id. # Get an event type Source: https://docs.sapt.ai/api-reference/calendar/get-an-event-type https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/event-types/{eventTypeId} Fetch the full configuration of a single event type — duration, locations, buffers, intake fields, and the schedule it references. # Google Calendar busy intervals Source: https://docs.sapt.ai/api-reference/calendar/google-calendar-busy-intervals https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/google/busy List busy intervals on the connected Google Calendar within [timeMin, timeMax). Use it to hide taken slots when rendering availability. # Hold a slot Source: https://docs.sapt.ai/api-reference/calendar/hold-a-slot https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/reservations Temporarily hold a slot so a concurrent visitor cannot grab it while the caller finishes a booking flow. # List event types Source: https://docs.sapt.ai/api-reference/calendar/list-event-types https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/event-types List the bookable event types available on the connected calendar provider. Use the returned `id` as the `eventTypeId` argument for `slots`, `reservations`, and `bookings`. # List open slots Source: https://docs.sapt.ai/api-reference/calendar/list-open-slots https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/slots List open slots for an event type on the connected calendar provider within [start, end]. # List schedules Source: https://docs.sapt.ai/api-reference/calendar/list-schedules https://api.sapt.ai/openapi.json get /projects/{projectId}/calendar/schedules List the availability schedules on the connected calendar provider. Each schedule defines a timezone and the weekly windows the user is bookable. # Release a slot Source: https://docs.sapt.ai/api-reference/calendar/release-a-slot https://api.sapt.ai/openapi.json delete /projects/{projectId}/calendar/reservations/{reservationUid} Release a previously-held slot before its TTL expires so other visitors can book it. # Reschedule a booking Source: https://docs.sapt.ai/api-reference/calendar/reschedule-a-booking https://api.sapt.ai/openapi.json post /projects/{projectId}/calendar/bookings/{uid}:reschedule Reschedule an existing booking to a new start time. Cal.com creates a new booking linked to the original; the response carries the new `bookingUid`. # Reschedule/update a Google Calendar event Source: https://docs.sapt.ai/api-reference/calendar/rescheduleupdate-a-google-calendar-event https://api.sapt.ai/openapi.json patch /projects/{projectId}/calendar/google/events/{eventId} Patch an event on the connected Google Calendar — move its start/end (reschedule) and/or change title/description. Re-notifies attendees unless `notifyAttendees: false`. # Update a schedule Source: https://docs.sapt.ai/api-reference/calendar/update-a-schedule https://api.sapt.ai/openapi.json patch /projects/{projectId}/calendar/schedules/{scheduleId} Partially update a schedule. Any field omitted is left unchanged; arrays passed replace the prior value wholesale. Emits `calendar.schedule.updated`. # Update an event type Source: https://docs.sapt.ai/api-reference/calendar/update-an-event-type https://api.sapt.ai/openapi.json patch /projects/{projectId}/calendar/event-types/{eventTypeId} Partially update an event type. Any field omitted is left unchanged. Emits `calendar.event_type.updated`. # Create content item Source: https://docs.sapt.ai/api-reference/cms/create-content-item https://api.sapt.ai/openapi.json post /projects/{projectId}/cms/items Create content in an existing content type. Dates are ISO 8601 timestamps. Invalid content returns 400 with field errors in error.details.errors. # Delete content item Source: https://docs.sapt.ai/api-reference/cms/delete-content-item https://api.sapt.ai/openapi.json delete /projects/{projectId}/cms/items/{contentItemId} Permanently delete the CMS record. Referenced library assets and scheduled posts remain. Delete library files separately through DELETE /projects/{projectId}/assets/{assetId}. A missing item returns 404. # Export meal labels on Avery 5168 (3.5 x 5 inch) stock Source: https://docs.sapt.ai/api-reference/cms/export-meal-labels-on-avery-5168-35-x-5-inch-stock https://api.sapt.ai/openapi.json post /projects/{projectId}/menu-items/label-export # Get CMS config Source: https://docs.sapt.ai/api-reference/cms/get-cms-config https://api.sapt.ai/openapi.json get /projects/{projectId}/cms/config Get CMS configuration including asset base URL # Get content item Source: https://docs.sapt.ai/api-reference/cms/get-content-item https://api.sapt.ai/openapi.json get /projects/{projectId}/cms/content/{contentTypeSlug}/{slug} Get a single content item by slug # Get content item by ID Source: https://docs.sapt.ai/api-reference/cms/get-content-item-by-id https://api.sapt.ai/openapi.json get /projects/{projectId}/cms/items/{contentItemId} # List content items Source: https://docs.sapt.ai/api-reference/cms/list-content-items https://api.sapt.ai/openapi.json get /projects/{projectId}/cms/content/{contentTypeSlug} List content items of a specific content type # Update content item Source: https://docs.sapt.ai/api-reference/cms/update-content-item https://api.sapt.ai/openapi.json patch /projects/{projectId}/cms/items/{contentItemId} Update supplied fields only. Content objects merge recursively; arrays and scalar values replace. Null clears nullable dates. The content type cannot be changed. # Get contract by ID Source: https://docs.sapt.ai/api-reference/contracts/get-contract-by-id https://api.sapt.ai/openapi.json get /contracts/{id} Retrieve a service contract by its unique ID (public, no auth required) # Sign a contract Source: https://docs.sapt.ai/api-reference/contracts/sign-a-contract https://api.sapt.ai/openapi.json post /contracts/{id}/sign Sign a service contract with an e-signature (public, no auth required) # List conversation assistants Source: https://docs.sapt.ai/api-reference/conversation-assistants/list-conversation-assistants https://api.sapt.ai/openapi.json get /projects/{projectId}/conversation-assistants # Propose instruction changes without saving; uses AI credits Source: https://docs.sapt.ai/api-reference/conversation-assistants/propose-instruction-changes-without-saving;-uses-ai-credits https://api.sapt.ai/openapi.json post /projects/{projectId}/conversation-assistants/refine # Read customer approval cards Source: https://docs.sapt.ai/api-reference/conversation-assistants/read-customer-approval-cards https://api.sapt.ai/openapi.json get /projects/{projectId}/conversation-actions/{personRefId} # Save assistant and its managed workflow Source: https://docs.sapt.ai/api-reference/conversation-assistants/save-assistant-and-its-managed-workflow https://api.sapt.ai/openapi.json post /projects/{projectId}/conversation-assistants # Test a reply without sending; uses AI credits Source: https://docs.sapt.ai/api-reference/conversation-assistants/test-a-reply-without-sending;-uses-ai-credits https://api.sapt.ai/openapi.json post /projects/{projectId}/conversation-assistants/test # Connect or update the CAPI pixel Source: https://docs.sapt.ai/api-reference/conversions/connect-or-update-the-capi-pixel https://api.sapt.ai/openapi.json put /projects/{projectId}/capi-pixel Pin a Meta Pixel for server-side Conversions API. Provide `accessToken` for a pixel-scoped token generated in Events Manager, or set `useOauthToken: true` to source the token from the project’s Meta OAuth connection. # Disconnect the CAPI pixel Source: https://docs.sapt.ai/api-reference/conversions/disconnect-the-capi-pixel https://api.sapt.ai/openapi.json delete /projects/{projectId}/capi-pixel Remove the project’s Meta Pixel CAPI credential. Server-side conversions stop being delivered. Idempotent. # Get connected CAPI pixel Source: https://docs.sapt.ai/api-reference/conversions/get-connected-capi-pixel https://api.sapt.ai/openapi.json get /projects/{projectId}/capi-pixel Return the project’s connected Meta Pixel + Conversions API token source. The access token itself is never returned. # List Meta pixels Source: https://docs.sapt.ai/api-reference/conversions/list-meta-pixels https://api.sapt.ai/openapi.json get /projects/{projectId}/pixels Enumerate every Meta Pixel discoverable through the project’s connected Meta account. Requires Meta connected with ads permissions; returns an empty list otherwise. # Send a CAPI test event Source: https://docs.sapt.ai/api-reference/conversions/send-a-capi-test-event https://api.sapt.ai/openapi.json post /projects/{projectId}/capi-pixel/test-event Fire a synthetic conversion to verify the pixel + CAPI credential end-to-end. Watch for it in Meta’s Events Manager Test Events tab. # Send a server-side conversion Source: https://docs.sapt.ai/api-reference/conversions/send-a-server-side-conversion https://api.sapt.ai/openapi.json post /projects/{projectId}/conversions Record a conversion and deliver it server-side to the ad platform the customer came from, found from their tracked visit (`visitorId`, or the email/phone the tracking script tied to one). A conversion with no known ad source is recorded in Sapt and sent nowhere. Customer data is hashed before delivery. Returns the `eventId` used — send the same id from your browser pixel to dedupe. A CAPI pixel must be connected first. # Bulk-upsert object records Source: https://docs.sapt.ai/api-reference/crm/bulk-upsert-object-records https://api.sapt.ai/openapi.json post /projects/{projectId}/object-records:bulk-upsert Idempotent bulk upsert keyed on `providerExternalId`. Each row is independent — a single bad row reports its error in the result and does not abort the batch. Used by external importers (CRM migrations, sync jobs) that re-run safely. # Create object record Source: https://docs.sapt.ai/api-reference/crm/create-object-record https://api.sapt.ai/openapi.json post /projects/{projectId}/object-records Create a new record of the given object type. If the type has linksToPerson enabled and the payload carries matching identity, the service auto-attaches or creates a Person and returns personRefId. # Create object type Source: https://docs.sapt.ai/api-reference/crm/create-object-type https://api.sapt.ai/openapi.json post /projects/{projectId}/object-types Create a new CRM object type in this project. Set linksToPerson for types that capture human identity or engagement so records attach to the Person spine. # Delete object record Source: https://docs.sapt.ai/api-reference/crm/delete-object-record https://api.sapt.ai/openapi.json delete /projects/{projectId}/object-records/{recordId} Hard-delete an object record. Cascades to edges via FK. # Delete object type Source: https://docs.sapt.ai/api-reference/crm/delete-object-type https://api.sapt.ai/openapi.json delete /projects/{projectId}/object-types/{typeSlug} Delete a CRM object type. When records exist and `force=true` is not set, the call is a dry run that returns the affected record count without deleting. # Get a provider record journey Source: https://docs.sapt.ai/api-reference/crm/get-a-provider-record-journey https://api.sapt.ai/openapi.json get /projects/{projectId}/object-records:journey Resolve a typed CRM record by providerExternalId and return its paginated cross-channel journey with first-touch and last-touch attribution. For a cloned Close lead, use `typeSlug=person` and `providerExternalId=close:lead:`. Authenticate with `Authorization: ApiKey ` using a project service-account key scoped to `crm_objects:read`. # Get object record Source: https://docs.sapt.ai/api-reference/crm/get-object-record https://api.sapt.ai/openapi.json get /projects/{projectId}/object-records/{recordId} Get a single object record by id. # Get object type Source: https://docs.sapt.ai/api-reference/crm/get-object-type https://api.sapt.ai/openapi.json get /projects/{projectId}/object-types/{typeSlug} Get a single CRM object type by slug. # List object records Source: https://docs.sapt.ai/api-reference/crm/list-object-records https://api.sapt.ai/openapi.json get /projects/{projectId}/object-records List records of a given object type. Records may include personRefId, the Person spine join key for human attribution. # List object types Source: https://docs.sapt.ai/api-reference/crm/list-object-types https://api.sapt.ai/openapi.json get /projects/{projectId}/object-types List the CRM object types defined for this project, including spine-linking metadata such as linksToPerson and identityFields. # Update object record Source: https://docs.sapt.ai/api-reference/crm/update-object-record https://api.sapt.ai/openapi.json patch /projects/{projectId}/object-records/{recordId} Partially update an object record. `data` is a partial merge — pass `null` for a key to delete it. Optional `expectedData` (JSONB containment) and `expectedStatus` fields make the write conditional; a stale precondition returns 409 without changing the record. Person-linked types may refresh personRefId from identity-bearing data. # Update object type Source: https://docs.sapt.ai/api-reference/crm/update-object-type https://api.sapt.ai/openapi.json patch /projects/{projectId}/object-types/{typeSlug} Partially update a CRM object type, including schema fields and spine-linking behavior such as linksToPerson and identityFields. # Get sidebar configuration Source: https://docs.sapt.ai/api-reference/dashboard-sidebar/get-sidebar-configuration https://api.sapt.ai/openapi.json get /projects/{projectId}/sidebar Get the sidebar sections rendered for a project. # List available sidebar features Source: https://docs.sapt.ai/api-reference/dashboard-sidebar/list-available-sidebar-features https://api.sapt.ai/openapi.json get /sidebar-catalog Returns the catalog of feature ids that can appear in a sidebar section, with their default labels, icons, and required read-resource permissions. # Replace sidebar configuration Source: https://docs.sapt.ai/api-reference/dashboard-sidebar/replace-sidebar-configuration https://api.sapt.ai/openapi.json put /projects/{projectId}/sidebar Replace the entire sidebar section list for a project. Hiding an entry never denies authority — a user with read access to the underlying resource can still reach it by URL. # Get bulk send status Source: https://docs.sapt.ai/api-reference/emails/get-bulk-send-status https://api.sapt.ai/openapi.json get /emails/bulk/{id} Check the status and progress of a bulk email send operation. # Queue batch email send Source: https://docs.sapt.ai/api-reference/emails/queue-batch-email-send https://api.sapt.ai/openapi.json post /emails/batch/queue Queue a batch email send for asynchronous processing via Cloudflare Queue. Supports template-based emails with parameter substitution. Requires X-App-Key header for authentication. # Send bulk email (batch send to multiple recipients) Source: https://docs.sapt.ai/api-reference/emails/send-bulk-email-batch-send-to-multiple-recipients https://api.sapt.ai/openapi.json post /emails/bulk Queue a bulk email send to multiple recipients. The email will be processed in the background and sent to all recipients with the same content. All sends are tracked individually in the email log. # Send email via AWS SES Source: https://docs.sapt.ai/api-reference/emails/send-email-via-aws-ses https://api.sapt.ai/openapi.json post /emails/send/send Send transactional emails with automatic tracking. All emails are tracked in the Sapt admin dashboard with delivery, open, and click tracking. # Submit contact form (unauthenticated) Source: https://docs.sapt.ai/api-reference/emails/submit-contact-form-unauthenticated https://api.sapt.ai/openapi.json post /emails/contact Public endpoint for contact form submissions. No authentication required. Rate limited by IP address (3/hour, 10/day). Email is sent to configured recipient addresses only. # Search US ZIPs by code or "City, ST" Source: https://docs.sapt.ai/api-reference/geo/search-us-zips-by-code-or-"city-st" https://api.sapt.ai/openapi.json get /projects/{projectId}/geo/zip-search # ZIP boundaries intersecting a map viewport Source: https://docs.sapt.ai/api-reference/geo/zip-boundaries-intersecting-a-map-viewport https://api.sapt.ai/openapi.json get /projects/{projectId}/geo/zcta-in-bounds Returns ZIP/ZCTA boundary polygons intersecting the bbox (minLng,minLat,maxLng,maxLat). Capped; call only when zoomed in. # Add criteria to Google Ads campaign Source: https://docs.sapt.ai/api-reference/google-ads/add-criteria-to-google-ads-campaign https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/criteria Add geo-target locations, language targets, and/or negative keywords to a campaign. Use validateOnly=true to test the payload without applying it. # Add keywords to Google Ads ad group Source: https://docs.sapt.ai/api-reference/google-ads/add-keywords-to-google-ads-ad-group https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId}/keywords Add one or more keywords to an ad group. Uses partialFailure so invalid keywords do not fail the batch. Returns per-row outcomes. # Audit measured Google Ads delivery and current setup Source: https://docs.sapt.ai/api-reference/google-ads/audit-measured-google-ads-delivery-and-current-setup https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/audit Read-only audit with explicit dates. Separates eligibility from measured delivery and failed checks from zero. Returns proposed next checks without changing the account. # Create Google Ads ad group Source: https://docs.sapt.ai/api-reference/google-ads/create-google-ads-ad-group https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/ad-groups Create a standard Search ad group under an existing campaign. Use validateOnly=true to test the payload without applying it. # Create Google Ads client account Source: https://docs.sapt.ai/api-reference/google-ads/create-google-ads-client-account https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{managerCustomerId}/clients Create a client account under a connected Google Ads manager account and store it as an integration account. # Create Google Ads conversion action Source: https://docs.sapt.ai/api-reference/google-ads/create-google-ads-conversion-action https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/conversion-actions Create a conversion action on the customer. Smart Bidding cannot run without an enabled conversion action, and server-side uploads need an UPLOAD_CLICKS action to target. Use validateOnly=true to test the payload without applying it. # Create Google Ads Search campaign Source: https://docs.sapt.ai/api-reference/google-ads/create-google-ads-search-campaign https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/campaigns/search Atomically create a full Search campaign (budget, campaign, criteria, ad group, RSA, keywords) in one mutate call. Use validateOnly=true to test the payload without applying it. # Create or attach campaign assets Source: https://docs.sapt.ai/api-reference/google-ads/create-or-attach-campaign-assets https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/assets Search images accept an existing assetId or a public HTTPS JPEG/PNG url. Use validateOnly to test upload and attachment without changing Google Ads. Image review and eligibility remain with Google. # Create Responsive Search Ad in ad group Source: https://docs.sapt.ai/api-reference/google-ads/create-responsive-search-ad-in-ad-group https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId}/ads Create a new Responsive Search Ad in an ad group. If adResourceNameToRemove is provided, the existing ad is removed in the same mutate call. Use validateOnly=true to test the payload without applying it. # Generate Google Ads keyword ideas Source: https://docs.sapt.ai/api-reference/google-ads/generate-google-ads-keyword-ideas https://api.sapt.ai/openapi.json post /projects/{projectId}/google-ads/customers/{customerId}/keyword-ideas # Get a campaign’s targeted locations resolved to coordinates Source: https://docs.sapt.ai/api-reference/google-ads/get-a-campaign’s-targeted-locations-resolved-to-coordinates https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/targeted-locations Resolve a campaign’s location criteria into plottable points (zip/city/region centroids, country centroids). Unresolved targets are returned with null coordinates. # Get Google Ads account health Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-account-health https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/account-health Derive account-level health from account status, billing status, conversion tracking, and a rollup of campaign health states. # Get Google Ads ad group performance Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-ad-group-performance https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/ad-group-performance # Get Google Ads ad performance Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-ad-performance https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/ad-performance # Get Google Ads campaign health Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-campaign-health https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/campaign-health Derive per-campaign health (live/limited/needs_action/pending_google/off/ended) from serving status, primary status reasons, disapproved ads, and impression-share loss. # Get Google Ads campaign performance Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-campaign-performance https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/campaign-performance # Get Google Ads campaign time-series performance Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-campaign-time-series-performance https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/time-series # Get Google Ads device performance breakdown Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-device-performance-breakdown https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/device-breakdown # Get Google Ads keyword performance Source: https://docs.sapt.ai/api-reference/google-ads/get-google-ads-keyword-performance https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/keyword-performance # List connected Google Ads customers Source: https://docs.sapt.ai/api-reference/google-ads/list-connected-google-ads-customers https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers # List Google Ads ad groups for a campaign Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-ad-groups-for-a-campaign https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/ad-groups # List Google Ads ads for an ad group Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-ads-for-an-ad-group https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId}/ads # List Google Ads campaign criteria Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-campaign-criteria https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/criteria # List Google Ads campaigns Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-campaigns https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/campaigns # List Google Ads conversion actions Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-conversion-actions https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/conversion-actions # List Google Ads image assets Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-image-assets https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/images # List Google Ads keywords for an ad group Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-keywords-for-an-ad-group https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId}/keywords # List Google Ads search terms for a customer Source: https://docs.sapt.ai/api-reference/google-ads/list-google-ads-search-terms-for-a-customer https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/customers/{customerId}/search-terms # Remove Google Ads ad Source: https://docs.sapt.ai/api-reference/google-ads/remove-google-ads-ad https://api.sapt.ai/openapi.json delete /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId}/ads Remove a single ad group ad by its resource name. # Remove Google Ads campaign criterion Source: https://docs.sapt.ai/api-reference/google-ads/remove-google-ads-campaign-criterion https://api.sapt.ai/openapi.json delete /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/criteria Remove a single campaign criterion (location, language, or negative keyword) by its full resource name. # Remove Google Ads keyword Source: https://docs.sapt.ai/api-reference/google-ads/remove-google-ads-keyword https://api.sapt.ai/openapi.json delete /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId}/keywords Remove a single keyword (adGroupCriterion) from an ad group by its full resource name. # Suggest Google Ads geo targets Source: https://docs.sapt.ai/api-reference/google-ads/suggest-google-ads-geo-targets https://api.sapt.ai/openapi.json get /projects/{projectId}/google-ads/geo-targets # Update Google Ads ad group Source: https://docs.sapt.ai/api-reference/google-ads/update-google-ads-ad-group https://api.sapt.ai/openapi.json patch /projects/{projectId}/google-ads/customers/{customerId}/ad-groups/{adGroupId} Update an ad group's name, status, and/or CPC bid. All fields are optional — only provided fields are changed. Use validateOnly=true to test the payload without applying it. # Update Google Ads campaign Source: https://docs.sapt.ai/api-reference/google-ads/update-google-ads-campaign https://api.sapt.ai/openapi.json patch /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId} Update a campaign's name, status, budget, bidding strategy, network settings, and/or schedule. All fields are optional — only provided fields are changed. Use validateOnly=true to test the payload without applying it. # Update Google Ads campaign status Source: https://docs.sapt.ai/api-reference/google-ads/update-google-ads-campaign-status https://api.sapt.ai/openapi.json patch /projects/{projectId}/google-ads/customers/{customerId}/campaigns/{campaignId}/status Pause or enable a connected Google Ads campaign. Use validateOnly=true to test the mutation without applying it. # Generate Google Business Profile OAuth URL Source: https://docs.sapt.ai/api-reference/google-business/generate-google-business-profile-oauth-url https://api.sapt.ai/openapi.json post /google-business/auth/connect Generate a URL to redirect user to Google for GBP authorization # Begin an OAuth integration connection Source: https://docs.sapt.ai/api-reference/integrations/begin-an-oauth-integration-connection https://api.sapt.ai/openapi.json post /integrations/oauth/{providerId}/connect Deprecated — use POST /projects/{projectId}/connect-sessions. This legacy route remains for existing callers. # Connect an API-key integration Source: https://docs.sapt.ai/api-reference/integrations/connect-an-api-key-integration https://api.sapt.ai/openapi.json post /projects/{projectId}/integrations Connect an API-key-scheme integration by submitting credentials. OAuth providers reject this call — use POST /connect-sessions instead. # Create an OAuth connect session Source: https://docs.sapt.ai/api-reference/integrations/create-an-oauth-connect-session https://api.sapt.ai/openapi.json post /projects/{projectId}/connect-sessions Mint a one-time URL that initiates OAuth for an integration provider. The OAuth flow terminates on a Sapt-hosted result page; poll GET /projects/{projectId}/connect-sessions/{token} for completion. # Disconnect integration Source: https://docs.sapt.ai/api-reference/integrations/disconnect-integration https://api.sapt.ai/openapi.json delete /projects/{projectId}/integrations/{integrationId} Disconnect an integration. `integrationId` is the provider id. # Get a Close lead journey Source: https://docs.sapt.ai/api-reference/integrations/get-a-close-lead-journey https://api.sapt.ai/openapi.json get /projects/{projectId}/integrations/close/journey Return the Sapt web journey for one native Close lead without importing it into Sapt CRM. Sapt reads the lead from the project Close connection, then resolves every tracked browser by exact Close id, normalized email/phone, or a single-candidate fbclid. A valid lead with no tracked visit returns `matched: false` and an empty journey. Authenticate with `Authorization: ApiKey ` using a project service-account key scoped to `crm_objects:read`. # Get connect session status Source: https://docs.sapt.ai/api-reference/integrations/get-connect-session-status https://api.sapt.ai/openapi.json get /projects/{projectId}/connect-sessions/{token} Poll for the status of an OAuth connect session created for this project. # Get integration Source: https://docs.sapt.ai/api-reference/integrations/get-integration https://api.sapt.ai/openapi.json get /projects/{projectId}/integrations/{integrationId} Get a single integration's connection status. `integrationId` is the provider id. # List integrations Source: https://docs.sapt.ai/api-reference/integrations/list-integrations https://api.sapt.ai/openapi.json get /projects/{projectId}/integrations List every known integration provider and its connection status for this project. # Create invitation Source: https://docs.sapt.ai/api-reference/invitations/create-invitation https://api.sapt.ai/openapi.json post /invitations Invite a user to the platform or to a specific project. Platform admins can invite to any role and any project. Project admins can invite to their projects. The role the inviter can assign depends on their own role. # Create project invitation Source: https://docs.sapt.ai/api-reference/invitations/create-project-invitation https://api.sapt.ai/openapi.json post /projects/{projectId}/invitations Invite a user to a project. By default the invitee is emailed an acceptance link and also sees the invitation in their Sapt dashboard on next sign-in. Pass `sendEmail: false` to suppress that email and receive the `acceptUrl` in the response instead — for callers that deliver the accept link themselves. # Create memory entry Source: https://docs.sapt.ai/api-reference/memory/create-memory-entry https://api.sapt.ai/openapi.json post /projects/{projectId}/memory-entries Create a new memory entry for a project # Delete memory entry Source: https://docs.sapt.ai/api-reference/memory/delete-memory-entry https://api.sapt.ai/openapi.json delete /projects/{projectId}/memory-entries/{slug} Delete a memory entry by slug. Slugs may contain "/" for hierarchical paths. # Get memory entry Source: https://docs.sapt.ai/api-reference/memory/get-memory-entry https://api.sapt.ai/openapi.json get /projects/{projectId}/memory-entries/{slug} Get a memory entry by slug including full content. Slugs may contain "/" for hierarchical paths (e.g., competitors/acme). # List memory entries Source: https://docs.sapt.ai/api-reference/memory/list-memory-entries https://api.sapt.ai/openapi.json get /projects/{projectId}/memory-entries List all memory entries for a project. Returns summary data — fetch individual entries to get content. # Update memory entry Source: https://docs.sapt.ai/api-reference/memory/update-memory-entry https://api.sapt.ai/openapi.json patch /projects/{projectId}/memory-entries/{slug} Update an existing memory entry by slug. Only provided fields are updated. Slugs may contain "/" for hierarchical paths. # Create OAuth client Source: https://docs.sapt.ai/api-reference/oauth-clients/create-oauth-client https://api.sapt.ai/openapi.json post /oauth-clients Register a developer OAuth client owned by the caller. The token issued after consent carries `account:full` and acts on behalf of every consenting user across all of their Sapt projects. The plaintext `clientSecret` is returned only at create time — capture it immediately. Public PKCE clients receive `clientSecret: null`. # Delete OAuth client Source: https://docs.sapt.ai/api-reference/oauth-clients/delete-oauth-client https://api.sapt.ai/openapi.json delete /oauth-clients/{clientId} Delete a developer OAuth client owned by the caller. Cascades to access tokens and consent records. Cannot be undone. # List my OAuth clients Source: https://docs.sapt.ai/api-reference/oauth-clients/list-my-oauth-clients https://api.sapt.ai/openapi.json get /oauth-clients List every developer OAuth client owned by the caller. # Rotate OAuth client secret Source: https://docs.sapt.ai/api-reference/oauth-clients/rotate-oauth-client-secret https://api.sapt.ai/openapi.json post /oauth-clients/{clientId}/rotate-secret Rotate the `client_secret` of a developer OAuth client owned by the caller. Previously-issued access tokens remain valid until their natural expiry; this only invalidates the secret used to mint new tokens. Rejected for public PKCE clients. # Update OAuth client Source: https://docs.sapt.ai/api-reference/oauth-clients/update-oauth-client https://api.sapt.ai/openapi.json patch /oauth-clients/{clientId} Update a developer OAuth client owned by the caller. Pass `null` for `description`, `homepageUrl`, or `icon` to clear them. # Create project role Source: https://docs.sapt.ai/api-reference/project-roles/create-project-role https://api.sapt.ai/openapi.json post /projects/{projectId}/roles Create a new role for a project. Requires project:write permission. # Delete project role Source: https://docs.sapt.ai/api-reference/project-roles/delete-project-role https://api.sapt.ai/openapi.json delete /projects/{projectId}/roles/{roleId} Delete a project role. Requires project:write permission. # Get project role Source: https://docs.sapt.ai/api-reference/project-roles/get-project-role https://api.sapt.ai/openapi.json get /projects/{projectId}/roles/{roleId} Get details of a specific project role. Requires project:read permission. # List project roles Source: https://docs.sapt.ai/api-reference/project-roles/list-project-roles https://api.sapt.ai/openapi.json get /projects/{projectId}/roles Get all roles for a specific project. Requires project:read permission. # Update project role Source: https://docs.sapt.ai/api-reference/project-roles/update-project-role https://api.sapt.ai/openapi.json patch /projects/{projectId}/roles/{roleId} Update an existing project role. Requires project:write permission. # Apply a template to a new sub-project Source: https://docs.sapt.ai/api-reference/project-templates/apply-a-template-to-a-new-sub-project https://api.sapt.ai/openapi.json post /projects/{projectId}/templates/{templateId}/apply Create a new sub-project under this (parent) project and stamp the template onto it — the GHL "create from snapshot" flow. Supply `variableValues` for any `{{variables}}` the template declares. Returns the new project and an apply report (what landed vs. what failed). Requires `sub_projects:write` on the parent project. # Create project template Source: https://docs.sapt.ai/api-reference/project-templates/create-project-template https://api.sapt.ai/openapi.json post /projects/{projectId}/templates Create a new project template on this project. Roles inside the bundle are capped to permissions the caller already holds. # Delete project template Source: https://docs.sapt.ai/api-reference/project-templates/delete-project-template https://api.sapt.ai/openapi.json delete /projects/{projectId}/templates/{templateId} Delete a project template. Does not affect previously-applied sub-projects. # Get project template Source: https://docs.sapt.ai/api-reference/project-templates/get-project-template https://api.sapt.ai/openapi.json get /projects/{projectId}/templates/{templateId} Get a single project template by id. # List project templates Source: https://docs.sapt.ai/api-reference/project-templates/list-project-templates https://api.sapt.ai/openapi.json get /projects/{projectId}/templates List the project templates saved on this project. Templates seed roles, sidebar, workflows, and CRM types/relations into a new sub-project when referenced at creation. # Load a snapshot into an existing project Source: https://docs.sapt.ai/api-reference/project-templates/load-a-snapshot-into-an-existing-project https://api.sapt.ai/openapi.json post /projects/{projectId}/templates/{templateId}/load Additively load this template's configuration into an EXISTING project (`targetProjectId` in the body) — the GHL "load snapshot into a sub-account" flow. Assets that already exist on the target are SKIPPED, never overwritten. The path `{projectId}` is the template owner; the caller must hold admin access on the target project and template-read on the owner. Workflows are loaded paused. Returns an apply report (added vs. skipped vs. failed). # Snapshot a project Source: https://docs.sapt.ai/api-reference/project-templates/snapshot-a-project https://api.sapt.ai/openapi.json post /projects/{projectId}/snapshot Capture this project's live configuration into a new reusable template (snapshot) in one step. Omit `include` to capture EVERYTHING — roles, sidebar, workflows, CRM object types/relations/column config, custom person fields, CMS content types, branding, brand-voice context, and agents. Set keys in `include` (e.g. `{ "branding": true }`) to restrict capture to those subsystems. Live CMS content items are only cloned when `include.starterContent` is set. Account-specific references (sender emails, connected-account ids) are scrubbed and reported in `warnings`. # Update project template Source: https://docs.sapt.ai/api-reference/project-templates/update-project-template https://api.sapt.ai/openapi.json patch /projects/{projectId}/templates/{templateId} Update a project template. Omitted fields are left unchanged. # Create a project Source: https://docs.sapt.ai/api-reference/projects/create-a-project https://api.sapt.ai/openapi.json post /projects Create a new project with optional initial configuration. # Create a sub-project Source: https://docs.sapt.ai/api-reference/projects/create-a-sub-project https://api.sapt.ai/openapi.json post /projects/{projectId}/subprojects Create a sub-project under `projectId`. Sugar over `POST /projects` with `parentProjectId` pre-filled — same shape, minus plan/billing fields. The caller must hold `sub_projects:write` on `projectId`. # Delete project Source: https://docs.sapt.ai/api-reference/projects/delete-project https://api.sapt.ai/openapi.json delete /projects/{projectId} Delete a project. # Get caller's project membership Source: https://docs.sapt.ai/api-reference/projects/get-callers-project-membership https://api.sapt.ai/openapi.json get /projects/{projectId}/me/membership Get the authenticated caller's membership details for a project. Gated by membership — no project permission required. Reachable under OAuth authentication. # Get project branding Source: https://docs.sapt.ai/api-reference/projects/get-project-branding https://api.sapt.ai/openapi.json get /projects/{projectId}/branding Get the public branding subset for a project — name, tagline, colors, primary logo, and font style. Intended for OAuth clients rendering a customer-facing UI on the project owner's behalf (e.g. a hosted onboarding questionnaire themed in the agency's brand). # Get project by ID Source: https://docs.sapt.ai/api-reference/projects/get-project-by-id https://api.sapt.ai/openapi.json get /projects/{projectId} Get details of a specific project # Get project members Source: https://docs.sapt.ai/api-reference/projects/get-project-members https://api.sapt.ai/openapi.json get /projects/{projectId}/members Get all members of a project # Get user membership Source: https://docs.sapt.ai/api-reference/projects/get-user-membership https://api.sapt.ai/openapi.json get /projects/{projectId}/membership Get the authenticated user's membership details for a project # List all projects (admin) Source: https://docs.sapt.ai/api-reference/projects/list-all-projects-admin https://api.sapt.ai/openapi.json get /projects/admin/all Cross-tenant listing of every project in the system. Platform-admin only — returns 403 for any other identity. Intended for staff scripts and admin tooling; customer-facing surfaces should use `GET /api/projects`. # List sub-projects Source: https://docs.sapt.ai/api-reference/projects/list-sub-projects https://api.sapt.ai/openapi.json get /projects/{projectId}/subprojects List the sub-projects of `projectId`. Returns `[]` when called on a sub-project (single-level hierarchy). Gated by `sub_projects:read` on the parent. # List user projects Source: https://docs.sapt.ai/api-reference/projects/list-user-projects https://api.sapt.ai/openapi.json get /projects Get all projects the authenticated user is an explicit member of. Platform admins see only their own memberships through this endpoint; the customer dashboard surfaces the admin cross-tenant view via its own internal tRPC endpoint, not the public REST API. # Update project Source: https://docs.sapt.ai/api-reference/projects/update-project https://api.sapt.ai/openapi.json patch /projects/{projectId} Update project details. Requires project write permission. # Delete schedule Source: https://docs.sapt.ai/api-reference/schedules/delete-schedule https://api.sapt.ai/openapi.json delete /projects/{projectId}/schedules/{id} Delete a scheduled execution and all its run history. # Get schedule Source: https://docs.sapt.ai/api-reference/schedules/get-schedule https://api.sapt.ai/openapi.json get /projects/{projectId}/schedules/{id} Get a single scheduled execution by ID. # List schedule runs Source: https://docs.sapt.ai/api-reference/schedules/list-schedule-runs https://api.sapt.ai/openapi.json get /projects/{projectId}/schedules/{id}/runs List run history for a scheduled execution. # List schedules Source: https://docs.sapt.ai/api-reference/schedules/list-schedules https://api.sapt.ai/openapi.json get /projects/{projectId}/schedules List scheduled executions for a project. # Pause schedule Source: https://docs.sapt.ai/api-reference/schedules/pause-schedule https://api.sapt.ai/openapi.json post /projects/{projectId}/schedules/{id}/pause Pause an active scheduled execution. # Resume schedule Source: https://docs.sapt.ai/api-reference/schedules/resume-schedule https://api.sapt.ai/openapi.json post /projects/{projectId}/schedules/{id}/resume Resume a paused scheduled execution. # Update schedule Source: https://docs.sapt.ai/api-reference/schedules/update-schedule https://api.sapt.ai/openapi.json patch /projects/{projectId}/schedules/{id} Update a scheduled execution. Only provided fields are updated. # Create service account Source: https://docs.sapt.ai/api-reference/service-accounts/create-service-account https://api.sapt.ai/openapi.json post /service-accounts Create a new service account, optionally with an initial project membership. Requires service_accounts:write permission. # List service accounts Source: https://docs.sapt.ai/api-reference/service-accounts/list-service-accounts https://api.sapt.ai/openapi.json get /service-accounts List service accounts by project or platform scope. Requires project:read or platform service_accounts:read permission. # Create comment on Facebook post Source: https://docs.sapt.ai/api-reference/socials/create-comment-on-facebook-post https://api.sapt.ai/openapi.json post /socials/engagement/facebook/{projectId}/{postId}/comments Create a top-level comment on a Facebook post as the Page # Create comment on Instagram post Source: https://docs.sapt.ai/api-reference/socials/create-comment-on-instagram-post https://api.sapt.ai/openapi.json post /socials/engagement/instagram/{projectId}/{mediaId}/comments Create a top-level comment on your own Instagram post # Create post Source: https://docs.sapt.ai/api-reference/socials/create-post https://api.sapt.ai/openapi.json post /socials/posts/{projectId} Create a post for any connected platform — Instagram, Facebook, TikTok, YouTube or Google Business Profile. Get `socialAccountId` from **List connected social accounts**. Set `publishNow: true` to publish immediately, or `scheduledFor` (with `timezone`) to schedule. Attach media either inline as base64 `mediaItems` or, for anything large, by streaming it to **Stream media upload** first and passing the returned handles as `uploadedHandles`. Instagram Stories must be published immediately. # Delete Facebook comment Source: https://docs.sapt.ai/api-reference/socials/delete-facebook-comment https://api.sapt.ai/openapi.json delete /socials/comments/facebook/{projectId}/{commentId} Delete a comment on Facebook # Delete Instagram comment Source: https://docs.sapt.ai/api-reference/socials/delete-instagram-comment https://api.sapt.ai/openapi.json delete /socials/comments/instagram/{projectId}/{commentId} Delete a comment on Instagram # Delete post media Source: https://docs.sapt.ai/api-reference/socials/delete-post-media https://api.sapt.ai/openapi.json delete /socials/posts/{projectId}/{postId}/media/{mediaId} Remove one media item from a scheduled post and delete its stored blob. The post itself is left in place. # Delete published Facebook post Source: https://docs.sapt.ai/api-reference/socials/delete-published-facebook-post https://api.sapt.ai/openapi.json delete /socials/engagement/facebook/{projectId}/{postId}/published Delete a published post from a Facebook Page # Delete scheduled post Source: https://docs.sapt.ai/api-reference/socials/delete-scheduled-post https://api.sapt.ai/openapi.json delete /socials/posts/{projectId}/{postId} Delete a scheduled post and cancel Instagram container if exists # Get Facebook comments Source: https://docs.sapt.ai/api-reference/socials/get-facebook-comments https://api.sapt.ai/openapi.json get /socials/comments/facebook/{projectId}/{postId} Get comments on a Facebook post # Get Facebook Page analytics Source: https://docs.sapt.ai/api-reference/socials/get-facebook-page-analytics https://api.sapt.ai/openapi.json get /socials/analytics/facebook/{projectId}/{accountId} Get insights and analytics for a Facebook Page including reach, engagement, and followers # Get Facebook Page posts analytics Source: https://docs.sapt.ai/api-reference/socials/get-facebook-page-posts-analytics https://api.sapt.ai/openapi.json get /socials/analytics/facebook/{projectId}/{accountId}/posts Get analytics for Facebook Page posts including engagement metrics # Get Instagram account analytics Source: https://docs.sapt.ai/api-reference/socials/get-instagram-account-analytics https://api.sapt.ai/openapi.json get /socials/analytics/instagram/{projectId}/{accountId} Get insights and analytics for an Instagram account including reach, interactions, and demographics # Get Instagram comments Source: https://docs.sapt.ai/api-reference/socials/get-instagram-comments https://api.sapt.ai/openapi.json get /socials/comments/instagram/{projectId}/{mediaId} Get comments on an Instagram media object # Get Instagram media analytics Source: https://docs.sapt.ai/api-reference/socials/get-instagram-media-analytics https://api.sapt.ai/openapi.json get /socials/analytics/instagram/{projectId}/{accountId}/media Get analytics for Instagram posts including engagement, reach, and interactions per post # Get post status Source: https://docs.sapt.ai/api-reference/socials/get-post-status https://api.sapt.ai/openapi.json get /socials/posts/{projectId}/{postId}/status Get the current status of a post (lightweight endpoint for polling) # Get scheduled post Source: https://docs.sapt.ai/api-reference/socials/get-scheduled-post https://api.sapt.ai/openapi.json get /socials/posts/{projectId}/{postId} Get details of a specific scheduled post # Hide/unhide Facebook comment Source: https://docs.sapt.ai/api-reference/socials/hideunhide-facebook-comment https://api.sapt.ai/openapi.json post /socials/comments/facebook/{projectId}/{commentId}/hide Hide or unhide a comment on Facebook # Hide/unhide Instagram comment Source: https://docs.sapt.ai/api-reference/socials/hideunhide-instagram-comment https://api.sapt.ai/openapi.json post /socials/comments/instagram/{projectId}/{commentId}/hide Hide or unhide a comment on Instagram # Like Facebook post as Page Source: https://docs.sapt.ai/api-reference/socials/like-facebook-post-as-page https://api.sapt.ai/openapi.json post /socials/engagement/facebook/{projectId}/{postId}/like Like a post as the Facebook Page # List connected social accounts Source: https://docs.sapt.ai/api-reference/socials/list-connected-social-accounts https://api.sapt.ai/openapi.json get /socials/accounts/{projectId} Every social account connected to the project — Instagram, Facebook, TikTok, YouTube and Google Business Profile. The `id` returned here is the `socialAccountId` that the posting, scheduling and analytics endpoints take. # List scheduled posts Source: https://docs.sapt.ai/api-reference/socials/list-scheduled-posts https://api.sapt.ai/openapi.json get /socials/posts/{projectId} Get all scheduled posts for a project with optional filters # Publish post immediately Source: https://docs.sapt.ai/api-reference/socials/publish-post-immediately https://api.sapt.ai/openapi.json post /socials/posts/{projectId}/{postId}/publish Publish a scheduled or draft post right now, bypassing its `scheduledFor` time. Also the retry path for a post whose status is `failed` — publishing re-runs delivery from the failed state, so no separate retry call is needed. # Reply to Facebook comment Source: https://docs.sapt.ai/api-reference/socials/reply-to-facebook-comment https://api.sapt.ai/openapi.json post /socials/comments/facebook/{projectId}/{commentId}/reply Reply to a comment on Facebook # Reply to Instagram comment Source: https://docs.sapt.ai/api-reference/socials/reply-to-instagram-comment https://api.sapt.ai/openapi.json post /socials/comments/instagram/{projectId}/{commentId}/reply Reply to a comment on Instagram # Stream media upload Source: https://docs.sapt.ai/api-reference/socials/stream-media-upload https://api.sapt.ai/openapi.json put /socials/media/{projectId}/stream-upload Stream an image or video straight to storage and get back a staging handle. Send the raw bytes as the request body with the file's own `Content-Type` (`image/*` or `video/*`) — not multipart, not base64. Pass the returned `handle` in `uploadedHandles` on **Create post**. This is the upload path for anything larger than a few megabytes; inline `mediaItems` base64 is capped by Worker memory. # Unlike Facebook post as Page Source: https://docs.sapt.ai/api-reference/socials/unlike-facebook-post-as-page https://api.sapt.ai/openapi.json delete /socials/engagement/facebook/{projectId}/{postId}/like Remove like from a post as the Facebook Page # Update scheduled post Source: https://docs.sapt.ai/api-reference/socials/update-scheduled-post https://api.sapt.ai/openapi.json put /socials/posts/{projectId}/{postId} Update a draft or scheduled post (cannot update published posts) # Invite team member Source: https://docs.sapt.ai/api-reference/team/invite-team-member https://api.sapt.ai/openapi.json post /team/invite Invite a new member to a project by email. Only project admins can invite members. Creates an invitation that is sent via email. # List team members Source: https://docs.sapt.ai/api-reference/team/list-team-members https://api.sapt.ai/openapi.json get /team/members Get all team members for a project. Any project member can view this. # Remove team member Source: https://docs.sapt.ai/api-reference/team/remove-team-member https://api.sapt.ai/openapi.json delete /team/members/{userId} Remove a team member from a project. Only project admins can remove members. Cannot remove yourself if you are the only admin. # Update member roles Source: https://docs.sapt.ai/api-reference/team/update-member-roles https://api.sapt.ai/openapi.json patch /team/members/{userId} Update a team member roles. Only project admins can update roles. Cannot remove admin access from yourself if you are the only admin. # Get current user Source: https://docs.sapt.ai/api-reference/users/get-current-user https://api.sapt.ai/openapi.json get /users/me Get the currently authenticated user details # Get user by ID Source: https://docs.sapt.ai/api-reference/users/get-user-by-id https://api.sapt.ai/openapi.json get /users/{userId} Get details of a specific user # Get user project memberships Source: https://docs.sapt.ai/api-reference/users/get-user-project-memberships https://api.sapt.ai/openapi.json get /users/{userId}/projects Get all projects a user is a member of (that the requester can see) # Get user roles in project Source: https://docs.sapt.ai/api-reference/users/get-user-roles-in-project https://api.sapt.ai/openapi.json get /users/{userId}/projects/{projectId}/roles Get all roles a user has in a specific project. This endpoint requires no special permissions and can be used by any authenticated user. # List users Source: https://docs.sapt.ai/api-reference/users/list-users https://api.sapt.ai/openapi.json get /users Get all users the authenticated user has permission to see. Platform admins can see all users. Other users can see members of their projects. # Get analytics config Source: https://docs.sapt.ai/api-reference/web-analytics/get-analytics-config https://api.sapt.ai/openapi.json get /web-analytics/config/{projectId} Get analytics configuration for a project. Returns null if not configured. # Get analytics data Source: https://docs.sapt.ai/api-reference/web-analytics/get-analytics-data https://api.sapt.ai/openapi.json get /web-analytics/{projectId} Get analytics data from all configured sources (Cloudflare, GA4, GSC). Returns partial data with errors if some sources fail. # Activate or pause workflow Source: https://docs.sapt.ai/api-reference/workflows/activate-or-pause-workflow https://api.sapt.ai/openapi.json post /projects/{projectId}/workflows/{workflowId}:set-active Set a workflow active or inactive using the latest reviewed revision. Activation evaluates the same tenant integration readiness gate as the dashboard and MCP surfaces; pausing is always allowed. # Create workflow Source: https://docs.sapt.ai/api-reference/workflows/create-workflow https://api.sapt.ai/openapi.json post /projects/{projectId}/workflows Create a workflow. The optional `isActive` field is retained for backward compatibility; new integrations should use the workflow-drafts resource and activate only after reviewing readiness. Requires a real user identity — service-account creation is rejected because the executor needs an unambiguous principal at dispatch time. # Create workflow draft Source: https://docs.sapt.ai/api-reference/workflows/create-workflow-draft https://api.sapt.ai/openapi.json post /projects/{projectId}/workflow-drafts Create an inactive workflow draft. This additive resource is the revision-safe authoring contract; it never publishes at birth. # Delete workflow Source: https://docs.sapt.ai/api-reference/workflows/delete-workflow https://api.sapt.ai/openapi.json delete /projects/{projectId}/workflows/{id} Permanently delete a workflow and its run history. `expectedRevision` is optional for backward compatibility and prevents deleting a newer definition when supplied. # Dry-run a workflow draft Source: https://docs.sapt.ai/api-reference/workflows/dry-run-a-workflow-draft https://api.sapt.ai/openapi.json post /projects/{projectId}/workflows/test-run Evaluate a draft workflow against the most recent matching event (or a specific `eventId`). No real sends, writes, or HTTP calls are made — the response shows what each step would do. # Get workflow Source: https://docs.sapt.ai/api-reference/workflows/get-workflow https://api.sapt.ai/openapi.json get /projects/{projectId}/workflows/{id} Fetch a single workflow by id. # List recent workflow runs Source: https://docs.sapt.ai/api-reference/workflows/list-recent-workflow-runs https://api.sapt.ai/openapi.json get /projects/{projectId}/workflow-runs Most-recent-first list of workflow executions for this project. Filter by `workflowId` to narrow to a single workflow. # List workflows Source: https://docs.sapt.ai/api-reference/workflows/list-workflows https://api.sapt.ai/openapi.json get /projects/{projectId}/workflows List every workflow in the project. Optional `typeSlug` / `eventType` filters narrow to workflows that match a specific trigger. # Run a scheduled workflow immediately Source: https://docs.sapt.ai/api-reference/workflows/run-a-scheduled-workflow-immediately https://api.sapt.ai/openapi.json post /projects/{projectId}/workflows/{id}/run-now Bypass the cron-due check and fire a scheduled workflow now. `expectedRevision` is optional for backward compatibility and pins execution to the reviewed definition when supplied. Event-triggered workflows fire when their event arrives. # Update workflow Source: https://docs.sapt.ai/api-reference/workflows/update-workflow https://api.sapt.ai/openapi.json patch /projects/{projectId}/workflows/{id} Partially update a workflow. Any omitted field is unchanged; `isActive` remains accepted for backward compatibility. `expectedRevision` is optional for existing clients and guards against stale overwrites when supplied. New integrations should use the workflow-drafts resource. # Update workflow draft Source: https://docs.sapt.ai/api-reference/workflows/update-workflow-draft https://api.sapt.ai/openapi.json patch /projects/{projectId}/workflow-drafts/{workflowId} Update an inactive workflow definition using its latest revision. This endpoint cannot change activation state and refuses stale writes. # Billing, your plan and Sapt credits Source: https://docs.sapt.ai/docs/mintlify/account/billing See what you pay and when, update your card, buy Sapt credits, fix a failed payment, or cancel your plan on the web or your phone. Your plan pays for Sapt each month. The shop plan is \$297 a month, with 30-day money back. Sapt credits pay for what you use, like texts and AI replies. ## Open billing > [tab] On your phone > > Open **Shop** and tap **Billing**. You see it only if your role can manage billing. > > ![Billing on a phone: the plan with Update card, Sapt credits with Buy credits, payments, and Cancel plan](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/billing.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=784ae07c17fc65f8aa2873154cf3ccda) > [tab] On the web > > Click **Billing** in the sidebar. > > ![The Billing page on the Free plan: Plan with Upgrade and Talk to us, Credits with Buy credits, and Credit usage below](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/account/billing.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=44fbde85a6a8fb6b3dd598bdf7341d32) ## Your plan The plan card shows your plan's name and price, your next charge, and the card it comes from. > [tab] On your phone > > * **Update card** opens Stripe, the company that takes payments for Sapt, so you can change your card. > * **Payments** lists what you paid. Tap **Receipt** next to a payment to open it. > * If your shop has no plan yet, the card says what it costs and has a button to start it. > [tab] On the web > > * **Manage subscription** on the **Plan** card opens Stripe. There you change your card, get receipts, or cancel. > * On the free plan, click **Upgrade** to open **Choose a plan**, or **Talk to us** to book a call with Sapt. > * **Change plan**, under the cards, shows only on the Pro plan. ## Sapt credits Credits pay for AI replies, texts, your phone number and Google Maps checks. One credit is worth 1 cent. Your plan adds credits every month, and credits you buy stay until you use them. > [!WARNING] > > At zero credits, texts and AI replies pause. Buy more before you run out. On the web, the **Credits** card shows how many are left this month. **Credit usage** under it shows what used them each day. ### Buy credits > [tab] On your phone > > In **Billing**, tap **Buy credits**. Pick 1,000, 2,500 or 5,000 credits, then tap the buy button, like **Buy for \$10**. You pay on Stripe's secure page. > [tab] On the web > > On the **Credits** card, click **Buy credits**. Type how many you want, at least 500. Sapt shows the total. Click **Continue to checkout** and pay on Stripe's page. ## If something needs you You may see one of these in **Billing**: | You see | What to do | | - | - | | **Your last payment didn't go through** | Tap or click **Update card** and add a card that works. If you do not manage billing, ask the account owner. | | **Your plan ends** and a date (on your phone, **Ends**) | Your plan was cancelled. Everything works until that day. Tap or click **Keep my plan** to undo it. | | **Billing paused until** a date (on your phone, **Paused until**) | Your site, number and data stay live. Click **Resume now** on the web, or tap **Turn billing back on** on your phone. | | **Free trial ended** (on your phone, **Your free month ended**) | Start a plan from the **Plan** card. Until then, Sapt stays locked. | ## Cancel your plan > [tab] On your phone > > **1. Open Cancel plan** > > In **Billing**, scroll down and tap **Cancel plan**. > > **2. Read what happens** > > **Cancel your plan?** says the day your plan ends and what stops after it. You won't be charged again. Your customers, messages and bookings are kept. > > **3. Tell us why and cancel** > > Pick an answer under **Why are you leaving?** and tap **Cancel plan**. > > Changed your mind before that day? Tap **Keep my plan**. > [tab] On the web > > Click **Manage subscription** on the **Plan** card. You cancel on Stripe's page. Back in Sapt, **Keep my plan** undoes it until your plan ends. > [!NOTE] > > Run several businesses under one parent account? The parent pays for all of them, so billing lives on the parent. See [Billing for agencies](/docs/mintlify/platform/billing). ## Common questions **Where are my receipts?** On your phone, under **Payments**. On the web, in **Manage subscription**. **Who can see billing?** Anyone whose role includes billing, like **Admin** or **Billing manager**. See [Your team](/docs/mintlify/account/team). **Questions about a charge?** Email [hello@sapt.ai](mailto:hello@sapt.ai). ## Keep going > [card] [Your team](/docs/mintlify/account/team) > > Add people and choose what they see. > [card] [Get started](/docs/mintlify/owners/get-started) > > Sign up and get your shop live. # Add your team and choose what they see Source: https://docs.sapt.ai/docs/mintlify/account/team Invite the people who work at your shop, pick a role for each one, and change, remove or hand over the account when you need to. Add the people who work with you so they can answer customers and see bookings. Each person's role decides which parts of Sapt they see and what they can change. ## Add a teammate > [tab] On your phone > > **1. Open Team** > > Open **Shop** and tap **Team**, then **Invite a teammate**. > > **2. Enter their email** > > Type it under **Their email**, like [maya@example.com](mailto:maya@example.com). > > **3. Pick what they will do** > > Under **What will they do?**, pick a role. It starts on **Full access**, which can see and change everything. Each one says what it lets them do. > > **4. Send it** > > Tap **Send invite**. Sapt emails them a link to join. It works for 2 days. > > ![The Team screen on a phone: Invite a teammate, each person with their role, and Invited, not joined yet](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/team.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=465a558ea18872f51ed26f107828a4b9) > [tab] On the web > > **1. Open Team** > > Click **Team** in the sidebar, then **Add teammate**. > > ![The Team page: the member list with Add teammate at the top right, and Invitations below](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/account/team.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=6830428a0d46ba5393b7f14388325c29) > > **2. Find or invite them** > > Type their email, like [maya@example.com](mailto:maya@example.com). If they are on another of your Sapt accounts, pick their name from the list instead. > > **3. Pick a role** > > Choose one under **Role**. It starts on **Admin**, which can see and change everything. Pick a smaller role if they should not. > > ![The Add Teammate window: an email typed in, Invite by email, Role set to Admin, and Send Invite](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/account/add-teammate.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=3f648691d5411d0ff6b8637e71a9923b) > > **4. Send it** > > Click **Send Invite**. If you picked a name from the list, click **Add Teammate** and they are in right away. ## Invitations An invite link works for 2 days. Until they join, the invite waits in a list. > [tab] On your phone > > Under **Invited, not joined yet**, tap the invite. Tap **Send the invite again** for a fresh 2 days, or **Cancel invite** to stop the link. > [tab] On the web > > Under **Invitations**, click **Pending**, **Expired** or **Cancelled**. Open the **⋯** menu on an invite: > > * **Copy invite link** to text it to them yourself. > * **Extend expiry…** to give them more time: pick **2 days**, **3 days**, **7 days** or **30 days**, then **Extend**. The same link keeps working. > * **Resend email (+48h)** to email the link again. > * **Cancel** to stop the link. ## Roles: who sees what A role decides which parts of Sapt someone sees. If a role cannot see customers, that person does not see **Inbox**, **CRM** or **Workflows** at all. **Website**, **Team** and **Billing** each need their own access too. | Role | What it lets them do | | - | - | | **Account owner** | Holds your shop's Sapt account. Can do everything. Cannot be removed. | | **Admin** (on the phone, **Full access**) | Everything, including adding and removing people. | | **Billing manager** | Pays the Sapt bill. Nothing else. | | **Member** | Can sign in only. No customers, texts or bookings. | Your shop may not have every one of these, or may have others. The phone app says what each role lets someone do when you pick it. ### Change someone's role > [tab] On your phone > > In **Team**, tap the person. Pick a new role under **Their role** and tap **Save role**. > [tab] On the web > > In **Team**, click the pencil next to their role. Under **Assign Roles**, check the roles they should have. Nobody can change their own role. Ask the shop owner. ### Make your own role On the web, open **Project Settings**, then **Permissions**, then **Roles**. Click **Create Role**, name it and check what it can do under **Permissions**. Open a role and click **View as this role** to see Sapt the way that person will. ## Hand over the account Only the account owner can do this, on the web. **1. Find the new owner** In **Team**, open the **⋯** menu on the person's row. **2. Transfer it** Click **Transfer ownership**, then **Transfer ownership** again to confirm. You stay on the team. They can hand it back any time. ## Remove someone > [tab] On your phone > > In **Team**, tap the person, for example Maya, then **Remove Maya from the shop**. Tap **Remove Maya** to confirm. She can no longer open your shop in Sapt. What she already did stays, and you can invite her again later. > [tab] On the web > > In **Team**, open the **⋯** menu on their row and click **Remove**. Confirm. The account owner cannot be removed. To leave a shop yourself, open your own name in **Team** on your phone and tap **Leave this shop**. ## Keep going > [card] [Billing and credits](/docs/mintlify/account/billing) > > Your plan, your card and Sapt credits. > [card] [Owner alerts](/docs/mintlify/leads/alerts) > > Who gets texted about new customers. # Attribution analytics Source: https://docs.sapt.ai/docs/mintlify/analytics/attribution First-touch acquisition, per-event UTM breakdowns, a pageview-to-lead funnel and conversions by source, so you can see what actually brings in leads. Attribution analytics answers the question every aggregate dashboard dodges: **what actually brought this person in, and did it lead to a conversion?** Because Sapt resolves visitors to [people](/docs/mintlify/analytics/visitors), it can carry the source that acquired someone all the way through to the lead they become. ## First-touch acquisition The acquisition report groups your **visitors, sessions, and pageviews** by the source / medium / campaign that *originally* acquired each visitor, not the source of their latest visit. That's what tells you which channels genuinely create new audience versus which ones just collect people who were coming back anyway. | Dimension | Example | | - | - | | **Source** | `google`, `facebook`, `newsletter`, `(direct)` | | **Medium** | `organic`, `cpc`, `email`, `referral` | | **Campaign** | `spring-sale`, `retargeting-q2` | > [!NOTE] > > **First-touch is immutable; last-touch refreshes.** The first source/medium/campaign a visitor ever arrives on is recorded once and never overwritten: it's the credit for *acquiring* them. Their last-touch is updated on every new session, so you can still see what most recently re-engaged them. ## UTM breakdown The per-event UTM breakdown rolls up `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, and `utm_content` across your events, so you can audit campaign tagging and compare how individual UTMs perform, down to the event, not just the session. ## Conversion funnel The funnel shows how visitors progress through the stages that matter, and where they drop: ``` pageview ──▶ engaged ──▶ form_submit ──▶ lead ``` * **pageview:** anyone who landed. * **engaged:** visitors who fired an engagement event or scrolled past 50% of the page. * **form_submit:** visitors who submitted a tracked form. * **lead:** submissions that became a lead in your CRM. Each step reports its unique-visitor count and the percentage of the top step still there, so a leak (for example, lots of engaged visitors but few form submits) is obvious at a glance. ## Conversions by source, campaign & landing page Where the acquisition report counts *people*, the conversions report counts *outcomes*, broken down by: * **Source / campaign:** which channels and campaigns produce leads and purchases, not just traffic. * **Landing page:** which entry pages convert, so you can double down on the ones that earn. ## Lead time-to-conversion For every conversion, Sapt knows the visitor's first touch, so it can report **how long it took** from first visit to becoming a lead. A short lead time points to high-intent channels; a long one tells you which sources need nurturing before they pay off. ## Do it from an agent The same reports are available to AI agents through the [Attribution MCP](/docs/mintlify/analytics/attribution-mcp): * `getAcquisition`: first-touch acquisition * `getUtmBreakdown`: per-event UTM rollups * `getConversionFunnel`: the pageview → lead funnel * `getConversions`: conversions by source, campaign, landing page, or over time * `getLeadTime`: lead time-to-conversion * `getTraffic`: overall traffic ## Keep going > [card] [Visitors & identity](/docs/mintlify/analytics/visitors) > > The people behind the attribution numbers. > [card] [Server-side conversions](/docs/mintlify/analytics/conversions) > > Send the conversions you measure back to Meta and Google. > [card] [Attribution MCP](/docs/mintlify/analytics/attribution-mcp) > > Query every report here from an AI agent. # Attribution MCP Source: https://docs.sapt.ai/docs/mintlify/analytics/attribution-mcp A focused MCP connector that lets an AI agent see who is on your site, follow their journeys, read attribution reports and set up conversions. The Attribution MCP is a focused connector for one job: **let an AI agent query who's been on your site and act on it.** It exposes your [visitors](/docs/mintlify/analytics/visitors), their journeys, and your [attribution analytics](/docs/mintlify/analytics/attribution) as tools, plus a few write tools to turn a visitor into a contact or wire up [server-side conversions](/docs/mintlify/analytics/conversions). ## Connector URL ```txt theme={null} https://mcp.sapt.ai/attribution/mcp ``` It uses OAuth, exactly like the [main Sapt connector](/docs/mintlify/mcp/overview). Add it as a custom connector in Claude, ChatGPT, or any MCP client, sign in with your Sapt account, and the tools target your active workspace. > [!NOTE] > > This is a narrow, attribution-only surface. If you want broad access to a Project (content, CRM, social, ads, email), use the all-in-one [Sapt connector](/docs/mintlify/mcp/sapt) instead, or add both. ## Setup ### Claude 1. Open [Claude connectors](https://claude.ai/customize/connectors?modal=add-custom-connector). 2. Click **Add custom connector**. 3. Name it `Sapt Attribution`. 4. Paste `https://mcp.sapt.ai/attribution/mcp`. 5. Click **Connect** and authorize with your Sapt account. ### ChatGPT 1. Open **Settings → Apps → Advanced settings** and turn on **Developer mode**. 2. **Create app**, name it `Sapt Attribution`. 3. Paste `https://mcp.sapt.ai/attribution/mcp`, set authentication to **OAuth**, and create. ## Tools ### Visitors and journeys | Tool | What it does | | - | - | | `getLiveVisitors` | Visitors active on your site in the last few minutes, each with the first-touch source that brought them in. | | `getVisitors` | Recent visitors tagged anonymous, identified, or contact, plus headline stats (total, identified, known contacts, identification rate, top sources). | | `getVisitorTimeline` | The full event timeline for one visitor: every pageview, click, form submit, scroll, and identify event. | | `getContactJourney` | The unified timeline for a CRM contact across all their devices: web sessions, emails, texts, calls, DMs, orders, and lifecycle changes, with an attribution header. | | `linkVisitorToContact` | Find or create the CRM Person by email or phone and link the visitor to it, attaching all of the visitor's earlier anonymous sessions. | ### Reports | Tool | What it does | | - | - | | `getAcquisition` | First-touch acquisition: visitors, sessions, and pageviews by the source, medium, and campaign that originally acquired them. | | `getUtmBreakdown` | Per-event UTM rollups across `utm_source`, `utm_medium`, and `utm_campaign`, which capture multi-touch and mid-funnel exposure. | | `getConversions` | Leads and purchases, with value, by source, campaign, landing page, or over time. | | `getConversionFunnel` | The pageview → engaged → form_submit → lead funnel, with the percentage of the top step retained at each step. | | `getLeadTime` | How long visitors take to convert, from their first event to the lead. | | `getTraffic` | Overall first-party traffic and behavior metrics. | | `getPerformanceOverview` | The cross-channel marketing overview for 7, 30, or 90 days: spend, visitors, leads, revenue, and return by channel. Same numbers as the dashboard. | | `getAttributionHealth` | Whether ad spend is actually tracked end to end: ad accounts connected, tracking script live, events flowing, Meta CAPI and Google conversions set up and uploading. | | `listWidgets` | The workspace's saved dashboard widgets (their settings, not their data). | | `getWidgetData` | Saved widgets resolved into data points, the same numbers the dashboard's widget grid shows. | | `getViewMembers` | The real people behind a saved view's funnel step or traffic bucket. | ### Conversion setup | Tool | What it does | | - | - | | `getMetaConversionsSetup` | Read the project's Meta server-side conversion setup. | | `configureMetaConversions` | Send server-side conversions to a Meta pixel, using the project's existing Meta connection. | | `definePurchaseEvent` | Map a commerce event seen on your site to Sapt's Purchase conversion and Meta's Purchase event. | | `getGoogleConversionsSetup` | Read the Google Ads server-side conversion setup and, given a `customerId`, the conversion actions you can upload to. | | `configureGoogleConversions` | Point conversion uploads at a Google Ads account and conversion action. | | `removeGoogleConversionDestination` | Remove one Google server-side conversion destination. | ### Workspace | Tool | What it does | | - | - | | `whoami` | Who the connector is acting as, and which workspace is active. | | `getProject` | List the workspaces you can access, or read one in full. | | `switchProject` | Switch the active workspace for the rest of the session. | > [!WARNING] > > `linkVisitorToContact`, `configureMetaConversions`, `definePurchaseEvent`, `configureGoogleConversions`, and `removeGoogleConversionDestination` change live data and live ad-platform configuration. Confirm intent before calling them. Everything else here only reads. ## Typical flows * **Lead triage.** `getVisitors` to find identified visitors who haven't been contacted, then `getVisitorTimeline` to read what they looked at, then `linkVisitorToContact` to add the promising ones to the CRM. * **Channel review.** `getAcquisition` and `getConversions` to compare which sources bring traffic versus which bring leads, then `getLeadTime` to see how fast each channel pays off. * **Recover ad attribution.** `getAttributionHealth` or `getGoogleConversionsSetup` to check whether server-side conversions are wired up, then `configureGoogleConversions` to connect Google Ads and pick a conversion action. ## Keep going > [card] [Visitors & identity](/docs/mintlify/analytics/visitors) > > The dashboard view behind these tools. > [card] [Attribution analytics](/docs/mintlify/analytics/attribution) > > The reports getAcquisition, getConversions, and getLeadTime return. > [card] [Server-side conversions](/docs/mintlify/analytics/conversions) > > What configureGoogleConversions sets up. > [card] [MCP Overview](/docs/mintlify/mcp/overview) > > All Sapt MCP connectors and how to add them. # Server-side conversions Source: https://docs.sapt.ai/docs/mintlify/analytics/conversions Upload the leads and purchases Sapt measures to Meta and Google Ads server-side, recovering conversions the browser loses and feeding Smart Bidding. Browser-side conversion pixels miss a lot: ad blockers, tracking protection, and cross-device journeys all eat events the ad platforms never see. Sapt closes that gap by uploading the conversions it measures **server-side**, with customer data hashed before it leaves Sapt. The platforms get a more complete, better-matched signal, which directly improves Smart Bidding and optimization. Sapt sends conversions to two destinations. Connect either or both. ## Meta CAPI Connect Meta, pick a pixel, and conversions upload to Meta's Conversions API server-side, with hashed PII plus the browser's `fbc`/`fbp` cookies for matching, deduped against your browser pixel by event id. This is the same engine documented in detail, with full REST examples, on the API page: > [card] [Server-side conversions (CAPI) over REST](/docs/mintlify/api/conversions) > > Find your pixel, connect it, and POST conversions over the REST API. ## Google Ads CAPI Connect **Google Ads**, pick a **conversion action**, and from then on every conversion Sapt records uploads to Google Ads server-side, automatically. Both lead and purchase conversions are eligible. A conversion uploads whenever it carries an identifier Google can match on: | Identifier | Where it comes from | | - | - | | `gclid` | Google Ads click ID, captured on the landing page from the ad click. | | `gbraid` / `wbraid` | iOS / app click IDs Google uses when `gclid` isn't available. | | Hashed email / phone | Enhanced Conversions for Leads. Sapt hashes the customer's email or phone before upload. | This recovers the attribution the browser loses (blocked tags, expired cookies, cross-device) and feeds Google's **Smart Bidding** the offline-confirmed conversions it needs to optimize toward real outcomes rather than form-fills the tag happened to catch. > [!NOTE] > > **Deduplication.** Uploads are deduped by **order id**, so a conversion that's also captured by your in-page tag, or re-sent, won't double-count in Google Ads. ## Set it up You can wire up Google server-side conversions two ways: ### From the dashboard Open **Analytics**, go to **Setup**, and open the **Meta & Google** step. Choose the **Google Ads account** and the **Conversion action** that recorded conversions should upload to. Once it's set, no per-conversion work is needed: anything Sapt records flows through automatically. ### From the Attribution MCP Do the same from an AI agent with the [Attribution MCP](/docs/mintlify/analytics/attribution-mcp): * `getGoogleConversionsSetup`: read the current configuration. * `configureGoogleConversions`: connect Google Ads and pick the conversion action. ## Keep going > [card] [Server-side conversions (CAPI) over REST](/docs/mintlify/api/conversions) > > The full Meta CAPI REST reference: pixels, capi-pixel, and conversions. > [card] [Attribution analytics](/docs/mintlify/analytics/attribution) > > The conversions these uploads are built from. > [card] [Attribution MCP](/docs/mintlify/analytics/attribution-mcp) > > Configure Google conversions from an agent. # First-party analytics Source: https://docs.sapt.ai/docs/mintlify/analytics/overview Serve Sapt analytics from your own domain for more accurate data that is harder to block, plus a visitor ID you can join to your CRM records. Sapt analytics runs **first-party**: the tracking script and the data it sends are served from a subdomain of *your* site instead of a shared third-party domain. You point one DNS record at Sapt, drop in one script tag, and your pageviews and events start flowing, measured more accurately and owned by you. Once events are flowing, the rest of this section covers what you do with them: resolve [visitors to real people](/docs/mintlify/analytics/visitors), read [first-touch attribution](/docs/mintlify/analytics/attribution), and push [conversions back to ad platforms](/docs/mintlify/analytics/conversions) server-side. ## Why first-party Most analytics load from a shared vendor domain. Browsers and blockers treat that as third-party, so a large share of traffic never gets counted. Serving from your own domain changes that. | Benefit | What it means for you | | - | - | | **Harder to block** | The script loads from your subdomain, not a known analytics host, so blocklists that target vendor domains don't match. | | **Survives tracking protection** | The visitor cookie is a real first-party cookie, so Safari ITP and Firefox ETP keep it far longer than a third-party one. | | **More accurate numbers** | Fewer dropped requests means your traffic, sources, and conversions reflect reality. | | **You own the connection** | Data flows over your domain. You can read the visitor ID from your own page code and join it to your CRM. | | **Cookieless-friendly** | One first-party cookie with no personal data, and no third-party tracker, so it doesn't trigger a cookie banner on its own. | > [!NOTE] > > First-party makes analytics *harder* to block, not unblockable. DNS-level blockers and strict anti-CNAME modes can still opt out, which is the privacy-respecting outcome. ## How it works You add one **CNAME** record so a short subdomain of your site (for example `m.yourdomain.com`) resolves to Sapt's ingest. Sapt issues the TLS certificate for it automatically. From then on: 1. The browser loads the tracking script from your subdomain. 2. The script sends each event back to that **same subdomain**, so the whole exchange is first-party. 3. Sapt enriches each event (source, campaign, location, device) on the server and shows it in your analytics dashboard. ## Set it up ### 1. Choose your tracking address In the Sapt dashboard, open **Project Settings** and then **Domains**. In **Connect a domain**, enter the **Domain you own** (for example `yourdomain.com`) and tick **First-party tracking**. The **Tracking address** fills in as `m.yourdomain.com`; change it if you like. Click **Save domain settings**. ### 2. Add the DNS record Add the record the Domains screen shows you, at your DNS provider: ```txt theme={null} Type: CNAME Name: m.yourdomain.com ← your tracking address Target: (shown in the dashboard) ``` That CNAME routes your subdomain to Sapt and lets Sapt issue the certificate for it. Sometimes the screen also lists a second CNAME for certificate validation: add every record it shows. If Sapt has access to your DNS (for example through Cloudflare), **Apply DNS records** adds them for you. > [!WARNING] > > Use the values shown in your dashboard, not ones copied from this page. ### 3. Wait for it to go live DNS changes take anywhere from a few minutes to a few hours. The tracking address moves from **Waiting for records** to **Issuing certificate** to **Live**. Click **Check connection** to check again. ### 4. Add the tracking script Open **Analytics**, go to **Setup**, and open the **Tracking** step. Choose **Your own domain** and paste the snippet into your site's ``. It includes your tracking address and Project ID: ```html theme={null} ``` That's it. The script auto-detects single-page-app route changes, so one tag covers most sites. Visit a page and you'll see it appear in your analytics dashboard within a few seconds. > [!TIP] > > Not ready for DNS yet? Choose **Sapt domain** instead. That snippet loads from `ingest.sapt.ai` and works right away, but it is easier for blockers to catch. You can switch to your own domain later. ## Track custom events Once the script is loaded it exposes a small global API for events that matter to your business: ```js theme={null} // A custom event, with optional properties window.sapt.track('signup', { plan: 'pro' }); // Attach known traits to the current visitor window.sapt.identify({ email: 'maya.chen@example.com' }); // Read the first-party visitor ID (e.g. to send to your own backend) const visitorId = window.sapt.getVisitorId(); ``` `getVisitorId()` returns the visitor ID: the first-party `_sapt_vid` cookie, or the ID the script keeps in this browser. It is a random ID with no personal data. On a third-party install, a first visit's ID can be the browser's own for about 2 seconds, until the first reply swaps it for the one Sapt already holds, so read it when you send it rather than at page load. Sending it to your backend lets you stitch anonymous visits to CRM records later. Calling `identify()` (or a tracked form submit) is also what moves a visitor from **anonymous** to **identified**. See [Visitors & identity resolution](/docs/mintlify/analytics/visitors). ### Captured automatically You don't need to instrument these. The script records them out of the box: | Event | When it fires | | - | - | | `pageview` | Page load and every SPA route change | | `outbound_click` | A click on a link to another domain | | `phone_click` / `email_click` | A click on a `tel:` or `mailto:` link | | `file_download` | A click on a document or archive link (PDF, DOCX, ZIP, …) | | `form_submit` | A form is submitted | | `scroll_depth` | The visitor passes 25 / 50 / 75 / 100% of the page | | `engagement` | Active, visible time on the page | ## Hand it to your coding agent Let an AI coding assistant do the install. Copy the prompt below, fill in your tracking host and Project ID from the dashboard, and paste it into your assistant. ```text Setup prompt theme={null} Install Sapt first-party analytics on this website. Add exactly this tag to the site's , on every page, and change nothing else: Replace m.yourdomain.com with the tracking host shown in my Sapt dashboard and YOUR_PROJECT_ID with my Project ID. Rules: - Do NOT add Google Analytics, Plausible, Segment, or any other analytics library. - Do NOT self-host, rename, or proxy the script. Load it from that exact URL. - For a single-page app, no extra setup is needed: the script tracks route changes automatically. Just ensure the tag is present on first load. - For custom business events, call window.sapt.track('event_name', { ...props }) at the relevant moment (e.g. a successful signup or purchase). After installing, load a page and confirm a request to /v1/event succeeds in the browser's network tab. ``` ## Privacy notes * One first-party cookie, `_sapt_vid`, holds a random ID: no names, emails, or cross-site identifiers. * Geo and device details are derived on Sapt's server from the request; nothing extra is collected in the browser. * Because there's no third-party tracker, the script alone doesn't require a consent banner. Follow the rules for your own region and any other tools on your site. ## Keep going > [card] [Visitors & identity](/docs/mintlify/analytics/visitors) > > See who's on your site and turn identified visitors into CRM contacts. > [card] [Attribution analytics](/docs/mintlify/analytics/attribution) > > First-touch acquisition, UTM breakdowns, and the conversion funnel. > [card] [Server-side conversions](/docs/mintlify/analytics/conversions) > > Push leads and purchases back to Meta and Google server-side. > [card] [Attribution MCP](/docs/mintlify/analytics/attribution-mcp) > > Query who's been on your site, and act on it, from an AI agent. # Visitors & identity resolution Source: https://docs.sapt.ai/docs/mintlify/analytics/visitors See every visitor on your site as anonymous, identified or a contact, replay their sessions, and link an identified visitor to a CRM contact. The **Attribution** view (**Analytics** > **Attribution**) is the people-shaped side of your analytics. Instead of aggregate pageview counts, it lists the actual people who've been on your site, how well Sapt knows each one, and what they did. ## The visitor list Each row is one visitor (a stable first-party `_sapt_vid`), tagged with where they sit in the identity lifecycle: | Status | Meaning | | - | - | | **Anonymous** | We've seen the device but have no personal data: just a random first-party ID and the events it produced. | | **Identified** | The visitor has left an email or phone (via the tracking script's `identify()` call or a tracked form submit), so we can attach a real identity to their activity. | | **Contact** | The visitor is linked to a CRM **Person**. Their web activity and their CRM record are now one timeline. | Filter the list with **Everyone**, **Identified**, **Anonymous**, or **Strong intent**. The **identification rate** (the share of recent visitors who are identified or better) comes back from the [Attribution MCP](/docs/mintlify/analytics/attribution-mcp)'s `getVisitors` tool. It tells you how well your site turns anonymous traffic into people you can follow up with. ## The lifecycle A visitor moves through three stages, and Sapt keeps everything they did *before* each transition: ``` anonymous ──identify()/form──▶ identified ──link to Person──▶ contact ``` 1. **Anonymous → identified.** The moment a visitor submits a tracked form, or your code calls `window.sapt.identify({ email })` (see [First-party analytics](/docs/mintlify/analytics/overview)), Sapt attaches that email or phone to their visitor ID. Everything they browsed *before* identifying is retroactively theirs. 2. **Identified → contact.** Linking the visitor to a CRM Person promotes them to a contact. Do it with `linkVisitorToContact` on the [Attribution MCP](/docs/mintlify/analytics/attribution-mcp). > [!NOTE] > > Identification is sticky and **cross-device**. When the same email or phone shows up on a phone and a laptop, Sapt stitches those visitor IDs together so the timeline shows one person across every device, not two anonymous strangers. ## Visitor timeline Select anyone in the list to replay their sessions: every pageview, click, form submit, and custom event in order, with the source and campaign that brought each session. For a contact, the **CRM contact** chip opens their contact details. ## Link a visitor to a contact When a visitor is identified, `linkVisitorToContact` turns them into a contact: * A CRM **Person** is created (or matched, if one already exists for that email or phone). * The visitor's **entire prior browsing history is attached retroactively**, including sessions from before they identified and from other devices that have been stitched to them. * From then on, new web activity keeps flowing onto that contact's journey automatically. This is how a cold, anonymous pageview from three weeks ago ends up as the first touch on a brand-new contact's record the instant they fill out a form. ## Do it from an agent Everything here is also available to AI agents through the [Attribution MCP](/docs/mintlify/analytics/attribution-mcp): * `getVisitors`: the visitor list with identity status and stats * `getLiveVisitors`: who's on the site right now * `getVisitorTimeline`: one visitor's full event history * `linkVisitorToContact`: link a visitor to a CRM Person * `getContactJourney`: the unified journey once a visitor is a contact ## Keep going > [card] [Attribution analytics](/docs/mintlify/analytics/attribution) > > Where your identified visitors and conversions originally came from. > [card] [Attribution MCP](/docs/mintlify/analytics/attribution-mcp) > > Query visitors and link them to contacts from an AI agent. > [card] [First-party analytics](/docs/mintlify/analytics/overview) > > Install the tracking script and the identify() call that powers all of this. # CMS and asset APIs Source: https://docs.sapt.ai/docs/mintlify/api/cms-assets Create, read, update and delete Sapt CMS content records over REST, and find, tag and delete the asset library files they reference. CMS content records and library files are separate resources. Deleting a record preserves its files; deleting a library asset removes the stored file and asset record. Use both operations when your pipeline owns both resources and no other consumer needs the file. All paths below are relative to `https://api.sapt.ai` and accept `Authorization: ApiKey ` or an OAuth bearer token. ## Content endpoints | Method | Path | Operation | | - | - | - | | `GET` | `/projects/{projectId}/cms/content/{contentTypeSlug}` | List content, with `limit` and `offset` | | `GET` | `/projects/{projectId}/cms/content/{contentTypeSlug}/{slug}` | Read content by slug | | `POST` | `/projects/{projectId}/cms/items` | Create content | | `GET` | `/projects/{projectId}/cms/items/{contentItemId}` | Read content by stable ID | | `PATCH` | `/projects/{projectId}/cms/items/{contentItemId}` | Update supplied fields | | `DELETE` | `/projects/{projectId}/cms/items/{contentItemId}` | Delete the CMS record | The content type must already exist. `content` must match that type's schema. Create and update use the same validation and permissions as the dashboard: ordinary content requires `cms_items:write`, and reads require `cms_items:read`. Create/update also read the type definition using `cms_types:read`. Meta planner content uses its own `meta_planner` permissions. ### Create content This example assumes an existing `clip` content type with a `title` field. Replace the type slug and content fields with your project's schema. ```bash theme={null} curl --fail-with-body -X POST \ "https://api.sapt.ai/projects/$PROJECT_ID/cms/items" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"contentTypeSlug":"clip","slug":"clip-001","name":"Clip 001","content":{"title":"First clip"},"status":"draft"}' ``` Returns HTTP `201` with `{ "item": { ... } }`. Store `item.id` for future mutations. Creating content does not schedule a social-platform post. Use the [social publishing API](/docs/mintlify/social/scheduling) for that. ### Update content ```bash theme={null} curl --fail-with-body -X PATCH \ "https://api.sapt.ai/projects/$PROJECT_ID/cms/items/$CONTENT_ITEM_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Updated clip","content":{"title":"New title"}}' ``` Returns HTTP `200` with `{ "item": { ... } }`. Omitted fields stay unchanged. Nested content objects merge according to the content schema; arrays and scalar values replace. The content type cannot be changed through this endpoint. `scheduledAt` and `publishedAt` accept ISO 8601 timestamps or `null`. Clearing `scheduledAt` returns a scheduled CMS item to draft. These are CMS publishing dates, separate from a social post's schedule. Responses serialize dates as ISO strings. Invalid content returns `400` with field errors in `error.details.errors`; slug conflicts and concurrent edits return `409`. ### Delete content ```bash theme={null} curl --fail-with-body -X DELETE \ "https://api.sapt.ai/projects/$PROJECT_ID/cms/items/$CONTENT_ITEM_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Returns HTTP `200` with `{ "success": true }`. A missing item returns `404`. This removes only the CMS record. Library assets and scheduled-post records remain; delete them through their own endpoints when appropriate. ## Find library assets ```bash theme={null} curl --fail-with-body \ "https://api.sapt.ai/projects/$PROJECT_ID/assets?feature=cms&assetType=video&limit=100&offset=0" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Returns `{ "assets": [...], "total": 90 }`. Each asset contains `id`, `url`, `filename`, `mimeType`, `sizeBytes`, `feature`, `assetType`, `tags`, and `createdAt`. Use `id` for updates and deletion. `search` matches filenames and tags; `untagged=true` selects files with no tags. `limit` is 1–100, default 50. Collect the complete set of IDs before deleting a paginated batch: deleting while advancing `offset` can skip records as the remaining pages shift. Read one asset with `GET /projects/{projectId}/assets/{assetId}`; it returns `{ "asset": { ... } }` or `404`. Both reads require `assets:read`. ## Update library assets `PATCH /projects/{projectId}/assets/{assetId}` updates `feature` or `tags` and returns `{ "asset": { ... } }`. It does not replace the file bytes. ```json theme={null} { "tags": ["cleanup-batch-001"], "tagOperation": "add" } ``` `tagOperation` supports `replace` (default), `add`, and `remove`. Updates require `assets:write`; changing another uploader's asset also requires `assets:manage`. ## Delete library assets ```bash theme={null} curl --fail-with-body -X DELETE \ "https://api.sapt.ai/projects/$PROJECT_ID/assets/$ASSET_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Requires `assets:manage`. Returns HTTP `200` with `{ "deletedCount": 1 }` after deleting the origin file and asset record, or `{ "deletedCount": 0 }` if the ID is already absent from this project. A failed storage deletion leaves the record available for retry. CDN or browser caches may continue serving previously cached bytes after origin deletion. > [!WARNING] > > Asset deletion does not check shared references. Confirm that other content, pending posts, and > retries no longer need the file. Existing content and post records are preserved, so their > references can become unavailable. Published email delivery images are protected and return `400` > if deletion is attempted. For the full clip lifecycle, including a cleanup job 24 hours after publication, see [Media retention and cleanup](/docs/mintlify/social/cleanup). # Connecting integrations Source: https://docs.sapt.ai/docs/mintlify/api/connect-integrations Create an OAuth connect link for Meta, Gmail, Google Business Profile and more over the Sapt API, hand it to your client, and poll until they finish. Everything you can connect from the Sapt dashboard, you can also connect over the REST API. This is what you reach for when you onboard clients through your own app or funnel: you ask Sapt for a secure connect link for a provider like Meta, hand that link to your client, and poll until they finish signing in. The flow is the same for every OAuth provider. Only the `providerId` changes. > [!NOTE] > > There are three connection styles. **OAuth providers** (Meta, Gmail, Google Business Profile, …) > use the connect-session flow below. **API-key providers** (see [API-key > integrations](#api-key-integrations)) take pasted credentials instead. **Email-code providers** > (Content Rewards) connect only in the app. The [List > integrations](#1-discover-what-you-can-connect) call tells you which style each provider uses via > its `authKind`. ## 1. Discover what you can connect Call **List integrations** to see every provider available to a Project and its current connection status. This is the authoritative source for the `providerId` values and each provider's `authKind`. ```bash theme={null} curl https://api.sapt.ai/projects/$PROJECT_ID/integrations \ -H "Authorization: ApiKey sapt_your_api_key" ``` Each entry includes the fields you need to drive a connect UI: | Field | What it tells you | | - | - | | `providerId` | The id you pass when connecting, such as `meta`. | | `displayName` | Human label, such as "Meta (Facebook & Instagram)". | | `authKind` | `oauth2` (use connect-sessions), `api_key` (submit credentials), or `email_code` (connect in the app). | | `connected` | Whether this Project already has the integration connected. | | `connectedAccounts` | For multi-account providers, the sub-accounts already linked (Pages, mailboxes, locations). | > [!NOTE] > > The list includes a few providers the dashboard hides, such as `github`, `square`, `lightspeed`, > `resend`, `tiktok-shop` and `tiktok`. Prefer the ones the dashboard shows; see > [Integrations](/docs/mintlify/platform/integrations). ## 2. Create a connect link For any `oauth2` provider, mint a one-time connect link with **Create a connect session**. Pass the `providerId` from step 1. ```bash theme={null} curl -X POST https://api.sapt.ai/projects/$PROJECT_ID/connect-sessions \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "providerId": "meta", "clientInvite": true }' ``` ```json theme={null} { "connectUrl": "https://api.sapt.ai/integrations/oauth/meta/start/abc123…", "token": "abc123…", "expiresAt": "2026-06-24T12:00:00.000Z" } ``` * **`connectUrl`** is the link you give your client. Opening it begins the OAuth consent flow and, on completion, lands them on a Sapt-hosted result page. * **`token`** identifies this session. Use it to poll for completion in step 3. * **`clientInvite: true`** extends the link's lifetime so it survives being emailed or embedded in an onboarding step, rather than expiring in minutes. Omit it for short-lived, same-session connects. ## 3. Poll for completion The connect link finishes on Sapt's side, not yours, so poll **Get connect session status** with the `token` until it leaves `pending`. ```bash theme={null} curl https://api.sapt.ai/projects/$PROJECT_ID/connect-sessions/$TOKEN \ -H "Authorization: ApiKey sapt_your_api_key" ``` ```json theme={null} { "token": "abc123…", "providerId": "meta", "status": "completed", "expiresAt": "2026-06-24T12:00:00.000Z", "completedAt": "2026-06-24T11:42:10.000Z", "error": null } ``` | `status` | Meaning | | - | - | | `pending` | The client hasn't finished consent yet. Keep polling. If `error` is set, the provider refused the last try (the client declined, or lacks access), and the same link still works for another try. | | `completed` | Connected. The provider's tools are now live for the Project. | | `failed` | The client started but consent failed. See `error`, and mint a new link to retry. | | `expired` | The link's TTL elapsed before completion. Mint a new link. | `error` is the reason for the last refusal or failure, in the provider's words where it gave some, or `null`. It can be set while the session is still `pending`, and opening the link again clears it. ## API-key integrations Providers whose `authKind` is `api_key` (for example Stripe or Shopify) don't use a connect link. You submit their credentials directly with **Connect an API-key integration**. OAuth and email-code providers reject this call, so always branch on `authKind` from step 1. ```bash theme={null} curl -X POST https://api.sapt.ai/projects/$PROJECT_ID/integrations \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "providerId": "some_provider", "credentials": { "apiKey": "…" } }' ``` The response returns the `providerId` and a `webhookUrl` to paste into the provider's dashboard when the provider sends webhooks. ## OAuth provider IDs The most-requested OAuth providers and their exact ids. Note the mix of hyphens and underscores: | Provider | `providerId` | | - | - | | Meta (Facebook + Instagram) | `meta` | | Gmail | `gmail` | | Google Business Profile | `google-business` | | Google Ads | `google-ads` | | Google Analytics | `google_analytics` | | Google Calendar | `google_calendar` | > [!WARNING] > > Treat [List integrations](#1-discover-what-you-can-connect) as the source of truth for > `providerId` values and `authKind`. The set of providers and their availability depend on the > Project, and ids are case- and separator-sensitive. ## Keep going > [card] [Integrations](/docs/mintlify/platform/integrations) > > What connecting each tool unlocks. > [card] [REST API Reference](/docs/mintlify/api/overview) > > Full endpoint reference for connect-sessions and integrations. > [card] [Authentication](/docs/mintlify/guides/authentication) > > API keys, OAuth scopes, and refresh tokens. # Server-side conversions (CAPI) Source: https://docs.sapt.ai/docs/mintlify/api/conversions Send conversions to Meta's Conversions API server-side through Sapt, using your Meta connection or a pixel-scoped CAPI token you paste in. Sapt can deliver conversions to Meta's Conversions API (CAPI) for you: server-side, deduped against your browser pixel, with customer data hashed before it leaves Sapt. You connect a pixel once, then send conversions through the API, let your conversion definitions fire them from tracked-site events and new CRM records, or add a **Track a conversion** step to a workflow (for example on a Stripe payment trigger). Shopify and Stripe payments do not fire conversions on their own. There are two ways to power the pixel's token, and both are Meta-compliant: * **OAuth-sourced:** Sapt derives the token from your connected Meta account. Nothing to paste. * **Pasted token:** you generate a pixel-scoped CAPI token in Meta Events Manager and store it here. Use this when your pixel lives in a Business Manager that isn't the one you connected, or when you want an explicit, scoped token. > [!WARNING] > > Use a **pixel-scoped CAPI access token** (generated in Events Manager), not a broad ad-account token. Meta's terms prohibit sharing general access tokens; a CAPI token tied to a single pixel is the supported credential for server events. ## Before you start You need three things in place. The whole setup, end to end: 1. **An API key.** Create one in your [Sapt dashboard](https://app.sapt.ai) under Account → API Keys (starts with `sapt_`). See [Authentication](/docs/mintlify/guides/authentication). 2. **Meta connected** to the project, with ads permissions. See [Connecting integrations](/docs/mintlify/api/connect-integrations). This is what lets Sapt discover your pixels. 3. **A pixel connected for CAPI:** steps 1 and 2 below. Once connected, sending conversions (step 3) is a single call you can make from anywhere. ## 1. Find your pixel List the Meta pixels discoverable through your connected Meta account: ```bash theme={null} curl https://api.sapt.ai/projects/$PROJECT_ID/pixels \ -H "Authorization: ApiKey sapt_your_api_key" ``` ```json theme={null} { "pixels": [ { "id": "1234567890", "name": "My Pixel", "adAccountId": "act_…", "adAccountName": "Brand", "isActive": true, "lastFiredTime": "2026-06-20T…" } ], "adAccountsScanned": 2 } ``` If the list is empty, connect Meta with ads permissions first (see [Connecting integrations](/docs/mintlify/api/connect-integrations)), or create a pixel in Events Manager. ## 2. Connect the pixel Pin a pixel for CAPI. Either paste a pixel-scoped token, or set `useOauthToken: true` to source it from your Meta connection. ```bash theme={null} # Option A: paste a token generated in Events Manager curl -X PUT https://api.sapt.ai/projects/$PROJECT_ID/capi-pixel \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "pixelId": "1234567890", "accessToken": "EAAB…", "testEventCode": "TEST12345" }' # Option B: use the connected Meta account as the token source curl -X PUT https://api.sapt.ai/projects/$PROJECT_ID/capi-pixel \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "pixelId": "1234567890", "useOauthToken": true }' ``` Check or remove the connection any time: ```bash theme={null} curl https://api.sapt.ai/projects/$PROJECT_ID/capi-pixel \ -H "Authorization: ApiKey sapt_your_api_key" # → { "connected": true, "pixelId": "1234567890", "tokenSource": "paste", "testEventCode": "TEST12345", "updatedAt": "…" } curl -X DELETE https://api.sapt.ai/projects/$PROJECT_ID/capi-pixel \ -H "Authorization: ApiKey sapt_your_api_key" ``` The access token is **never** returned by `GET /capi-pixel`. > [!NOTE] > > **Generating a pixel-scoped token in Events Manager:** open [Events Manager](https://business.facebook.com/events_manager2), pick your pixel → **Settings** → **Conversions API** → **Generate access token**. That token is scoped to the one pixel. Paste it into `accessToken` above. ## 3. Send a conversion Send a conversion server-side. Sapt hashes the customer data and delivers it to the ad platform the customer came from, found from their tracked visit (`visitorId`, or the email or phone the tracking script already tied to a visitor). A conversion with no known ad source is recorded in Sapt and sent nowhere. ```bash theme={null} curl -X POST https://api.sapt.ai/projects/$PROJECT_ID/conversions \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "kind": "Purchase", "value": 49.99, "currency": "USD", "email": "buyer@example.com", "eventId": "your-order-id-123" }' ``` ```json theme={null} { "eventId": "your-order-id-123" } ``` * **`kind`:** one of `Lead`, `Purchase`, `CompleteRegistration`, `AddToCart`, `InitiateCheckout`, `PageView`, `ViewContent`, `Subscribe`, `Qualified`, `Schedule`, `Contact`, `Showed`, `NoShow`, `Disqualified`. * **`eventId`:** send the **same** id from your browser pixel (`fbq`) so Meta dedupes the browser and server events. If you omit it, Sapt mints one and returns it in the response. * Other optional fields: `value`, `currency`, `phone`, `visitorId`, `personId`, `sourceUrl`. A `202` means the conversion was accepted. A CAPI pixel must be connected first (step 2), and the API key needs the `web_analytics:write` permission. ## 4. Verify with a test event Fire a synthetic event and watch for it in Events Manager → **Test Events**: ```bash theme={null} curl -X POST https://api.sapt.ai/projects/$PROJECT_ID/capi-pixel/test-event \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "eventName": "Lead", "testEventCode": "TEST12345" }' # → { "eventId": "…", "eventName": "Lead" } ``` ## Keep going > [card] [Connecting integrations](/docs/mintlify/api/connect-integrations) > > Connect Meta and other providers over the API. > [card] [REST API Reference](/docs/mintlify/api/overview) > > Full endpoint reference for pixels, capi-pixel, and conversions. > [card] [Ads](/docs/mintlify/platform/ads) > > What server-side conversions improve. # Building a client onboarding funnel Source: https://docs.sapt.ai/docs/mintlify/api/onboarding-funnels Create a configured client project from a template, connect the client's integrations, and hand off an invite link, all over the Sapt REST API. When you onboard clients through your own app or funnel, Sapt stays behind the scenes. A handful of REST calls spin up a **fully configured client project**, connect the client's tools, and produce **links you embed in your own buttons**, so the client never receives a Sapt-branded email and never sees the Sapt dashboard until they're ready. Every client project is created as a **sub-project of your parent project** (your top-level account project), so it automatically shares that project's plan and credit pool. You subscribe once and pay from one account, however many clients you run. See [Billing & projects](/docs/mintlify/platform/billing) for exactly how the shared pool works. ## How the pieces fit Three things are involved. Get these straight and the rest is easy: | Piece | What it is | | - | - | | **Parent project** | Your own top-level project. It owns billing (one plan, one credit pool) and it stores your templates. It's the `{projectId}` in every call below, and the only place you need admin rights. | | **Template** | A saved bundle of configuration (roles, workflows, CRM types, branding, …). A template is a **blueprint, not a project**, and it lives **on your parent project**. | | **Client workspace** | Each project the funnel creates: a **sub-project of your parent**, built from the template, sharing the parent's billing. One per client. | In one sentence: **under your *parent* project, you stamp a *template* to create a new *child* project for the client.** Two rules follow from that: * **The child belongs to the parent project, never to the template.** A template isn't a project; it's just the configuration that gets copied in. Every client is a sub-project of your parent project, which is exactly why they all share its billing and credits. * **The template must live on that same parent project.** You pass both in one path (`…/projects/{parentId}/templates/{templateId}/apply`), and Sapt requires the template to belong to that parent. Keep your client templates on your parent project; one project can hold as many as you like. Sourcing a template from a *different* project than the billing parent isn't supported, by design, so a client always resolves to one clear billing owner. The only access you need is **admin on the parent project**: the `sub_projects:write` permission. No per-client billing, no separate accounts, nothing else to wire up. The pattern across the steps below is the same every time: **you call Sapt, Sapt hands you back a link or an id, you drive your own UI with it.** Three phases: > [!NOTE] > > **Prerequisite: a template saved on your parent project.** Create one from the dashboard while in your parent project (**Project Settings** > **Project templates** > **Save template**) or over the API with `POST /projects/{parentProjectId}/snapshot`, then reference its `templateId` below. A snapshot captures that project's configuration (roles, sidebar, workflows, CRM types and relations, branding, website settings, brand voice, and conversation assistants) and stores it as a reusable template on that same project. ## 1. Create the client project from your template One call creates the sub-project **and** stamps your template onto it. > [!NOTE] > > **`{projectId}` is your *parent* project** (the billing owner, where the template lives); **`{templateId}`** is the template on it. The client is created as a **sub-project beneath the parent** and inherits its billing. ```bash theme={null} curl -X POST https://api.sapt.ai/projects/$PARENT_PROJECT_ID/templates/$TEMPLATE_ID/apply \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Ridgeline Auto", "variableValues": { "clientName": "Ridgeline Auto", "supportEmail": "help@example.com" } }' ``` ```json theme={null} { "success": true, "data": { "project": { "id": "9f1c…", "name": "Ridgeline Auto", "slug": "ridgeline-auto", "createdAt": "2026-06-24T11:00:00.000Z" }, "templateApply": { "status": "applied", "report": { "counts": { "roles": 3, "workflows": 5, "objectTypes": 4, "objectRelations": 2, "sidebarSections": 3, "perRoleHides": 1 }, "appliedCount": 21, "skipped": [], "failures": [], "missingVariables": [] } } } } ``` * **`data.project.id`** is the new client project. Carry it through every step below. * **`variableValues`** fills any `{{placeholders}}` your template declares (client name, support email, brand color, …). Anything you leave out comes back under `report.missingVariables` and is left as a literal placeholder to fill later. * **`report.failures`** is empty on a clean apply; anything that couldn't be created is listed there with a reason rather than failing the whole call. ## 2. Connect the client's integrations Mint a secure **connect link** for each tool the client needs to hook up: Meta, Gmail, Google Business Profile, and the rest. You hand the client the link (embed it in a button), and you poll until they finish signing in. The client connects their own accounts without ever logging into Sapt. ```bash theme={null} # Mint a connect link for a provider (set clientInvite so the link survives being embedded). curl -X POST https://api.sapt.ai/projects/$CLIENT_PROJECT_ID/connect-sessions \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "providerId": "meta", "clientInvite": true }' ``` ```json theme={null} { "connectUrl": "https://api.sapt.ai/integrations/oauth/meta/start/abc123…", "token": "abc123…", "expiresAt": "2026-06-24T12:00:00.000Z" } ``` `connectUrl` is the link you drop into your funnel, behind a "Connect Meta" button. After the client finishes, poll the session until it leaves `pending`: ```bash theme={null} curl https://api.sapt.ai/projects/$CLIENT_PROJECT_ID/connect-sessions/$TOKEN \ -H "Authorization: ApiKey sapt_your_api_key" # → { "status": "completed", ... } (pending → completed | failed | expired) ``` > [!NOTE] > > `clientInvite: true` extends the link's lifetime so it survives being embedded in an onboarding step instead of expiring in minutes. To discover which providers a project can connect (and their exact `providerId` / `authKind`), call `GET /projects/{id}/integrations`. The connect flow (every provider, API-key integrations, and the full status table) is covered in **[Connecting integrations](/docs/mintlify/api/connect-integrations)**. ## 3. Hand off an invite link, not an email Finally, give the client access to their finished workspace. Pass **`sendEmail: false`** and Sapt skips its stock email and returns an **`acceptUrl`** instead: the link you wire into your own "Get started" button. ```bash theme={null} # First grab the role to assign (your template ships its own roles). curl https://api.sapt.ai/projects/$CLIENT_PROJECT_ID/roles \ -H "Authorization: ApiKey sapt_your_api_key" # → { "success": true, "data": [ { "id": "2a7b…", "name": "Admin" }, … ] } # Then invite. sendEmail:false returns the embeddable acceptUrl. curl -X POST https://api.sapt.ai/projects/$CLIENT_PROJECT_ID/invitations \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "email": "owner@example.com", "projectRoleId": "'$ROLE_ID'", "sendEmail": false }' ``` ```json theme={null} { "invitationId": "b3e9…", "email": "owner@example.com", "action": "invited", "expiresAt": "2026-07-01T11:00:00.000Z", "acceptUrl": "https://app.sapt.ai/accept-invite?token=…" } ``` | Field | What it tells you | | - | - | | `acceptUrl` | Where the client accepts the invite. Returned **only** when `sendEmail: false`. Embed it in your button, QR code, or onboarding step. | | `action` | `invited` (a new invitation was created) or `skipped` (for example, the user is already a member). | | `expiresAt` | When the link stops working. | > [!NOTE] > > Want Sapt to email the invite instead? Omit `sendEmail` (or set it to `true`) and Sapt sends the acceptance link directly; `acceptUrl` comes back `null`. The `sendEmail: false` path is the one to use when *you* own the welcome experience. ## Putting it together The whole funnel, end to end, threading each response into the next with [`jq`](https://jqlang.github.io/jq/): ```bash theme={null} API="https://api.sapt.ai" AUTH="Authorization: ApiKey sapt_your_api_key" # 1. Create + configure the client project from your template. CLIENT_ID=$(curl -s -X POST "$API/projects/$PARENT_PROJECT_ID/templates/$TEMPLATE_ID/apply" \ -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "name": "Ridgeline Auto", "variableValues": { "clientName": "Ridgeline Auto" } }' \ | jq -r '.data.project.id') # 2. Mint a connect link for each integration the client needs (embed each in a button). CONNECT_URL=$(curl -s -X POST "$API/projects/$CLIENT_ID/connect-sessions" \ -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "providerId": "meta", "clientInvite": true }' \ | jq -r '.connectUrl') # 3. Grab a role, then mint the embeddable invite link. ROLE_ID=$(curl -s "$API/projects/$CLIENT_ID/roles" -H "$AUTH" \ | jq -r '.data[] | select(.name == "Admin") | .id') ACCEPT_URL=$(curl -s -X POST "$API/projects/$CLIENT_ID/invitations" \ -H "$AUTH" -H "Content-Type: application/json" \ -d "{ \"email\": \"owner@example.com\", \"projectRoleId\": \"$ROLE_ID\", \"sendEmail\": false }" \ | jq -r '.acceptUrl') echo "Client project: $CLIENT_ID" echo "Connect Meta button → $CONNECT_URL" echo "Get started button → $ACCEPT_URL" ``` Both `connectUrl` and `acceptUrl` are links you own. Wire them into buttons, emails, QR codes, or wherever your funnel lives. Nothing is sent on Sapt's behalf unless you ask for it. > [!NOTE] > > **Auth.** Use an API key that holds `sub_projects:write` on the parent project (step 1) plus access to the new project's integrations, roles, and members (steps 2 and 3). The key that creates the project gets that access on the project it just made. # API Overview Source: https://docs.sapt.ai/docs/mintlify/api/overview The Sapt REST API at a glance, with the base URL, API key authentication, content types, the error envelope, status codes and a first request. The Sapt REST API gives you direct HTTP access to Projects, agents, memory, actions, and everything else in the workspace for that Project. Prefer to connect Claude or ChatGPT? See the [MCP Connector](/docs/mintlify/mcp/overview). ## Base URL ``` https://api.sapt.ai ``` ## Authentication All requests require an API key in the `Authorization` header: ``` Authorization: ApiKey sapt_... ``` Create API keys under **Account** > **API Keys** in the Sapt dashboard. See [Authentication](/docs/mintlify/guides/authentication) for the steps and the other ways to sign in. ## Content type Request and response bodies use JSON, except media uploads, which take raw bytes: ``` Content-Type: application/json ``` ## Error responses Errors return a structured envelope. `code` is machine-readable, `message` is human-readable, and `details` is present for field-level validation errors or additional context. ```json theme={null} { "error": { "code": "VALIDATION_ERROR", "message": "Field 'name' is required", "details": { "issues": [{ "path": "name", "code": "invalid_type", "message": "Required" }] } } } ``` See [Errors](/docs/mintlify/guides/errors) for every code. ## Endpoint reference Every public endpoint is auto-generated from the live OpenAPI spec. Browse them under [Reference](/api-reference/socials/create-post). ### Reading the reference A few fields are **free-form JSON**: their exact shape depends on the resource, so the reference shows them as an open object rather than a fixed schema. The most common ones: | Field | Where | What it holds | | - | - | - | | `bundle` | Project templates | The full saved configuration a template applies (roles, workflows, CRM types, sidebar). Its structure is documented in **[Project templates & the bundle](/docs/mintlify/api/project-templates)**. | | `actions`, `steps` | Workflows | The ordered work a workflow runs; each entry's shape depends on its action type. | | `data` | Object records | The CRM record's values, keyed by the fields of its object type. | | `metadata` | Assets, scheduled jobs | Caller-supplied key/value details attached to the resource. | If a field shows up as an open or "unknown" object, treat it as JSON whose keys depend on the specific resource, not as a typo or a missing type. ## Status codes | Code | Meaning | | - | - | | `200` | OK | | `201` | Created | | `202` | Accepted (queued for delivery) | | `400` | Bad Request: invalid input | | `401` | Unauthorized: missing or invalid API key | | `403` | Forbidden: valid key, but no permission on this project | | `404` | Not Found | | `429` | Rate Limited: back off and retry | | `500` | Internal Error | ## Example request ```bash theme={null} curl https://api.sapt.ai/projects/{projectId}/agents \ -H "Authorization: ApiKey sapt_..." \ -H "Content-Type: application/json" ``` # Project templates & the bundle Source: https://docs.sapt.ai/docs/mintlify/api/project-templates What lives inside a Sapt project template's bundle, the portable config stamped onto a new client project, plus the snapshot, apply and load endpoints. A **project template** is a saved blueprint you stamp onto new projects. Its one meaningful field is the **`bundle`**: a single JSON object holding pure, portable configuration. When you apply a template, Sapt replays that bundle into a freshly-created sub-project. This page documents what's *inside* the bundle. For the end-to-end onboarding flow (apply → connect integrations → invite), see [Building a client onboarding funnel](/docs/mintlify/api/onboarding-funnels). > [!NOTE] > > **Why the reference shows `bundle` as an open object.** The bundle is a deeply-nested structure (it embeds workflow conditions, CRM column defs, onboarding flows, and more), so the auto-generated [Reference](/api-reference/socials/create-post) renders it as free-form JSON rather than a fixed schema. **This page is the schema**: treat it as the source of truth for the bundle's shape. ## What the bundle is, and isn't The bundle is **structural config only**. It carries **no project-local UUIDs**: roles are keyed by `name`, and the sidebar's per-role overlay references those same names. Apply remaps each name to the freshly-created role's id. | In the bundle | Never in the bundle | | - | - | | Roles, sidebar layout, workflows | Integration connections & OAuth tokens | | CRM object types, relations, column config | API keys, credentials, any secret | | CMS content types (and optional starter content) | Live CRM record *data* (unless `starterContent` is set) | | Branding, website settings, brand-voice context, conversation assistants | Account-specific refs (sender emails, connected-account ids), **scrubbed** on capture | Anything tenant-specific that *would* dangle in a fresh project is nulled during capture and reported back to you in `warnings`. ## Core sections These five are **always present** on a bundle and are applied in this **fixed order**. Later steps may reference earlier ones (workflows and object types reference spine and bundle slugs): | # | Field | What it holds | | - | - | - | | 1 | `objectTypes` | CRM object types to create. | | 2 | `objectRelations` | Relations between those object types. | | 3 | `roles` | Project roles: `{ name, description?, permissions[] }`. Permissions are capped to what the editor holds, re-checked at apply. | | 4 | `sidebar` | Dashboard `sections[]` plus `perRoleHidesByRoleName`, a per-role visibility overlay keyed by role **name**. | | 5 | `workflows` | Tenant workflows: trigger + condition + actions. Loaded **paused** when loaded into an existing project. | > [!WARNING] > > Apply is **best-effort**: a failure mid-bundle is recorded and swallowed, leaving whatever earlier steps already committed. Always check the [apply report](#the-apply-report)'s `failures[]`. It never throws away the whole call for one bad entity. ## Extended sections All **optional**. Each reuses the canonical schema from its owning module, so the bundle shape can't drift from the live product: | Field | What it holds | | - | - | | `crmConfig` | Per-scope CRM column config (base / lead / customer / company / activity columns + column order). | | `spineFields` | Custom field definitions added to the seeded `person` spine type. | | `contentTypes` | CMS content types plus their declared relations. | | `starterContent` | `{ enabled, items[] }`: live CMS content items to seed. The **only** way record data enters the bundle. | | `branding` | Description, tagline, keywords, colors, fonts, logos, guidelines. Asset refs are nulled on capture. | | `website` | Website settings and appearance. | | `assistants` | Up to five conversation assistants. They are created switched off and not bound to any number or mailbox. | | `projectContext` | The three prose blobs: `brand`, `icp`, `strategy`. | | `onboarding` | A client onboarding questionnaire (steps / blocks / rules). | | `variables` | Declared per-client template variables. See below. | ## Variables (custom values) A bundle can declare **variables**, the "custom values" pattern. Embed `{{name}}` placeholders anywhere in the bundle's strings; at apply time they're substituted with the client's values. ```json theme={null} { "variables": [ { "name": "clientName", "label": "Client name", "type": "string", "required": true }, { "name": "supportEmail", "label": "Support email", "type": "string", "example": "help@example.com" } ] } ``` | Field | Notes | | - | - | | `name` | The placeholder key. Must match `^[a-zA-Z_][\w]*$` (leading letter or underscore). | | `label` | Human-readable name shown when filling the template. | | `type` | `string` or `number`. | | `example` | Optional sample value. | | `required` | When `true`, apply gates on a value being supplied. | At apply you pass `variableValues` (a `name → value` map). Anything you omit comes back in the report's `missingVariables[]` and is left as a literal `{{placeholder}}` to fill in later. ## The lifecycle You can author a bundle by hand, or **snapshot** a live project to capture one automatically. Either way it ends up as a template you can **apply** (to a new sub-project) or **load** (into an existing one). | Endpoint | Does | | - | - | | `GET /projects/{projectId}/templates` | List templates saved on this project. | | `GET /projects/{projectId}/templates/{templateId}` | Fetch one template (including its full `bundle`). | | `POST /projects/{projectId}/templates` | Create a template from a bundle you author directly. | | `PATCH /projects/{projectId}/templates/{templateId}` | Update name, description, or bundle. Omitted fields are untouched. | | `DELETE /projects/{projectId}/templates/{templateId}` | Delete a template. Already-applied sub-projects are unaffected. | | `POST /projects/{projectId}/snapshot` | **Capture** this project's live config into a new template in one step. | | `POST /projects/{projectId}/templates/{templateId}/apply` | **Apply:** create a new sub-project and stamp the template onto it. | | `POST /projects/{projectId}/templates/{templateId}/load` | **Load:** additively copy the template into an existing project (`targetProjectId`), skipping anything that already exists. | ### Snapshotting a live project `POST /projects/{projectId}/snapshot` captures the project's configuration into a reusable template. **Omit `include` to capture everything**; set keys to `true` to restrict capture to those subsystems. ```bash theme={null} curl -X POST https://api.sapt.ai/projects/$PROJECT_ID/snapshot \ -H "Authorization: ApiKey sapt_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Agency starter", "include": { "roles": true, "sidebar": true, "workflows": true, "branding": true } }' ``` The `include` allowlist accepts: `roles`, `sidebar`, `workflows`, `objectTypes`, `objectRelations`, `crmConfig`, `spineFields`, `contentTypes`, `starterContent`, `branding`, `website`, `projectContext`, `assistants`. Live CMS content items are cloned **only** when `starterContent` is included. The response returns the new `template` plus `warnings[]`, the tenant-specific values that were scrubbed. > [!NOTE] > > You can also tokenize on capture: pass `tokenize` (a list of `{ find, var }` replacements) alongside `variables` to turn literal values in the captured bundle into `{{var}}` placeholders, so a snapshot of one client becomes a parameterized template for the next. ### Apply vs. load Both replay a bundle, but they differ in target and conflict behavior: | | **Apply** | **Load** | | - | - | - | | Target | A **new** sub-project Sapt creates for you | An **existing** project (`targetProjectId`) | | On conflict | N/A: the project is empty | Existing assets are **skipped**, never overwritten | | Workflows | Active per the bundle | Loaded **paused** | | Permission | `sub_projects:write` on the parent | Admin on the target + template-read on the owner | ## The apply report Apply and load both return a report of what landed: ```json theme={null} { "counts": { "objectTypes": 4, "objectRelations": 2, "roles": 3, "workflows": 5, "sidebarSections": 3, "perRoleHides": 1 }, "appliedCount": 18, "skipped": [{ "entity": "role", "name": "Admin" }], "failures": [{ "entity": "workflow", "name": "Nightly sync", "error": "...", "code": "BAD_REQUEST" }], "missingVariables": ["supportEmail"] } ``` | Field | What it tells you | | - | - | | `counts` | How many of each entity were created. | | `appliedCount` | Total entities successfully created. | | `skipped` | Assets that already existed on the target (load only). | | `failures` | Entities that couldn't be created, each with a reason and optional `code`. | | `missingVariables` | Declared `{{variables}}` you didn't supply a value for. | # Automation recipes for repair shops Source: https://docs.sapt.ai/docs/mintlify/automations/recipes Seven ready-made automations a repair shop uses, from missed call follow-up to review requests, with the template to start from and what to change. Each recipe says what it does, where to start, and what to change. New automations start off, so nothing goes out until you test it and turn it on. How to build and test one is on [Automations and workflows](/docs/mintlify/automations/workflows). ## What your shop already runs Sapt sets these up for every shop. Look for them before you build a new one, so a customer never gets the same text twice. | Automation | What it does | | - | - | | **Missed call: text back** | Texts a missed caller back from your shop line. Your AI front desk takes the reply. | | **Missed call: voicemail to owner** | Texts you the voicemail. | | **Website request** | Texts the customer when they agreed to texts, and texts you the request either way. | | **Review request** | Texts a customer your review page when you start it from them. | | **Review request: job done** | Texts your review page two hours after a job is marked done. Starts off. | | **AI: tell the owner** | Texts you when a customer needs a person or the AI takes a request. | | **AI: booking to owner** | Texts you every booking Sapt makes. | | **Bad review: Google** and **Bad review: private feedback** | Texts you about a rating of 3 stars or fewer. | | **Weekly report** | Emails you a link to last week's results every Monday at 7 AM. | To change the words in one of these, open it in **Shop**, **Automations** on your phone. ## Text back a missed call **What it does:** texts a caller you missed, then a day later checks in once more if they never replied, and texts you to call them. **Starts when:** a call is missed. **Steps:** the first text is **Missed call: text back**, already on. For the day-after check-in, on your phone tap **New automation**, then **Missed call follow-up**. It waits a day for a reply. If none comes, it texts them and texts you. **Change:** the words of the check-in. Keep it short and sign it with your shop's name. > [!WARNING] > > The web template **Text back a missed call** sends a first text too. If **Missed call: text back** is on, callers would get two. ## Follow up a website request **What it does:** if a website request goes quiet for a day, checks in once and tells you. **Starts when:** a website request comes in. **Start from:** on your phone, **New automation**, then **Website request follow-up**. It shows only when your shop has a website form. **Steps:** **Wait for a reply** (one day). No reply: **Text them** "Hi (first name), it's (your shop). Still need a hand? Reply here and we'll get you taken care of." Then **Tell me** "No reply from (first name) after their website request. Give them a call?" **Change:** the wait, if a day is too long for your shop. ## Ask for a review when the job is done **What it does:** texts the customer your review link after the work is finished. **Starts when:** a job or booking is marked done. **Start from:** **Review request: job done** is already in your list, turned off. Turn it on once your jobs get marked done in Sapt. It asks each customer only once. On the web you can also start from the template **Job done: ask for the review**. Pick your **Google Business location**, which needs a review link, and click **Use this template**. It texts: "Thank you for choosing us! We'd love to hear about your experience. Leave a review here:" and your link. **Change:** the template texts right away. To send it later, add a **Wait** step before the text, for example 2 hours, so they have left the shop. ## Thank them after the job **What it does:** the day after a job is done, thanks the customer and asks for a review, once per customer. **Starts when:** a job is marked done. **Start from:** on your phone, **New automation**, then **Thank them after the job**. **Steps:** **Wait** one day, then **Ask for a review**: "Hey (first name), thanks for choosing (your shop). Would you leave us a quick review?" and your review link. Customers who were already asked are skipped. **Change:** the thank-you words. The review link comes from your shop's review page. ## Text the team when an appointment is booked **What it does:** texts your team the time, customer, phone and service for every appointment Sapt books, by your AI front desk or your website. **Starts when:** a new booking is created. **Start from:** on the web, the template **Text the team when an appointment is booked**. **Change:** under **Which teammates?**, pick who gets it. **AI: booking to owner** already texts you, so pick the rest of the team. Teammates who have not turned on texts get an email instead. ## Claim new leads, then follow up **What it does:** texts your team first. The first teammate to reply **Y** (or tap 👍) claims the lead. If nobody claims it in 3 minutes, Sapt texts the lead and follows up twice over 48 hours, unless they reply or book. **Starts when:** a new record is created, of any type. **Start from:** on the web, the template **Claim new leads, then follow up**. **Change:** * Under **Record type**, pick the kind of lead it is for. It starts on any record type. * Under **Which teammates?**, pick who can claim. * The texts, in your own words. > [!NOTE] > > **Website request** already texts customers from your website. If you pick your website request type here, they could get two first texts. ## Welcome a first-time customer **What it does:** when someone books with you for the first time, texts them a short welcome. **Starts when:** a booking is made. **Start from:** on your phone, **New automation**, then **Welcome first-time customers**. **Steps:** **If…** **They’re a new customer**, then **Text them**: "Hi (first name), welcome to (your shop)! You're all set. Reply here any time if something comes up." **Change:** add what a new customer should know, like your hours or where to park. ## Keep going > [card] [Automations and workflows](/docs/mintlify/automations/workflows) > > Build, test and turn on your own. > [card] [Text back missed calls](/docs/mintlify/leads/missed-call-text-back) > > How the first text after a missed call works. > [card] [Owner alerts](/docs/mintlify/leads/alerts) > > The texts and alerts Sapt sends you. # Automations and workflows Source: https://docs.sapt.ai/docs/mintlify/automations/workflows See what Sapt does on its own, turn automations on or off, and build your own from a template on your phone or on the web. An automation does one job by itself every time something happens, like texting back a missed call. The phone app calls them **Automations**. The web app calls them **Workflows**. They are the same thing. Your shop starts with a set Sapt made for you: the missed call text back, texts to you about voicemails, website requests, bookings and bad reviews, a review request, and a Monday report. Change them or add your own. For ready-made ideas, see [Automation recipes](/docs/mintlify/automations/recipes). ## How an automation works Every automation has three parts: * **What starts it.** One thing that happens, like a missed call, a new website request or a job marked done. * **Steps.** What Sapt does next, from top to bottom: text them, wait a day, text you. * **Paths.** A step can split in two, like "they replied" and "they did not". Each path has its own steps. ![A workflow in the web builder: When a call is missed at the top, then a Send text/email step, open in the panel on the right](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/automations/builder.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=d6575b0ebb5ef5f4429d53c185f2f5c2) ## See your automations > [tab] On your phone > > Open **Shop** and tap **Automations**. Each one shows what starts it and how many times it ran in the last 7 days. A note under it says when a text did not go out, and why. > > ![The Automations list on a phone: New automation at the top, then each automation with its switch](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/automations.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=9aefaa1c3f19522c89a97a4d8e4ffc3c) > [tab] On the web > > Click **Workflows** in the sidebar. Use **Any status** to show only the ones that are **On**, **Off**, **Needs attention** or **Never run**. Click a row to open it. > > ![The Workflows list: search, Any status, Agents and New, and one workflow, Missed call follow-up, switched off](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/automations/list.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=de676bd1a7665ca6872e56a39d2f7d4b) ## Turn one on or off > [tab] On your phone > > Flip the switch on its row. To turn one off, Sapt asks **Turn this off?** and says what stops. Tap **Turn off**. Anything it was about to send is cancelled. > [tab] On the web > > Flip the switch on its row, or open it and click **Activate** (or **Resume**). Sapt checks that everything it needs is connected. Click **Activate workflow**. If something is missing, Sapt lists what to fix and turns nothing on. > > To turn one off, click **Pause…**. If customers are part-way through, choose **Pause new entries only**, or the choice below it that also stops the ones in progress. > [!NOTE] > > If you cannot turn automations on or off, your role does not allow it. Ask the shop owner. See [Your team](/docs/mintlify/account/team). ## Make an automation on your phone **1. Tap New automation** In **Shop**, **Automations**, tap **New automation**. It starts off, so nothing goes out until you turn it on. **2. Pick a starting point** Under **Start from one of these**, pick **Missed call follow-up**, **Website request follow-up**, **Welcome first-time customers** or **Thank them after the job**. Or under **Or start from scratch**, pick what starts it, like **A call is missed**, **A booking is made** or **A job is marked done**. **3. Add your steps** Tap **+** where the step goes. **Add a step** opens: **Text them**, **Email them**, **Wait**, **Wait for a reply**, **If…**, **Tell me**, **Tag them**, **Ask for a review** and **Stop**. More are under **More steps**. Tap any step to change its words. **If…** splits the path on a question like **They replied**, **They booked** or **They’re a new customer**. ![Missed call: text back open on a phone: A call is missed, a Text them step, + to add a step, and Test it and Turn off at the bottom](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/automation-builder.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=0d19af2c0d323788fb193daf1f4434b3) **4. Save, test, turn on** Tap **Save**. Then tap **Test it** (see [Test before you turn it on](#test-before-you-turn-it-on)) and **Turn on**. ## Make a workflow on the web **1. Click New** In **Workflows**, click **New**. If you have none yet, click **Create your first workflow**. A blank workflow opens, starting with **When a record is created**. ![The Workflows page with no workflows yet: No workflows yet and Create your first workflow](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/automations/empty.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=fe1478b8f05515b98fa8a9a6c9330a35) **2. Start from a template** Click **Templates** at the top and pick one, like **Text back a missed call**. Search, or narrow the list with **Messages & follow-up**, **Team notifications**, **AI** or **Connected apps**. A template replaces any trigger and steps you already added. ![The Start from a template window: search, category chips with counts, and cards like Text back a missed call](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/automations/templates.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=5e6a3b215d72d59ecd56997dfd00b6de) **3. Pick what starts it** Click the box at the top of the canvas. Under **Trigger**, open the list and pick one. Type in **Search triggers** to find it fast. ![The trigger list open on Messages & replies, with Missed call picked and Search triggers at the top](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/automations/triggers.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=51438e1ca8433c869d16be4311fa295b) The list has these groups: **Messages & replies**, **Contacts & records**, **Payments**, **Time & schedule**, **Lists & audiences**, **Apps & webhooks** and **Custom**. The ones a shop uses most: | Trigger | Starts when | | - | - | | **Missed call** | A caller reached your number and nobody answered. | | **Voicemail left** | A caller leaves a voicemail. | | **Text or message received** | A text, email or DM lands in your inbox. | | **Agent needs you** | Your AI front desk held a reply, handed off or took a request. | | **New Google review** | A customer leaves a review on your Google profile. | | **New CRM record** | A record of the type you pick is created, like a website request or a booking. | | **Moved to stage** | A record moves into a pipeline stage you pick. | | **Tag added** | A tag you pick is added to a customer. | | **On a schedule** | Every day, week or month at a set time. | | **Manually enroll contacts** | You start it for customers you choose. | **4. Add steps** Click **Add step** under the last step. Search, or pick from the list. Click any step to change it. The ones a shop uses most: | Step | What it does | | - | - | | **Send text/email** | Texts or emails the customer (**Lead or customer**) or your people (**Your team**). | | **Wait** | Waits a set time before the next step. | | **Wait for reply** | Waits until the customer replies, up to a time limit. | | **Choose a path** | Splits into two paths, for example on business hours. | | **Ask me** | Asks a teammate by push and text, then goes on with the answer. | | **Add a tag** | Tags the customer so you can find them later. | | **Move to a stage** | Moves the record to a pipeline stage. | | **Assign to a teammate** | Makes a teammate the owner of this customer. | | **Reply to the Google review** | Posts your reply under a new Google review. | **5. Save it** Click **Create workflow**. Give it a name in **Workflow details** if Sapt asks, then click **Save**. New workflows are saved off. Test it, then turn it on. > [!TIP] > > Click **How it works** at the top of the builder for a short guide inside the app. ## Test before you turn it on A test runs the automation on the last real event that matches, like your last missed call. Nothing is sent and nothing changes. > [tab] On your phone > > Open the automation and tap **Test it**. **Test with a customer** shows each step, who it would text, and which path it took. Tap **Run again** after a change, then **Done**. > > If nothing has started it yet, there is no customer to test with. It works the same once one comes in. > [tab] On the web > > Click **Test** at the top of the builder, then **Test workflow**. You see each step and its result. > > A test cannot wait for a real reply, so a path that depends on a reply is not tested. Check those words with care. ## Start it for chosen customers Some workflows start only when you pick the customers, like one that starts with **Manually enroll contacts**. Turn it on first, then: **1. Open the workflow** In **Workflows**, click its row and click **Enroll contacts**. **2. Pick the customers** Under **Existing contacts**, check up to 50 at a time. Or click **Add a contact** and enter a name and phone number. **3. Start it** Click **Enroll**. Customers already part-way through are skipped. On your phone, automations that start with **You start it from a customer** run from the customer's card. ## See what it did > [tab] On your phone > > Open the automation, tap **More**, then **Runs**. You see who it ran for and whether it is **Done**, **Waiting**, **Did not finish** or **Stopped**. **More** also has **Make a copy** and **Delete this automation**. > [tab] On the web > > Click the workflow's row. The top says what starts it and whether it is **Active**, **Paused**, **Draft** or **Blocked**. Below is everyone who entered it. Filter by **Active**, **Waiting**, **Failed**, **Completed** or **Stopped**. Switch to **Graph** to see the steps. > > To stop everyone in progress, click **Stop all…**. Messages already sent stay in the history. ## Common questions **Can I change an automation Sapt set up?** Yes. Open it, change the words or steps, and save. A change to one that is on applies to the next customer right away. **Why did a customer get two texts?** Two automations started on the same thing, like a copy of **Missed call: text back** next to the original. Turn one off. **Why is a workflow Blocked?** It needs something that is not set up yet, like a phone number or a connected app. Open it and click **Fix in the editor**. ## Keep going > [card] [Automation recipes](/docs/mintlify/automations/recipes) > > Ready-made automations a repair shop uses. > [card] [Text back missed calls](/docs/mintlify/leads/missed-call-text-back) > > How the missed call text works. > [card] [Your team](/docs/mintlify/account/team) > > Who can see and change automations. # Organize your content in collections Source: https://docs.sapt.ai/docs/mintlify/cms/collections Make a collection for your services, FAQs, team or specials, choose the fields each item has, and connect collections to each other. A collection holds content of one kind, like your services, your FAQs or your team. Each entry in it is an item. Your website reads some collections on its own, and you can show any other one with a few clicks. Open **Content** in the sidebar. Your collections are on the left under **Content**. If you have a Sapt website, two are already there, **Pages** and **Website layout**. Your website keeps its pages and shared layout in them. ## Make a collection **1. Start a new collection** Click **New collection** at the bottom of the list on the left. **2. Name it** Type a name in **Collection name**, like `Specials`. ![The New collection window for Specials, with Description and Price as Text fields, Photo as an Image field, and Create collection](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/new-collection.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1b6f9026846bade899f424a3de50bbd8) **3. Add the fields** Click **Add field** for each piece of information an item needs. For specials that could be **Description** and **Price** (Text) and **Photo** (Image). Every item already has a name, a link and a publishing status, so you do not need fields for those. ![The Add field window with Description as the Field name, Text picked, and the other types, including Reference](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/add-field.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1a350fe7474aeb3da1d9176358ea64cb) **4. Create it** Click **Create collection**. It opens, ready for its first item. **More options** in the same window holds a **Description** and the **Link name**, which Sapt makes from the collection name. ## Field types | Type | Use it for | | - | - | | **Text** | Names, descriptions or links | | **Number** | Prices, quantities or ratings | | **Yes / No** | A yes or no answer | | **Date** | A date, with an optional time | | **Dropdown** | A choice from your own options | | **Image**, **Video**, **Document** | Photos, videos and PDFs from [Files & photos](/docs/mintlify/cms/files-and-photos) | | **Field group** | A few related fields kept together | | **Reference** | Items from another collection, like the FAQs that go with a service | ## Change a collection Click the sliders icon next to the **New** button in a collection, or open **Content settings** under **Library**. Content settings lists every collection with how many fields it has. In a collection's settings you can change its name, description and fields. Click **Save changes** when you are done, or **Discard changes** to undo. The **Internal name** under **Advanced** cannot be changed once the collection exists. ## Related content Related content connects two collections, like a service and its FAQs. Each item then has a place to pick the items that go with it. 1. Open the collection's settings and find **Related content**. 2. Click **Add connection**. 3. Under **Connect to**, pick the other collection. Name each side, choose whether one item can link to many, and click **Create connection**. On each item, the connection shows under **References**. Click **Choose item** to pick one. ## Archive or delete * **Archive** a collection you do not use now. Set the menu at the top right of its settings from **Active** to **Archived** and click **Save changes**. It leaves the list on the left, stays in **Content settings**, and you can set it back to **Active** anytime. * **Delete** works only on an empty collection. While it still has items, the **Delete** button stays greyed out: archive it instead, or delete its items first. Deleting cannot be undone. ## Keep going > [card] [Add and publish items](/docs/mintlify/cms/items) > > Fill a collection, publish now or on a schedule. > [card] [Content on your website](/docs/mintlify/cms/content-on-your-website) > > Which collections your site shows, and how to show the rest. # Show your content on your website Source: https://docs.sapt.ai/docs/mintlify/cms/content-on-your-website See which Sapt content collections your website shows on its own, and add any other collection to a page with a Connected content section. Your Sapt website is built from your content. Some collections it shows on its own. Any other collection you can add to a page in the website editor. Only **published** items show. Drafts, scheduled and archived items stay off your site. ## What your website shows on its own | Collection | Where it shows | | - | - | | **Pages** | Your extra pages, like About, each at its own address. The editor's **Pages** tab adds them here. | | **Services** | Your services, each with its own page under `/services/`. With none published, your site lists the services from your Google profile. | | **Articles** | Your blog posts under `/blog/`, newest first. | | **FAQs** | The **Questions** section of your home page. | | **Specials** | The **Offers** section of your home page. | | **Prices** | Your **Prices** page, one card for each thing you sell at a set price. | | **Website layout** | Your site's sections and settings. The website editor keeps this one up to date, so leave it alone. | Your collections may have slightly different names, like "Service" instead of "Services". The website still finds them. When you publish, update or delete an item in one of these, your website picks up the change on its own. Sapt checks the new version before it goes live, so give it a moment. ## Show any other collection Made a collection of your own, like **Team members**? Add it to a page with a **Connected content** section. **1. Open the page in the website editor** Open **Website** and pick the page in the editor. Connected content works on your home page and on your pages, services and articles. **2. Add the section** On the **Sections** tab, click **Connected content**. In **Add connected content**, pick the collection. ![The Add connected content window listing the Pages and Specials collections](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/connected-content-source.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=23a867783670ef353895b0e9f629a2fa) **3. Choose how it looks** The section's settings open on the right. ![Connected content settings for a Specials section: Content source, Heading, Introduction, Layout set to Cards, Mobile cards, and Connect the fields with Image set to Not shown](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/connected-content.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1f88d5b4d94c02142a760d47f02a3e75) * **Heading** and **Introduction**: the words above the section. * **Layout**: **Cards**, **List** or **Spotlight**. For cards, **Mobile cards** picks **Stacked photos** or **Compact photo rows** on phones. * **Connect the fields**: which field fills the **Title**, **Description**, **Image** and **Small label**. **Image** does not offer your collection's photo field yet, so this section shows no photos. Leave it on **Not shown**. * **Items to show**: up to 24. **4. Publish your website** The new section stays private until you publish the site. See [Pages and sections](/docs/mintlify/website/pages-and-sections). ![The published This month's specials section on the live site: three specials, each with its price or offer, name and description](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/live-specials.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=a4f4d778e75e51c38e5bdf9151b88ccd) After that, the section stays connected. Publish a new team member in **Content** and it shows up in the section without touching the editor. To change the items themselves, use **Edit source content** in the section's settings, or **Add or manage content in Sapt** to open the collection. If you just changed something and do not see it in the editor, click **Refresh content**. ## Keep going > [card] [Pages and sections](/docs/mintlify/website/pages-and-sections) > > Add pages and arrange the sections on each one. > [card] [Add and publish items](/docs/mintlify/cms/items) > > Publish now or on a schedule. # Upload and organize files and photos Source: https://docs.sapt.ai/docs/mintlify/cms/files-and-photos Keep your shop's photos, videos and documents in one library, bring them in from Google Drive, label them, and use them on your website. Upload a photo once and use it anywhere in Sapt: on your website, in a service, or in a text to a customer. > [tab] On the web > > Open **Content**, then **Files & photos** under **Library**. > > ![Files & photos with Add files, From Google Drive, the search box, the All files and All labels menus, and three photos](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/files.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=9669d9f0a9aa38b6fa5f8ac37adabeb9) > > ## Add files > > Click **Add files** and choose up to 10 at a time. Images, videos, documents and audio all work. > > ## Bring files in from Google Drive > > 1. Click **From Google Drive**. > 2. The first time, a window asks you to connect Google Drive. If your browser blocks it, allow pop-ups for Sapt and click again. > 3. Pick the files in Google's window. They are copied into your library. > > Only an admin can connect Google Drive. If you see "A project admin needs to connect Google Drive first", ask yours. More on [Google Drive](/docs/mintlify/integrations/google-drive). > > ## Labels > > Labels work like folders. Give your shop photos one label, your before-and-after shots another. > > * **Label one file:** click it, then **Labels**. Add or remove labels and click **Save labels**. > * **Label many at once:** tick them, then **Add labels** or **Remove labels**. Other labels stay as they are. > * **Find them later:** pick a label in the **All labels** menu. **Without labels** shows the rest. > > You can also search with **Search filenames or labels…**, and use the **All files** menu to show only **Images**, **Videos**, **Documents** or **Audio**. > > ## Download, copy or delete > > Click a file to open it. From there you can **Copy URL**, **Download** it, or delete it with the trash icon. > > > [!WARNING] > > > > Deleting a file breaks it everywhere it is used, on your website and in messages. This cannot be undone. > > Depending on your role, you may be able to change only the files you added. > > ## Use a file in your content > > 1. Open an item in a collection, like a service. > 2. In its photo field, click **Select from library**. > 3. In **Choose an image**, click the photo and click **Use image**. > > The same field also has **Upload**, to add a new photo on the spot, and **URL**, to use a picture from another site. > [tab] On your phone > > 1. Open a conversation in **Inbox** and tap the customer's name at the top. > 2. Tap **Files and photos**. > 3. Tap **Shop library** to see your shop's files, or **Conversation files** for what was sent in this chat. > 4. Tap **Upload files** to add photos and documents, up to 25 MB each. > > Files you upload on your phone use shareable links, so only upload files meant for customers. ## Keep going > [card] [Add and publish items](/docs/mintlify/cms/items) > > Put your photos to work in services, posts and pages. > [card] [Google Drive](/docs/mintlify/integrations/google-drive) > > Connect Drive to bring files in. # Add, publish and schedule content Source: https://docs.sapt.ai/docs/mintlify/cms/items Add items to a Sapt content collection, keep them as drafts, publish them now or on a schedule, and put them in the order you want. An item is one entry in a collection: one service, one FAQ, one team member. Your website shows only items that are published. ![The Specials collection with three published items, the search box, the status filters, Sort set to Display order, and New specials](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/items.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=80d6f4d88654d85dec2eb315ae3f95fa) ## Add an item **1. Open the collection** Open **Content** and pick the collection on the left. **2. Click New** Click the **New** button at the top right. It carries the collection's name, like **New specials**. **3. Fill it in** Type the **Name** and fill in the fields. For a special, that could be "Oil change special" with a price, a short description and a photo. ![The Oil change special item: Photo, Name, Price and Description on the left, and Publishing set to Published on the right](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/item.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=6840684a97d69a106cf08304aadc7366) **4. Choose when it goes live** On the right, set **Publishing** (see below). Then click the button in the bar at the bottom. It reads **Save draft**, **Publish**, **Save schedule** or **Archive content**, to match. ## Statuses | Status | What it means | | - | - | | **Draft** | Saved in Sapt. Not on your website yet. | | **Scheduled** | Publishes on its own at the date and time you pick. | | **Published** | Live. Saving a published item updates it on your website. | | **Archived** | Off your website, kept in Sapt for later. | The filters above the list (**All**, **Draft**, **Scheduled**, **Published**, **Archived**) show how many items are in each. ## Publish on a schedule 1. In the item, set **Publishing** to **Scheduled**. 2. Under **Publishes automatically**, pick the **Date**, **Time** and **Timezone**. Sapt shows when it goes live. 3. Click **Save schedule**. > [!WARNING] > > **Timezone** starts on Eastern (ET). Change it if your shop is in another time zone. You can also schedule from the list: click an item's status, click **Schedule**, pick the time and click **Schedule** again. ## Change the status from the list Click an item's status in the list and pick another under **Move to**. No need to open it. ## Page settings Open **Page settings** on the right of an item: * **URL identifier** is the end of the item's web address, like `brake-inspection`. Sapt makes it from the name. Changing it later can break links people already have. * **Tags** help you sort and filter items. ## Preview before you publish Click **Review details** at the top of an item to check how it reads. Articles have **Preview article** instead. If the article is not live yet, the preview has **Publish now** (or **Save & publish** if you changed something) right there. ## Put items in order 1. Check that **Sort** shows **Display order**, as it does at first. If you sorted by something else, click **Reorder** above the list. 2. Drag items by their handle, or use the menu on a row for **Move to top** or **Move to bottom**. 3. Click **Save changes**, or **Cancel** to keep the old order. Your website shows pages in this order. ## Delete an item Open the item and click the trash icon at the top. Confirm with **Delete**. This cannot be undone. Photos it used stay in [Files & photos](/docs/mintlify/cms/files-and-photos). > [!TIP] > > To take something off your website but keep it, set it to **Archived** instead. ## Keep going > [card] [Content on your website](/docs/mintlify/cms/content-on-your-website) > > Which collections your site shows, and how to show the rest. > [card] [Files and photos](/docs/mintlify/cms/files-and-photos) > > Upload photos once and use them anywhere. # Manage your contacts Source: https://docs.sapt.ai/docs/mintlify/crm/contacts Find, add and import your customers in Sapt, sort them with lists and tags, and see everything about one person in one place. Every person who calls, texts or fills in a form becomes a contact. You can also add them by hand or bring them in from a spreadsheet. Open **CRM** in the sidebar. Your contacts open first. ![The CRM on the Contact tab: six contacts in a table, with the search box, Filters, Export, the three-dot More actions button and New contact](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/people.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=bfdd1b6ef0ddc5096cd20213dab4e7d8) ## Find someone Type in **Search name, email, phone…**. Click **Filters** to narrow the table by list, tag, stage or any field. Click a row to open that person. ## Add a contact **1. Click New contact** Click **New contact** at the top right. The **Create contact** window opens. ![The Create contact window with Maya Chen's name, email and phone filled in, then Tags, Notes and First-touch at](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/new-contact.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=5fec584146e7cdf2171bfb00d2c7afa7) **2. Fill in what you know** Add their name and a phone or email, for example Maya Chen and (937) 555-0101. For the phone, use 10 digits, or + and the country code. Click **Create**. Their record opens. > [!WARNING] > > Leave **Tags** empty here. A tag typed in this window stops the contact from saving with "tags: Expected array". Add tags once the contact exists (see [Lists and tags](#lists-and-tags)). ## Import contacts from a spreadsheet You can bring in a CSV or Excel file (.csv or .xlsx) with up to 5,000 rows at a time. Importing uses no credits. **1. Open the importer** Click the **More actions** button (three dots) next to **New contact**, then **Import contacts**. **2. Drop your file** Drop the file in the box, or click it to choose one. Sapt shows how many rows and columns it found. ![Import contact records with ridgeline-customers.csv: 5 rows ready to import, email found, Tag everyone in this file, and each column matched to a field](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/import.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=cd2d65170708b962652f4bff97a6756b) **3. Check the columns** Under **Columns**, every column already has a place to go. Change one only if it is wrong: pick another field, **Create a new field**, or **Do not import**. **4. Tag the file, if you like** You can type a tag under **Tag everyone in this file**, like `referral`. Check the contacts after the import: if the tag is missing, tick them and click **Add tag**. If the file has divider rows (a row with one word, like "Fleet customers"), Sapt offers to skip them. Leave that switch on. **5. Import** Click **Import records**. > [!TIP] > > No column is required, but include a phone or email for each person. Texts, emails and the inbox find people by those. **How Sapt reads your file** * Columns named like a field you already have land in that field. So do common names such as **Customer Name**, **Phone Number** or **Email Address**. * Rows with the same email become one contact. With no email, Sapt uses the phone, then the name. * Import again later and a row with the same email (or phone) updates the contact from your earlier import instead of adding a second one. * A value that does not fit its field, like "n/a" in an email column, is left blank. The rest of the row still comes in. ```csv theme={null} Name,Phone,Email Maya Chen,(937) 555-0123,maya@example.com Luis Ortega,(937) 555-0188,luis@example.com ``` ## Lists and tags **Lists** group people you want to reach together, like everyone due for a spring tune-up. **Tags** are short labels, like `fleet` or `referral`. * **Make a list:** click **More actions**, then **Manage lists**. Type a name and click **Create**. You can rename or delete lists there too. * **Add people to a list:** tick them in the table and click **Add to list**. * **Tag people:** tick them and click **Add tag**. * **On one person:** open them and use **Tags** and **Lists** on the **Overview** tab, then click **Save changes**. * **Manage tags** (under **More actions**) opens the Tags screen: every tag with how many people have it. Rename, merge or delete a tag there, and pick the quick picks your team sees first. Anything that uses a tag, like an automation or a list, keeps working when you rename or merge it. On the phone, it's under **Shop**, then **Tags**. * **A list can ask for tags:** any of them, all of them, or none of them. A list made from one tag fills itself as you tag people. ## Do things to many people at once Tick the boxes on the left of the table. A bar appears at the bottom with: * **Add to list** and **Add tag** * **Assign**, to give them to a teammate * **Call**, when calling is set up for your shop * **Delete** Deleting a contact cannot be undone. Their bookings and other records stay, but lose the link to them, and automations running for them stop. To download your contacts, click **Export**, then pick all matching rows or only the ones you ticked. ## One person's record > [tab] On the web > > Click a contact to open their record. > > * At the top: their name, who has them, their phone and email, and **Text**, **Email**, **Call** and **Follow up**. > * **Overview**: **Outcome** (mark where the lead landed, like Qualified), **Notes**, **Tags** and **Lists**. > * **Activity**: their timeline. Texts and emails in and out, stage moves, forms and orders, newest first. > * **Records**: everything linked to them, like a website request or a vehicle. > * **Automations**: what is running for them. > > Changes to notes, tags and lists wait until you click **Save changes**. The three-dot **Contact options** menu holds **Edit details**, **Merge duplicate** and **Delete contact**. > [tab] On your phone > > The phone app has no CRM tab. Each customer's card opens from their conversation: open it in **Inbox** and tap their name at the top. > > ![Maya Chen's card on a phone: call, text and email buttons, Where they are with Booked ticked, Book, Job done, and her records](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/customer.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=5a05cf7cd1a6e6082a69f1614dbe1633) > > * Use the buttons beside their phone and email to call, text or email them. Tap the pencil to fix their name, phone or email. > * **Where they are** shows their steps. Tap one, like **Paid**, to mark it. > * **Book** and **Job done** sit under that, then their **Records** and **Activity**. > * **Merge or delete** is at the bottom. ## Keep going > [card] [Make your own record types](/docs/mintlify/crm/custom-objects) > > Track vehicles, jobs or anything else, linked to each customer. > [card] [Set up stages](/docs/mintlify/crm/pipelines) > > Move leads and jobs from new to won. # Make your own record types Source: https://docs.sapt.ai/docs/mintlify/crm/custom-objects Track vehicles, jobs or anything else in the Sapt CRM. Add your own fields, tie each record to a customer, and import or export rows. Contacts are built in. Everything else your shop keeps track of, like vehicles, estimates or warranties, can be its own record type with its own fields. This page walks through one example: a shop that keeps each customer's **Vehicle** with its year, make, model and mileage. ## Make a Vehicle record type **1. Start a new record type** Open **CRM**. Click the sliders icon at the right end of the tabs, then **New record type**. The **New object type** window opens. ![The sliders menu with Edit tabs, New record type and Manage data types](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/tabs-menu.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=8dee22711d2b7b42c6de5f6d309ec9be) **2. Name it** Type `Vehicle` in **Name**. Use one of something, not many: Sapt adds the "s" where it needs one. A **Description** is optional. Leave **Accept public submissions** off unless a website form should save here. Click **Create**. ![The New object type window with Create schema from CSV, Name, Description and the Accept public submissions switch turned off](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/new-type.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=b99ef3dc33d0281f72467c4802242309) **3. Open its settings** Your new Vehicle table opens, empty. Click the pencil next to **Vehicle**. The **Edit type** panel opens. **4. Add the fields** Under **Fields**, click **Add field**. Type `Make` in **Field name**, pick **Text** and click **Add field**. Do the same for **Year** (Number), **Model** (Text) and **Mileage** (Number). ![Fields in the Edit type panel: Make and Model as Text, Year and Mileage as Number, and the Add field button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/type-fields.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=ecf9c303573cfcadf8cfc95e48e6a5ad) **5. Add a vehicle** Close the panel and click **New**. In **Create vehicle**, **Name**, **Email** and **Phone** belong to the owner. Type Maya Chen and her email, [maya.chen@example.com](mailto:maya.chen@example.com), then Honda, 2018, Civic and 64200. Click **Create**. ![A Vehicles table with five vehicles, each with its owner's email and a status such as In the bay, and the New button at the top right](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/records.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=0c1d0d998f53b9de6e260ef6f5b9dc5a) **6. Find it on the customer** Open Maya Chen in your contacts. The vehicle is on her **Records** tab. > [!NOTE] > > Sapt links each record to the contact with the same phone or email. If no contact has it, Sapt adds a new contact with the name you typed, so type the owner's name, not the vehicle's. On the vehicle's own page, **Name**, **Email** and **Phone** show that contact. ![A vehicle's page with its stage, In the bay. Name and Email show its owner, Maya Chen, above Make, Year, Model and Mileage.](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/record.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=07ed107edfd7d14b0102a414f5d088a3) > [!TIP] > > When you make a record type from inside a workflow (**Create new type**), the window also offers ready-made starts under **Recommended**: Communication, Company, Inquiry, Deal, Order and Note. ## Field types When you click **Add field**, pick what people will enter: ![The Add field window with Last service as the Field name and Date picked from the field types](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/add-field.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1f93bf9d79ccefac4ea9461b7ad9be27) | Type | Use it for | | - | - | | **Text** | Names, notes or links. Under **Text format** you can make it an **Email address**, **Phone number** or **Website link**. | | **Number** | Mileage, prices, counts | | **Yes / No** | A yes or no answer, like "Fleet account" | | **Date** | A date, with an optional time | | **Dropdown** | A choice from your own options, like "Gas, Diesel, Hybrid, Electric" | | **Image**, **Video**, **Document** | Photos, videos and PDFs | | **Field group** | A few related fields kept together | Click a field's name to rename it. Click the three dots beside it to open **Field Settings**, where you can tick **Required field**. ## The record type's settings Everything below lives in the **Edit type** panel (the pencil next to the type's name). **Link to Person.** For record types you make, this is always on. A record that carries a phone or email links to the contact who has it, and shows on that contact's **Records** tab. **Accept public submissions.** Turn this on when a form on your website should save into this type, like a "Request a quote" form. Leave **Strict schema** off. Then pick the type under **Save inquiries to** in the form's settings. See [Forms](/docs/mintlify/website/forms). **Spam moderation.** For types that accept public submissions, this holds suspicious ones for review before any workflow runs. **Stages.** Give the type steps like Booked, In the bay and Paid. See [Stages](/docs/mintlify/crm/pipelines). **Danger zone.** Click **Show**, type the type's name and click **Delete**. This deletes the type and every record in it. There is no undo. ## Connections A connection ties a record type to a content collection, like your **Services**. Each record then gets a list of the services that go with it. **1. Add the connection** In **Edit type**, under **Connections**, click **Add connection**. ![Connections in the Edit type panel, with an Owner connection to contacts and the Add connection button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/connections-list.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=7b51b4d5fe1dc7e26281f174c6b0eea0) **2. Pick what to connect** Under **Connect to**, pick a collection, like **Services**. Collections are listed under **Content collections**, and your record types under **CRM**. ![The Connect to menu: Contact, Private review, Vehicles and Website inquiries under CRM, and Pages, Specials and Website layout under Content collections](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/connections-targets.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=ecab12b0e48d3a54f4e29d3488137f10) **3. Name each side** Give each side a label, for example **Services** on the Vehicle and **Vehicles** on the service. Choose whether one can link to many, then click **Create connection**. ![Add connection from Vehicles to Contact: labeled Owner on the vehicle and Vehicles on the contact, where one contact can link to many vehicles](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/connections.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=2aa275b7b6fede10f734d20e8eea7c48) **4. Link items on a record** Open a vehicle. Its **Services** section has an **Add** button. Tick the services and click **Add**. > [!NOTE] > > **Connect to** also lists your other record types, including contacts. Links between two record types show on a record once they exist, but you cannot add them by hand yet. To tie a record to a customer, give it their phone or email. ## Your tabs A new record type sits under **More** until it has records. To choose the tabs everyone sees, click the sliders icon, then **Edit tabs**. Tick the types you want, order them with the arrows and click **Save**. ![The Edit tabs window with People and Vehicles ticked, Private review and Website inquiries unticked, and arrows to reorder](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/tabs.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=c85dd9b80545323d3b468c85169dfa40) Types you untick stay one click away under **More**. To open any type's settings, click the sliders icon, then **Manage data types**, and pick it. ## Table and board Each record type opens as a table. Once it has stages, a **Table** and **Board** switch appears above it. The board shows one column per stage. See [Stages](/docs/mintlify/crm/pipelines). ## Start from a spreadsheet Already keep vehicles in a spreadsheet? In the **New object type** window, click **Create schema from CSV** and drop a CSV file. 1. Under **Review fields**, untick columns you do not want, rename fields and fix their type. 2. Leave **Add matching People automatically** on if the file has an email or phone column for the owner. 3. Click **Create**. This builds the fields only. To bring the rows in, use **Import rows** next. ## Import rows Open the record type, click the **More actions** button (three dots) and pick **Import rows**. It works like [importing contacts](/docs/mintlify/crm/contacts#import-contacts-from-a-spreadsheet): drop a CSV or Excel file, check the columns, click **Import records**. ```csv theme={null} Name,Phone,Year,Make,Model,Mileage Maya Chen,(937) 555-0123,2019,Honda,Civic,84000 Luis Ortega,(937) 555-0188,2016,Ford,F-150,121500 ``` ## Export Click **Export**, then pick all matching rows or only the rows you ticked. You get a CSV file. **Filters** apply to the export too. ## Keep going > [card] [Set up stages](/docs/mintlify/crm/pipelines) > > Move records from start to done, on a board. > [card] [Website forms](/docs/mintlify/website/forms) > > Save form answers into the record type you choose. # Set up stages for leads and jobs Source: https://docs.sapt.ai/docs/mintlify/crm/pipelines Give any CRM record type its own stages, move records across a board, and start an automation when a record reaches a stage. Stages are the steps a record moves through, like Booked, In the bay and Paid for a repair job. Any record type can have them, and once it does you can see it as a board. Your contacts already have three: **Open**, **Qualified** and **Not qualified**. ## Add stages to a record type **1. Open the type's settings** Open **CRM** and the record type's tab. Click the pencil next to its name. The **Edit type** panel opens. **2. Add the stages** Under **Stages**, click **Add first status**, then **Add status** for each one after that. Type a name in each box. Use the arrows on the left to put them in order. ![Stages for vehicles: Dropped off marked Start, then In the bay, Waiting on parts and Ready for pickup, each with how it ends and Person unchanged, and Add status below](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/stages.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=cf2ce2450f299a93fc9bb977af324a6d) **3. Pick where new records start** Click **Start** on the stage new records begin in. Only one stage can be the start. **4. Say how each stage ends** The first menu on each row says how a record in that stage stands: * **Open**: still in progress. * **Won**: the job happened or the sale closed. * **Lost**: cancelled, a no-show, or they went elsewhere. * **Done**: finished, with no win or loss. **5. Move the customer along, if you like** The second menu, **Person becomes**, moves the record's contact to a step of their lead ladder when the record reaches this stage: **Qualified**, **Scheduled**, **Paid**, **Not qualified**, **Showed** or **No-show**. If your Meta or Google ads are connected, Sapt tells them too. Leave it on **Person unchanged** to skip this. Changes save as you go. To remove a stage, point at it and click the trash icon. **Example: a repair job** | Stage | Start | Ends as | Person becomes | | - | - | - | - | | Booked | Yes | Open | Scheduled | | In the bay | | Open | Person unchanged | | Paid | | Won | Paid | | No-show | | Lost | No-show | ## Move records > [tab] On the board > > Open the record type and switch to **Board**. Each stage is a column. Drag a card into the next column to move it. > > ![The Vehicles board with columns for Dropped off, In the bay, Waiting on parts and Ready for pickup, and a card for each vehicle](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/crm/board.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=0dace85c502e11a85705432ca61082f4) > [tab] In the table > > In **Table**, click a record's stage and pick a new one under **Move to**. You can do the same at the top of an open record. ## Start an automation when a record moves A record reaching a stage can start a workflow, like texting the customer a review link when a job moves to Paid. 1. Open **Workflows** and start a new one. 2. Pick the trigger **Moved to stage**. 3. Choose the **Record type** and the **Stage**. See [Workflows](/docs/mintlify/automations/workflows) for the rest. To run a workflow for records you pick by hand, tick them in the table and click **Start automation**. ## Keep going > [card] [Workflows](/docs/mintlify/automations/workflows) > > Text, email and follow up on their own when a record moves. > [card] [Make your own record types](/docs/mintlify/crm/custom-objects) > > Track jobs, vehicles or estimates with your own fields. # Authentication Source: https://docs.sapt.ai/docs/mintlify/guides/authentication How to authenticate with the Sapt API: API keys for your own code, OAuth for Claude and ChatGPT, and OAuth2 clients that act across projects. Every endpoint in this reference requires an `Authorization` header. The API picks an identity resolver from the header's prefix. | You are | Use | | - | - | | A backend, script, or cron job you own | **API key** | | Claude, ChatGPT, or another MCP client | **Connector OAuth** (nothing to paste) | | An app acting across Projects for a user | **OAuth2 client** | | First-party browser code on a Sapt origin | **Session cookie** | ## API keys The right choice for server-to-server work. ### Create one **1. Open the dashboard** Go to the [Sapt dashboard](https://app.sapt.ai). No account yet? [Sign up](https://app.sapt.ai/sign-up). **2. Open your account** Click the round button with your initials in the top bar, then **Account**. **3. Create the key** Open **API Keys** (under Developer), click **Create API Key**, and copy it. Keys start with `sapt_`. > [!WARNING] > > An API key is shown only once. Put it in an environment variable, and never > commit one to source control. ### Use it ```bash theme={null} curl https://api.sapt.ai/socials/accounts/$PROJECT_ID \ -H "Authorization: ApiKey sapt_your_api_key" ``` > [!NOTE] > > The prefix is `ApiKey`, not `Bearer`. A key sent as `Bearer` falls through to > the OAuth token resolver and fails with `401`. Keys are Project-scoped: every operation is restricted to resources inside the Projects the key was issued for. Calling a `projectId` outside that scope returns `403`. ## Connector OAuth Claude and ChatGPT use OAuth when you add Sapt as a connector. Point them at: ``` https://mcp.sapt.ai/mcp ``` Sign in with your Sapt account when the client prompts you. Sapt uses your account permissions to decide which Projects and tools the connector can reach, so you never paste an API key into Claude or ChatGPT for normal connector setup. See [Connect Claude or ChatGPT](/docs/mintlify/mcp/connect) for the click-through. ## OAuth2 clients When you need to act across multiple Projects on a user's behalf (for example, an integration that lets agencies onboard their own clients), register an OAuth2 client under **Account** > **OAuth Clients** and use the standard authorization-code grant. | | | | - | - | | **Authorize URL** | `https://api.sapt.ai/api/auth/oauth2/authorize` | | **Token URL** | `https://api.sapt.ai/api/auth/oauth2/token` | | **Recommended scope** | `openid profile email offline_access account:full` | Send the resulting access token as a bearer token: ```bash theme={null} curl https://api.sapt.ai/auth/me \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` `/auth/me` returns the authenticated user's identity. It is the usual first call to discover which Projects a token can reach. ## Session cookies Browser clients on a Sapt origin are authenticated by session cookie automatically. No header is needed. This path is for first-party dashboard code, not for integrations. ## WebSocket connections For long-lived streams and custom clients, credentials are exchanged for short-lived JWTs at the connection layer. Supported connector clients handle this for you. ## Permissions Authentication resolves *who* you are; authorization is checked per endpoint against the Project's role and permission model. A valid credential with insufficient permission on that Project returns `403 FORBIDDEN`. Reading social accounts, for example, needs `social:read`. # Errors Source: https://docs.sapt.ai/docs/mintlify/guides/errors The JSON error envelope every Sapt API endpoint returns, what each error code means, and how to handle a post that failed on Meta, TikTok or Google. Every 4xx and 5xx response uses the same envelope: ```json theme={null} { "error": { "code": "BAD_REQUEST", "message": "Media 1: video must be at most 60 seconds for STORIES", "details": {} } } ``` `code` is machine-readable and stable. `message` is written for a human and may change. `details` carries extra context when there is any. For a `VALIDATION_ERROR` it holds `issues`, one `{ path, code, message }` entry per field that failed. ## Codes | HTTP | `code` | Means | | - | - | - | | 400 | `BAD_REQUEST` | The request was malformed, or media failed platform validation. | | 400 | `VALIDATION_ERROR` | The path, query or body did not match the endpoint's schema. | | 401 | `UNAUTHORIZED` | Missing, malformed, or expired credential. | | 402 | `PAYMENT_REQUIRED` | The workspace's plan does not cover this call. | | 403 | `FORBIDDEN` | Authenticated, but not permitted on this project. | | 404 | `NOT_FOUND` | No such resource, or not visible to this credential. | | 409 | `CONFLICT` | The resource changed underneath you. | | 412 | `PRECONDITION_FAILED` | A required precondition was not met. | | 429 | `TOO_MANY_REQUESTS` | Rate limited. Back off and retry. | | 500 | `INTERNAL_SERVER_ERROR` | An unexpected failure on our side. | | 502 | `BAD_GATEWAY` | An upstream platform (Meta, TikTok, Google) failed. | | 503 | `SERVICE_UNAVAILABLE` | Temporarily unavailable. | | 504 | `GATEWAY_TIMEOUT` | An upstream platform timed out. | > [!NOTE] > > Branch on `code`, not only on the HTTP status. A few codes, including > `PAYLOAD_TOO_LARGE`, `UNPROCESSABLE_CONTENT` and `TIMEOUT`, currently arrive with > HTTP `400`. ## Upstream platform failures Publishing talks to Meta, TikTok, YouTube and Google. When one of those rejects a post, the failure surfaces two ways depending on when it happens: * **Synchronously:** the publish call returns an error with the platform's reason in `message`, and the post moves to `status: "failed"`. * **Asynchronously:** a scheduled post moves to `status: "failed"` with the reason in `errorMessage`. Poll [Get post status](/api-reference/socials/get-post-status), and retry by calling [Publish post immediately](/api-reference/socials/publish-post-immediately). > [!WARNING] > > Retrying a `failed` post re-runs delivery. Retrying a post that actually > succeeded upstream but failed to record can double-post. Check `permalink` on > the post before retrying. # Sapt API Source: https://docs.sapt.ai/docs/mintlify/guides/introduction One REST API for the platform behind Sapt shops: CRM, social publishing, ads and attribution, with the base URL, projects and conventions. The Sapt API is the programmable surface of the Sapt platform, the system that runs the website, Google listing, front desk and reviews for independent auto repair shops. Everything the dashboard does, it does through these endpoints. > [card] [Social publishing](/docs/mintlify/social/overview) > > Schedule and publish organic posts to Instagram, Facebook, TikTok, YouTube and Google Business > Profile. > [card] [Quickstart](/docs/mintlify/guides/quickstart) > > Publish your first post in four calls. > [card] [Authentication](/docs/mintlify/guides/authentication) > > API keys, OAuth access tokens, and session cookies. > [card] [API reference](/api-reference/socials/create-post) > > Every endpoint, generated from the live OpenAPI document. ## Base URL ``` https://api.sapt.ai ``` The OpenAPI document that generates this reference is served live at `https://api.sapt.ai/openapi.json`. It is the contract: if an endpoint is not in that document, it is not public, no matter what else is reachable over HTTP. ## Projects Almost every resource belongs to a **project** (a workspace). The project id is a UUID and appears as a path parameter: ``` GET /socials/posts/{projectId} ``` An API key is already scoped to the projects it can reach, so passing a `projectId` your key cannot see returns `403`, not `404`. ## Conventions | | | | - | - | | **Format** | JSON in, JSON out, except media uploads which take raw bytes. | | **Dates** | ISO 8601 strings in UTC (`2026-09-07T14:30:00Z`). | | **Ids** | UUIDs, except platform-native ids (a Facebook Page id, an Instagram media id) which are opaque strings. | | **Pagination** | List endpoints take `limit` and `offset`. | | **Errors** | `{ "error": { "code", "message", "details?" } }`. See [Errors](/docs/mintlify/guides/errors). | ## Backward compatibility The OpenAPI contract is load-bearing. Fields are not removed from responses without a version bump: a retired field returns `null` or its empty shape rather than disappearing, so destructuring clients keep working. Request fields that are retired stay accepted and are ignored server-side. # Quickstart Source: https://docs.sapt.ai/docs/mintlify/guides/quickstart Schedule your first Instagram post through the Sapt API in four calls: find the account, upload the video, create the post, and check its status. We'll take a video file and put it on Instagram for Friday morning. > [!NOTE] > > You need an API key and a project with at least one connected social account. > Both come from the [Sapt dashboard](https://app.sapt.ai). ```bash theme={null} export SAPT_API_KEY="sapt_…" export PROJECT_ID="…" ``` ## 1. Find the account ```bash theme={null} curl "https://api.sapt.ai/socials/accounts/$PROJECT_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Take the `id` of the Instagram entry. That is your `socialAccountId`. ## 2. Upload the video Stream the raw bytes with the file's own content type: ```bash theme={null} curl -X PUT \ "https://api.sapt.ai/socials/media/$PROJECT_ID/stream-upload?filename=reel.mp4" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: video/mp4" \ --data-binary @reel.mp4 ``` Keep `data.handle` from the response, both `stagingId` and `ext`. ## 3. Schedule the post ```bash theme={null} curl -X POST "https://api.sapt.ai/socials/posts/$PROJECT_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "socialAccountId": "9f1c2f7a-4c9e-4a1d-9d0e-8a5b6c7d8e9f", "platform": "instagram", "mediaType": "REELS", "caption": "New drop, Friday.", "uploadedHandles": [{ "stagingId": "stg_01JQ…", "ext": "mp4" }], "scheduledFor": "2026-09-11T14:00:00Z", "timezone": "America/New_York" }' ``` The response carries the post with `status: "scheduled"`. Keep `data.post.id`. ## 4. Check on it ```bash theme={null} curl "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID/status" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` At the scheduled time it moves to `queued`, then `publishing`, then `published` with a `permalink`. If something goes wrong it becomes `failed` and `errorMessage` says why. ## All together ```typescript theme={null} const API = 'https://api.sapt.ai' const auth = { Authorization: `ApiKey ${process.env.SAPT_API_KEY}` } const projectId = process.env.PROJECT_ID! // 1. Pick a live Instagram account. const accountsRes = await fetch(`${API}/socials/accounts/${projectId}`, { headers: auth }) const { data: accountData } = await accountsRes.json() const account = accountData.accounts.find( (a) => a.platform === 'instagram' && a.isActive ) if (!account) throw new Error('No active Instagram account on this project') // 2. Stage the video. const uploadRes = await fetch( `${API}/socials/media/${projectId}/stream-upload?filename=reel.mp4`, { method: 'PUT', headers: { ...auth, 'Content-Type': 'video/mp4' }, body: await Bun.file('reel.mp4').arrayBuffer(), } ) const { data: upload } = await uploadRes.json() // 3. Put it on the calendar. const postRes = await fetch(`${API}/socials/posts/${projectId}`, { method: 'POST', headers: { ...auth, 'Content-Type': 'application/json' }, body: JSON.stringify({ socialAccountId: account.id, platform: 'instagram', mediaType: 'REELS', caption: 'New drop, Friday.', uploadedHandles: [upload.handle], scheduledFor: '2026-09-11T14:00:00Z', timezone: 'America/New_York', }), }) const { data } = await postRes.json() console.log(`Scheduled ${data.post.id} for ${data.post.scheduledFor}`) ``` ## Next > [card] [Social publishing](/docs/mintlify/social/overview) > > Platforms, media types, and the post lifecycle in full. > [card] [Publish immediately](/docs/mintlify/social/publishing) > > Skip the calendar, and handle failures. # Connect Cal.com Source: https://docs.sapt.ai/docs/mintlify/integrations/cal-com Connect Cal.com so the meetings people book with you show on your Sapt calendar, and your workflows can check whether a lead has booked. Connect Cal.com and the meetings people book with you show up in Sapt, next to the rest of your schedule. ## What you get * Your Cal.com bookings on your Sapt **Calendar**. * The **Check for booking** workflow step: it checks whether a lead booked, so the workflow can follow up only with people who did not. * For developers: the Sapt API can find open times and create, move and cancel Cal.com bookings. ## Before you start * A Cal.com account and its login. ## Connect Cal.com **1. Open Cal.com in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Other**, find **Cal.com** and click **Connect**. ![The Cal.com page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/cal-com.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=e30f0d366fe66a74557f91027cd6cded) **2. Allow Sapt in Cal.com** Click **Connect** on the Cal.com page. Cal.com opens in a new window. Sign in and click **Allow**. **3. Check your calendar** Back in Sapt, Cal.com shows **Connected**. Open **Calendar** to see your bookings. ## What Sapt does and does not do * Sapt reads your event types and bookings. * Sapt creates a booking in Cal.com only when someone asks it to, through the Sapt API or a tool built on it. * Cal.com logins sometimes expire. If the Cal.com card says **Reconnect required**, click **Reconnect** and sign in again. ## Disconnect On the Cal.com page in Sapt, open the **...** menu and click **Disconnect**. Your Cal.com bookings leave your Sapt calendar. Nothing changes in Cal.com. ## Keep going > [card] [Booking](/docs/mintlify/leads/booking) > > Set your hours and how customers book. > [card] [Google Calendar](/docs/mintlify/integrations/google-calendar) > > Let the AI read and book your Google Calendar. > [card] [Calendly](/docs/mintlify/integrations/calendly) > > Show Calendly events on your calendar instead. # Connect Calendly Source: https://docs.sapt.ai/docs/mintlify/integrations/calendly Connect Calendly with a personal access token so your scheduled Calendly events show on your Sapt calendar. Sapt only reads them and never changes your events. Connect Calendly and your scheduled Calendly events show on your Sapt calendar. Sapt only reads them. It never changes or cancels anything in Calendly. ## What you get * Your scheduled Calendly events on your Sapt **Calendar**. * The **Check for booking** workflow step: it checks whether a lead booked, so the workflow can treat people who booked differently. ## Before you start * A Calendly account. Reading events through Calendly's API works on any Calendly plan. [Calendly's API overview](https://calendly.com/help/calendly-api-overview). ## Connect Calendly **1. Make a token in Calendly** Log in to Calendly and open the [Integrations page](https://calendly.com/integrations). Choose **API & Webhooks**. Click **Get a token now**, or **Generate new token** if you have made one before. Name it "Sapt". [Calendly's steps](https://developer.calendly.com/docs/authentication/how-to-authenticate-with-personal-access-tokens.md). **2. Give the token two scopes** When Calendly asks which scopes the token gets, choose `users:read` and `scheduled_events:read`. Without both, no events load. Click **Create Token**, then **Copy token**. Calendly shows it only once. **3. Open Calendly in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Other**, find **Calendly** and click **Connect**. ![The Calendly page in Sapt, not connected yet, with Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/calendly.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=e9d8552890fd9751dc8c3fbd59731729) **4. Paste the token** Click **Connect** on the Calendly page. Paste the token into **Personal Access Token** and click **Connect**. ![The Connect Calendly box with the Personal Access Token field](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/calendly-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1501a637b6432f873f50389596aedc98) **5. Check your calendar** Open **Calendar** in Sapt. Your upcoming Calendly events are there. ## If something looks wrong Sapt does not test the token when you save it. If no Calendly events show on your calendar, make a new token with both scopes. On the Calendly page in Sapt, open the **...** menu, click **Reconnect** and paste the new token. ## Disconnect On the Calendly page in Sapt, open the **...** menu and click **Disconnect**. Sapt stops reading your Calendly events. ## Keep going > [card] [Booking](/docs/mintlify/leads/booking) > > Set your hours and how customers book. > [card] [Cal.com](/docs/mintlify/integrations/cal-com) > > Connect Cal.com bookings instead. > [card] [Google Calendar](/docs/mintlify/integrations/google-calendar) > > Let the AI read and book your Google Calendar. # Use Sapt in Claude and ChatGPT Source: https://docs.sapt.ai/docs/mintlify/integrations/claude-and-chatgpt Add the Sapt connector to Claude or ChatGPT so you can ask about your leads, contacts and posts, and get work done in Sapt from the chat. The Sapt connector lets Claude or ChatGPT look things up and get work done in your Sapt workspace while you chat. ## What you get * Answers about your business in plain words. Try asking: "What's my brand voice?" * Work done in Sapt from the chat: your contacts and CRM, content, workflows and posts. Reviews and business hours too, once Google Business Profile is connected. * Your own Sapt sign-in. The assistant sees only what your Sapt account can see. ## Before you start * A Claude or ChatGPT account. ChatGPT adds Sapt through Developer mode, and what you can use there depends on your ChatGPT plan. * The connector address, which is the same for both: ``` https://mcp.sapt.ai/mcp ``` ## Connect Claude or ChatGPT **1. Open the Connect tab** In Sapt, open your user menu at the top right and choose **Account**. The **Connect** tab opens on **Connect Sapt**. Click **Copy URL**. ![Connect Sapt in Account: Default workspace, the connector URL with Copy URL, and the Claude, ChatGPT and Gemini cards](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/claude-and-chatgpt.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=7d463876f10591898ef71e8d929aaf7b) **2. Follow the guide for your assistant** Click **Open** on the **Claude** or **ChatGPT** card. That also copies the URL. The guide further down the tab has every step for each assistant, and so does [Connect Claude or ChatGPT](/docs/mintlify/mcp/connect). **3. Sign in with Sapt** When Claude or ChatGPT asks you to connect, sign in with your Sapt account. **4. Pick your workspace** If you have more than one workspace, choose one under **Default workspace** on the **Connect** tab. Sapt uses it when you call Sapt from Claude or ChatGPT. **5. Try it** Start a chat and ask: "What's my brand voice?" ## What Sapt does and does not do * The writing comes from your Claude or ChatGPT plan. Sapt holds your data and carries out the actions. * Sapt asks the assistant to check with you before anything goes live, like sending a message, publishing a post, changing an ad or deleting something. * The assistant can do only what your role in Sapt allows. ## Disconnect In Sapt, open **Account** and the **Connected Apps** tab. Click **Revoke** next to the assistant, then **Revoke Access**. It signs out within a minute. To use it again, connect again from Claude or ChatGPT. ## Keep going > [card] [Connect Claude or ChatGPT](/docs/mintlify/mcp/connect) > > Every click, for both assistants. > [card] [MCP overview](/docs/mintlify/mcp/overview) > > What the connector can do, for developers. # Connect Close CRM Source: https://docs.sapt.ai/docs/mintlify/integrations/close Connect Close so Sapt brings in your Close leads, shows which channel and campaign each one came from, and can add Sapt attribution fields in Close. Connect Close and Sapt brings in your Close leads, then shows which ad, campaign or channel each lead came from. ## What you get * Your Close leads in Sapt as contacts, with their email, phone, and the value of their won and open deals. * New and changed leads come in on their own every 30 minutes. The first run brings in all of them. * Where each lead came from. Sapt reads the campaign tags and Meta click IDs on your Close leads and matches them to visits on your website. * A Close page in Sapt with **Attribution preview**, **Where your leads come from**, **People from Close**, **Revenue by channel** and **Fields in Close**. The cards about your leads appear once the first leads have come in. * Sapt fields in Close. Sapt can write its attribution onto your Close leads in fields of its own: **Sapt Channel**, **Sapt Source**, **Sapt Campaign**, **Sapt Ad**, **Sapt First Touch**, **Sapt Journey**, **Sapt Confidence** and **Sapt Attribution Updated**. ## Before you start * A Close login that has access to the organization you want to connect. * Allow pop-ups for app.sapt.ai. Close opens in a small window. ## Connect Close **1. Open Close in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **Close CRM** under **Other** and click **Connect**. ![The Close CRM page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/close.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=b5416e9aa3c797ce9a91878c1d70389e) **2. Click Connect** On the Close CRM page, click **Connect**. A Close window opens. If nothing opens and Sapt says the pop-up was blocked, allow pop-ups and try again. **3. Approve Sapt in Close** Close shows a consent screen. Pick your organization and grant access. Close explains this screen in its [OAuth guide](https://developer.close.com/topics/authentication-oauth2/). **4. Preview your leads** Back in Sapt, the card shows **Connected** and the Close dashboard appears below it. Click **Preview 25 recent leads** to see where your latest leads came from. The preview stores nothing and writes nothing to Close. ## What Sapt does and does not do * Close gives every connected app the same full access to your organization. * Sapt reads your leads, contacts and deals. It does not change your leads, your deals or your own fields in Close. * The only things Sapt writes in Close are the Sapt fields listed above. It creates them if they are missing and cannot touch any other field. * Writing those fields is not something you can start from the Close page yet. Ask the Sapt team to run it. **Enriched in Close** shows how many leads have them. * Bringing leads in does not message anyone. ## Disconnect On the Close CRM page, open the **...** menu on the Close card and choose **Disconnect**. Sapt also asks Close to end its access. Leads already in Sapt stay. You can also revoke Sapt's access from your account settings in Close. ## Keep going > [card] [Contacts](/docs/mintlify/crm/contacts) > > Find the leads Sapt brought in from Close. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Give Sapt Cloudflare DNS access Source: https://docs.sapt.ai/docs/mintlify/integrations/cloudflare If your domain's DNS is on Cloudflare, give Sapt a DNS token so it can add the records your website and email need. Sapt never deletes records. If your domain uses Cloudflare for DNS, you can let Sapt add the DNS records for you instead of typing them in yourself. ## What you get * Sapt adds the records your domain needs, for your website, tracking and email, when you explicitly set up the domain, connect the website, or apply its records. * One token covers every domain the token can see in your Cloudflare account. If the zone is already in Sapt’s Cloudflare account, an operator with platform access does not need to create another token. Follow [managed domain setup](/docs/mintlify/website/connect-your-domain#if-sapt-manages-your-cloudflare-domain) in the domain guide; automatic HTTP certificates need no verification TXT records. ## Before you start * Your domain's DNS on Cloudflare. Sapt shows the Cloudflare option only for a domain whose DNS is there. * A Cloudflare login that can make API tokens. * Permission to change Project Settings in Sapt. ## Connect Cloudflare **1. Add your domain in Sapt** In Sapt, open **Project Settings** and then **Domains**. In **Connect a domain**, type your domain in **Domain you own**, tick what it is for and click **Set up domain**. [Connect your domain](/docs/mintlify/website/connect-your-domain) has each step. ![Domains in Project Settings with the empty Connect a domain card: Domain you own, Website, Email sending, First-party tracking and Save domain settings](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/domains.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8853f0c8523f71112d31673c8f0c40ef) **2. Click Connect Cloudflare DNS access** Once your domain is saved, Sapt checks where its DNS is. If it is on Cloudflare, **Connect Cloudflare DNS access** shows under your domain's **DNS records**. Click it. **3. Open Cloudflare** Click **Open Cloudflare**. Cloudflare's token page opens with everything filled in: the name **Sapt**, read access to your zones, edit access to your DNS records, and all of your zones. Sign in if Cloudflare asks. > [!TIP] > > To limit the token to one domain, pick that domain in the token's resources instead of all zones. **4. Create the token** Click **Continue to summary**, check it, then click **Create Token**. Copy the token. Cloudflare shows it only once. Cloudflare's steps are in its [API token guide](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/). **5. Paste it into Sapt** Back in Sapt, paste the token into **Paste the token** and click **Connect**. Sapt checks the token with Cloudflare and makes sure it can see your domain. **6. Apply the records** Look over the records, then click **Apply DNS records**. Click **Check connection** to see which records are live. ## What Sapt does and does not do * Connecting changes nothing. Sapt adds records only when you explicitly set up the domain, connect the website, or apply its records. * Sapt only adds records that are missing. It never replaces or deletes a record that is already there. If a name already has a different record, Sapt tells you and leaves it alone. * Sapt adds records with the Cloudflare proxy off. If a matching record has the proxy on, Sapt asks you to turn the proxy off. * **Check connection** only looks. It never changes anything at Cloudflare. ## If something looks wrong * Sapt says Cloudflare did not accept the token: copy it again from the page Cloudflare shows after **Create Token**, and paste it again. * Sapt says the token cannot see your domain: make a new token that includes the domain's zone, or give the old one access to it in Cloudflare. ## Disconnect In **Project Settings** > **Domains**, click **Disconnect DNS access**. Sapt forgets the token. Records it already added stay. Then delete the token in Cloudflare under **My Profile** > **API Tokens**. ## Keep going > [card] [Connect your domain](/docs/mintlify/website/connect-your-domain) > > Put your website on your own address. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect Content Rewards Source: https://docs.sapt.ai/docs/mintlify/integrations/content-rewards Connect your Content Rewards account with an email code so you can find clipping campaigns and send your posted clips from Clips in Sapt. Content Rewards runs campaigns where brands pay creators for posting clips. Connect your account and work on those campaigns from Clips in Sapt. ## What you get * Your Content Rewards account in Sapt: verified social accounts, campaign applications and payouts received. * Content Rewards campaigns you can search and save in Clips, with their rules and payout terms. * Your published clips sent to Content Rewards as submissions, with the receipt saved in Sapt. ## Before you start * A Content Rewards account and the email you sign in with. * Permission to manage integrations in Sapt. ## Connect Content Rewards **1. Open Content Rewards in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **Content Rewards** under **Marketing** and click **Connect**. ![The Content Rewards page in Sapt, not connected yet, with the Content Rewards email box, Send sign-in code and Open Clips](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/content-rewards.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=e7cde4c16b1381d0222336abe5cc4b3a) **2. Send yourself a code** Type your **Content Rewards email** and click **Send sign-in code**. **3. Enter the code** Type the six-digit code from the email and click **Verify code**. Codes expire after 10 minutes. If it has not arrived, check your spam folder or click **Resend code**. **4. Open Clips** The card says your sign-in is saved. Click **Open Clips** to start. ## What Sapt does and does not do * Signing in does not submit or publish anything. * Campaign enrollment and social-account ownership are checked separately, in Content Rewards. * Creator onboarding and payment setup happen in Content Rewards. If you still need them, the card links you there. * A submission receipt confirms Content Rewards got your clip. It does not confirm a payout. ## Disconnect On the Content Rewards page in Sapt, click **Disconnect**. To sign in with another email, click **Reconnect**. Your current connection stays on until the new code is verified. ## Keep going > [card] [Connect Whop](/docs/mintlify/integrations/whop) > > Link the Whop account behind your reward campaigns. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect Gmail Source: https://docs.sapt.ai/docs/mintlify/integrations/gmail Connect Gmail to email customers from your own address in Sapt, bring their replies into your Inbox, and set safe hours and limits for outreach emails. Connect Gmail and the emails Sapt sends come from your own address, with replies landing back in Sapt. ## What you get * **Email from the Inbox**: write to a customer from their conversation, sent from your Gmail. * **Replies in Sapt**: new mail in the mailbox shows up in your **Inbox**, on the sender's conversation. * **Emails from workflows**: the **Send an outreach email** step sends from a mailbox you pick. * **AI agents**: an agent can answer email on this mailbox when you pick it under **Answers on**. * **Settings on the Gmail page**: your name and signature, sending hours and daily limits, reply labels and a do-not-email list. ## Before you start * A Gmail or Google Workspace mailbox. * If your company uses Google Workspace, your admin may need to allow Sapt. See Google's guide to [controlling app access](https://support.google.com/a/answer/13152743). * A Sapt role that can manage integrations. Without it, the Gmail page has no **Connect Gmail** button. ## Connect Gmail **1. Open the Gmail page** Click **Project Settings**, then **Connected apps**. Under **Google**, click **Connect** on Gmail. **2. Click Connect Gmail** Under **Connect a Gmail sender**, click **Connect Gmail**. A Google window opens. ![The Gmail page in Sapt with no mailbox yet: Connected mailboxes shows Connect a Gmail sender and the Connect Gmail button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/gmail.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=b875d841852285636c55ef2be4c79c6e) **3. Choose the mailbox and allow access** Pick the account you send from, then allow what Google asks: * **Send email on your behalf**, so Sapt can send the emails you and your workflows write. * **View your email messages and settings**, so replies show up in Sapt. * Your email address, so Sapt knows which mailbox is connected. The mailbox now shows under **Connected mailboxes**. **4. Add your name and signature** Click the arrow next to the mailbox (**Name and signature**). Fill in **Display name**, like **Maya at Ridgeline Auto**, and **Signature**, then click **Save**. Click the send icon (**Send test email**) to check how it looks. Another mailbox? Click **Add mailbox**. ## The Gmail page's settings These apply to outreach emails, like the ones a workflow sends. * **Outreach sending schedule**: set **Start sending at**, **Stop sending at**, **Sending days** and **Timezone**. **Daily limit per mailbox** starts at 30, with a top of 40. **Minimum seconds between emails** starts at 60. Click **Save schedule**. * **AI reply classifier**: turn on **Label new replies automatically** and Sapt labels replies as interested, not interested, bounced or out of office. * **Sequence templates**: email sequences your team saved to reuse. * **Do-not-email list**: type an address, like **[jordan@example.com](mailto:jordan@example.com)**, and click **Add**. People on the list get no outreach from Sapt. > [!TIP] > > Sending cold outreach? The Gmail page's advice: use a separate domain, not the one your team uses for customer email, and start slowly. ## What Sapt does and does not do * It sends only what you, your workflows or your AI agents write. * It reads new mail that arrives in this mailbox and brings it into Sapt. Connect the mailbox you use for customers, not your personal one. * Outreach emails go out only inside your sending schedule and daily limit. ## Disconnect On the Gmail page, click the unplug icon (**Disconnect mailbox**) next to the mailbox and confirm. Sapt stops sending from it and stops bringing in its mail. ## Keep going > [card] [Inbox](/docs/mintlify/leads/inbox) > > Answer emails, texts and messages in one place. > [card] [Workflows](/docs/mintlify/automations/workflows) > > Send emails automatically. # Move from GoHighLevel to Sapt Source: https://docs.sapt.ai/docs/mintlify/integrations/gohighlevel Connect your GoHighLevel agency with read-only access, import each sub-account into Sapt, and send new leads to a client's GoHighLevel. Agencies moving off GoHighLevel can bring each client sub-account into Sapt. You can also send new leads from Sapt into a client's GoHighLevel. ## What you get * Each GoHighLevel sub-account imported into its own Sapt project, or into a project you pick. * Contacts, opportunities, conversations and notes come across. * A count of what will come over, and about how long it takes, before you start. * Imports run in the background, so you can close the tab and come back. * A workflow step, **Send lead to GoHighLevel**, that hands a new lead to a client's GoHighLevel. ## Before you start * A GoHighLevel login at the agency level. You authorize once for the whole agency. * Allow pop-ups for app.sapt.ai. GoHighLevel opens in a small window. ## Import your sub-accounts **1. Open GoHighLevel in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **GoHighLevel** under **Your shop system** and click **Connect**. The **Migrate from GoHighLevel** page opens. ![The Migrate from GoHighLevel page in Sapt, not connected yet, with the Connect GoHighLevel button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/gohighlevel.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=2b6f79f518053a17756904650cf508f2) **2. Connect your agency** Click **Connect GoHighLevel** and sign in to GoHighLevel. On GoHighLevel's screen, choose all the sub-accounts you want to bring over, not a single location. Back in Sapt, the page lists your sub-accounts. To add more later, click **Connect sub-account**. New ones stack on the same page. **3. Pick where each one lands** Each sub-account has an **Import destination**. Choose **New project**, this project (shown with its name), or another project you own. Under each sub-account, Sapt shows how many contacts, opportunities and conversations it found, and about how many minutes the import takes. **4. Start the import** Click **Start import** on one sub-account, or **Import all** for every one. Sapt shows each part as it comes in: contacts, opportunities, conversations, then notes. If an import fails, click **Retry**. To stop one, click **Cancel**. ## Send leads to a client's GoHighLevel Use this when a client still works in GoHighLevel and wants your leads there. You do not need their GoHighLevel login. **1. Get the URL from your client** In the client's GoHighLevel, they open a workflow and choose the **Inbound Webhook** trigger. GoHighLevel shows a URL. They copy it and send it to you. GoHighLevel explains this in its [Inbound Webhook guide](https://help.gohighlevel.com/support/solutions/articles/155000003147-workflow-trigger-inbound-webhook). **2. Add the step in Sapt** In your Sapt workflow, add the **Send lead to GoHighLevel** step. Give it a **Destination name**, like the client's shop name, so you can tell clients apart. Paste the URL into **Inbound webhook URL** and click **Save**. Sapt stores the URL encrypted and never shows it again. Anyone with that URL can write into the client's CRM. **3. Choose what to send** Name, email, phone, source, campaign and first-touch attribution go over on their own. To send more, click **Add field** under **Extra fields (optional)**. In their GoHighLevel workflow, the client maps these fields with a **Create/Update Contact** step. **4. Check what was sent** The **Leads sent out** card on the GoHighLevel page lists every lead this project sent, newest first. If any failed, click **Show failed** to see them. ## What Sapt does and does not do * Sapt asks GoHighLevel for read-only access to your sub-accounts, contacts, opportunities and conversations, plus the access it needs to open each sub-account. * Sapt never changes or deletes anything in GoHighLevel. * Importing does not message anyone. * Importing the same sub-account again updates what came over before. It does not make duplicates. * A new project made from a sub-account sits under your agency's project. It shares that project's billing and credits, and your agency's owner owns it. ## Disconnect On the **Migrate from GoHighLevel** page, open the **...** menu and choose **Disconnect GoHighLevel**, then **Disconnect**. Records and projects you already imported stay. You can reconnect any time to import more. ## Keep going > [card] [Workflows](/docs/mintlify/automations/workflows) > > Build the workflow that sends leads on. > [card] [Contacts](/docs/mintlify/crm/contacts) > > Find the people you imported. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect Google Ads Source: https://docs.sapt.ai/docs/mintlify/integrations/google-ads Connect Google Ads to see your campaigns, spend and Local Services leads in Sapt, pause or turn on campaigns, and send your leads back to Google. Connect Google Ads and you can see what your ads cost and bring in, next to your leads. ## What you get * **Your campaigns**: campaigns, ad groups, ads, keywords and the search terms people typed, with spend and results. * **Pause or turn on** a campaign from Sapt. Sapt asks you to confirm first. * **Optimization center**: Google's suggestions for your account, to apply or dismiss. * **Local Services**: your Local Services leads and spend. * **Conversions**: Sapt can send your leads back to Google Ads, so Google finds more people like them. * **Manager accounts**: if you use a manager account, Sapt finds the client accounts under it. ## Before you start * A Google login with access to your Google Ads account. Read-only access is enough to see numbers. To pause campaigns or apply suggestions, you need Standard or Admin access. See Google's [access levels](https://support.google.com/google-ads/answer/9978556). * In Sapt, a role with Google Ads access to open the Ads pages, and one that can manage integrations to connect. ## Connect Google Ads **1. Open Google Ads in Sapt** Click **Project Settings**, then **Connected apps**. Under **Google**, click **Connect** on Google Ads. You can also click **Performance**, then **Ads**, choose **Google** and click **Connect Google Ads**. ![The Google Ads page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/google-ads.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=a74782d679d257ec4a9cf5f4863d1eba) **2. Click Connect** A Google window opens. **3. Choose your Google login and allow access** Pick the login you use for Google Ads, then allow what Google asks: * **See, edit, create, and delete your Google Ads accounts and data**, so Sapt can show your numbers and make the changes you ask for. * Your customer data in Google Ads, so Sapt can send your leads back as conversions. * Your email address, so Sapt knows which login is connected. The window says **Account Connected** and closes. Sapt adds every Google Ads account that login can see. Ads for different clients behind different logins? Click **Add account** and sign in with the next one. Sapt keeps them all. > [!TIP] > > Agencies can click **Send to client** to let a client connect their own account. See [Connect a client's account](/docs/mintlify/integrations/overview#connect-a-clients-account). ## Send your leads back to Google Connecting is step one. To send conversions, click **Performance**, then **Attribution**, then **Setup**. Open **Meta & Google**, and under **Conversions API (Google)** choose your ad account and the conversion action to use. Once both are set, Sapt sends conversions on its own. ## What Sapt does and does not do * It reads your accounts, campaigns and results. * It changes your account only when someone on your team does it in Sapt: pausing or turning on a campaign, applying a suggestion, or changing Local Services settings. * Once you set up conversions, it sends them to Google automatically. * If you connected before conversions were added to Sapt, click **Reconnect** in the **...** menu before setting them up. ## Disconnect In **Project Settings**, **Connected apps**, click **Configure** on Google Ads. Open the **...** menu and click **Disconnect all**. Your Google Ads account and campaigns stay as they are. ## Keep going > [card] [Google Analytics and Search Console](/docs/mintlify/integrations/google-analytics) > > See what people search to find you. > [card] [Google Business Profile](/docs/mintlify/integrations/google-business-profile) > > Answer reviews and keep your hours right. # Connect Google Analytics and Search Console Source: https://docs.sapt.ai/docs/mintlify/integrations/google-analytics Connect Google Search Console to see how often Google shows your website and what brings people in. Sites Sapt hosts on your own domain are set up for you. One Google sign-in connects Google Analytics and Google Search Console. Sapt uses it to show how your website does on Google. ## What you get * **Your website on Google**: how often Google showed your site, how many people visited from it, and your average spot in results. * **Which pages Google has**: and which ones are missing. * **Your sitemap**: send it to Google with one click. You'll find all of it under **Performance**, **Google**, **Search**. > [!NOTE] > > Sapt also asks for read-only Google Analytics (GA4) access in the same step, but no Sapt screen shows GA4 reports yet. ## Before you start **Is your website hosted on Sapt, on your own domain?** Then you can skip this page. Sapt adds your site to Search Console and sends your sitemap for you. A site still on its `.sapt.ai` address is not added. Otherwise, you need a Google account with access to your site in Search Console. See Google's [permission levels](https://support.google.com/webmasters/answer/7687615). If your site isn't in Search Console yet, [add it there first](https://support.google.com/webmasters/answer/34592). ## Connect Google Search **1. Open Search in Sapt** Click **Performance**, then **Google**, then **Search**. You can also go to **Project Settings**, **Connected apps** and click **Connect** on Google Analytics. ![The Google Analytics page in Connected apps, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/google-analytics.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=04458c4dd6cd29d0cd16d806d741d51d) **2. Click Connect Google** On the Google Analytics page in Connected apps, the button says **Connect**. A Google window opens. **3. Choose your account and allow access** Pick the Google account that has your site, then allow what Google asks: * **See and download your Google Analytics data**. Sapt only reads it. * **View and manage Search Console data for your verified sites**, so Sapt can read your numbers and send your sitemap. * **Manage your new site verifications with Google**, so Sapt can prove a site it hosts is yours. * Your email address, so Sapt knows which account is connected. The window says **Account Connected** and closes. **4. Choose your site** If Sapt doesn't host your website, it asks which site to use. Click **Choose site**, pick it under **Choose a site** and click **Use**. To switch sites later, open **Google**, click **Connections**, and click **Change site** under **Google Search**. ## What Sapt does and does not do * It reads your search numbers and the pages Google has. * For a site it hosts, it adds the site to Search Console, proves it's yours and sends the sitemap. While that runs, Sapt says **Sapt is putting your site on Google Search. This page updates itself.** * It never changes your Google Analytics setup. ## If something looks wrong * **This Google login has no sites yet.** The account you connected can't see your site. Connect with the account that can, or add your site to Search Console. * **Google needs your OK to share search numbers.** You didn't allow every permission. Click **Reconnect Google** and allow them all. * **Your Google login expired.** Click **Reconnect Google**. ## Disconnect In **Project Settings**, **Connected apps**, click **Configure** on Google Analytics. Open the **...** menu and click **Disconnect all**. Your Search Console and Google Analytics stay as they are. ## Keep going > [card] [Google Business Profile](/docs/mintlify/integrations/google-business-profile) > > See how people find your Google listing. > [card] [Connect your domain](/docs/mintlify/website/connect-your-domain) > > Put your Sapt website on your own domain. # Connect Google Business Profile Source: https://docs.sapt.ai/docs/mintlify/integrations/google-business-profile Connect your Google Business Profile to read and answer Google reviews, keep your hours right and see how people find your listing, on the web or your phone. Connect your Google listing and you can answer reviews and fix your hours without opening Google. ## What you get * **Reviews**: read every Google review and reply, on the web or on your phone. Sapt checks for new reviews every 15 minutes. * **Hours**: change your opening hours and holiday hours on Google. * **Your listing**: edit your category, address, phone, website, description, photos and services. * **How people find you**: how often Google showed your listing, and how many people called, asked for directions or visited your website. * **Workflows**: start one when a **New Google review** comes in, and **Reply to the Google review** automatically. * **Your website**: your Sapt website uses your hours, address and reviews. ## Before you start You need the Google account that is an owner or manager of your Business Profile. Not sure which one? On Google, check [who has access to your profile](https://support.google.com/business/answer/9272778). ## Connect Google Business Profile > [tab] On the web > > **1. Open Google in Sapt** > > In the sidebar, click **Performance**, then **Google**. You can also go to **Project Settings**, **Connected apps** and click **Connect** on Google Business Profile. > > **2. Click Connect with Google** > > On the Connected apps page, the button says **Connect**. A Google window opens. > > ![The Google Business Profile page in Connected apps, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/google-business-profile.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=07912bb0751cb87a3593d779b79749de) > > **3. Choose the account that manages your listing** > > Pick the Google account, then allow what Google asks: > > * **Manage your Business Profile on Google**, so Sapt can read reviews, post your replies and edit your listing. > * Your name and email address, so Sapt knows which account is connected. > > The window says **Account Connected** and closes. Your locations show under **Profile**. > [tab] On your phone > > **1. Open Growth** > > Tap **Growth**. Under **Reviews**, tap **Connect Google**. New shops can also tap **Connect Google** on **Today**. > > **2. Choose the account that manages your listing** > > Google opens. Pick the Google account and allow what it asks: managing your Business Profile, and your name and email address. > > **3. Check your listing** > > Back in Sapt, you see **Connected** and your listing's name. Tap **Done**. Your Google reviews now show under **Reviews** on **Growth**. Tap **Reply** to answer one. > > ![The Growth tab on a phone after connecting: the Google rating, how many reviews need a reply, and two reviews marked Needs a reply with a Reply button](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/growth.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=c5fb9af1947b28e770ea52e1eeab7bfb) > [!TIP] > > Setting this up for a client? On the Google Business Profile page, click **Send to client** and send them the link. See [Connect a client's account](/docs/mintlify/integrations/overview#connect-a-clients-account). ## Where to use it * **Reviews**: on the web, **Performance**, **Google**, **Reviews**. On your phone, **Growth**. * **Hours and listing**: on the web, **Google**, **Profile**. On your phone, **Shop**, **Front desk**, **Google hours**. * **How people find you**: **Google**, **Search**. * **Weekly review digest**: **Google**, **Connections**, **Create digest workflow**. ## What Sapt does and does not do * Replies you send post on Google, in public, as your business. * Changes to your hours or listing go to Google. They can take a few minutes to show. * Sapt changes your listing or posts a reply only when someone on your team does it, or a workflow you turned on does it. ## If something looks wrong * **The tile says Needs setup, or your phone says Google did not connect.** The account you picked doesn't manage a listing, or you didn't allow access. Connect again with the account that manages your listing, and allow everything. * **A new location is missing.** On the Google Business Profile page, click **Refresh accounts**. ## Disconnect On the web, open **Google**, click **Connections**, and click **Disconnect** on **Google Business Profile**. Your synced locations are removed from Sapt. Your listing on Google stays as it is, and you can connect again any time. ## Keep going > [card] [Google Analytics and Search Console](/docs/mintlify/integrations/google-analytics) > > See what people search on Google to find you. > [card] [Ready-made workflows](/docs/mintlify/automations/recipes) > > Ask for reviews and answer new ones. # Connect Google Calendar Source: https://docs.sapt.ai/docs/mintlify/integrations/google-calendar Connect Google Calendar so the AI books only open times, appointments land on your calendar, and moves or cancels you make in Google update Sapt. Connect Google Calendar and the AI books around what's already on it, then puts each new appointment there. ## What you get * Your Google Calendar events show on the Sapt **Calendar**. * The AI reads this calendar for open times, so it books only when you're free. * Appointments the AI books land in Google Calendar. * Moves and cancels in Google Calendar update Sapt every 30 minutes, so reminders go out for the right time. * Cal.com and Calendly bookings show up too, once they reach your Google calendars. ## Before you start You need the Google account that has your shop's calendar. Calendars other people share with that account count too. One shared as **See only free/busy (hide details)** blocks those times, but its events stay hidden. See Google's [sharing options](https://support.google.com/calendar/answer/37082). ## Connect Google Calendar **1. Open Google Calendar in Sapt** Click **Project Settings**, then **Connected apps**. Under **Google**, click **Connect** on Google Calendar. ![The Google Calendar page in Sapt before connecting, with Connect, every line under What Sapt does with it set to Off, and Is it healthy saying Not connected yet](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/google-calendar.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=67e3f39891330ae4fc3b1c762be1deaa) **2. Click Connect** A Google window opens. **3. Choose your account and allow access** Pick the account with your calendar, then allow what Google asks: * **See and download any calendar you can access using your Google Calendar**, so the AI knows when you're busy. * **View and edit events on all your calendars**, so bookings can land on your calendar. * Your email address, so Sapt knows which account is connected. The window says **Account Connected** and closes. **4. Pick your calendars** Under **Calendars**, tick the calendars that belong to this shop. Sapt reads these to tell whether a lead booked. If you connected more than one account, choose which one says **New bookings land here**. Click **Save changes**. **5. Book into Google Calendar** Open **Calendar** and click **Availability**. Under **Where bookings go**, tick the Google calendar and click **Save**. Another calendar on a different Google account, like the front desk's? Click **Add account** and sign in with it. > [!TIP] > > To get back to your calendar list later, open **Calendar**, click the calendars button (it says **All calendars** when every one is showing), then **Manage calendars**. ## What Sapt does and does not do * It reads your events and creates the bookings you receive. It doesn't touch your other events. * It checks for moves and cancels every 30 minutes. * A calendar shown as **Busy only** blocks times, but Sapt can't see what's on it. * Unticking a calendar under **Calendars** stops Sapt reading it. ## Disconnect In **Project Settings**, **Connected apps**, click **Configure** on Google Calendar. Open the **...** menu and click **Disconnect all**. Then pick another calendar under **Where bookings go**, so the AI keeps booking. Your Google Calendar stays as it is. ## Keep going > [card] [Booking](/docs/mintlify/leads/booking) > > Set your hours and booking rules. > [card] [AI front desk](/docs/mintlify/leads/ai-front-desk) > > Let the AI answer and book for you. # Connect Google Drive Source: https://docs.sapt.ai/docs/mintlify/integrations/google-drive Connect Google Drive to bring photos, videos and documents into Sapt, and to add a row to a Google Sheet from a workflow. Sapt sees only the files you pick. Connect Google Drive to use your Drive files in Sapt without downloading them first. ## What you get * **Import from Drive**: bring photos, videos and documents into **Content**, **Files & photos**, to use in your content. * **Google Sheets in workflows**: the **Add row to Google Sheets** step adds a row to a sheet you choose each time a workflow runs. * **Only what you pick**: Sapt can open only the files you choose. It can't see the rest of your Drive. ## Before you start * A Google account with the files you want. * The first time, someone with a Sapt role that can manage integrations connects Drive. Otherwise Sapt says **A project admin needs to connect Google Drive first.** ## Connect Google Drive **1. Open Files & photos** Click **Content**, then **Files & photos**, then **From Google Drive**. You can also go to **Project Settings**, **Connected apps** and click **Connect** on Google Drive. ![The Google Drive page in Connected apps, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/google-drive.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=bcdc1b9462e015d8ef2fe4b7a63fb4a9) **2. Allow access** A Google window opens. Pick your account and allow what Google asks: * **See, edit, create, and delete only the specific Google Drive files you use with this app**. That means only files you choose in Sapt. * Your email address, so Sapt knows which account is connected. **3. Pick your files** Google's file picker opens. Choose one or more files. Sapt imports them and says, for example, **3 files imported from Google Drive**. ## Add a row to a Google Sheet **1. Get the sheet ready** In Google Sheets, put your column headers in the first row, like **Name**, **Phone** and **Car**. **2. Add the step** In a workflow, add the **Add row to Google Sheets** step. Click **Choose sheet…** and pick the spreadsheet. **3. Fill in the columns** Type the **Sheet tab** name, like **Sheet1**. Under **Columns**, give each column the same header as your sheet, in the same order, and pick its **Value**. Click **Add column** for more. Each run adds one row, written as plain text. ## What Sapt does and does not do * It opens only files you pick in Google's picker. * It copies imported files into Sapt. The files in Drive don't change. * In the sheet you chose, it only adds new rows. ## Disconnect In **Project Settings**, **Connected apps**, click **Configure** on Google Drive. Open the **...** menu and click **Disconnect**. Files you already imported stay in Sapt. Workflows with an **Add row to Google Sheets** step can't add rows until you connect again. ## Keep going > [card] [Files and photos](/docs/mintlify/cms/files-and-photos) > > Organize what you import. > [card] [Workflows](/docs/mintlify/automations/workflows) > > Build the workflow that fills your sheet. # Connect Higgsfield Source: https://docs.sapt.ai/docs/mintlify/integrations/higgsfield Connect your Higgsfield account to pick the images and videos you made on Higgsfield and save them to your Sapt files, on the plan you already pay for. Connect Higgsfield and the images and videos you made there show up whenever Sapt asks you to choose one. ## What you get * A **Higgsfield** tab in the **Choose an image** and **Choose a video** windows, wherever Sapt asks you to pick a picture or video. * Pick one and Sapt copies it into your project's files, ready to use. * It runs on the Higgsfield plan you already pay for. No API key and no second bill. ## Before you start * A Higgsfield account. * Recent work. Higgsfield keeps generated files for about a week, so pick them soon after you make them. * Allow pop-ups for app.sapt.ai. Higgsfield opens in a small window. ## Connect Higgsfield **1. Open Higgsfield in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **Higgsfield** under **Other** and click **Connect**. On the Higgsfield page, click **Connect** again. ![The Higgsfield page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/higgsfield.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=551f802c22c0f655d997c21492381cbd) **2. Approve Sapt on Higgsfield** Sign in to Higgsfield in the window that opens and approve Sapt. There is nothing to copy or paste. **3. Pick your first image** Open any image picker in Sapt, like a photo on your website. In **Choose an image**, open the **Higgsfield** tab and click a picture. Sapt says **Added to your assets** and selects it in **Library**. ## What Sapt does and does not do * Sapt copies only what you pick. The copy in Sapt stays after Higgsfield's file expires. * In these windows Sapt shows what you already made on Higgsfield. It does not start new generations there. * Only teammates who can add files see the **Higgsfield** tab. ## Disconnect On the Higgsfield page in Sapt, open the **...** menu on the Higgsfield card and choose **Disconnect**. Files you already copied stay in Sapt. ## Keep going > [card] [Files and photos](/docs/mintlify/cms/files-and-photos) > > Find everything you saved. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect HubSpot Source: https://docs.sapt.ai/docs/mintlify/integrations/hubspot Bring your HubSpot deals and companies into Sapt with a read-only key. Sapt checks the key first, then keeps your pipeline current every hour. Connect HubSpot and your deals and companies show up in your Sapt CRM, kept current every hour. It takes about two minutes. ## What you get * Your HubSpot deals and companies in Sapt as prospects. Each deal comes with its stage, amount and close date. * Your whole pipeline in one place. Sapt checks HubSpot for changes every hour. * The HubSpot page in Sapt shows **What Sapt does with it** and when Sapt last checked. ## Before you start * Admin access (Developer Tools) in the HubSpot account. * One key per HubSpot account. If you run two accounts, make a key in each. See [Add a second HubSpot account](#add-a-second-hubspot-account). ## Connect HubSpot **1. Open Development in HubSpot** In HubSpot, open **Development** from the left menu. Newer HubSpot accounts replaced private apps with service keys, so click **Create a service key**. HubSpot explains service keys in its [service keys guide](https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys). ![HubSpot's Development settings on Legacy Apps, with Create a service key outlined](https://mintcdn.com/sapt/l3__my0qJyfhePP9/docs/mintlify/images/integrations/hubspot/1-development-settings.png?fit=max\&auto=format\&n=l3__my0qJyfhePP9\&q=85\&s=7009bb8d5207733f05799c45f89a8514) **2. Go to Service Keys** If you land on a different page, open **Keys**, then **Service Keys**, and click **Create service key**. ![The Service Keys page with Service Keys and Create service key outlined](https://mintcdn.com/sapt/l3__my0qJyfhePP9/docs/mintlify/images/integrations/hubspot/2-service-keys.png?fit=max\&auto=format\&n=l3__my0qJyfhePP9\&q=85\&s=ebfdc06683c69d383df16d512debfe81) **3. Name the key and add read access** Name the key **Sapt**. Click **Add new scope** and add these four, all read-only: * `crm.objects.deals.read` * `crm.objects.companies.read` * `crm.objects.contacts.read` * `crm.schemas.deals.read` (your pipeline and stage names) Then click **Create**. ![The Create Service Key form named Sapt, with the four read scopes added and Add new scope and Create outlined](https://mintcdn.com/sapt/l3__my0qJyfhePP9/docs/mintlify/images/integrations/hubspot/3-name-and-scopes.png?fit=max\&auto=format\&n=l3__my0qJyfhePP9\&q=85\&s=05027f10da32c09d3b68a486927187b8) **4. Copy the key** On the key's page, click **Copy**. Keep it private, like a password. ![The new Sapt service key with Copy outlined](https://mintcdn.com/sapt/l3__my0qJyfhePP9/docs/mintlify/images/integrations/hubspot/4-copy-key.png?fit=max\&auto=format\&n=l3__my0qJyfhePP9\&q=85\&s=f6c081026617c0f2c704fb669cb954cf) **5. Open HubSpot in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **HubSpot** under **Marketing** and click **Connect**. ![The HubSpot page in Sapt before connecting, with Import and Connect, What Sapt does with it set to Off, and Is it healthy saying Not connected yet](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/hubspot.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=19aad796e0b6ac46db84bd1ed9bc5b92) **6. Paste it into Sapt** Click **Connect** on the HubSpot page. Paste the key into **Service key or private app access token** and click **Connect**. Sapt checks the key with HubSpot before it saves anything, so a mistyped key is caught on the spot. ![The Connect HubSpot box with the Service key or private app access token field](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/hubspot-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=0c43e5578288bcdc6eed83e4199e4122) > [!NOTE] > > On an older HubSpot account you may see **Private Apps** instead of service keys. Go to **Settings**, **Integrations**, **Private Apps**, create an app with the same four read scopes, copy its access token, and paste it into Sapt the same way. ### Add a second HubSpot account Make a key in the second HubSpot account the same way. In Sapt, open the HubSpot page, open the **...** menu on the HubSpot card and choose **Reconnect**. Paste the second key and click **Reconnect**. Sapt keeps reading both accounts. ## What Sapt does and does not do * On the first connect, Sapt brings in all of your deals and companies. After that it checks HubSpot for changes every hour. * Bringing them in again never creates duplicates. * Sapt only reads. It never changes anything in HubSpot. * Sapt never messages anyone from what it brings in. ## Disconnect On the HubSpot page in Sapt, open the **...** menu on the HubSpot card and choose **Disconnect**. You can also delete or rotate the key on its page in HubSpot. Sapt stops reading straight away. You can add or remove the key's scopes there later, too. ## Keep going > [card] [Contacts](/docs/mintlify/crm/contacts) > > Find the people and companies Sapt brought in. > [card] [Pipelines](/docs/mintlify/crm/pipelines) > > Follow your deals stage by stage. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect Facebook and Instagram Source: https://docs.sapt.ai/docs/mintlify/integrations/meta Connect Meta to post to your Facebook Page and Instagram, answer messages and comments in the Inbox, and see your Meta ads and lead forms in Sapt. Connect Meta once and Sapt can post for your shop, answer Facebook and Instagram messages from the Inbox, and show what your Meta ads bring in. ## What you get * **Posts.** Publish and schedule posts to your Facebook Pages and Instagram accounts. * **Messages and comments.** Facebook and Instagram messages and comments land in your [Inbox](/docs/mintlify/leads/inbox), next to your texts and calls. * **Insights.** Followers, reach and engagement for each Page and Instagram account. * **Ads.** Your Meta ad spend and results on **Performance**, and your campaigns under **Ads**. * **Lead forms.** Leads from your Facebook and Instagram instant forms come into your CRM as **Meta Lead** records. The **Meta lead form submitted** trigger can start a [workflow](/docs/mintlify/automations/workflows) for each one. * **Conversions.** Sapt sends your website leads back to Meta, so Meta learns which ads work. Meta calls this the Conversions API. ## Before you start * **A Facebook Page you manage.** You need full control of the Page, or task access to it. [How Page access works](https://www.facebook.com/help/289207354498410). * **For Instagram, a professional account connected to that Page.** Sapt finds your Instagram account through the Page. [Switch to a professional account](https://help.instagram.com/502981923235522), then [connect it to your Page](https://www.facebook.com/help/1148909221857370). * **For Instagram messages,** turn on **Allow Access to Messages** in the Instagram app: **Settings**, **Messages and story replies**, **Message controls**, **Connected Tools**. [Meta's note on this](https://developers.facebook.com/documentation/business-messaging/instagram-messaging/get-started). * **For ads,** access to your ad account in Meta. ## Connect Meta **1. Open Meta in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Marketing**, find **Meta (Facebook & Instagram)** and click **Connect**. ![The Meta (Facebook & Instagram) page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/meta.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=3c8e9db1d863967791cb62b2f31ed751) **2. Sign in with Facebook** Click **Connect** on the Meta page. Facebook opens in a new window. Sign in with the profile that manages your Page, choose the Pages, Instagram accounts and ad accounts Sapt may use, and allow every permission it asks for. If no window opens, your browser blocked it. Allow pop-ups for app.sapt.ai and click **Connect** again. **3. Check your accounts** Back in Sapt, your Pages, Instagram accounts and ad accounts are listed under **Connected accounts**. If you add a Page in Facebook later, click **Refresh accounts**. > [!TIP] > > You can also connect from **Performance**: open **Social**, then **Connected accounts**, and click **Connect with Meta** on the **Meta Business Suite** card. If someone sent you a Sapt setup link, its **Connect Meta** step does the same thing. ## What Sapt sets up when you connect * Sapt asks Facebook to send it new messages, comments and lead form entries from each Page as they happen. * If Sapt finds exactly one Meta pixel on your ad accounts, it turns on the Conversions API for that pixel. If you have none or several, choose one yourself: on **Performance**, open **Attribution**, then **Setup**, and pick it under **Meta & Google**. * To choose which ad account **Performance** counts, click the gear on **Performance** and pick it under **Meta ad account**. ## What Sapt does and does not do * Sapt posts and replies only when you or your team do, or when you turn on an [agent](/docs/mintlify/leads/ai-front-desk) or workflow that does it for you. * Meta lets a business reply to a message for 24 hours after the customer's last one. [Meta's rule](https://developers.facebook.com/documentation/business-messaging/messenger-platform/send-messages). * Sapt does not work with Threads. * To stop using one Page or ad account, click **Remove** next to it under **Connected accounts**. Everything else stays connected. ## If something looks wrong * **Missing permissions** shows on the Meta page: click **Reconnect to grant** and allow every permission Facebook asks for. * Your Instagram account is missing: check it is a professional account connected to your Page, then click **Refresh accounts**. * The card says **Reconnect required**: the Facebook login expired. Click **Reconnect** and sign in again. ## Disconnect On the Meta page in Sapt, open the **...** menu and click **Disconnect all**. Sapt stops using every Page, Instagram account and ad account from that login. To take Sapt off your Facebook profile as well, open **Settings & privacy**, then **Settings**, then **Business Integrations**. Select Sapt, click **Remove**, then **Remove** again. [Meta's steps](https://www.facebook.com/help/405094243235242). ## Keep going > [card] [Your Inbox](/docs/mintlify/leads/inbox) > > Answer Facebook and Instagram messages next to your texts. > [card] [WhatsApp](/docs/mintlify/integrations/whatsapp) > > Bring WhatsApp messages into the same Inbox. > [card] [Workflows](/docs/mintlify/automations/workflows) > > Follow up on every lead form entry automatically. # Connect your apps to Sapt Source: https://docs.sapt.ai/docs/mintlify/integrations/overview Connect your shop system, Google and the other apps you use so Sapt can book, answer reviews and send email for you. Find every integration here. Connecting an app lets Sapt work in it for you: book into your shop system, answer Google reviews, send email from your own address. ![The top of the Integrations page: Search integrations, then ShopMonkey and GoHighLevel under Your shop system, then the Google apps, each with a Connect button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/grid.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=573cd8644cef4028284c40bc82796263) ## Where to find them On the web, click **Project Settings** in the sidebar, then **Connected apps**. The same list is at [app.sapt.ai/integrations](https://app.sapt.ai/integrations), or press ⌘K (Ctrl+K on Windows) and type **Integrations**. Apps are grouped under **Your shop system**, **Google**, **Money**, **Marketing** and **Other**, with connected apps first. Type in **Search integrations** to find one. On your phone, the Sapt app connects Google only: open **Growth** and tap **Connect Google**. Connect everything else on the web. A few connections live in other places: your phone line under **Project Settings**, **Phone**, Cloudflare under **Project Settings**, **Domains**, and Claude or ChatGPT under **Account**, **Connect**. > [!NOTE] > > Connecting and disconnecting needs a Sapt role that can manage integrations. The project owner always can. ## How connecting works **1. Open the app's page** Click **Connect** on the app's tile. Its page says what Sapt does with it. **2. Click Connect** Most apps open their own sign-in window. Sign in and allow what it asks. A few, like ShopMonkey, ask you to paste a key from that app instead. Each app's guide below shows where to get it. **3. Check it worked** The window says **Account Connected** and closes. The tile now says **Connected**. > [!TIP] > > If no window opens, your browser blocked it. Allow pop-ups for app.sapt.ai and click **Connect** again. ### Connect a client's account Agencies can let a client connect their own account. On the app's page, click **Send to client**, then **Copy**, and send the link. Your client signs in with their own account. They don't need a Sapt login. The link works until your client uses it, and the refresh button makes a new link and turns off the old one. This works for every app you connect by signing in. If you run more than one Sapt project, **Import** copies a connection from another of your projects, so you don't sign in again. ## Keep it working | The tile says | What it means | | - | - | | **Connected** | It works. | | **Needs setup** | Something is saved, but it can't work yet. This is often a permission you left unticked. Open the page and click **Reconnect**, then allow everything. | | **Reconnect required** | The connection expired. Click **Reconnect**. | | **Sapt managed** | Sapt runs it for you. There is nothing to set up. | On a connected app's page, the **...** menu has: * **Add another account**: connect one more login, like a second Google account. * **Reconnect**: sign in again. Apps with several accounts show **Reconnect all**. * **Test connection**: check that the app still answers. * **Disconnect**: stop Sapt using the app. Apps with several accounts show **Disconnect all**. **Refresh accounts** picks up new Google locations or other new accounts without signing in again. > [!WARNING] > > **Disconnect** works the moment you click it. You can connect again any time. > [!NOTE] > > Your account's **Connected Apps** tab is something else. It lists AI apps, like Claude or ChatGPT, signed in to your Sapt account. ## Every integration ### Shop systems > [card] [ShopMonkey](/docs/mintlify/integrations/shopmonkey) ### Google > [card] [Google Business Profile](/docs/mintlify/integrations/google-business-profile) > [card] [Google Ads](/docs/mintlify/integrations/google-ads) > [card] [Google Analytics](/docs/mintlify/integrations/google-analytics) > [card] [Google Calendar](/docs/mintlify/integrations/google-calendar) > [card] [Google Drive](/docs/mintlify/integrations/google-drive) > [card] [Gmail](/docs/mintlify/integrations/gmail) > [card] [YouTube](/docs/mintlify/integrations/youtube) ### Social and ads > [card] [Meta](/docs/mintlify/integrations/meta) > [card] [TikTok](/docs/mintlify/integrations/tiktok) > [card] [TikTok Ads](/docs/mintlify/integrations/tiktok-ads) ### Messages and email > [card] [WhatsApp](/docs/mintlify/integrations/whatsapp) > [card] [Telnyx](/docs/mintlify/integrations/telnyx) > [card] [Slack](/docs/mintlify/integrations/slack) > [card] [Zoho Mail](/docs/mintlify/integrations/zoho-mail) ### Calendars > [card] [Cal.com](/docs/mintlify/integrations/cal-com) > [card] [Calendly](/docs/mintlify/integrations/calendly) ### CRMs > [card] [HubSpot](/docs/mintlify/integrations/hubspot) > [card] [Close](/docs/mintlify/integrations/close) > [card] [GoHighLevel](/docs/mintlify/integrations/gohighlevel) ### Payments > [card] [Stripe](/docs/mintlify/integrations/stripe) > [card] [Shopify](/docs/mintlify/integrations/shopify) > [card] [QuickBooks](/docs/mintlify/integrations/quickbooks) ### Domains > [card] [Cloudflare](/docs/mintlify/integrations/cloudflare) ### AI and creative > [card] [Claude and ChatGPT](/docs/mintlify/integrations/claude-and-chatgpt) > [card] [Higgsfield](/docs/mintlify/integrations/higgsfield) > [card] [Content Rewards](/docs/mintlify/integrations/content-rewards) > [card] [Whop](/docs/mintlify/integrations/whop) Don't see the app you use? Tell us from **Support** in the sidebar. # Connect QuickBooks Online Source: https://docs.sapt.ai/docs/mintlify/integrations/quickbooks Connect QuickBooks Online to Sapt. See what Sapt reads from your company file today, how it uses it, and what it does not do yet. Connecting QuickBooks Online works today. Right now Sapt uses it for one thing: the dollar amount in your weekly text. ## What you get * Your Monday morning text from Sapt adds what you invoiced in QuickBooks over the last seven days. It reads like this: > This week at Ridgeline Auto: 42 calls answered, 6 junk calls blocked before your phone rang, 9 jobs booked, \$4,250 on the books. Reply with any question. * The Sapt team turns this weekly text on for your shop. A number that is zero is left out, and a week with no calls sends no text. > [!NOTE] > > For most shops, that is all Sapt does with QuickBooks today. Your invoices do not show anywhere else in Sapt yet. ## Before you start * An admin login for your QuickBooks Online company. Intuit lets only admin users connect and manage apps. See Intuit's [app help](https://quickbooks.intuit.com/learn-support/en-us/help-articles/disconnecting-an-app/00/261548). * Allow pop-ups for app.sapt.ai. Intuit opens in a small window. ## Connect QuickBooks **1. Open QuickBooks in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **QuickBooks Online** under **Money** and click **Connect**. On the QuickBooks Online page, click **Connect** again. ![The QuickBooks Online page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/quickbooks.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=9f118305ef270a97fc1b1de3f6b679d7) **2. Approve Sapt at Intuit** Sign in to Intuit in the window that opens, choose your company and approve Sapt. **3. Check the card** Back in Sapt, the QuickBooks Online card shows **Connected**. ## What Sapt does and does not do * Sapt reads the invoices in your company file and adds up their totals by invoice date. * Sapt does not create, change or delete anything in QuickBooks for your shop. * Sapt keeps the connection fresh on its own. If it ever lapses, your weekly text still goes out without the dollar amount. Choose **Reconnect** on the QuickBooks Online card to fix it. ## Disconnect On the QuickBooks Online page in Sapt, open the **...** menu and choose **Disconnect**. To remove Sapt on the QuickBooks side too, follow Intuit's [disconnect steps](https://quickbooks.intuit.com/learn-support/en-us/help-articles/disconnecting-an-app/00/261548): open the Integrations icon, choose **Manage integrations**, find Sapt, select the more icon and choose **Disconnect**. ## Keep going > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. > [card] [Connect Stripe](/docs/mintlify/integrations/stripe) > > See your payments and customers in Sapt. # Connect Shopify Source: https://docs.sapt.ai/docs/mintlify/integrations/shopify Send your Shopify orders to Sapt so every buyer lands in your contacts with their orders, and start workflows when an order comes in. Connect Shopify and every order lands on the buyer's contact in Sapt. > [!WARNING] > > Shopify changed custom apps on January 1, 2026. Sapt needs an Admin API access token that does not expire. Shopify gives you one only from a custom app made in your Shopify admin before that date. Apps made in Shopify's Dev Dashboard since then use a token that lasts 24 hours, and Sapt cannot renew it yet. If you have no older custom app, talk to the Sapt team before you start. ## What you get * Each new, updated or paid order saved as an order on the buyer's contact. New buyers are added to your contacts and tagged Customer. * Shipping updates added to the order when Shopify sends fulfillment events. * Workflows that start on any Shopify webhook, with the **Webhook received** trigger. * The **Manage a Shopify order** workflow step, which can create, update and complete draft orders in your store. ## Before you start * A custom app made in your Shopify admin before January 1, 2026, installed on your store, and its Admin API access token. It starts with `shpat_`. Shopify lets you reveal the token only once. * Your store's `myshopify.com` address. Shopify lists it on the **Domains** page in your settings. ## Connect Shopify **1. Open Shopify in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **Shopify** under **Money** and click **Connect**. ![The Shopify page in Sapt, not connected yet, with Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/shopify.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=8ad6d508b32bc6469e3a1418601bcff6) **2. Copy the webhook address** Click **Connect** on the Shopify page. At the bottom of the **Connect Shopify** box, under **Webhook URL (for Shopify's dashboard)**, copy the address. ![The Connect Shopify box with Store domain, Admin API Access Token, Webhook Secret and the Webhook URL (for Shopify's dashboard)](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/shopify-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=45549740690d5fa88a2fb0891c30473a) **3. Add the webhooks in Shopify** In your Shopify admin, go to **Settings** > **Notifications** and click **Webhooks**. Then: 1. Click **Create webhook**. 2. For **Event**, choose **Order creation**. 3. For **Format**, choose **JSON**. 4. Paste the Sapt address into **URL**. 5. Pick a **Webhook API version** and click **Save**. Do the same for **Order payment**. If you want order changes and shipping updates in Sapt too, add webhooks for those events the same way. Shopify's steps are in its [webhooks guide](https://help.shopify.com/en/manual/fulfillment/setup/notifications/webhooks). **4. Copy the signing key** Shopify signs these webhooks with a key that is unique to your store. Copy the key Shopify shows with your webhooks. **5. Find your Admin API access token** Use the token you saved when you first revealed it. Your custom app is under **Settings** > **Apps** > **Develop apps** in your Shopify admin. If you lost the token, Shopify's fix is to uninstall and reinstall the app, which also removes that app's webhooks. Shopify explains this in its [custom app guide](https://help.shopify.com/en/manual/apps/install-setup-apps). **6. Paste all three into Sapt** In the **Connect Shopify** box, fill in: * **Store domain**, like `ridgeline-auto.myshopify.com` * **Admin API Access Token** * **Webhook Secret**, the signing key from Shopify Click **Connect**. Sapt shows the webhook address again. You already added it, so click **Done**. ## What Sapt does and does not do * Sapt sees orders from the moment your webhooks are on. It does not bring in older orders. * Connecting does not make the webhooks in Shopify. You add them yourself. * Sapt adds a contact for each buyer in your order webhooks. It does not copy your whole customer list. * Sapt uses your access token only in workflow steps you add, like **Manage a Shopify order**. It never changes your store on its own. ## Disconnect On the Shopify page in Sapt, open the **...** menu on the Shopify card and choose **Disconnect**. Then delete the Sapt webhooks in Shopify under **Settings** > **Notifications** > **Webhooks**. ## Keep going > [card] [Contacts](/docs/mintlify/crm/contacts) > > See each buyer's orders on their contact. > [card] [Workflows](/docs/mintlify/automations/workflows) > > Start a workflow when an order comes in. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect ShopMonkey Source: https://docs.sapt.ai/docs/mintlify/integrations/shopmonkey Connect ShopMonkey so Sapt's AI front desk books customers into your real ShopMonkey schedule and keeps moves and cancels in step both ways. Connect ShopMonkey and the AI books customers into your real ShopMonkey schedule, not a separate calendar. ## What you get * Your ShopMonkey appointments show on your Sapt **Calendar**. * The AI books here. It skips times ShopMonkey shows as busy, and each booking is a real ShopMonkey appointment. Sapt finds the customer by phone number, or adds them. * Moves and cancels sync both ways. Sapt checks ShopMonkey for changes every 30 minutes, or within seconds with [instant updates](#instant-updates). * Services customers can book online in ShopMonkey can be booked by Sapt the same way, and their prices can show on your Sapt website. ## Before you start * An **Admin** login in ShopMonkey. Only Admins can make an API key, and the key gets the same access as the person who makes it. * A Sapt role that can manage integrations. The project owner has it. ## Connect ShopMonkey **1. Make an API key in ShopMonkey** In ShopMonkey, go to **Settings**, then **Integration**, then **API Keys**. Click **Get Started**, or **Add New Key** if you already have keys, then **Create API Key**. Copy the key right away: ShopMonkey shows it only once. See [ShopMonkey's guide](https://shopmonkey.dev/overview#creating-a-api-token-in-shopmonkey). **2. Open ShopMonkey in Sapt** In Sapt, click **Project Settings**, then **Connected apps**. Under **Your shop system**, click **Connect** on ShopMonkey. ![The ShopMonkey page in Sapt before connecting, with Import and Connect, and every line under What Sapt does with it set to Off](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/shopmonkey.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=910b6ca706e067cd552a22ff5e8aacd9) **3. Paste the key** On the ShopMonkey page, click **Connect**. Paste the key into **API key** and click **Connect**. Sapt checks the key with ShopMonkey before it saves anything, then adds each of your ShopMonkey locations. ![The Connect ShopMonkey box with the API key field](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/shopmonkey-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=c1bae7407efd08fe10352c262103f726) **4. Book into ShopMonkey** Open **Calendar** and click **Availability**. Under **Where bookings go**, tick your ShopMonkey location and click **Save**. Back on the ShopMonkey page, **The AI books here.** now says **On**. Sapt sends every confirmation and reminder itself, so ShopMonkey's own notifications stay off for the appointments Sapt books. ## Instant updates Without this, changes you make in ShopMonkey reach Sapt within 30 minutes. With it, they arrive within seconds. It's optional. **1. Copy Sapt's address** On the ShopMonkey page in Sapt, go to **Instant updates** and click **Copy**. **2. Add a webhook in ShopMonkey** In ShopMonkey, open **Webhooks** in **Settings**. Name the webhook, paste the address and choose the appointment events: create, update and delete. Save it. See [ShopMonkey's webhook guide](https://shopmonkey.dev/webhooks). **3. Paste the signing secret** Copy the webhook's signing secret from ShopMonkey. In Sapt, paste it into **Paste the signing secret** and click **Save**. Sapt says **Secret saved. Waiting on the first delivery from ShopMonkey.** until the first change comes in. > [!NOTE] > > Use the address under **Instant updates**, not the **Webhook URL** button below it. ## Services and prices **Services from ShopMonkey** lists what customers can book online in ShopMonkey. Click **Add**, or **Link** when you already have a service with that name, and Sapt books it the same way, with the service already on the estimate. The buttons show once a schedule books into ShopMonkey (step 4). Click **Show on website** to put those prices on your Sapt website, with a **Book** button. Prices follow ShopMonkey every day. ## Ask for reviews after the job Sapt comes with a workflow named **Review request: job done**. Two hours after a booking in Sapt moves to **Completed**, it texts the customer your review page. Each customer is asked once. It starts off: turn it on in **Workflows**. > [!WARNING] > > Finishing a job in ShopMonkey does not mark the booking **Completed** in Sapt. Until someone does, this workflow sends nothing. ## What Sapt does and does not do * **Reads** your locations, appointments, customers and vehicles. * **Writes** only the appointments the AI books (adding the customer when they're new), and the moves and cancels you make in Sapt. * **Openings** come from your Sapt hours, minus what ShopMonkey shows as busy. Sapt does not read bays. * **Checks** for changes every 30 minutes, or within seconds with instant updates. * **Is it healthy** on the ShopMonkey page tells you when ShopMonkey stops answering. ## If something looks wrong * **Sapt says ShopMonkey rejected the key.** Make a new key (step 1) and paste it again. * **Sapt says the account has no locations to book into.** Use a key from the ShopMonkey account that has your shop's location. * **It stopped working after a staff change.** The key has the same access as the person who made it. Make a new key from an Admin login, then click **Reconnect** in the **...** menu. ## Disconnect In **Project Settings**, **Connected apps**, click **Configure** on ShopMonkey. Open the **...** menu and click **Disconnect**. Sapt stops reading and booking into ShopMonkey right away. Then pick another calendar under **Where bookings go**, so the AI keeps booking. You can also delete the key in ShopMonkey. ## Keep going > [card] [Booking](/docs/mintlify/leads/booking) > > Set your hours and booking rules. > [card] [Google Business Profile](/docs/mintlify/integrations/google-business-profile) > > Answer your Google reviews from Sapt. # Connect Slack Source: https://docs.sapt.ai/docs/mintlify/integrations/slack Connect Slack so your Sapt workflows can post to your team's channels, like a new lead or a booked job, with the Send a Slack message step. Connect Slack and your [workflows](/docs/mintlify/automations/workflows) can post to your team's channels, for example when a new lead comes in. ## What you get * The **Send a Slack message** workflow step. It posts to the channel you pick, with details like the customer's name filled in. Sapt only posts. It does not read your Slack messages. ## Before you start * A Slack workspace where you can add apps. By default any member can. If your workspace needs approval, ask a Workspace Owner. [Slack's guide](https://slack.com/help/articles/202035138-Add-apps-to-your-Slack-workspace). ## Connect Slack **1. Open Slack in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Other**, find **Slack** and click **Connect**. ![The Slack page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/slack.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=445d1277d964f8cce6bee4b871d0bec5) **2. Allow Sapt in Slack** Click **Connect** on the Slack page. Slack opens in a new window. Pick your workspace and allow access. **3. Check your channels** Back in Sapt, your workspace's channels are listed under **Connected accounts**. ## Post from a workflow **1. Add the step** Open a workflow, click **Add step** and choose **Send a Slack message**. If Slack is not connected yet, the step says **No Slack channel connected** and shows only **Message**. **Connect Slack** takes you to your connected apps. ![The Send a Slack message step before Slack is connected: No Slack channel connected, Connect Slack, and the Message box](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/slack-step.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=4282d0e9e5683d238ebb105b2801f369) **2. Pick the channel and write the message** Once Slack is connected, a **Channel** box appears above **Message**. Choose the channel. Write the **Message**, and use the variable picker to add details like the customer's name. For example: "New lead: Maya Chen, (937) 555-0123". **3. Save the workflow** Click **Save changes**, or **Create workflow** if it is new. From now on the step posts each time the workflow runs. ## Private channels Sapt can post to any public channel. For a private channel, add Sapt to it first: in the channel, type `/invite @Sapt`, or click the channel name and add Sapt on the **Agents & apps** tab. [Slack's guide](https://slack.com/help/articles/360001537467-Guide-to-apps-in-Slack). Then click **Refresh accounts** on the Slack page in Sapt so the channel shows up. ## Disconnect On the Slack page in Sapt, open the **...** menu and click **Disconnect**. Sapt signs itself out of your workspace, and **Send a Slack message** steps stop posting. To hide one channel instead, click **Remove** next to it under **Connected accounts**. ## Keep going > [card] [Workflows](/docs/mintlify/automations/workflows) > > Build the workflow that posts to Slack. > [card] [Ready-made workflows](/docs/mintlify/automations/recipes) > > Start from a workflow other shops use. # Connect Stripe Source: https://docs.sapt.ai/docs/mintlify/integrations/stripe Connect your Stripe account to see payments, customers and subscriptions in Sapt, send invoices, and start workflows when a payment comes in. Connect Stripe and your payments, customers and subscriptions show up in Sapt, linked to your contacts. It takes about 10 minutes. ## What you get * A Stripe page in Sapt with **Overview**, **Payment links**, **Customers**, **Subscriptions**, **Invoices**, **Discounts**, **Activity** and **Website checkout**. * Money in for the period, your top customers and recent payments, on **Overview**. * Work you can do from Sapt: **Create payment link**, **New invoice**, **New subscription**, **New product** and **New discount**. You can also void an invoice, cancel a subscription and archive a product. * Payments and invoices Stripe sends land on the matching contact in your CRM. If the payer is new, Sapt adds them. * Workflows that start on a payment. Pick the **Stripe payment or invoice** trigger and choose **Invoice paid**, **Payment succeeded**, **Checkout completed**, **Invoice payment failed**, **Invoice voided** or **Invoice marked uncollectible**. * Weekly workflows per subscriber, with the **Stripe: fan out subscription cycles** step and the **Stripe subscription week** trigger. ## Before you start * Access to your Stripe Dashboard, where you can make API keys and webhooks. * This is your own Stripe account. It has nothing to do with how you pay Sapt. ## Connect Stripe **1. Open Stripe in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **Stripe** under **Money** and click **Connect**. ![The Stripe page in Sapt, not connected yet, with the Connect your Stripe account card and the Connect Stripe button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/stripe.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=105e20bf132625ed5f9796c944be3a69) **2. Copy the webhook address** Under **Connect your Stripe account**, click **Connect Stripe**. At the bottom of the **Connect Stripe** box, under **Webhook URL (for Stripe's dashboard)**, copy the address. You paste it into Stripe in a moment. ![The Connect Stripe box with Secret API Key, Webhook Signing Secret and the Webhook URL (for Stripe's dashboard)](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/stripe-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=08d9ae0dfc9910d9052c3f44b8a43172) **3. Make a key in Stripe** Stripe recommends a restricted key, which can do only what you allow. Sapt works with one. On Stripe's [API keys](https://dashboard.stripe.com/apikeys) page, click **Create restricted key** and name it **Sapt**. Set **Read** on what you want to see in Sapt: your account, balance, customers, payments (charges), Payment Intents, Checkout Sessions, Payment Links, invoices, subscriptions, products and prices, coupons and promotion codes. Set **Write** on what you want to do from Sapt. Payment links and website checkout need **Write** on Checkout Sessions, Payment Intents, Payment Links, Products and Prices. Then click **Create key** and copy it. Stripe shows it only once. Stripe walks through this in its [restricted keys guide](https://docs.stripe.com/keys/restricted-api-keys). > [!NOTE] > > Sapt reads your balance every time you open the Stripe page. If the key cannot read it, the page says **Couldn't reach Stripe**. A full secret key (it starts with `sk_live_`) also works, but it can do anything in your Stripe account. **4. Add the webhook in Stripe** Open the [Webhooks](https://dashboard.stripe.com/webhooks) tab in Stripe Workbench and click **Create an event destination**. Then: 1. Select **Your account**. 2. For the payload, choose **Snapshot**, not Thin. Sapt reads the full event. 3. Select these events: * `invoice.paid` * `payment_intent.succeeded` * `checkout.session.completed` * `invoice.payment_failed` * `invoice.voided` * `invoice.marked_uncollectible` * `customer.subscription.created` * `customer.subscription.updated` * `customer.subscription.deleted` 4. Select **Continue**, then **Webhook endpoint**, then **Continue**. 5. Paste the Sapt address into **Endpoint URL** and save the destination. On the destination's page, click **Reveal secret** and copy the signing secret. It starts with `whsec_`. Stripe's steps are in its [webhooks guide](https://docs.stripe.com/webhooks). **5. Paste both into Sapt** In the **Connect Stripe** box, paste the key into **Secret API Key** and the signing secret into **Webhook Signing Secret**. Click **Connect**. Sapt shows the webhook address again with a copy button. You already added it, so click **Done**. **6. Check that events arrive** Open the **Activity** view. The line at the top says when Stripe's last event arrived, and **What Stripe sent** lists each event with its customer and amount. It stays empty until Stripe sends the first one. If you used test keys, the page shows **Test mode**. ## What Sapt does and does not do ### Collect a quote or sell a service Open **Payment links** and choose **Create payment link**. Use **Custom quote** to enter a service name and the agreed total in USD, including any applicable tax. Or choose an existing one-time product price. Sapt does not add tax automatically. Leave **Let multiple customers use this link** off for a single quote. Turn it on for a reusable service or website button. Copy the resulting Stripe link into a customer message or your website. Creating a link does not send a message or charge anyone. Use **Link & payments** to copy the link again and check completed checkouts, actual payment status and refunds. A closed link or completed checkout does not necessarily mean the money has arrived. A link can also be closed manually; checkouts already in progress may still complete. **New product** in the same view creates reusable services and prices. A website **Stripe checkout** section can use those prices with either a Stripe-hosted page or an embedded checkout. Embedded checkout also needs the matching publishable key in **Website checkout**. Stripe shows eligible payment methods from your account settings. Affirm and other financing providers must be enabled and approved in Stripe before they can appear; availability also depends on the customer and purchase. Sapt does not promise financing approval. ### Connection behavior * Sapt reads from Stripe when you open the Stripe page. * Sapt changes something in Stripe only when you do it from Sapt, or when a workflow step you added does it. * Connecting does not make the webhook in Stripe. You add it yourself. Until you do, Stripe workflows never start and **Activity** says **No events received yet**. * **Activity** hides routine events by default. Turn on **Show routine events** to see everything. ## Disconnect The Stripe page has no Disconnect button yet. To stop Sapt from using your Stripe account: 1. On Stripe's [API keys](https://dashboard.stripe.com/apikeys) page, open the **...** menu next to the Sapt key and choose **Expire key**. 2. On Stripe's [Webhooks](https://dashboard.stripe.com/webhooks) tab, delete the Sapt event destination. Then ask the Sapt team to remove the saved key from your project. ## Keep going > [card] [Workflows](/docs/mintlify/automations/workflows) > > Start a workflow when a payment comes in. > [card] [Contacts](/docs/mintlify/crm/contacts) > > See each payer's payments on their contact. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Use your own Telnyx account Source: https://docs.sapt.ai/docs/mintlify/integrations/telnyx Most shops use a number Sapt sets up. If your number already lives in your own Telnyx account, connect it so Sapt can text and answer calls on it. Sapt texts and takes calls on your number through Telnyx, a phone company. ## Do you need this? Most shops do not. Sapt can give your shop a local number in a few minutes and run it for you: open **Project Settings**, then **Phone**, and click **Get your number**. See [Get your number](/docs/mintlify/owners/get-started#your-number). A number Sapt runs shows as **Sapt managed**, with nothing to set up. This page is for a shop whose number already lives in its own Telnyx account. ## What you get * Texts and calls on your own Telnyx number, in your [Inbox](/docs/mintlify/leads/inbox). * [Missed-call text back](/docs/mintlify/leads/missed-call-text-back) and your AI front desk on that number. * The texting registration your number already has in Telnyx, read straight from your account. Telnyx bills your account for phone service. AI replies use your Sapt credits. ## Before you start * Your login for the Telnyx portal, with your number on the account. * Permission to manage integrations in Sapt. If you do not have it, Sapt says to ask a project admin. > [!WARNING] > > When you connect, Sapt makes a messaging profile in Telnyx named after your project, ending in "via Sapt", and moves every number on that Telnyx account onto it. Use a Telnyx account that only holds numbers you want on Sapt. ## Get your keys from Telnyx **1. Create an API key** In the [Telnyx portal](https://portal.telnyx.com/), click your account icon at the top right, then **Account Settings**, then **API Keys**. Click **Create API Key** and copy it. Telnyx shows it only once. [Telnyx's guide](https://support.telnyx.com/en/articles/4305158-api-keys-and-how-to-use-them). **2. Copy your public key** In **Account Settings**, open **Keys & Credentials**, then the **Public Key** tab, and copy the key. Sapt uses it to check that messages really come from Telnyx. [Telnyx's guide](https://support.telnyx.com/en/articles/4334722-how-to-leverage-webhooks). ## Connect Telnyx in Sapt **1. Open your phone settings** In Sapt on the web, open **Project Settings**, then **Phone**. Under **Connect your Telnyx account**, click **Connect Telnyx**. Choosing **Telnyx** in **Connected apps** opens the same place. ![The Phone section of Project Settings: Get your shop a number, Connect your Telnyx account with the Connect Telnyx button, and Phone lookup](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/telnyx.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=dda36ce4cf8704652d4b98e1d5e12652) **2. Paste your keys** Paste the API key into **API Key** and the public key into **Webhook Public Key**. You can leave **Default sending number** empty. Click **Connect**. ![The Connect Telnyx box with API Key, Webhook Public Key, Default sending number and the Webhook URL (for Telnyx's dashboard)](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/telnyx-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=c26d21c0d7f8706bd74df652e2b1a7f9) Sapt then shows a webhook URL. You do not need to paste it anywhere: Sapt points your messaging profile at it for you. Click **Done**. **3. Pick your number** If your Telnyx account has more than one number, find the one this shop texts from under **Your numbers** and click **Text from this one**. With one number, skip this step. **4. Set up calls and texts** Click **Set up or repair calls and texts**. Sapt checks four things and marks each one: **Project number**, **Sending number**, **Incoming text routing** and **Calling connection**. Then call your number once and answer, and once more and let it ring out, to test both. ## What Sapt sets up for you * The messaging profile in your Telnyx account that sends texts to Sapt. * Your chosen number as the number Sapt texts from. * The connection that sends calls on your number to Sapt, so Sapt can text back the calls you miss. * If your number already has a texting registration in Telnyx, Sapt finds it and shows its status. ## Texting registration US carriers want to know who is behind a number before they deliver its texts. This is called 10DLC registration. [Telnyx explains it](https://support.telnyx.com/en/articles/3679260-frequently-asked-questions-about-10dlc). Look under **Texting registration** on the **Phone** page: * **Already registered in Telnyx:** Sapt shows what the carriers said. There is nothing to do. * **Not registered yet:** click **Register my business** and fill in your details. A person at Sapt checks them and sends them to the carriers, usually within a day. Carriers usually approve within a few days. ## Disconnect Sapt has no Disconnect button for Telnyx yet. To stop Sapt using your account, turn off the API key you made for Sapt under **API Keys** in Telnyx, then message us from **Support** in Sapt. Your numbers stay on the "via Sapt" messaging profile until you move them in Telnyx. ## Keep going > [card] [Missed-call text back](/docs/mintlify/leads/missed-call-text-back) > > Text back every caller you miss. > [card] [Forward your calls](/docs/mintlify/owners/forward-your-calls) > > Send your main line's missed calls to Sapt. > [card] [Your Inbox](/docs/mintlify/leads/inbox) > > Answer texts and calls in one place. # Connect TikTok Source: https://docs.sapt.ai/docs/mintlify/integrations/tiktok Connect the TikTok account you post from to publish and schedule videos and photo posts from Sapt, see views and followers, and answer comments. Connect the TikTok account you post from, and Sapt can publish to it and show how each post does. > [!NOTE] > > This page is about posting. To see what you spend on TikTok ads, connect [TikTok Ads](/docs/mintlify/integrations/tiktok-ads). ## What you get * **Posts.** Publish and schedule public videos and photo posts, with a sound you choose. * **Numbers.** Followers, views and engagement, per post and per day. * **Comments.** Read and reply to comments on your posts. ## Before you start * The login for the TikTok account you post from. ## Connect TikTok **1. Open TikTok in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Marketing**, find **TikTok** and click **Connect**. ![The TikTok page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/tiktok.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=35cb57bacbe79413a9c35f331627f7f9) **2. Sign in to TikTok** Click **Connect** on the TikTok page. TikTok opens in a new window. Sign in to the account you post from and approve what Sapt asks for. If no window opens, allow pop-ups for app.sapt.ai and click **Connect** again. **3. Check the account** Back in Sapt, the account is listed under **Connected accounts**. To add another TikTok account, click **Add account**. > [!TIP] > > You can also connect from **Performance**: open **Social**, then **Connected accounts**, and click **Connect with TikTok** on the **TikTok** card. ## What Sapt does and does not do * Sapt posts only what you or your team publish or schedule. Posts go out as public posts. * Sapt does not read or send TikTok direct messages. * TikTok comments stay with each post in Sapt. They do not show up in the Inbox. ## Disconnect On the TikTok page in Sapt, open the **...** menu and click **Disconnect all**. Sapt stops posting to and reading every TikTok account you connected there. ## Keep going > [card] [TikTok Ads](/docs/mintlify/integrations/tiktok-ads) > > See your TikTok ad spend on Performance. > [card] [Facebook and Instagram](/docs/mintlify/integrations/meta) > > Post to your Page and Instagram from the same place. > [card] [YouTube](/docs/mintlify/integrations/youtube) > > Publish videos and Shorts to your channel. # Connect TikTok Ads Source: https://docs.sapt.ai/docs/mintlify/integrations/tiktok-ads Connect TikTok Ads Manager to see your TikTok ad spend and campaign results on Performance, next to your other channels. Sapt only reads your reports. Connect TikTok Ads and your TikTok ad spend shows up on **Performance**, next to Google, Meta and your other channels. > [!NOTE] > > This page is about ads. To post videos to your TikTok account, connect [TikTok](/docs/mintlify/integrations/tiktok). ## What you get * Your TikTok ad spend and campaign results on **Performance**. * Each advertiser account your login can reach, listed in Sapt. ## Before you start * A TikTok Ads Manager login that can see your ad account's reports. [TikTok's account roles](https://ads.tiktok.com/resources/help/article/about-assets-and-asset-level-permissions). ## Connect TikTok Ads **1. Open TikTok Ads in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Marketing**, find **TikTok Ads** and click **Connect**. ![The TikTok Ads page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/tiktok-ads.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=7d9c299a2c9c9d5f070d4822975e2fc0) **2. Sign in to TikTok for Business** Click **Connect** on the TikTok Ads page. TikTok opens in a new window. Sign in with the login that sees your ad account and approve access. **3. Check your advertiser accounts** Back in Sapt, your advertiser accounts are listed under **Connected accounts**. > [!TIP] > > If someone sent you a Sapt setup link, its **Connect TikTok** step under ads does the same thing. ## Choose the account Performance reports on * **One advertiser account:** Sapt reports on it on its own. Nothing to do. * **More than one:** **Performance** shows "Choose the TikTok Ads account to report on". Sapt has no picker for TikTok accounts yet. Click **Remove** next to each account you do not want under **Connected accounts**. Once one is left, Sapt reports on that one. ## What Sapt does and does not do * Sapt only reads your reports. It never creates, pauses or edits TikTok campaigns, and never touches your budgets. * Removing an advertiser account in Sapt only hides it in Sapt. Nothing changes in TikTok. ## Disconnect On the TikTok Ads page in Sapt, open the **...** menu and click **Disconnect all**. **Performance** stops showing your TikTok spend. ## Keep going > [card] [TikTok](/docs/mintlify/integrations/tiktok) > > Post videos and photos to your TikTok account. > [card] [Google Ads](/docs/mintlify/integrations/google-ads) > > See your Google ad spend in the same place. > [card] [Facebook and Instagram](/docs/mintlify/integrations/meta) > > Add your Meta ads to Performance. # Connect WhatsApp Source: https://docs.sapt.ai/docs/mintlify/integrations/whatsapp Connect your WhatsApp Business number so customer messages land in the Sapt Inbox, where you or your AI front desk can answer them. Connect the WhatsApp number your customers message. Their messages land in your Inbox next to texts and calls, and you can answer from Sapt on the web or on your phone. ## What you get * **WhatsApp in your Inbox.** Messages land in your [Inbox](/docs/mintlify/leads/inbox). To see only these, filter the Inbox to **WhatsApp**. * **Your AI front desk can answer.** If exactly one [agent](/docs/mintlify/leads/ai-front-desk) answers your texts, Sapt puts the new number on that agent and tells you it now answers WhatsApp. Otherwise, pick an agent for the number on the **Agents** page. * **Keep the app on your phone.** A number on the WhatsApp Business app keeps working there. When you connect, Sapt also brings in up to six months of your chats, marked done, so the past never looks like it is waiting on you. ## Before you start * **A Facebook login.** During signup you choose your Meta business portfolio, or create one. * **Your number, in one of two ways:** * **On the WhatsApp Business app:** keep it there. Update the app first. Meta asks for version 2.24.17 or later. [Meta's requirements](https://developers.facebook.com/documentation/business-messaging/whatsapp/embedded-signup/onboarding-business-app-users). * **Not on WhatsApp at all:** it must be able to get a text or a call, so Meta can check it is yours. [Meta's number rules](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/phone-numbers). * **On regular WhatsApp?** Move the number to the WhatsApp Business app on your phone first. Your chats come with it. * **Cost.** Meta bills your business for WhatsApp, not Sapt. Each number gets 1,000 free replies a month. [Meta's pricing](https://developers.facebook.com/docs/whatsapp/pricing). ## Connect WhatsApp **1. Open WhatsApp in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Other**, find **WhatsApp** and click **Connect**. ![The WhatsApp page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/whatsapp.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=80b50a4592328348054856e7c93a8052) **2. Pick how your number joins** Click **Connect** on the WhatsApp page. A **Connect WhatsApp** window opens. * Number on the WhatsApp Business app: click **Continue with Facebook**. * Number not on WhatsApp: click **Use a number not on WhatsApp**. ![The Connect WhatsApp window with Continue with Facebook and, below it, Use a number not on WhatsApp](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/whatsapp-connect.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1922bc972ac124c835f61d87078ea0ff) **3. Finish with Meta** Follow the steps Meta shows: sign in to Facebook, choose your business portfolio, and choose or add your number. **4. Check your number** Back in Sapt, your number is listed under **Connected accounts**. Each WhatsApp number is its own account, so you can connect more than one. ## Replies and the 24-hour window * **The customer writes first.** Sapt cannot start a WhatsApp conversation. * **You have 24 hours to reply** after their last message. That is Meta's rule. After that, the reply box reads **WhatsApp reply window closed**. [Meta's rule](https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/send-messages). * **Window closed?** Text them instead. If your number is on the WhatsApp Business app, you can still answer from the app on your phone. ## What Sapt does and does not do * Sapt does not send WhatsApp templates or marketing messages. * Chats Sapt brings in from the app never wake your AI or send you alerts. * Group chats do not come into Sapt. * To stop using one number, click **Remove** next to it under **Connected accounts**. ## If something looks wrong The **Connect WhatsApp** window says what went wrong. The common ones: * **"This number is not on WhatsApp Business yet."** Move it to the WhatsApp Business app on your phone, then try again. * **"This number is connected to another service."** In WhatsApp Business, open **Settings**, then **Account**, then **Business Platform**, and disconnect it. Wait 15 minutes, then try again. * **"Update WhatsApp Business on your phone."** Update the app, then try again. * **"Facebook did not load."** Turn off your ad blocker for the page, or check your connection, and click **Try again**. ## Disconnect On the WhatsApp page in Sapt, open the **...** menu and click **Disconnect all**. New WhatsApp messages stop coming into Sapt. Your past conversations stay in the Inbox. ## Keep going > [card] [Your Inbox](/docs/mintlify/leads/inbox) > > Answer WhatsApp, texts and calls in one place. > [card] [AI front desk](/docs/mintlify/leads/ai-front-desk) > > Let your agent answer new WhatsApp messages. > [card] [Facebook and Instagram](/docs/mintlify/integrations/meta) > > Bring Messenger and Instagram messages in too. # Connect Whop Source: https://docs.sapt.ai/docs/mintlify/integrations/whop Link the Whop account you use for reward campaigns to your Sapt project. See what the connection does and what still happens in Whop. Connecting Whop links the Whop account you use for reward campaigns to this Sapt project. ## What you get * Your Whop sign-in saved for this project. Sapt keeps it fresh and shows your Whop name on the Whop card. Today that is all the connection does. ## Before you start * A Whop account. * Allow pop-ups for app.sapt.ai. Whop opens in a small window. ## Connect Whop **1. Open Whop in Sapt** In Sapt, open **Project Settings** and then **Connected apps**. Find **Whop** under **Money** and click **Connect**. On the Whop page, click **Connect** again. ![The Whop page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/whop.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=5a7ff2f39f8b8d1ffe9487bcd31fd2a6) **2. Approve Sapt on Whop** Sign in to Whop in the window that opens and approve Sapt. **3. Check the card** Back in Sapt, the Whop card shows **Connected** with your Whop name. ## What Sapt does and does not do * The connection does not submit clips or confirm that you earned a reward. * Campaign membership, social-account checks and Content Rewards submissions are separate steps in Whop. * To send clips to a campaign, connect [Content Rewards](/docs/mintlify/integrations/content-rewards). ## Disconnect On the Whop page in Sapt, open the **...** menu on the Whop card and choose **Disconnect**. Sapt also asks Whop to end the sign-in. ## Keep going > [card] [Connect Content Rewards](/docs/mintlify/integrations/content-rewards) > > Find campaigns and send your clips. > [card] [All integrations](/docs/mintlify/integrations/overview) > > See what else you can connect. # Connect YouTube Source: https://docs.sapt.ai/docs/mintlify/integrations/youtube Connect your YouTube channel to schedule and publish videos and Shorts from Sapt, see how your channel does, and answer comments on your videos. Connect YouTube and you can post to your channel from the same place you plan the rest of your posts. ## What you get * **Publish videos and Shorts**: now or on a schedule. A vertical video up to 3 minutes posts as a Short. * **Your numbers**: how your channel and each video are doing. * **Comments**: read and answer comments on your videos. ## Before you start You need a YouTube channel and the Google account that owns or manages it. No channel yet? See Google's [Create a YouTube channel](https://support.google.com/youtube/answer/1646861). ## Connect YouTube **1. Open YouTube in Sapt** Click **Project Settings**, then **Connected apps**. Under **Google**, click **Connect** on YouTube. You can also click **Performance**, then **Social**, then **Connected accounts**, and click **Connect with Google** on YouTube. ![The YouTube page in Sapt, not connected yet, with Send to client, Import and Connect](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/youtube.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=a7c072ff777849af926552f1de331f4c) **2. Choose your channel** Click **Connect** on the YouTube page. A Google window opens. Pick the account, and if it has more than one channel, pick the one Sapt should post to. **3. Allow access** Google asks to: * **Manage your YouTube videos**, so Sapt can upload what you schedule. * **View your YouTube account**, so Sapt can list your channel and videos. * **See, edit, and permanently delete your YouTube videos, ratings, comments and captions**, so Sapt can read and answer comments. * **View YouTube Analytics reports for your YouTube content**, for your numbers. * Your name and email address, so Sapt knows which account is connected. The window says **Account Connected** and closes. More than one channel? Click **Add account** and connect each one the same way. ## What Sapt does and does not do * It posts only what you publish or schedule. * It answers a comment only when you or a workflow you set up does it. * If you connected YouTube before comments came to Sapt, click **Reconnect** in the **...** menu to turn them on. ## Disconnect In **Project Settings**, **Connected apps**, click **Configure** on YouTube. Open the **...** menu and click **Disconnect all**. Videos already on YouTube stay there. ## Keep going > [card] [Meta](/docs/mintlify/integrations/meta) > > Post to Facebook and Instagram too. > [card] [TikTok](/docs/mintlify/integrations/tiktok) > > Post to TikTok from the same place. # Connect Zoho Mail Source: https://docs.sapt.ai/docs/mintlify/integrations/zoho-mail Import your Zoho Mail inboxes into Sapt with Zoho Admin, so Sapt can send outreach email from them and bring the replies back. US-hosted Zoho only. Import your Zoho Mail inboxes once, and Sapt can send outreach email from them and bring the replies back into Sapt. ## What you get * **Send from your own inboxes.** Sapt sends outreach email from the Zoho inboxes you import. * **Replies come back.** Replies to that email land in Sapt. The rest of your mail stays in Zoho. * **Sending settings.** The Zoho Mail page in Sapt also holds your **Outreach sending schedule**, **AI reply classifier**, **Sequence templates** and **Do-not-email list**. ## Before you start * **A Zoho organization hosted in the US.** You sign in at accounts.zoho.com. Sapt cannot connect Zoho accounts in other data centers yet, like Europe, India or Australia. [Zoho's data centers](https://help.zoho.com/portal/en/kb/accounts/manage-your-zoho-account/articles/data-center-for-zoho-account). * **A Zoho administrator login** for that organization, to connect Zoho Admin. [Zoho's admin roles](https://www.zoho.com/mail/help/adminconsole/roles-privileges.html). * **The password for each inbox.** If an inbox has two-factor sign-in on, make an app password for it instead: at accounts.zoho.com, open **Security**, then **App passwords**, then **Generate New Password**. [Zoho's guide](https://www.zoho.com/mail/help/adminconsole/two-factor-authentication.html). * **A Zoho Mail plan with IMAP.** Sapt turns IMAP on for each inbox when it imports it. Zoho's free plan does not include IMAP for new sign-ups. [Zoho's guide](https://www.zoho.com/mail/help/imap-access.html). * **Permission to manage integrations** in Sapt. ## Import your inboxes **1. Open Zoho Mail in Sapt** In Sapt on the web, open **Project Settings**, then **Connected apps**. Under **Other**, find **Zoho Mail** and click **Connect**. The **Import from Zoho Admin** panel is at the top of the Zoho Mail page. ![The Zoho Mail page in Sapt with the Import from Zoho Admin panel and its Connect Zoho Admin button at the top, and the Zoho Mail card with Connect below](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/integrations/zoho-mail.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=4c01443c0182f3d849690f5fb7876106) **2. Connect Zoho Admin** In **Import from Zoho Admin**, click **Connect Zoho Admin**, not the **Connect** button on the card below it. Zoho opens in a new window. Sign in as an administrator and approve access. Back in Sapt, your organization shows under **Zoho organization**. **3. Add your name and company** Fill in **Sender name** and **Company**. They go into the signature on every email. Open **Sapt signature preview** to see it. **4. Pick inboxes and enter passwords** Tick each inbox you want. Type its password in the **Password** column. Where the inbox says **MFA on**, use its app password. **5. Import** Click the import button. It shows how many inboxes you picked, like **Import 3 inboxes**. Sapt turns on IMAP where needed, checks each password with Zoho and saves the inbox. Each one reads **Sending ready** when it can send. ## Check an inbox Each imported inbox has three buttons: * **Test login** checks its password with Zoho. It does not send a test email. * **Update password** takes you back to the import panel. Pick the inbox there and enter its new password. Its history stays. * **Disconnect** stops sending and syncing for that one inbox. Its conversation history stays saved. ## What Sapt does and does not do * Sapt brings in only replies to email it sent. It leaves your other mail in Zoho. * Sapt keeps imported passwords encrypted. Passwords you type stay on the page for up to 15 minutes, until you import, leave the page or click **Clear passwords**. * An inbox you connected earlier by signing in to Zoho only syncs conversations. Import it here to send from it too. Its history stays. ## Disconnect * **One inbox:** click **Disconnect** next to it and confirm. * **Everything:** on the Zoho Mail page, open the **...** menu and click **Disconnect all**. ## Keep going > [card] [Gmail](/docs/mintlify/integrations/gmail) > > Send from a Gmail or Google Workspace inbox instead. > [card] [Your Inbox](/docs/mintlify/leads/inbox) > > Read and answer replies in one place. # Set up the AI front desk Source: https://docs.sapt.ai/docs/mintlify/leads/ai-front-desk Let Sapt's AI answer customer texts, WhatsApp and email, offer open times and book, and hand off to you. Choose drafts or automatic, and teach it your shop. The AI front desk answers customers who text, WhatsApp or email you. It answers questions, offers open times and books, or takes a request for you. You choose whether it writes drafts for you to send or answers on its own. When you get your Sapt number, Sapt puts a front desk on it for you. In Sapt, each front desk is called an **agent**. ## Choose how much it does on its own | On the web | On your phone | What it does | | - | - | - | | **Off** | **Off** | The AI does not text customers. Your team replies. | | **Drafts for you** | **Draft for me to approve** | The AI writes each reply. You send it. | | **Automatic** | **Automatic** | The AI texts back and books on its own. It asks you when it is not sure. | > [tab] On the web > > Open **Workflows** in the sidebar and click **Agents**. Turn on the switch next to an agent. In the window that opens, pick **Drafts for you** or **Automatic**. To change it later, open the agent and pick a mode at the top. > [tab] On your phone > > Tap **Shop** > **Front desk** > **AI text replies** and pick one. It changes at once, and **Undo** sets it back. > > ![The Front desk screen on a phone, with AI text replies set to Automatic and What the AI knows](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/front-desk.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=89d4a793e7bf1bb4f489af4bcf77af5c) > [!NOTE] > > In **Automatic**, the agent's **Can** section shows **Sends itself** or **Asks you first** for replies and bookings. **Asks you first** makes the AI wait for your OK, even in Automatic. This setting is shared by every agent. ## Send or skip a draft In **Drafts for you**, each reply waits for you, and Sapt texts you the suggested reply. > [tab] On the web > > Open the conversation in your [Inbox](/docs/mintlify/leads/inbox). On **Reply ready to review**, click **Approve & send**, or **Edit** to change it first, or **Dismiss**. > [tab] On your phone > > Open **Today**. Under **Needs you**, tap **Send** or **Skip**. Tap **Edit reply** to change it first. > > ![The Today tab on a phone, with a suggested reply under Needs you](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/today.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8a32e827ff41f97caa2215e15147499f) > [!WARNING] > > A text draft expires after 30 minutes, because the conversation moves on. An expired draft never sends, even if you approve it later. Write your own reply instead, or click **Refresh draft** on the web when the card offers it. ## Create or change an agent Agents are set up on the web. **1. Open Agents** Open **Workflows** and click **Agents**. With no agents yet, pick a starting point: **Answer every text**, **Book appointments** or **Follow up on ad leads**. Otherwise click **New agent**, or click an agent to change it. If Sapt says **Connect a text number or an inbox first**, click **Phone numbers** and [get your number](/docs/mintlify/leads/missed-call-text-back). ![The Agents page with no agents yet: Connect a text number or an inbox first, the starters Answer every text, Book appointments and Follow up on ad leads, and New agent](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-agents.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=829b8e8c032549af163ce5e0c9544640) **2. Fill in each section** ![A new agent set to Drafts for you, with Answers on, Talks to and Can, and the red note Choose a line or inbox for it to answer on](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-agent-editor.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=4157cca90d6c25ced9fbbac09db6457c) * **Answers on**: the lines and inboxes it replies from. Until it has one, Sapt says **Choose a line or inbox for it to answer on.** * **Talks to**: everyone, or click **Narrow** to pick who, such as **Where they came from** or **When they write**. * **Can**: **Answer questions and hand off** is always on. Add **Collect requests for the owner** or **Book appointments**, not both. For booking, pick the **Schedule** and check the **Hours**. Add **Change existing appointments** to let it move or cancel a customer's appointment. * **Knows**: the notes it may use, and its **Instructions**. Type a change under **Change it with a sentence** and click **Suggest**. * **Hands off**: set **Replies to one customer in a day, at most**. Past that, it hands the customer to you. **3. Try it** The **Try it** panel uses your unsaved changes and sends nothing. Under **Start from**, pick **Missed call**, **Website request** or **Fresh conversation**, then write what a customer would. Each reply says what the AI would do, such as **Would send** or **Would hand off to you**. On a smaller screen, click **Try it** at the top to open **Practice conversation**. **4. Save it** Click **Create agent** for a new one, or **Save changes**. ## What the AI knows The AI answers only from what you tell it. > [tab] On your phone > > Tap **Shop** > **Front desk** > **What the AI knows**, then **Your services**. Write the work you do and the work you don't, the way you would tell a new hire. Tap **Save note**. > [tab] On the web > > In the agent's **Knows** section, click **Add** to give it a note, or **Edit knowledge** to change your notes. * **Booking hours** tell it when it can book, not when you are open. Write your opening hours in a note, so it can answer "Are you open Saturday?". See [Booking](/docs/mintlify/leads/booking). * **Services** in your booking schedule tell it how each kind of work gets booked, such as walk-ins for tires. * **Prices**: the AI never quotes a price, an estimate, a diagnosis or how long a job takes. It says it depends on what the shop finds, and offers times. When a customer asks something your notes do not answer, such as "Do you work on diesels?", the AI texts you the question privately. The customer hears nothing until you reply. Reply with the answer, and the AI tells the customer. If you have not answered within 2 hours, it answers as best it can and does not ask again. ## What it can and cannot do **It can:** * Answer texts, WhatsApp and email on its lines, at any hour. * Offer one or two real open times and book the one the customer picks. It needs their first name first. * Collect a request for you: what is wrong and when they are free. Then it texts you the rundown. * Move or cancel an appointment the customer already has, after they confirm. * Reply in Spanish when the customer writes in Spanish. **It cannot:** * Text someone first. It only answers. The one exception: in **Automatic**, it writes the first text to a website request that gave texting consent. * Quote prices or diagnose a problem. * See photos customers send. * Take payments. * Book over email. Booking works over text or WhatsApp. * Answer on WhatsApp more than 24 hours after the customer's last message. * Write replies without credits. The Agents page says **Add credits before agents can write replies.** when you are out. ## When the AI hands off to you The AI steps back, without texting the customer, when they: * ask for a person or a call, * complain about the shop, * want to change an appointment it cannot handle, * or have an emergency right now, like an accident, smoke or someone hurt. Sapt texts you that the customer needs you and what they said. Reply to that text, or answer from your [Inbox](/docs/mintlify/leads/inbox). When you or your team text a customer from Sapt, the AI stops texting them. A day after your last message, it answers their next text again. To keep the AI out of one conversation until you say so: > [tab] On the web > > In the conversation, click the agent chip at the top, such as **Agent answering**, and choose **Turn off for this person**. Choose **Turn on for this person** to hand it back. > [tab] On your phone > > In the conversation, tap **Take over**. Tap **Hand back to AI** when you are done. > > ![A conversation on a phone with AI is handling and Take over above the message box](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/thread.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=9d25fc7a7dbce16eea0899e1f7b14150) ## AI text replies in Project Settings **Project Settings** also has **AI text replies**, with **Off**, **Draft replies for review** and **Send replies automatically**. ![The AI text replies list in Project Settings, open on Off, Draft replies for review and Send replies automatically](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-ai-text-replies.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=d48bffe2ed78bc8c236ed99e21533baf) > [!NOTE] > > This setting applies only to texts on Sapt's shared iMessage line. For texts to your own Sapt number, the agent's mode decides, as set above. ## Keep going > [card] [Set your booking hours](/docs/mintlify/leads/booking) > > The hours the AI books into. > [card] [Use the Inbox](/docs/mintlify/leads/inbox) > > See every conversation the AI and you handle. # Get lead alerts on your phone Source: https://docs.sapt.ai/docs/mintlify/leads/alerts Turn on text alerts and notifications so you hear about new leads, bookings, voicemails and unhappy customers, and choose what can interrupt you. Sapt tells you when a customer needs you. Alerts come two ways: **texts** to your cell, and **notifications** on a device where you turned them on. ## Get texts on your cell Texts need no app on your phone, so turn these on first. **1. Open Notifications** In the web app, click the circle with your initials in the top bar and choose **Account**. Then click **Notifications**. **2. Add your cell** Under **Get lead alerts on your phone**, type your mobile number and click **Send code**. **3. Enter the code** Sapt texts you a code. Type it after **SAPT-** and click **Verify**. The code expires in 15 minutes. Sapt shows that your number is activated and that you'll get lead alerts there. ![Account, Notifications, after the code: This device with Turn on notifications, and Phone with a number that is activated for lead alerts](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-notifications.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=ca12295ac7eda0904098e7c82b7f1aa5) Alert texts come from Sapt's number, not your shop's number. Save it in your contacts. To stop the texts, reply **STOP** to that number. To start them again, reply **START**. While you get no texts, Sapt emails most alerts to you instead. ## Get notifications > [tab] On the web > > In the web app at app.sapt.ai, open **Account** > **Notifications**. Under **This device**, click **Turn on notifications** and allow them when your browser asks. Click **Send a test** to check. > > On an iPhone, tap **Share**, then **Add to Home Screen** first. Open Sapt from there to turn on notifications. > [tab] On your phone > > Tap **Shop** > **Notifications** to choose what alerts you. See below. > > > [!NOTE] > > > > The phone app in your browser at shop.sapt.ai cannot show notifications yet. Turn them on in the web app at app.sapt.ai, or rely on texts. ## Choose what alerts you On your phone, tap **Shop** > **Notifications**. Under **What alerts you**, turn each one on or off: * **Customers who need you**: a customer waiting on a person, and questions from Sapt. * **New bookings**: who booked, when, and what for. * **Voicemails**: who called and what they said. * **Unhappy customers**: a rating of 3 stars or fewer, so you can call them today. Turn on **Quiet outside working hours** to keep alerts silent outside the days and times you pick. They still arrive, without a sound or a banner. Once you change something, **Save changes** shows up. Tap it. ![The Notifications screen on a phone, with What alerts you and Quiet outside working hours](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/notifications.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=ead287a6e4e7444abe8fd62b1c7fa99f) > [!NOTE] > > These switches and quiet hours change notifications only. Texts to your cell arrive at any hour. ## Which alerts Sapt sends | What happened | Text | Notification | | - | - | - | | A customer needs a person, or the AI stepped back | Yes | Yes | | The AI took a request for you | Yes | No | | A new website request | Yes | No | | A new booking | Yes | Yes | | A voicemail, with what they said | Yes | Yes | | A Google review or a rating on your review page of 3 stars or fewer | Yes | Yes | | The AI asks you a question, or wants your OK on a reply | Yes | Yes | | A call is ringing | No | Yes | A missed call with no voicemail sends you no alert. The caller gets the [text back](/docs/mintlify/leads/missed-call-text-back), and the call shows in your [Inbox](/docs/mintlify/leads/inbox). Every Monday at 7 AM, Sapt also emails you a report on your week. ## Answer an alert by text * **The AI asked you a question.** Reply with your answer. The AI uses it with the customer, and Sapt texts back that your answer is saved. * **The alert ends with "Reply to this text to answer them".** Your reply goes to the customer, and Sapt texts back **Sent to** and their name. If Sapt says **Couldn’t send that. Reply in the Sapt app.**, answer from your [Inbox](/docs/mintlify/leads/inbox). ## If alerts do not come * **No texts.** Check that your number shows as activated under **Account** > **Notifications**. If you replied STOP, reply START. * **No notifications on the web.** Your browser may be blocking them. Allow notifications for Sapt in the browser's site settings, then reload. * **No notifications on your phone.** Check **Shop** > **Notifications**, and that notifications for Sapt are allowed in your phone's settings. ## Keep going > [card] [Your Inbox](/docs/mintlify/leads/inbox) > > Answer every customer from one place. > [card] [Set up the AI front desk](/docs/mintlify/leads/ai-front-desk) > > Decide what the AI does on its own. # How to answer leads for a repair shop Source: https://docs.sapt.ai/docs/mintlify/leads/best-practices Practical habits that turn more calls, texts and website requests into booked jobs, with example texts and the Sapt setting that does each one. A lead is worth the most in the first minutes. These habits help you book more of them. Each one points to the Sapt setting that does it for you. ## Answer in minutes, not hours In a [Harvard Business Review study](https://hbr.org/2011/03/the-short-life-of-online-sales-leads) of online sales leads, companies that tried to reach a lead within an hour were nearly seven times as likely to qualify it as companies that tried even an hour later. The same study audited 2,241 US companies: only 37% answered a web lead within an hour, and 23% never answered at all. A missed call or a website request is the same kind of lead. If you do not answer, they can call the next shop on the list. **In Sapt:** turn on [missed-call text back](/docs/mintlify/leads/missed-call-text-back), let the [AI front desk](/docs/mintlify/leads/ai-front-desk) answer on its own, and get [lead alerts on your phone](/docs/mintlify/leads/alerts) for the rest. ## Keep the first text short and say who you are One or two sentences. Your shop's name first, so they know it is not spam. No links, no prices, no paragraph about your shop. **In Sapt:** change the text in **Missed call: text back**. See [Change the text](/docs/mintlify/leads/missed-call-text-back#change-the-text). ## Ask one question A text with one clear question gets a reply. A text with three questions gets one answer, or none. Ask what they need first. Ask about the car, the day and the time one at a time. **In Sapt:** the AI asks one thing per text. A new agent's **Instructions** say "ask one useful question at a time". Keep that line if you rewrite them. ## Use their first name when you have it A website form gives you their name, so use it. A missed call often does not, so the missed-call text skips it. **In Sapt:** in an automation's text, tap **+ First name** on your phone. Sapt fills in the customer's first name, or "there" when it has none. ## Offer a time, not "let us know" "Let us know when works" puts the work on the customer. Offer one or two real times instead, or ask which day works. **In Sapt:** turn on **Book appointments** for your agent and set your booking hours. The AI offers one or two real open times and books the one they pick. See [Booking](/docs/mintlify/leads/booking). ## Follow up a set number of times, then stop One follow-up the next day catches people who got busy. After that, call them once yourself. Then stop. More texts than that start to feel like spam. **In Sapt:** on your phone, tap **Shop** > **Automations** > **New automation** and pick **Missed call follow-up** or **Website request follow-up**. Each one waits a day, texts once if they have not replied, and tells you so you can call. Turn it on when it looks right. Your agent also has a daily limit under **Replies to one customer in a day, at most**. Sapt never sends these follow-ups between 9 PM and 8 AM shop time. One that comes due then waits for the morning. ## Step in when it matters Complaints, emergencies and anyone who asks for a person need you. The AI hands these to you instead of guessing. **In Sapt:** the AI texts you when it steps back. When you or your team text a customer from Sapt, the AI stops texting them for a day. To keep it out of one conversation, use **Take over**. See [Hand-offs](/docs/mintlify/leads/ai-front-desk#when-the-ai-hands-off-to-you). ## Ask for the review after the job Ask while the job is fresh, and ask once. **In Sapt:** after the job, start **Review request** for the customer. On the web, find it at the top of their conversation, or under **More actions**. On your phone, open their details and tap **Start workflow**. Or, on your phone, add the **Thank them after the job** automation: it texts the review ask the day after a job is marked done, once per customer. ## Text only people who gave you their number Text customers who called you, filled in your form or asked you to. Anyone can reply STOP to a text from your Sapt number to opt out, and the AI never answers a STOP. ## Example texts Copy these and make them yours. Swap in your shop's name. > [accordion] After a missed call > > > Hey, it's Ridgeline Auto. Sorry we missed you. What can we help you with? > [accordion] After a website request > > > Hi Maya, Ridgeline Auto here. Got your request for the brakes. What day this week works best to bring it in? > [accordion] Offering times > > > We can take it Tuesday at 8 AM or Wednesday at 1 PM. Which works better? > [accordion] Confirming the booking > > > You're set for Tuesday at 8 AM, Maya. Reply here if anything changes. > [accordion] One follow-up the next day > > > Hi Maya, it's Ridgeline Auto. Still need a hand? Reply here and we'll get you taken care of. > [accordion] Asking for the review > > > Hey Maya, thanks for choosing Ridgeline Auto. Would you leave us a quick review? [https://www.example.com/review](https://www.example.com/review) ## Keep going > [card] [Text back missed calls](/docs/mintlify/leads/missed-call-text-back) > > The first text, sent for you. > [card] [Set up the AI front desk](/docs/mintlify/leads/ai-front-desk) > > Let the AI answer, book and hand off. # Booking hours and appointments Source: https://docs.sapt.ai/docs/mintlify/leads/booking Set the hours the AI books into, your booking rules and days off, confirm website requests, and choose where bookings land on your calendar. Your booking hours are what the AI front desk books customers into, and what your website offers when customers request a time. Set them once, then close a day from your phone when you need to. ## Set your hours and booking rules > [tab] On the web > > Open **Calendar** in the sidebar. In the **Month**, **Week** or **Day** view, click **Availability**. Pick your schedule at the top, or **New schedule**. > > ![The Availability panel open over the Calendar: the Working hours schedule, its time zone and the hours for each day](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-calendar-availability.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=93c192187584707277077a1ff9845ae4) > > * **Hours**: turn each day on or off and set its times. Click **Import Google Business hours** to copy your Google hours. Holiday hours are not copied. > * **Booking rules**: **Appointment length**, **At the same time**, **Break after each**, **Start times every** and **Most in a day**. > * **Services**: click **Add a service** to say how each kind of work gets booked: **Book a time**, **Walk-ins welcome**, **Owner schedules** or **Not taking now**. > > ![Further down the Availability panel: Import Google Business hours, Booking rules, Services and Where bookings go](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-booking-rules.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=cd190e135b0adb2edd7e391d842c6eca) > > Click **Save**. > [tab] On your phone > > Tap **Shop** > **Front desk** > **Hours and booking rules**. > > * **Weekly hours**: turn each day on or off and set its times. Tap **Use my Google hours** to copy them. > * **Booking rules**: **Each appointment** and **Free time after each**. > * **Days off**: tap **Add a day off** for holidays. The AI books no one on them. > > Tap **Save hours**. > [!NOTE] > > New shops start with the hours on their Google listing. With no listing, they start at 8 AM to 5 PM on weekdays. ## Close today or take a few days off On your phone, tap **Shop** > **Front desk**. The card at the top says whether you are open for booking today. * Tap **Close today**, and the AI books no one today. * Tap **Closed until…** and pick the day you open again. ![The Front desk screen on a phone: Open for booking today, with Close today and Closed until, then Hours and booking rules](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/front-desk.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=89d4a793e7bf1bb4f489af4bcf77af5c) Bookings you already have stay. Each change shows **Undo** for a moment, in case you tapped by mistake. ## Let the AI and your website book Under **Where bookings go** on the web, turn on **Customers can request times online**. Two more rules appear: * **Notice needed**: how soon a customer can book. It starts at 2 hours. * **Days ahead**: how far out a customer can book. It starts at 30 days. These rules apply to the AI's offers and to your website. The AI needs this switch on before it can book. > [!NOTE] > > The switch works with exactly one calendar picked. If Sapt says **Pick one calendar above to take requests online.**, tick one calendar and try again. ## How a booking happens * **By the AI, over text.** The AI offers open times. When the customer picks one, it books it right away. With **Asks you first** set for booking in your agent, it asks you before it books. See [AI front desk](/docs/mintlify/leads/ai-front-desk). * **From your website.** A customer requests a time. It waits for your OK. See below. * **By you, on your phone.** Open **Calendar** and tap **Book**. Pick the customer, the work and the time, then tap **Yes, book it**. You can book outside your hours if you need to. Sapt texts you who, when and what for when it makes a new booking. See [Owner alerts](/docs/mintlify/leads/alerts). ## Confirm website requests A time requested on your website is not booked until you say yes. The customer sees **Request received** and that the time is not confirmed yet. > [tab] On your phone > > Open **Calendar**. Each request shows as **Website request · Needs your OK**. > > * Tap **Confirm**, then **Yes, book it**. Sapt checks the time is still open first. > * Tap **Decline**, then **Yes, decline**. > > ![The Calendar tab with a Website request · Needs your OK card, and Confirm and Decline](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/calendar.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=c708dc81423bf96f8f6e22e1ac829475) > > ![After Confirm: Book Ethan for Thu, Oct 22 at 2:00 PM?, with Yes, book it and Back](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/website-request.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=f3b3641d7525603f0bb502f9c548da3d) > [tab] On the web > > Open the request in **CRM**. On its **Appointment request** card, click **Confirm appointment** or **Decline request**. > [!WARNING] > > Declining does not text the customer. Text them from their conversation to offer another time. ## Where bookings land | Calendar | What Sapt does | | - | - | | Sapt calendar | The default. Bookings show on your **Calendar** in Sapt. | | [Google Calendar](/docs/mintlify/integrations/google-calendar) | Sapt adds the booking as an event on the calendar you pick. | | [ShopMonkey](/docs/mintlify/integrations/shopmonkey) | Sapt adds the appointment in ShopMonkey and finds or adds the customer by phone. | | [Cal.com](/docs/mintlify/integrations/cal-com) and [Calendly](/docs/mintlify/integrations/calendly) | Their bookings show on your Calendar. Sapt never books into them. | To choose, connect Google Calendar or ShopMonkey first. Then, under **Availability** on the web, tick it under **Where bookings go** and click **Save**. Before it offers a time, Sapt checks the calendar bookings go to and any connected ShopMonkey location. Events on a Google calendar block a time only when bookings go to that Google calendar. ## Move or cancel a booking > [tab] On the web > > Click the booking on your **Calendar**. Click **Move**, pick the **New time** and click **Save new time**. Or click **Cancel appointment**, then **Yes, cancel it**. > [tab] On your phone > > Tap the booking on your **Calendar**. Tap **Move** or **Cancel it**. When a booking is in Google Calendar or ShopMonkey, Sapt moves or cancels it there too. ## Keep going > [card] [Set up the AI front desk](/docs/mintlify/leads/ai-front-desk) > > Let the AI offer times and book. > [card] [Owner alerts](/docs/mintlify/leads/alerts) > > Get a text for every new booking. # Answer customers from one inbox Source: https://docs.sapt.ai/docs/mintlify/leads/inbox Texts, calls, website requests, email and WhatsApp, Instagram and Facebook messages in one inbox. Find who needs you, reply, schedule and connect channels. Every way a customer reaches you lands in one Inbox: texts, calls, website requests, email, and WhatsApp, Instagram and Facebook messages. One customer is one conversation, whichever way they write. ## Find who needs you > [tab] On the web > > Open **Inbox** in the sidebar. Pick a tab at the top: > > * **All**: every conversation, newest first. > * **Needs attention**: a draft waiting for your OK, a customer the AI handed to you, a message nobody answered, a new request or call, or a follow-up that is due. > * **Replied**: answered by the AI or you, or marked done. > > The number next to **Inbox** in the sidebar is how many need attention. Use **Search** to find anyone by name, email or phone. > > To narrow the list, click the filter button next to the tabs. Pick a **Channel** such as **Text**, **Email** or **Calls**, or filter by **Form**, **Source**, **Stage**, **Owner**, **Replied by**, **Tag** or **List**. Turn on **Show archived** to see archived conversations. **Clear filters** resets them. > > ![The Inbox filter menu: Show archived, then Channel, Form, Source, Stage, Owner, Replied by, Tag and List](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-inbox-filters.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=6e14a6ed2bde9c3845057d118c27031a) > [tab] On your phone > > Tap **Inbox**. It opens on **Needs reply**. Tap **All** or **Replied** to see the rest. Tap the filter button beside them to pick a channel or turn on **Include archived**. > > ![The Inbox tab on a phone with All picked, Needs reply and Replied beside it, and the filter button](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/inbox.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=fe294fdd769692101d1aadac339c2315) ## Start your day on Today On your phone, the **Today** tab puts the urgent things first: * **Needs you**: drafts waiting for your OK, questions from the AI, and customers who asked for a person. * **Missed calls**: missed calls nobody has returned yet. Tap **Call**, or mark one **Handled**. * **Did they come in?**: today's appointments whose time has passed. Tell Sapt whether they showed up. ## Reply > [tab] On the web > > Click a conversation. Sapt picks the channel they last wrote on. To switch, pick another tab above the message box, such as **Text**, **Email** or **WhatsApp**. Type your message and click **Send**. > > Click **+** next to the message box for more: > > * **Draft reply**: the AI writes a reply from the conversation. Nothing sends until you click **Send**. With text in the box, it says **Improve draft**. > * **Photo**, on a text. It sends as a picture message. > * **Schedule send**, on a text or an email. Pick a date and time up to 30 days ahead, then click **Schedule send**. > [tab] On your phone > > Tap a conversation. **Send as** shows how the message goes. Tap it to switch. Type and tap send. > > Tap **+** for more: > > * **Draft with AI**: it writes a reply from the conversation. You send it. > * **Schedule message**: pick **In one hour**, **Tomorrow, 9 AM** or a date. > > ![A conversation on a phone: AI is handling, Send as Text, and the message box with + beside it](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/thread.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=9d25fc7a7dbce16eea0899e1f7b14150) > > ![A reply the AI drafted in the message box, with Read it and change anything, then send, and Undo](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/thread-ai-draft.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=c52fe370525ac791a4d127731650bc75) > [!NOTE] > > WhatsApp, Instagram and Facebook only let you reply within 24 hours of the customer's last message. After that, text them instead. When the AI front desk writes drafts for you, they wait for your OK. See [Send or skip a draft](/docs/mintlify/leads/ai-front-desk#send-or-skip-a-draft). To keep the AI out of a conversation, see [When the AI hands off to you](/docs/mintlify/leads/ai-front-desk#when-the-ai-hands-off-to-you). ## Mark done, archive or follow up > [tab] On the web > > At the top of a conversation: > > * **Mark done** clears it from **Needs attention** and keeps it in your Inbox. It comes back if they write again. > * **Archive** takes it out of the Inbox for your whole team and keeps the history. It comes back when they write again. **Unarchive** brings it back now. > > To be reminded later, open the customer's details and click **Follow up**. Pick **Later today**, **Tomorrow**, **Next week** or **Pick a date**. > [tab] On your phone > > Swipe a conversation in the list and tap **Done**, **Follow up** or **Archive**. **Reopen** brings an archived one back. Each one shows **Undo** for a moment. ## See a customer's details > [tab] On the web > > Click the customer's name at the top of the conversation. You can **Text**, **Email**, **Call** or **Follow up**, and add notes, tags and lists. **Activity** shows everything that happened with them. > [tab] On your phone > > Tap the customer's name. You can call or text them, tap **Book** to book them in, or tap **Job done** when the work is finished. > > ![A customer's details on a phone: phone and email, Where they are, then Book and Job done](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/customer.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=5a05cf7cd1a6e6082a69f1614dbe1633) ## Start a new conversation > [tab] On the web > > Click **+** next to the search box. Add a **Name** and an **Email** or **Phone**, then click **Create**. If they are already a customer, Sapt opens their conversation. > [tab] On your phone > > In **Inbox**, tap **+** at the top. Find the customer, or tap **New customer** and add their name and phone. Tap **Start conversation**. ## Connect your channels An empty Inbox says **No conversations yet**. Click **Connect channels** to add a channel, or **Messaging settings** for your Sapt number. ![An empty Inbox that says No conversations yet, with Connect channels and Messaging settings](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-inbox-empty.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1b8919edaf173ee41e90ebba0f5a666c) | What lands in your Inbox | Where it comes from | | - | - | | Texts and calls | Your [Sapt number](/docs/mintlify/leads/missed-call-text-back), or your own [Telnyx](/docs/mintlify/integrations/telnyx) number | | Email | [Gmail](/docs/mintlify/integrations/gmail) or [Zoho Mail](/docs/mintlify/integrations/zoho-mail) | | WhatsApp messages | [WhatsApp](/docs/mintlify/integrations/whatsapp) | | Instagram and Facebook messages | [Meta](/docs/mintlify/integrations/meta) | | Website requests | Forms on your [Sapt website](/docs/mintlify/website/forms) | Channels are connected on the web. Comments on your Facebook and Instagram posts do not show in the Inbox. ## Keep going > [card] [Set up the AI front desk](/docs/mintlify/leads/ai-front-desk) > > Let the AI answer and book. > [card] [Get lead alerts](/docs/mintlify/leads/alerts) > > Know when someone needs you. # Text back missed calls Source: https://docs.sapt.ai/docs/mintlify/leads/missed-call-text-back Get a Sapt number, send the calls nobody answers to it, and text every missed caller back in seconds. Change the text and test it yourself. When nobody picks up, Sapt texts the caller back from your shop's number. Their reply lands in your [Inbox](/docs/mintlify/leads/inbox), where the AI front desk or you can answer it. ## Before you start * Your plan has started. Until then, Sapt says **Start your plan first, then come back for your number.** * You have setup access on the shop. Without it, Sapt says **Someone with setup access on this shop can do this.** ![The Get your number window before a plan has started: Step 1 of 4, Start your plan first, then come back for your number, and Close](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/leads/web-get-number.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=4f0d92404e816909d6879af6292d833a) ## Set it up **1. Get your number** > [tab] On the web > > Open **Project Settings** in the sidebar, then **Phone**. Under **Get your shop a number**, click **Get your number**. > > ![Project Settings with Phone open: Get your shop a number and the Get your number button](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/app/web-project-settings.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=3ea6a2fa60c5b03296de218306b7db43) > > 1. Type your **Area code**, pick a number and click **Continue**. > 2. Under **Where should calls ring?**, enter the phone that should ring first, usually your cell. Click **Continue**. > 3. Check **What callers hear when nobody answers** and pick a **Voice**: **Female (Ava)** or **Male (Brian)**. Click **Continue**. > 4. Check the box that says you text only customers who gave you their number. Click the **Get** button with your new number on it. > > Sapt shows **Your number is live** and what your shop does now. > [tab] On your phone > > New shops get their number in setup, step 2. See [Get your number](/docs/mintlify/owners/get-started#your-number). Later, find it under **Shop** > **Phones and ringing**. Calls work right away. Carriers take about 4 days to fully approve texting from a new number. **2. Choose where calls ring** > [tab] On the web > > In **Project Settings** > **Phone**, find **Incoming calls**. Under **Ring**, pick one: > > * **The Sapt app** > * **A phone** > * **The Sapt app and a phone** > * **A phone, without Sapt** > > Then click **Save changes**. > [tab] On your phone > > Tap **Shop** > **Phones and ringing**. Under **Incoming calls**, enter **Ring this phone**. Turn on **Also ring Sapt** to ring teammates signed in to Sapt calling too. > > To ring a different phone in the evening or on weekends, tap **Add schedule**. > [!WARNING] > > **A phone, without Sapt** sends calls straight to that phone. Sapt never sees them: no Inbox record, no voicemail and no text back. **3. Take a message when nobody answers** > [tab] On the web > > Under **Incoming calls**, turn on **Take a message when nobody answers** and edit the **Greeting**. Click **Save changes**. > [tab] On your phone > > Tap **Shop** > **Front desk** > **Calls and voicemail**. Turn on **Voicemail**. Tap **Change greeting** to change what callers hear. > > ![The Front desk screen on a phone, with Calls and voicemail showing Voicemail on](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/front-desk.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=89d4a793e7bf1bb4f489af4bcf77af5c) The text back goes out with or without a message. With voicemail off, unanswered calls just end. **4. Send unanswered calls on your main number to Sapt** Customers call the number on your sign. Forward the calls nobody answers there to your Sapt number, so they get the text back too. > [tab] On the web > > In **Project Settings** > **Phone**, find **Forward your main line**. Enter **Your main number** and click **Look it up**. Dial the code Sapt shows from that phone. Then call your main number from your cell, type your cell under **Calling from** and click **I called. Check now**. > [tab] On your phone > > Tap **Shop** > **Phones and ringing** > **Forward your main line** and follow the same steps. The codes for each phone company are on [Forward your calls](/docs/mintlify/owners/forward-your-calls). Your Google listing is never changed. ## The text that goes back New shops start with this text, sent from your shop's number: > Hey, it's Ridgeline Auto. Sorry we missed you. What can we help you with? A few rules keep it from going wrong: * **It goes out at any hour**, because it answers their call. Later texts from your automations wait from 9 PM until 8 AM shop time. * **One text per caller every 15 minutes.** Someone who calls three times in a row gets one text. * **No text to a landline**, when Sapt knows the number is one. Call them back instead. * **No text to calls screened as spam**, and Sapt does not tell you about them. * **Customers can reply STOP** to any text to opt out. ## Change the text > [tab] On the web > > 1. Open **Workflows** in the sidebar. > 2. Find **Missed call: text back** and click its pencil to edit it. > 3. Click the text step and change the **Message**. > 4. Click **Save changes**. > > ![The workflow editor with a Send text/email step open in the panel on the right](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/automations/builder.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=d6575b0ebb5ef5f4429d53c185f2f5c2) > [tab] On your phone > > 1. Tap **Shop** > **Automations**. > 2. Tap **Missed call: text back**, then tap the text step. > 3. Change **What it says**. Tap **+ Shop name** to drop in your shop's name. Tap **Done**. > 4. Tap **Save changes**. > > ![Missed call: text back open on a phone: A call is missed, then the Text them step with the text that goes back](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/automation-builder.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=0d19af2c0d323788fb193daf1f4434b3) > [!TIP] > > Keep your shop's name in the text and end with one question. See [Best practices](/docs/mintlify/leads/best-practices) for more examples. ## Test it > [tab] On the web > > Call your Sapt number from your cell and let it ring until it ends or Sapt answers. Then hang up. The text arrives on your cell, and the call shows in your [Inbox](/docs/mintlify/leads/inbox). > [tab] On your phone > > Tap **Shop** > **Phones and ringing** > **Test your line**. Call the number Sapt shows from your cell, type your cell under **Calling from** and tap **I called. Check now**. Sapt checks off **Your call came in**, then **The text back went out**. ![Illustration of a text arriving on a phone from your Sapt number](https://mintcdn.com/sapt/plQsYL8f7RkZYVBo/docs/mintlify/images/owners/illustrations/text-back.svg?fit=max\&auto=format\&n=plQsYL8f7RkZYVBo\&q=85\&s=04c392e8035ebc37a5fb831ed47a5f3c) Illustration. The text back arrives on your cell, the same text a customer gets. ## If the text did not come * **You called from the same phone in the last 15 minutes.** Wait, then call once more. * **Ring is set to A phone, without Sapt.** Pick another option under **Incoming calls**. * **The automation is off.** In **Workflows**, or **Shop** > **Automations** on your phone, turn **Missed call: text back** on. * **There is no text-back automation.** In **Workflows**, click **New**, then **Templates**, and pick **Text back a missed call**. Click **Create workflow** and turn it on. It is saved as **Missed call follow-up**. * **The number is new.** Carriers take about 4 days to fully approve texting. In **Project Settings** > **Phone**, finish **Texting registration** with **Register my business**. ## Keep going > [card] [Let the AI answer replies](/docs/mintlify/leads/ai-front-desk) > > Set up the AI front desk to reply and book. > [card] [Get alerts on your phone](/docs/mintlify/leads/alerts) > > Know the moment a customer needs you. # How Sapt answers every lead Source: https://docs.sapt.ai/docs/mintlify/leads/overview How a missed call, website request or message moves through Sapt, from the first text back to a booking on your calendar and an alert on your phone. Every customer who reaches out gets an answer, even when you are under a car. Here is what happens, start to finish. ## From first contact to a booked job **1. A customer reaches out** They call and nobody picks up, fill in a form on your website, or send a text, an email or a message on Facebook, Instagram or WhatsApp. **2. Sapt answers in seconds** A missed caller gets a text back from your shop's number. A website request with texting consent gets a text asking what day and time work. Messages land in your Inbox. **3. The AI or you reply** The AI front desk answers from what you taught it: your hours, your services and your prices. It can write drafts for you to send, or answer on its own. You see every conversation in one Inbox, on the web and on your phone. **4. The job gets booked** The AI offers open times from your booking hours and books the one the customer picks. Website requests wait for your OK. The booking lands on your calendar, in Google Calendar or in ShopMonkey. **5. You hear about it** Sapt texts you about new bookings, voicemails, website requests and anyone who needs a person. When the AI is not sure, it asks you first. ## Set it up in this order > [card] [Text back missed calls](/docs/mintlify/leads/missed-call-text-back) > > Get a number, forward your calls and test the text back. > [card] [Get lead alerts](/docs/mintlify/leads/alerts) > > Texts and notifications when a customer needs you. > [card] [Set up the AI front desk](/docs/mintlify/leads/ai-front-desk) > > Teach it your shop and choose what it does on its own. > [card] [Set your booking hours](/docs/mintlify/leads/booking) > > The hours the AI books into, and where bookings land. > [card] [Use the Inbox](/docs/mintlify/leads/inbox) > > Every call, text, email and message in one place. > [card] [Best practices](/docs/mintlify/leads/best-practices) > > Habits and example texts that book more jobs. # Connect Claude or ChatGPT Source: https://docs.sapt.ai/docs/mintlify/mcp/connect Add Sapt as a custom connector in Claude or as a Developer mode app in ChatGPT, sign in with your Sapt account, and ask about your workspace. Sapt is organized around Projects: the workspaces where your team and AI agents do client work. Most teams start by connecting Sapt to Claude or ChatGPT. ## 1. Copy the MCP URL The same URL works for both: ``` https://mcp.sapt.ai/mcp ``` ## 2. Connect Claude Claude works through custom connectors. **1. Open the connector settings** Go to [Claude connectors](https://claude.ai/customize/connectors?modal=add-custom-connector) and click **Add custom connector**. **2. Name it** Call it `Sapt`. **3. Paste the URL** `https://mcp.sapt.ai/mcp` **4. Connect** Click **Connect** and sign in with your Sapt account. **5. Allow the tools** Optional but recommended: set the Sapt tools to **Always allow**. Try asking Claude: *"What's my brand voice?"* ## 3. Connect ChatGPT ChatGPT connects through Apps with Developer mode. **1. Open connector settings** Go to [ChatGPT connector settings](https://chatgpt.com/#settings/Connectors/Advanced), then **Settings → Apps → Advanced settings**. **2. Turn on Developer mode** Then click **Create app**. **3. Name it and paste the URL** Call it `Sapt`, and paste `https://mcp.sapt.ai/mcp`. **4. Set authentication to OAuth** Check the disclaimer and click **Create**. **5. Try it** Start a chat in Developer mode and ask: *"What's my brand voice?"* ## 4. Or build with REST If you would rather drive Sapt from your own code, create an API key and call the REST API directly: ```bash theme={null} curl https://api.sapt.ai/projects/$PROJECT_ID/agents \ -H "Authorization: ApiKey sapt_your_api_key" ``` See [Authentication](/docs/mintlify/guides/authentication) for how to create the key, and the [Quickstart](/docs/mintlify/guides/quickstart) to publish your first post. ## What next > [card] [MCP overview](/docs/mintlify/mcp/overview) > > How the Sapt connector works, and which tools each server exposes. > [card] [Authentication](/docs/mintlify/guides/authentication) > > API keys, OAuth2 clients, and connector OAuth. # Leads Tools Source: https://docs.sapt.ai/docs/mintlify/mcp/leads Where the Sapt lead and cold outreach tools live now. The old Leads connector URL answers as the main Sapt connector, with these lead tools inside. The separate Leads connector, with its cold-email sequence tools (`createSequence`, `startSequence`, `listSequences`, and the rest), has been retired. Its old URL, `https://mcp.sapt.ai/leads/mcp`, now answers as the main [Sapt connector](/docs/mintlify/mcp/sapt), so a client still pointed there keeps working with the full tool set. Cold outreach now runs as an audience-triggered workflow: you build the workflow, preview who it would reach, then enroll a CRM List or a set of People. ## Lead and outreach tools on the Sapt connector | Tool | What it does | | - | - | | `previewOutreachAudience` | Preview the personalization for an outreach workflow's audience (a CRM List or chosen People) without enrolling anyone or sending email. Shows any missing merge fields. | | `enrollOutreachAudience` | Start the outreach workflow for that audience. Real emails begin sending, paced by mailbox caps and send windows. People already contacted, already in another outreach workflow, or missing required fields are skipped. Requires `confirm: true`. | | `listInboxConversations` | The latest conversation per Person, newest first, with ad source, lead type, channel, and whether the last message needs a reply. | | `listInboxFilterOptions` | The channels, source record types, and repliers actually present in the inbox, so you filter with real values. | | `getPersonJourney` | One Person's full timeline: web sessions, emails, texts, calls, DMs, orders, and lifecycle changes, with attribution. | | `getLeadLedger` | The raw conversion events behind Performance lead and purchase totals, with stitched identity and first-touch source. | | `getInboxMetrics` | What the inbox did over a recent window: people contacted, people who replied, reply rate, people actually spoken with, and median minutes to first reply. | | `sendEmailToPerson` | Send an email to a Person record. It checks the project can send first. | | `bookAppointment` | Book a customer on the shop's schedule once a person has agreed the time with them. | | `configureIdentityResolution` | Turn on an identity resolver (People Data Labs, Versium, Enrow, BigDBM, RB2B, or a generic HTTP endpoint) that turns anonymous visitors or bare emails into named people. | Build and manage the outreach workflow itself with the workflow tools (`getWorkflow`, `saveWorkflow`, `setWorkflowActive`, `listWorkflowRuns`). See the [Sapt connector](/docs/mintlify/mcp/sapt) for the full list. # Meta/Social Tools Source: https://docs.sapt.ai/docs/mintlify/mcp/meta-ads Every tool on the Sapt Meta MCP connector for Facebook, Instagram and Meta Ads, from organic posts and comments to campaigns, insights and targeting. The Meta/Social tools are the social media command center for **Facebook and Instagram**. They cover organic posting, engagement, analytics, paid advertising, competitor research, and AI content generation. The connector URL is `https://mcp.sapt.ai/meta/mcp`. The main [Sapt connector](/docs/mintlify/mcp/sapt) at `https://mcp.sapt.ai/mcp` also covers social planning, Meta ads, comments, and DMs; this narrower connector stays available for clients that want only the Meta tools. > [!NOTE] > > Threads is not supported for organic posting. It appears only as a platform filter in `searchCompetitorAds`. ## Tools | Tool | What it does | | - | - | | `adsBrowseTargetingCategory` | Browse Meta's full targeting taxonomy: every available interest, behavior, or demographic, without searching. | | `adsConversionInsights` | Conversion metrics: purchases, leads, registrations, and cost per conversion. | | `adsConversionTimeSeries` | Conversion metrics over time, daily or at a custom interval, for trend analysis. | | `adsCreateAd` | Create an ad within an ad set: the creative people actually see. | | `adsCreateAdSet` | Create an ad set within a campaign. It defines who sees the ad and how much to spend. | | `adsCreateCampaign` | Create a new ads campaign, the top level of the ads hierarchy. | | `adsCreatePixel` | Create a new Meta pixel for conversion tracking on the project's website. | | `adsDeleteAd` | Permanently delete an ad. Cannot be undone. | | `adsDeleteAdSet` | Permanently delete an ad set and all ads within it. Cannot be undone. | | `adsDeleteCampaign` | Permanently delete a campaign and all its ad sets and ads. Cannot be undone. | | `adsDemographicInsights` | Ad performance broken down by age and gender, to see which demographics convert best. | | `adsDuplicateAd` | Clone an ad, optionally into a different ad set, for A/B testing creatives. | | `adsDuplicateAdSet` | Clone an ad set with its targeting and budget settings, for A/B testing audiences. | | `adsEngagementInsights` | Ad engagement metrics: reactions, comments, shares, saves, and post engagement rate. | | `adsExportEntitiesPage` | Export one cursor page of raw Meta Ads account data without MCP response truncation. | | `adsExportInsightsPage` | Export one cursor page of raw Meta Ads insights for exhaustive offline analysis. | | `adsGetAdIssues` | Check whether an ad has policy violations, disapprovals, or quality issues. | | `adsGetAdPreview` | Preview how an ad looks in a specific placement (feed, story, explore, and so on). | | `adsGetCustomAudiences` | List custom audiences in the ad account: website visitors, customer lists, lookalikes, and more. | | `adsGetInterestSuggestions` | Get related interest suggestions based on interests you already have. | | `adsGetPixels` | List Meta pixels (conversion tracking tags) for an ad account. | | `adsGetPixelSharing` | Who a pixel is owned by and shared with, for auditing setups where one pixel is reused across many ad accounts or agencies. | | `adsGetReferencedObjects` | Recover creative data that Meta stores on a referenced Page object instead of in the ad creative. | | `adsGetVideoStatus` | Check whether an uploaded video has finished processing and is ready for use in an ad. | | `adsPlatformInsights` | Ad performance broken down by platform and placement (Facebook feed, Instagram Stories, Reels, and so on). | | `adsSearchEmployers` | Search employer names for ad targeting, to reach people who work at specific companies. | | `adsSearchInterests` | Search Meta's interest database by keyword, for use in `adsCreateAdSet` or `adsUpdateAdSet`. | | `adsSearchJobTitles` | Search job titles for ad targeting, to reach people with specific roles. | | `adsSearchLocales` | Search language and locale options for ad targeting. | | `adsSearchLocations` | Search geographic locations for ad targeting: countries, cities, regions, zip codes, or DMAs. | | `adsTimeSeriesInsights` | Ad performance over time, daily or at a custom interval, for trend analysis. | | `adsUpdateAd` | Edit an ad: change the name, status, or creative (copy, image, CTA, link). | | `adsUpdateAdSet` | Edit an ad set: change targeting, budget, bid, or status. | | `adsUpdateAdStatus` | Pause or activate an ad without touching the creative. | | `adsUpdateCampaign` | Edit a campaign: change name, status, budget, or bid strategy. | | `adsUploadVideoFromUrl` | Turn a publicly accessible video URL into a Meta `videoId` for use in a video ad. | | `adsVideoInsights` | Video ad performance: ThruPlays, view percentages (25/50/75/100%), and average watch time. | | `checkAccountHealth` | Check the connection status and token health of all social accounts for this project. | | `createComment` | Post a new top-level comment on a post (not a reply to an existing comment). | | `createPlannedPost` | Add a draft post to the calendar, the first step in the content workflow. | | `createScheduledPost` | Create a new scheduled post, the main tool for publishing social content. | | `deleteComment` | Permanently delete a comment. Cannot be undone. | | `deletePlannedPost` | Delete a draft post. Pending placements are cancelled; published posts stay on the platform. | | `deleteScheduledPost` | Delete a scheduled or draft post (already-published posts can't be deleted here). | | `generateCarouselPrompts` | AI-generate a cohesive set of slide prompts for a carousel post, one per slide. | | `generateContentPlan` | AI-generate a content calendar: weeks of post ideas with captions, media suggestions, and content pillars. | | `generateImagePrompt` | AI-generate a detailed image prompt for a social post, for image generation tools. | | `generateStaticPrompt` | AI-generate a design brief for a static social graphic: infographics, quote cards, announcements, or text-based visuals. | | `getAccountAnalytics` | Get 30-day analytics for a single Instagram or Facebook account. | | `getAdAccounts` | List ad accounts linked to a social account. Needed before any ads operation. | | `getAdSetDetails` | Get full details of an ad set: targeting, budget, schedule, and optimization settings. | | `getAdsHierarchy` | Get the complete ads structure: campaigns, ad sets, and ads with status and performance metrics. | | `getBrandMetadata` | Get the brand metadata the AI content generation tools in this server use. | | `getComments` | Get comments on a specific post. | | `getConversation` | Read the full message history for a DM conversation. | | `getConversations` | List DM conversations for an account. | | `getPostAnalytics` | Get per-post performance metrics for recent posts on an account. | | `getPostStatus` | Check the delivery status of a post: did it publish? | | `getProject` | List accessible workspaces, or read one in full. | | `getScheduledPost` | Get full details of a scheduled post: caption, media, schedule, and status. | | `hideComment` | Hide a comment from public view (reversible). | | `listAccounts` | List all connected Instagram and Facebook accounts for this project. | | `listAds` | List every ad in one ad set (id, name, status, and performance). Unlike `getAdsHierarchy`, it won't truncate on large accounts. | | `listPlannedPosts` | List draft posts: content ideas not yet scheduled to any account. | | `listScheduledPosts` | List scheduled and published posts: what's queued and what's been posted. | | `publishPostNow` | Publish a draft or scheduled post right now instead of waiting for the scheduled time. | | `replyToComment` | Reply to a comment. The reply is public. | | `rewriteText` | AI-rewrite captions or copy in a different tone while keeping the core message. | | `searchCompetitorAds` | Search the Meta Ad Library for the ads anyone is running across Facebook, Instagram, Messenger, and more. | | `sendDirectMessage` | Send a private DM to a user on Instagram or Facebook. | | `switchProject` | Switch the active workspace for the rest of this session. | | `unhideComment` | Restore a hidden comment to public view. | | `updateAdSetStatus` | Pause or activate an ad set. | | `updateCampaignStatus` | Pause or activate a campaign. | | `updatePlannedPost` | Update a draft post's caption, folder, or planned date. | | `updateScheduledPost` | Edit a scheduled or draft post: change the caption, reschedule, add notes, or promote a draft to scheduled. | | `whoami` | Who the connector is acting as, and which workspace is active. | # MCP Overview Source: https://docs.sapt.ai/docs/mintlify/mcp/overview Connect Claude, ChatGPT and other AI clients to Sapt through one MCP connector URL, with sign-in, the available connectors, and safety basics. The Model Context Protocol (MCP) is an open standard for connecting AI agents to external tools and data sources. For most users, Sapt uses one connector URL: ``` https://mcp.sapt.ai/mcp ``` Add that URL to Claude or ChatGPT, sign in with your Sapt account, and the available tools show up for the Projects you can access. ## Claude setup 1. Open [Claude connectors](https://claude.ai/customize/connectors?modal=add-custom-connector). 2. Click **Add custom connector**. 3. Name it `Sapt`. 4. Paste the Sapt MCP URL: ``` https://mcp.sapt.ai/mcp ``` 5. Click **Connect** and authorize with your Sapt account. 6. Optional but recommended: set tools to **Always allow**. ## ChatGPT setup 1. Open [ChatGPT connector settings](https://chatgpt.com/#settings/Connectors/Advanced). 2. Go to **Settings → Apps → Advanced settings**. 3. Turn on **Developer mode**. 4. Click **Create app**. 5. Name it `Sapt`. 6. Paste the Sapt MCP URL: ``` https://mcp.sapt.ai/mcp ``` 7. Set authentication to **OAuth**. 8. Check the disclaimer and click **Create**. ## Authentication Claude and ChatGPT use OAuth. When the client asks you to connect, sign in with your Sapt account. The connector uses your account permissions to decide which Projects and tools are available. API keys are for direct REST API usage and server-side integrations, not the normal Claude or ChatGPT connector flow. ## Tools The connector exposes Sapt capabilities across Project context, memory, CRM, content, social, ads, email, reviews, analytics, and setup. Every signed-in session sees the same tools; a tool used in a Project without the integration it needs says what is missing. Your account permissions decide which Projects and actions the tools can reach. Most people only need the main connector. A few narrower connectors carry a focused slice of the same tools, for clients that want a smaller tool list: | Connector | URL | What it covers | | - | - | - | | **[Sapt](/docs/mintlify/mcp/sapt)** | `https://mcp.sapt.ai/mcp` | Everything: context, memory, CRM, content, workflows, social, ads, email, analytics, reviews, and setup. | | **[Sapt Attribution](/docs/mintlify/analytics/attribution-mcp)** | `https://mcp.sapt.ai/attribution/mcp` | Who is on your site, where they came from, what converts, and server-side conversion setup. | | **[Sapt Meta](/docs/mintlify/mcp/meta-ads)** | `https://mcp.sapt.ai/meta/mcp` | Facebook and Instagram posts, comments, DMs, Meta ads, insights, and targeting. | | **Sapt Google** | `https://mcp.sapt.ai/google/mcp` | Google Ads research and campaign management, plus Google Business Profile locations, reviews, and hours. | | **Sapt Clips** | `https://mcp.sapt.ai/clips/mcp` | Turning long footage into vertical clips and scheduling the keepers. | | **Sapt Support** | `https://mcp.sapt.ai/support/mcp` | Support tickets and review replies. | The old Leads, CRM, CMS, Builder, Google Business Profile (`/gbp`), and SERP connector URLs now answer as the main Sapt connector. See [Leads tools](/docs/mintlify/mcp/leads). ## MCP or REST? Both let software work with the same Project. Pick by how you're building. | Need | Best fit | | - | - | | Let Claude, ChatGPT, Cursor, or another agent use Sapt tools | **MCP** | | Build an internal app, script, or custom integration | **[REST API](/docs/mintlify/api/overview)** | | Start without writing code | **Dashboard** | ## Safety basics Technical access should be scoped and intentional. * Keep API keys on the right Project. * Enable tools only where they're needed. * Use review steps for public or customer-facing actions. * Keep secrets in environment variables or secure app settings. When in doubt, start with read-only or draft-producing access before allowing direct changes. # Sapt Connector Source: https://docs.sapt.ai/docs/mintlify/mcp/sapt Every tool on the main Sapt MCP connector, grouped by area, with shared memory, CRM, content, workflows, social, ads, analytics and setup in one URL. The Sapt connector is the all-in-one server we recommend for Claude, ChatGPT, and similar apps. One URL, one identity, every tool: content, CRM, social, email, ads, reviews, leads, analytics, plus a persistent memory layer the agent can read from and write to across conversations. ``` https://mcp.sapt.ai/mcp ``` If you're building an agent that needs broad access to a Sapt Project, start here. > [!NOTE] > > Every signed-in session gets the same tools, whichever workspace is active. A tool used in a workspace without the integration it needs (for example, Google Business Profile for reviews) says what is missing instead of failing silently. `listShops` and `getShop` appear only for Sapt platform admins. ## Tools ### Workspace and feedback | Tool | What it does | | - | - | | `whoami` | Who the connector is acting as, and which workspace is active. | | `getProject` | List the workspaces you can access, or read one in full. | | `switchProject` | Switch the active workspace for the rest of the session. | | `submitFeedback` | Report a platform issue to the Sapt team, or send a support request to the same queue as app.sapt.ai/support. | | `getFeedback` | Search known issues, or read one in full. | | `listInquiries` | List contact-form, funnel, and wholesale inquiries the project received. | ### Context, memory, and branding | Tool | What it does | | - | - | | `getProjectContext` | The foundational context: brand voice, ICP, strategy, and a map of the project's record types, workflows, numbers, mailboxes, and calendars. Call it first. | | `getBranding` | The visual brand identity: colors, fonts, logos, tagline, keywords, guidelines, and ready-made design tokens. | | `updateBranding` | Update the visual brand identity. Arrays (colors, fonts, keywords) replace the existing ones. | | `getMemory` | List memory entries, or read one in full. | | `saveMemory` | Create or update a memory entry, a markdown document keyed by slug. Replaces the whole document. | | `renameMemory` | Rename a memory entry's key, keeping its content and history. | | `deleteMemory` | Delete a memory entry. `brand`, `icp`, `strategy`, and `branding` are protected. | | `recall` | Search memory by subject and get back snippets, cheaper than loading whole entries. | | `getActionItems` | What needs attention now and what ships soon: failed posts, unanswered reviews, scheduled sends and posts, pending inquiries. | ### CRM and inbox | Tool | What it does | | - | - | | `getObjectType` | List the record types in this workspace, or read one type's schema. | | `createObjectType` | Define a new record type with an initial schema. | | `updateObjectType` | Patch a record type's schema or settings. The slug can't change. | | `deleteObjectType` | Delete a record type and all its records. Dry run by default. | | `getObjectRecord` | List records of a type, or read one record. | | `saveObjectRecord` | Create or update a record, including its relations. | | `deleteObjectRecord` | Permanently delete a record. | | `bulkDeleteObjectRecords` | Preview or permanently delete the records of one type that match a filter. | | `listRelatedRecords` | List the records linked to a record through a named relation. | | `createRelation` | Declare a new relation between two record types. | | `setRelationLabel` | Rename the label on one side of a relation. | | `deleteRelation` | Delete a relation and every link made through it. | | `listInboxConversations` | The latest conversation per Person, newest first, with ad source, lead type, channel, and whether it needs a reply. | | `listInboxFilterOptions` | The channels, source record types, and repliers actually present in the inbox. | | `getPersonJourney` | One Person's full timeline: web sessions, emails, texts, calls, DMs, orders, and lifecycle changes, with attribution. | | `sendEmailToPerson` | Send an email to a Person record. It checks the project can send first. | ### Content and assets | Tool | What it does | | - | - | | `getContentType` | List content types, or read one with field-type docs. | | `saveContentType` | Create or update a content type's schema. | | `deleteContentType` | Permanently delete a content type. It must have no items. | | `getContentTypeUsageCount` | Count the items under a content type, before you delete it. | | `getContent` | List content items, or read one in full. | | `saveContent` | Create or update a content item. | | `deleteContent` | Permanently delete a content item. | | `listAssets` | List the images, video, documents, and audio in the asset library. | | `uploadImageFromUrl` | Upload an image to the asset library from a URL. | ### Website | Tool | What it does | | - | - | | `website` | The shop's website: discover sections and forms, make private draft edits, set up forms and where they send, and verify a publish. | ### Workflows and scheduled tasks | Tool | What it does | | - | - | | `getWorkflow` | List workflows, or read one with its trigger and actions. | | `saveWorkflow` | Create or update a workflow. A new workflow is saved inactive. | | `setWorkflowActive` | Turn a workflow on or off. | | `deleteWorkflow` | Permanently delete a workflow. | | `listWorkflowRuns` | Recent workflow runs, newest first, for debugging why something did or didn't fire. | | `listAgentTasks` | List the project's scheduled agent tasks. | | `triggerAgentTask` | Run a scheduled task now, outside its schedule. | | `getAgentTaskRuns` | A task's run history: when it ran, whether it succeeded, and its output. | ### Conversation assistants and booking | Tool | What it does | | - | - | | `getConversationAssistants` | Read the assistants that answer customers: their settings, connected numbers and mailboxes, calendars, and credit availability. | | `saveConversationAssistant` | Save an assistant's full configuration, the same way the Inbox does. | | `prepareTextReply` | Hold an exact text to a customer for review. Nothing sends until a teammate approves it. | | `getConversationApprovals` | Read a customer's proposed replies and bookings waiting for review, queued sends, and uncertain outcomes. | | `resolveConversationApproval` | Approve or dismiss a reviewed reply, text, or booking. | | `setConversationActionPolicy` | Set the project-wide ceiling for what assistants may do automatically. | | `getConversationUsage` | The project's credit usage for the last 30 days, by category. | | `bookAppointment` | Book a customer on the shop's schedule once a person has agreed the time with them. | ### Outreach | Tool | What it does | | - | - | | `previewOutreachAudience` | Preview the personalization for an outreach workflow's audience without enrolling anyone or sending email. | | `enrollOutreachAudience` | Start the outreach workflow for a CRM List or chosen People. Real emails begin sending, paced by mailbox caps and send windows. | ### Email campaigns | Tool | What it does | | - | - | | `getTemplate` | List email templates, or read one in full. | | `createOrUpdateTemplate` | Create an email template, or update one. | | `previewEmail` | Render a template as HTML, or send a test to one to three inboxes. | | `scheduleEmailCampaign` | Send an email campaign to a recipient list now or at a set time. | | `listScheduledCampaigns` | List pending scheduled email sends. | | `cancelScheduledCampaign` | Cancel a scheduled send before it goes out. | ### Texting | Tool | What it does | | - | - | | `requestTextingRegistration` | Ask Sapt to register the workspace's own texting brand and campaign (US 10DLC) with the carriers. | | `getTextingRegistration` | Where that registration stands, plus what the carrier reports for the line today. | ### Integrations, credentials, and webhooks | Tool | What it does | | - | - | | `listIntegrations` | Every known integration provider, with this workspace's connection status. | | `connectIntegration` | Connect an API-key provider in one step and get back the webhook URL to paste into the provider. OAuth providers connect in the app. | | `disconnectIntegration` | Disconnect a provider: deletes its stored credentials and webhook settings. | | `testIntegration` | Make a test call to the provider with the stored credentials. | | `listCredentials` | List stored credentials: names and metadata only, never values. | | `saveCredential` | Store (or overwrite) a custom credential by name. | | `deleteCredential` | Deactivate or delete a credential. | | `listInboundWebhooks` | List the custom inbound webhook sources set up in this workspace. | | `saveInboundWebhook` | Set up (or overwrite) an inbound webhook for a custom source. | | `deleteInboundWebhook` | Deactivate or delete an inbound webhook. | | `configureIdentityResolution` | Turn on an identity resolver (People Data Labs, Versium, Enrow, BigDBM, RB2B, or a generic HTTP endpoint). | ### Social planning and engagement | Tool | What it does | | - | - | | `context` | Everything needed to plan social posts and ads in one read. Call it first. | | `save` | Create or update posts and ads, several at once. Nothing publishes here. | | `schedule` | Send saved posts to their accounts and put ads into Meta ad sets. | | `items` | Where every post and ad stands: drafts, scheduled, publishing, published, failed, with errors and links. | | `research` | What is winning on the Instagram and YouTube accounts this workspace watches, scored against each account's usual post. | | `getEngagement` | An account's recent comments and DMs. Comments work on Instagram, Facebook, TikTok, and YouTube; DMs on Instagram and Facebook. | | `respondToMessage` | Reply to comments and DMs, and moderate comments. | ### Ads | Tool | What it does | | - | - | | `getAdsLandscape` | Read ads structure, performance, or competitor research in one tool. | | `getAdsInsights` | Diagnostics: fatigue, disapprovals, baselines, top and under-performers, and significance checks. | | `manageAdEntity` | Pause, resume, update, or duplicate a campaign, ad set, or ad. The project's action policy decides whether it runs now or waits for approval. | | `getAdReviewStatus` | An ad's Meta review status and per-placement disapproval reasons. | | `launchAds` | Launch a campaign, ad set, and ads from a brief. Everything is created paused. | | `getAdExperimentResults` | Pick a winning ad only when the result is statistically significant and every variant has enough data. | | `setAdAutomationRule` | Create a scheduled rule that pauses underperforming ads. | | `deleteAd` | Delete one ad draft in Sapt. Meta ads already created from it keep running. | ### Analytics | Tool | What it does | | - | - | | `getLeadLedger` | The raw conversion events behind Performance lead and purchase totals, with stitched identity and first-touch source. | | `getInboxMetrics` | What the inbox did over a recent window: contacted, replied, reply rate, spoken with, and median minutes to first reply. | | `getWebAnalytics` | Search Console and GA4 data in one tool. | | `getFirstPartyAnalytics` | Sapt's own tracking: pageviews, events, referrers, devices, scroll depth, outbound clicks, and live visitors. | | `getSocialAnalytics` | 30-day account metrics and recent posts for Instagram, Facebook, TikTok, and YouTube. | | `getEmailAnalytics` | Email marketing totals, rates, daily series, template comparison, and device and country breakdowns. | ### Google Business Profile | Tool | What it does | | - | - | | `getGbpStatus` | The Google Business Profile connection and every linked location. | | `listReviews` | A location's reviews, with ratings, comments, dates, and existing replies. | | `replyToReview` | Post or update a reply to a review. The reply is public on Google. | | `getBusinessHours` | A location's current business hours. | ### Clips and video | Tool | What it does | | - | - | | `clips` | Turn footage into captioned vertical clips and put the good ones in the posting queue. | | `longform` | Long-form YouTube videos for a persona or brand, from idea to measured. | | `channels` | Prepare YouTube channel briefs, then verify each connected channel as its own posting identity. | | `campaigns` | Find, inspect, and save Content Rewards campaign briefs. | | `submissions` | The Content Rewards submission desk: prepare, send, and reconcile submissions, and connect the account. | | `campaignPost` | Check, publish, and submit one reviewed campaign post. | | `operations` | The clipping portfolio: connected accounts, cadences, scheduled totals, render states, and publish failures. | ### Shops (platform admins only) | Tool | What it does | | - | - | | `listShops` | Every shop Sapt is onboarding or running, flagged shops first. | | `getShop` | One shop in full, with its checklist, seven-day health, texting registration, and search clicks. | # Find your way around Sapt Source: https://docs.sapt.ai/docs/mintlify/owners/find-your-way A short tour of Sapt, from the web app's sidebar to the five tabs of the phone app, so you always know where to go next. Sapt has two views of the same shop: the web app at app.sapt.ai and the phone app at shop.sapt.ai. Here is where things live in each. > [!NOTE] > > What you see depends on your role. An admin can hide parts of Sapt for a role, so if something on this page is missing, ask whoever runs Sapt for your shop. ## On the web Sign in at [app.sapt.ai](https://app.sapt.ai). Your shop opens on **Performance**. ![The Performance page, with Social, Ads, Google and Attribution across the top and the sidebar on the left](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/app/web-home.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=625726223c36bfe196a92e43434c3e6a) The sidebar on the left takes you everywhere. Your shop's name sits at the top of it. If you run more than one shop, click the name to switch. ![The sidebar: Performance, Inbox, Calendar, CRM, Content and Workflows, then Team, Website, Billing, Support and Project Settings](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/app/web-sidebar.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=cece94b6ef4a31a032a7efecfe13461a) * **Performance**: your home page. See what needs you, your calls and texts, and where your leads came from. **Social**, **Ads**, **Google** and **Attribution** open from here. * **Inbox**: every conversation with your customers, from texts and calls to email, website forms and social messages. * **Calendar**: your appointments and tasks. **Availability** sets your hours and booking rules. * **CRM**: your customers, under **People**, and the other records your shop keeps. * **Content**: what your website shows, like services and articles, plus **Files & photos** and **Brand**. * **Workflows**: automations that run on their own, like texting back a missed call. Your AI front desk is under **Agents**. * **Team**: add teammates and choose what they can do. * **Website**: preview your site, change it and publish it. * **Billing**: your plan and credits. * **Support**: message the Sapt team. * **Project Settings**: your shop's name, **Quick links**, **AI text replies**, **Phone**, **Domains**, **Connected apps**, **AI knowledge** and **Permissions**. Project Settings opens with your shop's name, **Quick links**, **AI text replies** and **Phone**. Your integrations are further down, under **Connected apps**. ![The top of Project Settings: Project name, Quick links, AI text replies and Phone](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/app/web-project-settings.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=3ea6a2fa60c5b03296de218306b7db43) A few more things worth knowing: * A number beside **Performance** or **Inbox** means something is waiting for you. * Your sidebar may show extra links between the two groups. An admin adds them from **Project Settings** with **Customize sidebar**. * The circle with your initials, top right, opens **Account**, **Billing** and **Log out**. * On a small screen, the sidebar opens from the button at the top left. ## On your phone Open [shop.sapt.ai](https://shop.sapt.ai). Five tabs run along the bottom: **Today**, **Inbox**, **Calendar**, **Growth** and **Shop**. On a computer, the same tabs sit down the left side. ![The Today tab on a phone: a customer under Needs you with a suggested reply, and the five tabs along the bottom](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/today.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8a32e827ff41f97caa2215e15147499f) * **Today**: what needs you now. Customers waiting on you (**Needs you**), **Missed calls** to return, **Did they come in?** for appointments that have passed, then **This week** and **Today’s calendar**. * **Inbox**: every conversation. **Needs reply**, **All** and **Replied** sort them. Tap **+** at the top to text a customer. * **Calendar**: your bookings. Tap **Book** to book a customer. Website requests wait here for your OK. * **Growth**: how new customers find you: **Reviews**, **Ads**, your **Google profile** and your **Website**. * **Shop**: your shop's settings, below. ### The Shop tab ![The Shop tab on a phone: Front desk, Activity, Team, Automations, Phones and ringing, Saved links, Ask Sapt and Give Sapt access](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/shop.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=850af19fee0407dfd785542bca1b421e) * **Front desk**: hours and booking rules, AI text replies, what the AI knows, calls and voicemail, and your Google hours. * **Activity**: what Sapt did, newest first. * **Team**: invite a teammate. * **Automations**: turn automations on or off, or start a new one. * **Phones and ringing**: your shop line, who it rings, a test call and forwarding your main line. * **Saved links**: links you send customers again and again, like your booking or review link. They show up when you write a message. * **Billing**: your plan, credits and card. Only people who manage billing see it. * **Ask Sapt**: send the Sapt team a request and see where it stands. * **Give Sapt access**: share a login with the Sapt team safely, so you never text a password. * **Notifications**: choose what alerts you. * **Appearance**: **Automatic**, **Light** or **Dark**. * **Profile and account**: your name, **Sign out** and **Delete account**. ## Keep going > [card] [Sapt on your phone](/docs/mintlify/owners/phone-app) > > Sign in at shop.sapt.ai and add it to your Home Screen. > [card] [Answer every lead](/docs/mintlify/leads/overview) > > How a missed call or a website request turns into a booked job. > [card] [Integrations](/docs/mintlify/integrations/overview) > > Connect Google, your shop system and the other apps you use. # Forward your calls Source: https://docs.sapt.ai/docs/mintlify/owners/forward-your-calls Customers still call your old number? Forward the calls nobody answers there to your Sapt number, with the code for your phone company. Your Sapt number works on its own, and setup does not ask you to forward anything. If customers still call the number on your sign, forward the calls nobody answers there to your Sapt number. They get the text back too. ## Turn it on in Sapt > [tab] On your phone > > Tap **Shop**, then **Phones and ringing**. Scroll down and tap **Forward your main line**. Type **Your main number** and tap **Look it up**. Sapt shows the code to dial, or what to do if your line has no code. Dial the code from that phone. > > Then call your main number from your cell. Let it ring until Sapt answers, then hang up. Type your cell under **Calling from** and tap **I called. Check now**. Sapt watches for your call to come through. > > Your phone company may not say the call came from your main line. Then Sapt asks **Did you dial** your main number. Tap **Yes, I dialed** with your number on it. Nothing is saved until you do. > [tab] On app.sapt.ai > > Open **Project Settings**, then **Phone**, and find **Forward your main line**. Type **Your main number** and click **Look it up**. Dial the code from that phone, or do what Sapt says if your line has no code. Call your main number from your cell and let it ring until Sapt answers, then hang up. Type your cell under **Calling from** and click **I called. Check now**. If Sapt asks **Did you dial** your main number, click **Yes, I dialed** with your number on it. ![Illustration of a phone keypad with a forwarding code typed in](https://mintcdn.com/sapt/plQsYL8f7RkZYVBo/docs/mintlify/images/owners/illustrations/dial-the-code.svg?fit=max\&auto=format\&n=plQsYL8f7RkZYVBo\&q=85\&s=16dd5db7ea9e1825f7861bcfe4ee312a) Illustration. On the shop phone, dial the code Sapt shows you. ## The codes Sapt shows the code for your line, or what to do if it has no code. Here are the codes, if you want them handy. Dial the code from the phone with that number. Use your own Sapt number in place of the example, **212 555 0100**. ### Cell phones | Phone company | Turn it on | Example | To stop | | - | - | - | - | | Verizon | `*71`, then your Sapt number | `*71 212 555 0100` | `*73` | | AT\&T | `**61*1`, your Sapt number, then `#` | `**61*12125550100#` | `##61#` | | T-Mobile, Metro and Sprint | `**61*1`, your Sapt number, then `**30#` | `**61*12125550100**30#` | `##61#` | * On an iPhone, turn off Live Voicemail first. * On Verizon, wait for the tone after you dial. * On T-Mobile, the 30 is how many seconds the phone rings before the call goes to Sapt. * Another phone company? Ask them to forward unanswered calls to your Sapt number. ### Landlines | Phone company | Turn it on | Example | To stop | | - | - | - | - | | AT\&T, Frontier, CenturyLink and most others | `*92`, then your Sapt number | `*92 212 555 0100` | `*93` | Dial it from the shop phone and listen for a tone. No tone means your phone company has to turn it on for you. Verizon, Comcast (Xfinity), Spectrum and Cox home phones have no code. Sign in to your account with them online and forward the calls nobody answers to your Sapt number. ### Internet phones Open your phone system's settings and forward the calls nobody answers to your Sapt number. ## Stop forwarding Dial the code under **To stop** from the phone with that number. No code for your line? Turn forwarding off where you turned it on. Did Sapt see your forwarding work? Then **Forward your main line** says your number forwards to Sapt. For a line with a code it also says **To stop: dial** and the code. Once forwarding is off, tap **It no longer forwards** there. # Get started Source: https://docs.sapt.ai/docs/mintlify/owners/get-started From your free report on sapt.ai to a Sapt number that texts back missed calls. You need a card and your cell. Keep your IRS letter close if you can. Your EIN can wait. ## Sign up ### 1. Run your free report Go to [sapt.ai/audit](https://sapt.ai/audit). Type your shop's name and pick it from the list. Add your first name and your cell. Your report shows where your shop ranks on Google and what to fix first. It is free. Not on Google yet? Under the search, tap **Not on Google yet? Set up Sapt anyway**. A short form opens at sapt.ai/start. Add your shop's name, its ZIP code and your website if you have one. Check **I own or manage an independent repair shop.** and tap **Continue**. Pick where you want help and tap **Continue**. Add your name, email and phone, and tap **Review my setup**. Check your details, most of all your email: you sign in with it. To fix one, tap **Edit details**. Then tap **Pay \$297 and start** and go on to step 3. ### 2. Tap Fix it in 35 seconds The button stays at the top of your report, and shows again further down. It takes you straight to the payment page. If the short form from sapt.ai/start opens instead, it is filled in from your report. Check **I own or manage an independent repair shop.**, add your email and anything else it asks for, tap **Review my setup**, then **Pay \$297 and start**. ### 3. Pay on Stripe Stripe takes payments for Sapt. Came from **Fix it**? The email box is empty: type the email you want to sign in with. Came from the form? Your email is already there. Enter your card. Stripe may ask for your cell too. It is \$297 a month, with 30-day money back. Cancel anytime. ![The Stripe payment page for \$297 a month](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/01-checkout.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=d52cce0787de32cda9a46645bced7a01) ### 4. Open your shop Keep the page open while Sapt sets up your shop. Then a page says **Your Sapt shop is ready.** Tap **Open my shop** once. You land on shop.sapt.ai, signed in. Closed the page? Open the email from Sapt called **Your shop is ready** and tap **Open your shop**. The same page opens: tap **Open my shop**. The email's button works for 7 days, and only until you first sign in. If shop.sapt.ai says **That sign-in link has expired. Sign in below.**, sign in there with your email and password. No password yet? Type your email and tap **Forgot password**. Already had a Sapt account with that email? Your new shop goes into it, and no **Open my shop** page shows. Sapt emails you **Your new shop is ready**. Sign in at shop.sapt.ai the way you always do. ![Your Sapt shop is ready. Tap once to sign in, with the Open my shop button](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/02-shop-ready.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=4b770ba3799505df3deaddca6bd849e2) ### 5. Choose how you sign in Your email is at the top. Is it right? If it has a typo, tap **Change email**, type the right one and tap **Send code**. Type the code Sapt sends to the new address and tap **Confirm email**. Then choose a password of at least 10 characters and tap **Save and continue**. Or tap **Sign in with Google** or **Sign in with Apple**. ![Your email with Is this right?, a box to choose a password, and Sign in with Google or Apple](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/03-sign-in.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=4e53dc90d232f6ed5fb2d7c1fca6eac9) ## Set up your shop Four steps. Every step has **Skip for now**. Only your Sapt number is needed to go live. A step you skip waits for you on **Today**, except the test call. Tap **How this works** on any step for help with it. ### 1. Connect Google Step 1 of 4. Tap **Connect Google**. On Google's screen, choose the account that manages your shop and press **Continue**. Your hours, address and phone fill in from your listing. No Google listing yet? Tap **No Google listing yet?** under the button. **Create your listing** opens Google's page to make one for free. Google checks it's your shop, which can take a few days. Tap **Skip for now** and connect Google from Today once your listing is ready. ![Step 1 of 4: Connect your Google listing, with Connect Google and No Google listing yet?](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/04-google.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=335f707e820aebaa5f97ed73437b0ffd) ![No Google listing yet? Create your listing or Skip for now](https://mintcdn.com/sapt/NCydxXjofypkgdC0/docs/mintlify/images/owners/get-started/05-no-google-listing.png?fit=max\&auto=format\&n=NCydxXjofypkgdC0\&q=85\&s=696e04e49d704851afdcd47cf761fbd7) ### 2. Get your Sapt number Step 2 of 4. Your area code comes from your Google listing. Type it if it's empty. Pick a number and tap **Continue**. Check what callers hear when nobody answers, pick **Ava** or **Brian** and tap **Play** to hear the voice. Tap **Continue**, then the **Get** button with your new number on it. By getting it, you agree to text only customers who gave you their number. Next, Sapt asks **Who should we ring?** Check the **Shop phone**. It comes from Google, or it is your cell. Then pick what happens after hours: * **Keep ringing this phone**: the shop phone rings any time. This is picked for you. * **My cell**: your cell rings after hours. * **Nobody, just text them back**: after hours, nobody rings and the caller gets a text. For your cell or nobody, check your hours. Tap **Edit hours** to change them, or **Add your hours** if Sapt has none. Tap **Save**. Sapt rings for about a minute. If nobody answers, callers hear your greeting and get a text back. To change it later, tap **Shop**, then **Phones and ringing**, then **Who rings**. ![Step 2 of 4: Your Sapt number, an area code and the numbers you can pick](https://mintcdn.com/sapt/NCydxXjofypkgdC0/docs/mintlify/images/owners/get-started/06-number.png?fit=max\&auto=format\&n=NCydxXjofypkgdC0\&q=85\&s=147061afc141e8acff98456804d4fd93) ![Who should we ring? The shop phone, Keep ringing this phone after hours, and We ring for about a minute](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/07-who-rings.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=5e8a0b74dd67540543bef75f577332b6) ### 3. Add your EIN Step 3 of 4. Phone companies need your EIN to approve texts in your shop's own name. Until then your texts go out on Sapt's approval. Type your legal name exactly as it is on your IRS letter. Pick **LLC or corporation** or **Nonprofit**. Add your **Tax ID (EIN)** and your address, and tap **Next**. Approval in your shop's own name takes 3 to 4 days. No EIN yet? Tap **Get one free from the IRS online** under the EIN box. It takes about 10 minutes. If you skip this step, Today asks for your EIN until it is in. ![Step 3 of 4: Add your EIN, with the legal name, type of business and Tax ID (EIN)](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/08-ein.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=4e0d81d3c52a977e19fdc62397f3ae4f) ### 4. Try it Step 4 of 4. This one is up to you. Call your Sapt number from your cell and let it ring. Your cell is already under **Calling from**. Sapt checks off **Your call came in**, then **The text back went out**. Tap **Finish**. Or tap **Skip for now**. You still go live. ![Step 4 of 4: Try your number, your call came in and the text back went out, with Finish](https://mintcdn.com/sapt/NCydxXjofypkgdC0/docs/mintlify/images/owners/get-started/09-test-call.png?fit=max\&auto=format\&n=NCydxXjofypkgdC0\&q=85\&s=839612c77dfeefc483107ebdc18318ad) ![Illustration of a text arriving on a phone from your Sapt number](https://mintcdn.com/sapt/plQsYL8f7RkZYVBo/docs/mintlify/images/owners/illustrations/text-back.svg?fit=max\&auto=format\&n=plQsYL8f7RkZYVBo\&q=85\&s=04c392e8035ebc37a5fb831ed47a5f3c) Illustration. The text back arrives on your cell, the same text a customer gets. ### 5. Put your Sapt number on Google? If Sapt can put your number on your Google listing, it asks this once. You see your listing, its number now and its number after. Google callers still ring you, and any call you miss gets a text back. Your old number stays on your listing as a second number. Tap **Add it**. Google may take a few days to show it. Changed your mind? Tap **Undo**. Or tap **Skip for now** and your listing stays the same. You can add it later in **Shop**, under **Phones and ringing**. ![Put your Sapt number on Google? Your listing, its number now and after, with Add it and Skip for now](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/10-google-number.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=2a6a1c90e8c661005216bf8d327a64fb) ### 6. You're live Missed calls to your Sapt number now get a text back. In a browser, the screen also says **Get the Sapt app**. Tap **App Store** or **Google Play**, and sign in with the same email. On a computer, point your phone's camera at the code, or tap **Email me the link**. Tap **Open Today** to see your shop. ![You're live, with Get the Sapt app, the App Store and Google Play buttons, and Open Today](https://mintcdn.com/sapt/LPSSaFRdpcHLuiWI/docs/mintlify/images/owners/get-started/11-live.png?fit=max\&auto=format\&n=LPSSaFRdpcHLuiWI\&q=85\&s=deac3d521251d4637ffea144cf386f4e) ## After you're live Today shows what's left, one thing at a time: **Connect Google** if you skipped it, **Get the app** if you use Sapt in a browser, then **Teach it** for the front desk. Told Sapt in step 1 that you have no Google listing yet? Then **Connect Google** comes last. Until your EIN is in, Today asks for it too. None of it holds up your shop. ### 1. Teach the front desk When Today says **See how it answers your customers.**, tap **Teach it**. Tap **Hours** and set when customers can book. Google connected? **Use my Google hours** fills them in. Tap **Save hours**. Tap **Services and prices**, then **Your services**. Write the work you do and the work you don't, and tap **Save note**. Then tap **Done**. **Done** does not save your hours or services, so tap **Save hours** and **Save note** first. ## Forward your calls Customers still call the number on your sign? Send the calls nobody answers there to your Sapt number, so they get the text back too. Tap **Shop**, then **Phones and ringing**, scroll down and tap **Forward your main line**. [Forward your calls](/docs/mintlify/owners/forward-your-calls) has the steps and the code for each phone company. ## Need a hand? Email [hello@sapt.ai](mailto:hello@sapt.ai). # Use Sapt on your phone Source: https://docs.sapt.ai/docs/mintlify/owners/phone-app Open Sapt at shop.sapt.ai on your iPhone or Android phone, sign in, and add it to your Home Screen so it opens with one tap. Sapt runs in your phone's web browser at shop.sapt.ai. Add it to your Home Screen and it opens with one tap, like your other apps. > [!NOTE] > > The Sapt app is on the [App Store](https://apps.apple.com/us/app/sapt/id6792738352) and [Google Play](https://play.google.com/store/apps/details?id=ai.sapt.hub.pilot). Sign in with the same email. The app puts alerts on your lock screen; the browser can't. **1. Open shop.sapt.ai** On an iPhone, open Safari. On an Android phone, open Chrome. Go to [shop.sapt.ai](https://shop.sapt.ai). **2. Sign in** Tap **Sign in with Google** or **Sign in with Apple**. Or type your email and password and tap **Sign in**. Use the email you signed up with. If you see **Enter your code**, type the 6-digit code from your authenticator app and tap **Verify**. If you run more than one shop, tap the one you want under **Choose your shop**. **3. Add it to your Home Screen** > [tab] iPhone > > 1. In Safari, tap the Share button. If you don't see it, tap the menu button first, then tap **Share**. > 2. Scroll down and tap **Add to Home Screen**. Not in the list? Scroll to the bottom, tap **Edit Actions**, then tap **Add to Home Screen**. > 3. If you see **Open as Web App**, keep it on. Sapt then opens like an app. > 4. Tap **Add**. > > The buttons look a little different on each version of iOS. Apple shows them on [Bookmark a website in Safari on iPhone](https://support.apple.com/guide/iphone/bookmark-favorite-webpages-iph42ab2f3a7/ios). > [tab] Android > > 1. In Chrome, tap **More** to the right of the address bar. > 2. Tap **Install and create shortcut**, then **Create shortcut**. > 3. Keep the name or type a new one, then tap **Add**. > > Google shows the same steps on [Create shortcuts for websites in Chrome](https://support.google.com/chrome/answer/15085120?co=GENIE.Platform%3DAndroid). Open Sapt from the new icon. If it asks you to sign in, sign in the same way as before. ## What's in the app Five tabs: **Today** for what needs you now, **Inbox** for every conversation, **Calendar** for your bookings, **Growth** for reviews, ads, Google and your website, and **Shop** for your settings. [Find your way](/docs/mintlify/owners/find-your-way#on-your-phone) has the full tour. ![The Today tab, with customers who need you and a suggested reply ready to send](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/today.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8a32e827ff41f97caa2215e15147499f) ![The Inbox tab, with Needs reply, All and Replied at the top](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/inbox.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=fe294fdd769692101d1aadac339c2315) shop.sapt.ai works in a browser on a computer too. The tabs move to the left side. ## Notifications In a browser, Sapt can't put alerts on your phone's lock screen. The [App Store](https://apps.apple.com/us/app/sapt/id6792738352) and [Google Play](https://play.google.com/store/apps/details?id=ai.sapt.hub.pilot) apps can. See [Alerts](/docs/mintlify/leads/alerts) for the alerts Sapt sends by text. To choose what the app alerts you about, tap **Shop**, then **Notifications**. Under **What alerts you**, turn on the ones you want: **Customers who need you**, **New bookings**, **Voicemails** and **Unhappy customers**. Turn on **Quiet outside working hours** to get them without a sound or a banner after hours. Once you change something, **Save changes** shows up. Tap it. ![The Notifications screen: a switch for each alert under What alerts you, then Quiet outside working hours](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/notifications.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=ead287a6e4e7444abe8fd62b1c7fa99f) ## If something looks wrong * Forgot your password? Type your email on the sign-in screen and tap **Forgot password**. A reset link comes by email. * Saved Sapt at dash.sapt.ai? That address still works and opens the same shop. * Seeing **No shop yet**? That email has no shop on Sapt. To start one, tap **Create your shop**. To join a shop that is already on Sapt, ask its owner to add you. ## Keep going > [card] [Find your way](/docs/mintlify/owners/find-your-way) > > What each tab and each part of the web app is for. > [card] [Alerts](/docs/mintlify/leads/alerts) > > How Sapt tells you when a customer needs you. # Set up your shop Source: https://docs.sapt.ai/docs/mintlify/owners/set-up-your-shop You paid from a link Sapt sent you. Here is how to open your shop, pick a password, and finish the four setup steps on your phone. Sapt texted or emailed you a link. The card comes first. The moment it clears, your shop is built and you finish setting it up on your phone. You need your cell. Started from sapt.ai instead? Follow [Get started](/docs/mintlify/owners/get-started). ### 1. Pay Open the link in the text or the email and enter your card on Stripe's page. It is \$297 a month, with 30-day money back. Cancel anytime. ### 2. Open your shop After paying, keep the page open while Sapt sets up your shop. Then a page says **Your Sapt shop is ready.** Tap **Open my shop** once. You land on shop.sapt.ai, signed in. Closed the page? Open the email from Sapt called **Your shop is ready** and tap **Open your shop**, or text the number Sapt sent the link from and ask for a sign-in link. Either one opens the same page: tap **Open my shop**. Each link works once, and only until you first sign in. The email's button lasts 7 days. If shop.sapt.ai says **That sign-in link has expired. Sign in below.**, sign in there with your email and password. No password yet? Type your email and tap **Forgot password**. ### 3. Pick a password Check the email on the screen. If it has a typo, tap **Change email**, type the right one and tap **Send code**. Type the code Sapt sends and tap **Confirm email**. Then choose a password of at least 10 characters and tap **Save and continue**, or use Google or Apple. From now on you sign in that way. ### 4. Finish the four steps Your setup opens at step 1. Connect Google, get your Sapt number, add your EIN and try a test call. Every step has **Skip for now**, and only your Sapt number is needed to go live. [Set up your shop](/docs/mintlify/owners/get-started#set-up-your-shop) in Get started walks through each one. ## Need a hand? Text the number Sapt sent the link from, or email [hello@sapt.ai](mailto:hello@sapt.ai). # Welcome to Sapt Source: https://docs.sapt.ai/docs/mintlify/owners/welcome What Sapt does for your shop, how the web app and the phone app fit together, and where to start if you are new to Sapt. Sapt is the front desk and marketing team for your shop. Here is what it does and where to start. ## What Sapt does for your shop ### Answers every lead When you miss a call, Sapt texts the caller back. The AI front desk answers texts and can book customers on your calendar. Texts, calls, email, website requests and social messages land in one inbox. ### Runs your website Your shop gets a website at a sapt.ai address or on your own domain. You change it and publish it from the web app. ### Looks after Google See your reviews and reply to them, check where you show up on Google Maps and Search, and keep your Google profile up to date. Sapt can also ask customers for a review after the job. ### Keeps your records Every customer is saved with their conversations, along with your other records, like website requests. ## Two ways to use Sapt Both show the same shop, and you sign in with the same email. > [card] [On your phone](/docs/mintlify/owners/phone-app) > > shop.sapt.ai, for the day-to-day: see who needs you, answer customers, book them in and reply to > reviews. > [card] [On a computer](/docs/mintlify/owners/find-your-way) > > app.sapt.ai, for setup and bigger jobs: your website, contacts, workflows, team and > integrations. ## Where to start > [card] [Get started](/docs/mintlify/owners/get-started) > > Run your free report, pay, and get your Sapt number texting back missed calls. > [card] [Answer every lead](/docs/mintlify/leads/overview) > > How a missed call or a website request turns into a booked job. > [card] [Your website](/docs/mintlify/website/build-your-website) > > Make your site, change it and put it live. > [card] [Integrations](/docs/mintlify/integrations/overview) > > Connect Google, your shop system and the other apps you use. > [card] [Find your way](/docs/mintlify/owners/find-your-way) > > What each part of Sapt is for, on the web and on your phone. ## Need a hand? On your phone, tap **Shop**, then **Ask Sapt**. On the web, open **Support**. Or email [hello@sapt.ai](mailto:hello@sapt.ai). # Ads Source: https://docs.sapt.ai/docs/mintlify/platform/ads Run Meta and Google ads on better signal with pixel and conversion tracking, after-the-click analytics, attribution, and an AI that works the accounts. You connect your Meta and Google ad accounts, and Sapt becomes the system behind them: cleaner signal going back to the platforms, a clear picture of what happens after the click, and an AI that can help you operate the accounts from everything it already knows. Most accounts don't have an ad problem. They have a signal problem: the platforms optimize toward whatever events they can see, and those events are usually shallow. Sapt's job is to fix what the platforms learn from and show you what's actually working. ## The signal layer The platforms can only optimize for outcomes they receive. Sapt improves that signal: * **Tracking that fires the right events:** not just page views and cheap leads, but qualified leads, bookings, and purchases. Set this up on the [Analytics](/docs/mintlify/analytics/overview) page. * **Conversion feedback:** real outcomes are fed back to each platform's API so it can find more of the people who actually convert. * **First-party data:** served from your own domain, so far less of it is lost to blockers and tracking protection. ## After the click Ad dashboards stop at the click. Sapt picks up where they leave off: * See which campaigns produce qualified leads, booked calls, and revenue, not just clicks and CPL. * Diagnose where the funnel leaks between the ad and the outcome. * Get the explanation in plain words, not another chart to interpret. ## Attribution across channels When Meta and Google both claim the same conversion, you over-count and misread your spend. Sapt ties outcomes back to the click that earned them, so you can see the real split across channels and move budget with confidence. ## AI that helps you run them Because Sapt holds the [memory](/docs/mintlify/platform/memory) of every brand, campaign, and result, an AI assistant connected through the [MCP connector](/docs/mintlify/mcp/overview) can work the accounts with full context: review performance, draft campaigns and creatives, adjust targeting, and prepare changes for your approval. You're never starting from a blank prompt. ## Keep going > [card] [Memory](/docs/mintlify/platform/memory) > > The shared context every campaign and assistant runs from. > [card] [Analytics](/docs/mintlify/analytics/overview) > > Set up first-party tracking and conversion feedback. > [card] [Integrations](/docs/mintlify/platform/integrations) > > Connect Meta, Google Ads, and Google Business Profile. # Billing & projects Source: https://docs.sapt.ai/docs/mintlify/platform/billing How billing maps to your project structure. One parent project pays, and its sub-projects share its plan and credit pool, so you bill from one account. Sapt bills at the **project** level, but a project can have **sub-projects**, and they don't pay separately. One parent project owns the plan and the credit pool; its sub-projects (typically your clients) draw from that same pool. You subscribe once, top up once, and pay from one card, no matter how many client workspaces you run. ## Two kinds of project | | **Parent project** (top-level) | **Sub-project** (a child) | | - | - | - | | Created | On its own | With a `parentProjectId`, for example a client you spin up from a template | | Plan / tier | Owns one (Free, Pro, …) | **Inherits the parent's** | | Credit balance | Holds the pool | **None of its own. Shares the parent's.** | | Subscription, card, invoices | Yes | **None** | | Monthly credit refill | On its own cycle | **None. Refills happen on the parent.** | | Billing screen | Yes | Hidden. Opening it shows a note and sends you back to the dashboard. | A sub-project is just a project with a parent. The relationship is **single-level**: a sub-project can't have its own sub-projects. > [!NOTE] > > Sub-projects share **billing identity, not data.** Each project's CRM records, content, workflows, integrations, and team membership are still its own. Being a member of the parent does **not** automatically grant access to a sub-project. Only the plan and credit pool are shared. ## Credits are one shared pool The parent project holds the credit balance. Whenever any project (the parent or one of its sub-projects) uses a credit-consuming feature such as AI generation, agents, or enrichment, the cost is drawn from that **single parent pool**. There is no separate balance per sub-project. Usage is still **attributed per sub-project**, so you can see how much each client consumed. Every charge draws down the same parent balance, and the monthly refill replenishes that one pool on the parent's billing cycle. > [!WARNING] > > Because it's one shared pool, there is **no per-sub-project spending cap** today. Per-client usage is reporting, not a budget: a busy client draws from the same pool as everyone else. Plan for the parent's total, not per client. ## Plan & entitlements are inherited A sub-project runs on **the parent's plan**. Upgrade the parent to Pro and every sub-project immediately gets Pro entitlements and the larger monthly credit allotment; there's nothing to upgrade on the children. The same is true for custom plans: the parent's entitlements apply across all of its sub-projects. ## Where to manage it Everything billing lives on the **parent (top-level) project**: the subscription and plan, the payment method, invoices, credit balance, top-ups, and the per-client usage breakdown. Open the parent project and go to **Billing**. On a sub-project, the **Billing** sidebar item is hidden, and opening the Billing page directly shows *“Billing is managed by the parent project.”* and sends you back to the dashboard. One place to manage money, however many client workspaces you operate. The exception is an older sub-project that pays for itself through its own client plan: its Billing page shows that plan. ## Good to know * **Single level only.** A sub-project can't have sub-projects. * **Deleting a sub-project** doesn't lose any credits, because it never held a balance. Its past usage stays on the parent's history (shown as a deleted client) so your records stay intact. * **You can't delete a parent** while it still has sub-projects. Remove or reassign the children first. * **Spinning up clients.** Creating a sub-project (and configuring it from a template) over the API automatically attaches it to the parent's billing. See [Building a client onboarding funnel](/docs/mintlify/api/onboarding-funnels). # CMS Source: https://docs.sapt.ai/docs/mintlify/platform/cms How the Sapt CMS holds pages, content, assets and SEO metadata, and what deleting a content item does and does not remove from the asset library. The CMS holds the content and pages your campaigns depend on, especially the bottom-funnel pages a click actually lands on. An ad is only as good as where it sends people, so this lives in the same workspace as the ads and the [memory](/docs/mintlify/platform/memory) behind them. ## What it holds | Type | Examples | | - | - | | **Pages** | Landing and bottom-funnel pages built for conversion, qualification, and booking. | | **Content** | Articles and posts, with the metadata around them. | | **Assets** | Images, files, and media reused across campaigns. | | **SEO metadata** | Titles, descriptions, and structure for search. | ## Built for the bottom funnel Most ad accounts leak after the click. The CMS exists to close that gap: pages designed around the conversion, not a blank template, so the lead the ad earned actually converts. Pair them with [tracking](/docs/mintlify/analytics/overview) and you can see exactly where a page helps or loses people. ## Deletion and media retention Deleting a CMS content item removes its record, but does not delete files it references in the asset library. Use `DELETE /projects/{projectId}/cms/items/{contentItemId}` to delete the record, then `DELETE /projects/{projectId}/assets/{assetId}` to delete a library file when no other content or pending post needs it. The `deleteContent` MCP tool and `delete_cms_content` workflow action also delete only the CMS record. See [CMS and asset APIs](/docs/mintlify/api/cms-assets) for creating, reading, updating, and deleting content and managing library assets. See [Media retention and cleanup](/docs/mintlify/social/cleanup) for the supported social-post cleanup flow and the limits on deleting library files through the API. ## Keep going > [card] [Ads](/docs/mintlify/platform/ads) > > Where the click comes from. > [card] [Analytics](/docs/mintlify/analytics/overview) > > Measure what each page does after the click. # CRM Source: https://docs.sapt.ai/docs/mintlify/platform/crm People, companies, lists and pipeline in the Sapt CRM, where your ad leads land, get qualified and get followed up by your team and your AI. The CRM is where the people your ads bring in actually live. A lead that clicks an ad becomes a record here, with the context to qualify it and the pipeline to move it forward, so spend connects to outcomes instead of disappearing into a form. ## What it holds | Record | What it's for | | - | - | | **People** | Individual contacts: leads, prospects, and customers. | | **Companies** | Organizations, with the people related to them. | | **Lists** | Segments you group for outreach, reporting, or campaigns. | | **Pipeline** | The stages a person moves through, from new lead to won. | Records are structured, so they're equally usable by a teammate in the dashboard and by an AI assistant through the [MCP connector](/docs/mintlify/mcp/overview). ## Why it matters for ads Cheap leads are easy. Qualified ones are the point. Keeping leads in the CRM lets you: * See which campaigns produce leads that actually book and buy, and feed that back as [signal](/docs/mintlify/platform/ads). * Follow up fast and consistently with [workflows](/docs/mintlify/platform/workflows), before intent fades. * Keep every interaction in the account's [memory](/docs/mintlify/platform/memory), so nothing restarts from zero. ## Keep going > [card] [Workflows](/docs/mintlify/platform/workflows) > > Automate qualification, follow-up, and handoff. > [card] [Ads](/docs/mintlify/platform/ads) > > Turn qualified outcomes into better ad signal. # How Sapt works Source: https://docs.sapt.ai/docs/mintlify/platform/how-it-works The whole Sapt model on one page. Connect your Google listing and phone line, Sapt runs the website and front desk, and texts you what needs you. Sapt runs the online side of an auto repair shop. You connect what you already have, Sapt builds from it, and from then on customers get answered and booked while you work. This page is the whole model on one page. ## Connect what you already have | Source | What it gives Sapt | | - | - | | **Google Business Profile** | Your name, hours, services, photos, description and reviews. The website is built from these, and the health score shows what the listing is missing. | | **Phone line** | Missed calls and voicemails on your line become texts: the customer gets one back in seconds, and you get the voicemail transcript. | | **Calendar** | The AI offers real openings and books accepted ones straight in. No calendar connected yet? Sapt keeps the bookings itself until you add one. | ## The front desk answers When a customer texts back, or sends a request from your website, the AI replies like a person at the counter: it answers what they asked, collects only what booking needs, and offers two real openings. When they pick one, it books the appointment and texts you who, when and what for. Some things always come to you instead: a customer who wants a person, a complaint, a change to an existing appointment, or a question about your business the AI cannot answer. Those arrive as a plain text with the rundown, and for business questions your reply goes back to the customer. ## Reviews and the week After a job, a text asks the customer for a review on your own review page. Four or five stars gets walked to Google. Three or fewer opens a private note and texts you to call them. A new bad Google review texts you with a link to reply. Monday morning you get the week: calls answered, requests, bookings, reviews. ## Why it is built this way * **Jobs, not leads.** Everything drives to a booked appointment in your calendar or a rundown on your phone. * **Real numbers.** Counts come from your own line, your own site, your own calendar, in your words. * **A person when it matters.** The AI never guesses on your business and never hides a customer who needs you. ## Keep going > [card] [Your website](/docs/mintlify/website/build-your-website) > > The hosted site built from your Google listing. > [card] [Workflows](/docs/mintlify/platform/workflows) > > The texts and alerts that run the shop. > [card] [CRM](/docs/mintlify/platform/crm) > > Every customer, conversation, and job in one place. > [card] [Quickstart](/docs/mintlify/guides/quickstart) > > Schedule your first post through the Sapt API. # Integrations Source: https://docs.sapt.ai/docs/mintlify/platform/integrations How integrations work in Sapt, where to connect them, and every integration a project can connect today, grouped the way the app shows them. An integration connects one project to a tool it already uses. You connect an account once, and both the dashboard and any AI assistant on the [MCP connector](/docs/mintlify/mcp/overview) can read from it and act through it. For setup steps, one page per integration, see the [Integrations tab](/docs/mintlify/integrations/overview). ## Where you connect them In the web app, open **Project Settings** and then **Connected apps**. Each integration connects one of three ways: * **Sign in with the provider** (OAuth). Sapt opens the provider's consent screen in a popup. * **Paste a key or token** from the provider's dashboard. * **Email code.** Content Rewards sends a six-digit code to your inbox. Onboarding clients programmatically? You can create the same connect link over the API and hand it to your client. See [Connecting integrations via API](/docs/mintlify/api/connect-integrations). ## What you can connect The groups match the sections on the **Connected apps** screen. | Group | Integrations | | - | - | | **Your shop system** | [ShopMonkey](/docs/mintlify/integrations/shopmonkey), [GoHighLevel](/docs/mintlify/integrations/gohighlevel) (moves agency sub-accounts into Sapt) | | **Google** | [Google Business Profile](/docs/mintlify/integrations/google-business-profile), [Google Ads](/docs/mintlify/integrations/google-ads), [Google Analytics](/docs/mintlify/integrations/google-analytics) (GA4 and Search Console), [Google Calendar](/docs/mintlify/integrations/google-calendar), [Google Drive](/docs/mintlify/integrations/google-drive), [Gmail](/docs/mintlify/integrations/gmail), [YouTube](/docs/mintlify/integrations/youtube) | | **Money** | [Stripe](/docs/mintlify/integrations/stripe), [Shopify](/docs/mintlify/integrations/shopify), [QuickBooks Online](/docs/mintlify/integrations/quickbooks), [Whop](/docs/mintlify/integrations/whop) | | **Marketing** | [Meta](/docs/mintlify/integrations/meta) (Facebook and Instagram), [HubSpot](/docs/mintlify/integrations/hubspot), [TikTok](/docs/mintlify/integrations/tiktok), [TikTok Ads](/docs/mintlify/integrations/tiktok-ads), [Content Rewards](/docs/mintlify/integrations/content-rewards) | | **Other** | [WhatsApp](/docs/mintlify/integrations/whatsapp), [Telnyx](/docs/mintlify/integrations/telnyx), [Slack](/docs/mintlify/integrations/slack), [Zoho Mail and Zoho Admin](/docs/mintlify/integrations/zoho-mail), [Cal.com](/docs/mintlify/integrations/cal-com), [Calendly](/docs/mintlify/integrations/calendly), [Close CRM](/docs/mintlify/integrations/close), [Higgsfield](/docs/mintlify/integrations/higgsfield) | Two connections live outside that screen: * **Cloudflare DNS access**, under **Project Settings** > **Domains**, so Sapt can add your domain's records. See [Cloudflare](/docs/mintlify/integrations/cloudflare). * **The Sapt connector for Claude and ChatGPT**, which works the other way round: your AI assistant connects to Sapt. See [Claude and ChatGPT](/docs/mintlify/integrations/claude-and-chatgpt). Your phone line needs no integration: Sapt provides the number. Telnyx is only for shops that bring their own Telnyx account. ## Keep going > [card] [All integrations](/docs/mintlify/integrations/overview) > > Step-by-step setup for every integration. > [card] [Connect over the API](/docs/mintlify/api/connect-integrations) > > Create connect links and submit API keys from your own code. > [card] [MCP connector](/docs/mintlify/mcp/overview) > > Use connected tools from Claude, ChatGPT, and agents. # Memory Source: https://docs.sapt.ai/docs/mintlify/platform/memory One shared memory of every brand, campaign and result in a Sapt project, so your team and your AI work from context instead of starting from scratch. Memory is what makes Sapt more than a pile of integrations. Every brand detail, campaign, and result lives in one place, and everyone who works the account (a teammate or an AI assistant) starts already knowing the business. The promise is simple: **run ads from memory, not from scratch.** No re-explaining the brand to every new hire or every new chat. ## A Project is the memory for one account In Sapt, a **Project** is the shared memory for a single brand, client, or ad account. It holds everything that belongs together: | In the memory | Examples | | - | - | | **Brand context** | Voice, offers, audience, differentiators, and the claims to avoid | | **Goals** | What this account is trying to improve, and how success is measured | | **Campaign history** | What's been run, what worked, and what didn't | | **Results** | Performance and outcomes after the click, not just clicks | | **Records & notes** | People, companies, assets, and operating knowledge | People often call a Project a workspace. Same thing: the home where one account's work and context live. ## Everyone starts with context The memory is read and written by your whole team and by any AI assistant connected through the [MCP connector](/docs/mintlify/mcp/overview). That means: * A new assistant answers in your brand voice on the first message. * Onboarding a teammate doesn't mean re-teaching the account. * An agent can recall past decisions, results, and account history across conversations, not just what's in the current chat. ## How the memory gets filled Memory starts at intake and grows as you work. Good onboarding turns scattered information into structured context: * **Business details:** services, locations, and account basics. * **Brand context:** voice, audience, offers, proof, and visual guidance. * **Goals & approvals:** what to improve, and who signs off on customer-facing work. * **Assets:** logos, URLs, examples, and existing content. Keep it practical. The goal isn't to capture every possible detail; it's to capture the details that make the next campaign better. ## Keep going > [card] [Ads](/docs/mintlify/platform/ads) > > How memory powers running your Meta and Google ads. > [card] [CRM](/docs/mintlify/platform/crm) > > People, companies, and pipeline inside the memory. > [card] [Workflows](/docs/mintlify/platform/workflows) > > Turn memory into repeatable, reviewable work. # Sapt Documentation Source: https://docs.sapt.ai/docs/mintlify/platform/overview Sapt runs the website, Google listing, reviews and AI front desk for independent auto repair shops. Here is what it covers and how to connect. Sapt is the front desk and marketing team for independent auto repair shops, at one flat monthly price. It does two jobs: **Your website and your Google listing, handled.** A website built from your own Google listing, a health score that shows what the listing is missing and fixes it, and a review page that sends happy customers to Google and brings unhappy ones to you privately. **Customers get answered and booked.** A missed call gets a text back within seconds. A website request gets its first text the same way. The AI answers like your front desk, offers real openings from your calendar, books the appointment, and texts you who, when and what for. When it cannot answer a question about your business, it asks you privately and relays your answer. For developers and AI assistants, the same workspace is available through MCP and a REST API, so people and agents work from the same records. New here? **[How Sapt works](/docs/mintlify/platform/how-it-works)** shows the whole model on one page. ## Connect with MCP Sapt connects to AI assistants through one MCP connector URL: ```txt theme={null} https://mcp.sapt.ai/mcp ``` In Claude, add Sapt as a custom connector and paste that URL. In ChatGPT, enable Developer mode, create an app, paste the same URL, and set authentication to OAuth. Then sign in with your Sapt account, and the assistant can use the tools available to your Project. ## Connect with REST Prefer to call Sapt from your own code? Use the REST API with an API key: ```bash theme={null} curl https://api.sapt.ai/projects/$PROJECT_ID/agents \ -H "Authorization: ApiKey sapt_your_api_key" ``` ## What Sapt covers | Capability | The short version | | - | - | | **Front desk** | Missed calls and website requests get a text back in seconds; the AI answers, offers real openings, and books them into your calendar | | **Website** | A hosted site built from your Google listing, live before you pay | | **Google listing** | A health score for your profile, fixes from one screen, hours and reviews managed in one place | | **Reviews** | A review page that sends happy customers to Google and brings unhappy ones to you privately, plus a text when a bad review lands | | **CRM** | Every customer, conversation, and job in one place | | **Workflows** | The texts that run the shop: missed call, website request, booking alerts, bad review, the weekly report | | **Analytics** | First-party tracking that shows the calls, texts and bookings your site produced | | **Integrations** | Google Business Profile, Google Calendar, phone lines, email, Meta, and more | | **API access** | MCP tools and REST endpoints for agents, scripts, and internal apps | ## Why shops use Sapt **Every customer hears back.** The call you missed at 2 PM is a text at 2 PM, not a voicemail nobody checks. **Real appointments, not leads.** The AI books into your actual calendar and texts you the booking. You see jobs, not click counts. **Your reputation, guarded.** Happy customers get walked to Google. Unhappy ones reach you first, privately, with their number. **You stay in control.** Questions the AI cannot answer come to you by text, and your answer goes back to the customer. Nothing pretends to be you without you. ## Next steps > [card] [How Sapt works](/docs/mintlify/platform/how-it-works) > > The whole model on one page, before any setup. > [card] [Your website](/docs/mintlify/website/build-your-website) > > The hosted site built from your Google listing. > [card] [Workflows](/docs/mintlify/platform/workflows) > > The texts and alerts that run the shop. > [card] [Connect Claude or ChatGPT](/docs/mintlify/mcp/connect) > > Connect Sapt to Claude, ChatGPT, or your own app. # Starter website Source: https://docs.sapt.ai/docs/mintlify/platform/starter-website Clone a ready-made Next.js site that is already wired into Sapt. Analytics, lead capture and a booking funnel work from a single Project ID. > [!NOTE] > > Running a shop and want a website? You don't need this page. Sapt builds and hosts one for you in the app: see [Build your website](/docs/mintlify/website/build-your-website). This page is for developers who want their own codebase. **[sample-website](https://github.com/sapt-ai-org/sample-website)** is a public, MIT-licensed Next.js starter that already has Sapt wired in: first-party analytics, lead capture, and a booking funnel all light up from a **single Project ID**. Clone it, point it at your project, rename it, restyle it, and make it the client's. ## Quick start ```bash theme={null} git clone https://github.com/sapt-ai-org/sample-website.git cd sample-website pnpm install # Point it at your project. This one value is the whole setup. echo "NEXT_PUBLIC_SAPT_PROJECT_ID=your_project_id" > .env.local pnpm dev ``` Grab your Project ID from the Sapt dashboard. That's the only required value: no SDK, no backend to run, and no API key needed to get the core experience running. The dev server runs on port 2001. ## What the Project ID powers `NEXT_PUBLIC_SAPT_PROJECT_ID` is the one knob that turns the site live. With just that set, you get: | Feature | What it does | | - | - | | **Analytics** | The Sapt tracking script records pageviews, clicks, scroll depth and every funnel step. See [First-party analytics](/docs/mintlify/analytics/overview). | | **Lead capture** | Completed bookings are saved as records of a `booking` type in your Sapt CRM. | | **Booking funnel** | Service, date, time, details, review, confirm. | > [!WARNING] > > Create the `booking` record type in your project first, or bookings can't save. The repo's `SAPT_SETUP_GUIDE.md` has the schema. ## Optional: CMS content Add an API key to pull section copy from the Sapt CMS instead of hardcoding it: ```bash theme={null} SAPT_API_KEY=sapt_your_api_key # server-side reads for CMS content ``` Then set `useCmsContent: true` in `src/config/site-config.ts`. With the key and the flag set, non-developers can update the site's copy from the Sapt dashboard. Leave them out and the site runs on its built-in copy. ## Customizing | Knob | Where | | - | - | | **Site content** | `src/config/site-config.ts`: company name, tagline, phone, hero copy, and the `theme` and `useCmsContent` flags. | | **Brand colors** | The `@theme` block in `src/app/globals.css`. | | **Worker name (per client)** | `wrangler.jsonc` defaults the deploy name to `sample-website`. Rename it per client before you deploy. | | **Styling** | Standard Next.js + Tailwind. Restyle freely; it's your repo. | ## Keep going > [card] [First-party analytics](/docs/mintlify/analytics/overview) > > The tracking the starter already wires in, and how to serve it from your own domain. > [card] [CMS](/docs/mintlify/platform/cms) > > Manage the site's content from Sapt once you add an API key. > [card] [Onboarding funnels](/docs/mintlify/api/onboarding-funnels) > > Spin up a configured client project for each site over the REST API. # Workflows Source: https://docs.sapt.ai/docs/mintlify/platform/workflows Turn repeatable account work like lead follow-up, review replies and reporting into Sapt workflows that still keep a person in the loop. Workflows handle the repeatable work around your ads without losing context or control. A workflow starts from something that happens in the account, uses the [memory](/docs/mintlify/platform/memory), and produces a useful next step. ## Common workflows | Workflow | Example | | - | - | | **Lead follow-up** | A new ad lead is enriched, qualified, and queued for a fast reply. | | **Review management** | A new Google review gets a suggested reply for approval. | | **Reporting** | Performance is pulled together into a plain-language summary for the team. | | **Content planning** | A brief turns into draft tasks tied to the right keywords. | ## Review before action Not every step should send, publish, or change something on its own. For anything that touches customers, budgets, reputation, or public channels, use a **review step**: Sapt does the work and a person approves before it goes live. ## How to think about a workflow Start from work your team already does by hand: 1. What starts it? 2. What information does it need from the memory? 3. What decision has to be made? 4. What should happen automatically? 5. What should require approval? Once those are clear, building it is the easy part. ## Keep going > [card] [CRM](/docs/mintlify/platform/crm) > > Where leads land and follow-up happens. > [card] [Memory](/docs/mintlify/platform/memory) > > The context every workflow runs on. # Connected accounts Source: https://docs.sapt.ai/docs/mintlify/social/accounts List a project's connected social accounts and find the socialAccountId that every Sapt posting, scheduling and analytics call needs. Every posting, scheduling and analytics call is addressed to one connected social account. This is where you get its id. ## List the accounts ```bash cURL theme={null} curl https://api.sapt.ai/socials/accounts/$PROJECT_ID \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` ```typescript TypeScript theme={null} const res = await fetch( `https://api.sapt.ai/socials/accounts/${projectId}`, { headers: { Authorization: `ApiKey ${process.env.SAPT_API_KEY}` } } ) const { data } = await res.json() ``` ```python Python theme={null} import os, requests res = requests.get( f"https://api.sapt.ai/socials/accounts/{project_id}", headers={"Authorization": f"ApiKey {os.environ['SAPT_API_KEY']}"}, ) accounts = res.json()["data"]["accounts"] ``` ```json Response theme={null} { "success": true, "data": { "accounts": [ { "id": "9f1c2f7a-4c9e-4a1d-9d0e-8a5b6c7d8e9f", "platform": "instagram", "platformAccountId": "17841400000000000", "username": "ridgelineauto", "displayName": "Ridgeline Auto", "profilePictureUrl": "https://…/pic.jpg", "profileUrl": "https://instagram.com/ridgelineauto", "followersCount": 12840, "isActive": true, "tokenExpiresAt": "2026-11-04T09:12:00Z", "createdAt": "2026-03-11T18:22:41Z" } ] } } ``` ## The fields that matter | Field | Why you care | | - | - | | `id` | **This is the `socialAccountId`** every posting and analytics endpoint takes. A Sapt UUID, not a platform id. | | `platform` | Which platform this account posts to. Pass the same value as `platform` when creating a post. | | `platformAccountId` | The platform's own id, such as an Instagram Business Account id or a Facebook Page id. Used by comment and analytics endpoints that address platform objects. | | `isActive` | `false` means the connection is disabled. Posting to it will fail. | | `tokenExpiresAt` | When the stored credential lapses. Past this, publishing fails until the account is reconnected in the dashboard. | > [!WARNING] > > `id` and `platformAccountId` are different values and are not interchangeable. > Posting endpoints take `id`; comment and engagement endpoints that address a > platform object (a post, a media item, a comment) take platform-native ids. ## Before you publish Two fields decide whether a publish will succeed. Check them first: ```typescript theme={null} const usable = accounts.filter( (a) => a.isActive && (a.tokenExpiresAt === null || new Date(a.tokenExpiresAt) > new Date()) ) ``` An account that fails either check needs to be reconnected from the Sapt dashboard. The API cannot refresh a lapsed grant on its own. # Media retention and cleanup Source: https://docs.sapt.ai/docs/mintlify/social/cleanup Delete clips from Sapt after they publish, and understand which files each delete removes and which stay in the asset library. For automated clip publishing with short retention, use the social streaming upload, attach its handle when creating the post, and delete the Sapt post after confirmed publication and your retention period. This flow stores files with the post so post deletion can remove them. > [!WARNING] > > Media imported into the asset library has a separate lifecycle. Deleting a post, its media > attachment, or a CMS content item does not delete the referenced library file. Delete it > separately with `DELETE /projects/{projectId}/assets/{assetId}` after every consumer has finished > using it. This call deletes the file even if other records still reference it. ## What each delete operation removes | Operation | Removes | Keeps | | - | - | - | | `DELETE /socials/posts/{projectId}/{postId}` | Sapt post record, media attachments, and files owned by that post, including its uploaded cover | Referenced library assets and the post already published on the social platform | | `DELETE /socials/posts/{projectId}/{postId}/media/{mediaId}` | One media attachment and its file when owned by that post | The Sapt post, referenced library assets, and the published platform post | | `DELETE /projects/{projectId}/cms/items/{contentItemId}`, MCP `deleteContent`, or workflow `delete_cms_content` | CMS content record | Referenced library assets and scheduled-post records | | `DELETE /projects/{projectId}/assets/{assetId}` | Library file and asset record | Content and post records; references to that file can become unavailable | These IDs are different: a CMS content ID, Sapt scheduled-post ID, media attachment ID, and library asset ID identify different resources. Use the `data.post.id` returned by the social create-post endpoint for post cleanup. ## Delete a clip 24 hours after publication 1. [Stream the clip](/docs/mintlify/social/media#streaming-upload) with `PUT /socials/media/{projectId}/stream-upload`. Save the returned `data.handle`. 2. [Create the post](/docs/mintlify/social/scheduling#schedule-a-post) with `POST /socials/posts/{projectId}`, passing the handle in `uploadedHandles`. Save `data.post.id` in your cleanup job. 3. [Track delivery](/docs/mintlify/social/publishing#track-delivery) until `status` is `published`. Calculate the cleanup time from `publishedAt`, not `scheduledFor` or the time you submitted the post. If `publishedAt` is missing, investigate before deleting. 4. At least 24 hours after `publishedAt`, delete the Sapt post. Save any permalink or post details your application needs before deletion. Check publication: ```bash theme={null} curl --fail-with-body \ "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID/status" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` The response's `data` contains `status`, `publishedAt`, `permalink`, and `errorMessage`. A queued or processing post is not ready for cleanup. Keep failed posts if you intend to retry publication. After the retention period, delete: ```bash theme={null} curl --fail-with-body -X DELETE \ "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` A successful deletion returns HTTP `200`: ```json theme={null} { "success": true } ``` This leaves the published social-platform post in place. Sapt does not automatically apply a 24-hour retention policy; your application schedules this cleanup. If you also created a separate CMS content item, removing the scheduled post does not delete that CMS item. ### Handle cleanup failures Record the delete response and keep failed cleanup jobs visible. A `404` says the post record is missing; it does not verify that its files were removed. If a delete fails or times out and a later attempt returns `404`, treat storage cleanup as unverified and contact support with the project ID, post ID, and original file URLs. Do not silently mark that sequence as successful cleanup. ## Clips saved by URL into the library The Sapt MCP `save` tool accepts media URLs and copies them into the asset library. The post then references those library assets. This save interface has no reference-only option, and the deletion calls above leave those files intact. For future clips that should follow the post's lifetime, use the streaming flow above. If your source is a URL, your application can download the clip and upload its bytes through the streaming endpoint. For URL-imported clips, your cleanup job can keep using the library: 1. Store each clip's library asset ID before deleting its content or post records. If you only have the stored URL, [list library assets](/docs/mintlify/api/cms-assets#find-library-assets) and match the returned `url`. Use the asset's `id`, not the media attachment ID. 2. Wait until all destinations that use the clip have published and the retention period has passed. Keep files needed by pending posts, retries, or other content. 3. Delete the scheduled-post record with the social DELETE endpoint above. Delete its CMS item too if your pipeline created one: ```bash theme={null} curl --fail-with-body -X DELETE \ "https://api.sapt.ai/projects/$PROJECT_ID/cms/items/$CONTENT_ITEM_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` 4. Delete the library asset: ```bash theme={null} curl --fail-with-body -X DELETE \ "https://api.sapt.ai/projects/$PROJECT_ID/assets/$ASSET_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Asset deletion requires `assets:manage` and returns HTTP `200` with `{"deletedCount":1}`, or `{"deletedCount":0}` when already absent from this project. Retry a failed asset deletion using the same ID. CMS deletion returns `404` for an already-missing item; that does not replace the separate asset-delete call. These calls do not retract the published platform post. There is no dedicated library-delete workflow action; API clients can call the REST endpoint directly. See [CMS and asset APIs](/docs/mintlify/api/cms-assets) for permissions, pagination, and response details. # Endpoint index Source: https://docs.sapt.ai/docs/mintlify/social/endpoint-index Every organic social endpoint on the Sapt public API in one list: accounts, media, posts, comments, engagement and analytics. Every organic social endpoint the public API exposes: **27** of them. Ads endpoints live under `/socials/ads/…` and are listed in the [API reference](/api-reference/socials/create-post) under **Ads**. ## Accounts | Method | Path | What it does | | - | - | - | | `GET` | `/socials/accounts/{projectId}` | List connected social accounts | ## Media | Method | Path | What it does | | - | - | - | | `PUT` | `/socials/media/{projectId}/stream-upload` | Stream media upload | | `DELETE` | `/socials/posts/{projectId}/{postId}/media/{mediaId}` | Delete post media | ## Posts: create, schedule, publish | Method | Path | What it does | | - | - | - | | `POST` | `/socials/posts/{projectId}` | Create post | | `GET` | `/socials/posts/{projectId}` | List scheduled posts | | `GET` | `/socials/posts/{projectId}/{postId}` | Get scheduled post | | `PUT` | `/socials/posts/{projectId}/{postId}` | Update scheduled post | | `DELETE` | `/socials/posts/{projectId}/{postId}` | Delete scheduled post | | `POST` | `/socials/posts/{projectId}/{postId}/publish` | Publish post immediately | | `GET` | `/socials/posts/{projectId}/{postId}/status` | Get post status | ## Comments | Method | Path | What it does | | - | - | - | | `DELETE` | `/socials/comments/facebook/{projectId}/{commentId}` | Delete Facebook comment | | `POST` | `/socials/comments/facebook/{projectId}/{commentId}/hide` | Hide/unhide Facebook comment | | `POST` | `/socials/comments/facebook/{projectId}/{commentId}/reply` | Reply to Facebook comment | | `GET` | `/socials/comments/facebook/{projectId}/{postId}` | Get Facebook comments | | `DELETE` | `/socials/comments/instagram/{projectId}/{commentId}` | Delete Instagram comment | | `POST` | `/socials/comments/instagram/{projectId}/{commentId}/hide` | Hide/unhide Instagram comment | | `POST` | `/socials/comments/instagram/{projectId}/{commentId}/reply` | Reply to Instagram comment | | `GET` | `/socials/comments/instagram/{projectId}/{mediaId}` | Get Instagram comments | ## Engagement | Method | Path | What it does | | - | - | - | | `POST` | `/socials/engagement/facebook/{projectId}/{postId}/comments` | Create comment on Facebook post | | `POST` | `/socials/engagement/facebook/{projectId}/{postId}/like` | Like Facebook post as Page | | `DELETE` | `/socials/engagement/facebook/{projectId}/{postId}/like` | Unlike Facebook post as Page | | `DELETE` | `/socials/engagement/facebook/{projectId}/{postId}/published` | Delete published Facebook post | | `POST` | `/socials/engagement/instagram/{projectId}/{mediaId}/comments` | Create comment on Instagram post | ## Analytics | Method | Path | What it does | | - | - | - | | `GET` | `/socials/analytics/facebook/{projectId}/{accountId}` | Get Facebook Page analytics | | `GET` | `/socials/analytics/facebook/{projectId}/{accountId}/posts` | Get Facebook Page posts analytics | | `GET` | `/socials/analytics/instagram/{projectId}/{accountId}` | Get Instagram account analytics | | `GET` | `/socials/analytics/instagram/{projectId}/{accountId}/media` | Get Instagram media analytics | # Comments and engagement Source: https://docs.sapt.ai/docs/mintlify/social/engagement Read, reply to, hide and delete comments on published Instagram and Facebook posts, act as the Page, and read account analytics with the Sapt API. Once a post is live, these endpoints work against the **platform's** ids (a Facebook Page post id, an Instagram media id, a comment id), not Sapt UUIDs. Get them from the `permalink`/platform payloads or from [post analytics](/api-reference/socials/get-instagram-media-analytics). ## Comments | Action | Instagram | Facebook | | - | - | - | | List | `GET /socials/comments/instagram/{projectId}/{mediaId}` | `GET /socials/comments/facebook/{projectId}/{postId}` | | Reply | `POST /socials/comments/instagram/{projectId}/{commentId}/reply` | `POST /socials/comments/facebook/{projectId}/{commentId}/reply` | | Hide / unhide | `POST /socials/comments/instagram/{projectId}/{commentId}/hide` | `POST /socials/comments/facebook/{projectId}/{commentId}/hide` | | Delete | `DELETE /socials/comments/instagram/{projectId}/{commentId}` | `DELETE /socials/comments/facebook/{projectId}/{commentId}` | Read a post's comments: ```bash theme={null} curl "https://api.sapt.ai/socials/comments/instagram/$PROJECT_ID/$MEDIA_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Reply as the account: ```bash theme={null} curl -X POST \ "https://api.sapt.ai/socials/comments/instagram/$PROJECT_ID/$COMMENT_ID/reply" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"message": "Thanks for the kind words!"}' ``` > [!NOTE] > > Hiding is reversible and invisible to the commenter. Deleting is permanent and > cannot be undone through the platform APIs. Prefer hide for moderation. ## Engagement Acting as the Page or account on a published post: | Action | Endpoint | | - | - | | Comment on a Facebook post | `POST /socials/engagement/facebook/{projectId}/{postId}/comments` | | Comment on an Instagram post | `POST /socials/engagement/instagram/{projectId}/{mediaId}/comments` | | Like a Facebook post as the Page | `POST /socials/engagement/facebook/{projectId}/{postId}/like` | | Unlike | `DELETE /socials/engagement/facebook/{projectId}/{postId}/like` | | Delete a published Facebook post | `DELETE /socials/engagement/facebook/{projectId}/{postId}/published` | > [!WARNING] > > `DELETE …/published` removes the post from Facebook itself. It is not the same > as deleting a scheduled post from the Sapt calendar, and it cannot be undone. ## Analytics | Scope | Endpoint | | - | - | | Instagram account | `GET /socials/analytics/instagram/{projectId}/{accountId}` | | Instagram media | `GET /socials/analytics/instagram/{projectId}/{accountId}/media` | | Facebook Page | `GET /socials/analytics/facebook/{projectId}/{accountId}` | | Facebook Page posts | `GET /socials/analytics/facebook/{projectId}/{accountId}/posts` | `accountId` here is the Sapt account `id` from [List connected social accounts](/api-reference/socials/list-connected-social-accounts). # Uploading media Source: https://docs.sapt.ai/docs/mintlify/social/media Attach images and video to a Sapt social post: stream large files to the upload endpoint, or inline small images as base64 on the create call. There are two ways to attach media to a post. Pick by size. | | Streaming upload | Inline base64 | | - | - | - | | **How** | `PUT /socials/media/{projectId}/stream-upload`, then pass the handle | `mediaItems` on the create-post body | | **Good for** | Video, anything over a few MB | Small images | | **Limit** | No size check at upload. The platform's own limits apply when it publishes. | 10 MB per image, 100 MB per video, and bounded by request memory, so keep it small | > [!TIP] > > Default to the streaming upload. Base64 inflates a payload by about a third and > the whole thing has to be held in memory at once, so it stops working well > before the documented size limits. ## Streaming upload Send the raw bytes as the request body with the file's own `Content-Type` (`image/*` or `video/*`). Not multipart, not base64: the bytes themselves. ```bash cURL theme={null} curl -X PUT \ "https://api.sapt.ai/socials/media/$PROJECT_ID/stream-upload?filename=reel.mp4" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: video/mp4" \ --data-binary @reel.mp4 ``` ```typescript TypeScript theme={null} import { createReadStream, statSync } from 'node:fs' const res = await fetch( `https://api.sapt.ai/socials/media/${projectId}/stream-upload?filename=reel.mp4`, { method: 'PUT', headers: { Authorization: `ApiKey ${process.env.SAPT_API_KEY}`, 'Content-Type': 'video/mp4', 'Content-Length': String(statSync('reel.mp4').size), }, body: createReadStream('reel.mp4'), duplex: 'half', } ) const { data } = await res.json() const handle = data.handle // → uploadedHandles on create-post ``` ```python Python theme={null} with open("reel.mp4", "rb") as f: res = requests.put( f"https://api.sapt.ai/socials/media/{project_id}/stream-upload", params={"filename": "reel.mp4"}, headers={ "Authorization": f"ApiKey {api_key}", "Content-Type": "video/mp4", }, data=f, ) handle = res.json()["data"]["handle"] ``` ```json Response theme={null} { "success": true, "data": { "handle": { "stagingId": "stg_01JQ…", "ext": "mp4" }, "preview": { "r2Url": "https://assets.sapt.ai/staging/stg_01JQ….mp4", "contentType": "video/mp4", "sizeBytes": 18446721 } } } ``` Pass the whole `handle` object (both fields) in `uploadedHandles` when you create the post: ```json theme={null} { "socialAccountId": "9f1c2f7a-…", "platform": "instagram", "mediaType": "REELS", "caption": "Behind the scenes.", "uploadedHandles": [{ "stagingId": "stg_01JQ…", "ext": "mp4" }], "scheduledFor": "2026-09-10T15:00:00Z", "timezone": "America/New_York" } ``` `preview.r2Url` is a real URL you can show in a composer before the post exists. It is a staging location, not the published permalink. ## Inline base64 For small images, skip the upload round trip: ```json theme={null} { "socialAccountId": "9f1c2f7a-…", "platform": "instagram", "mediaType": "IMAGE", "caption": "Morning light.", "mediaItems": [ { "base64": "iVBORw0KGgoAAAANSUhEUg…", "filename": "morning.jpg", "mimeType": "image/jpeg" } ], "publishNow": true } ``` Send the base64 payload only, with no `data:image/jpeg;base64,` prefix. ## Carousels Order is the order you supply. Sources are concatenated as `uploadedHandles` then `mediaItems`, so don't split one carousel across both unless you want that ordering. ```json theme={null} { "mediaType": "CAROUSEL", "uploadedHandles": [ { "stagingId": "stg_a…", "ext": "jpg" }, { "stagingId": "stg_b…", "ext": "jpg" }, { "stagingId": "stg_c…", "ext": "jpg" } ] } ``` ## Video covers Pass `coverImage` to choose a video's thumbnail. Same base64 shape as `mediaItems`: ```json theme={null} { "mediaType": "REELS", "uploadedHandles": [{ "stagingId": "stg_01JQ…", "ext": "mp4" }], "coverImage": { "base64": "iVBORw0KGgo…", "filename": "cover.jpg", "mimeType": "image/jpeg" } } ``` ## Validation The item count is checked for every post before it is accepted (for example, an Instagram carousel takes 2 to 10 items). Inline `mediaItems` are also checked against the target platform and `mediaType` (dimensions, duration, and file size). A rejection comes back as `400` naming the offending item: ```json theme={null} { "error": { "code": "BAD_REQUEST", "message": "Media 2: video must be at most 60 seconds for STORIES" } } ``` Streamed files are not inspected when you create the post. If the platform rejects one, the post moves to `failed` and `errorMessage` says why. ## Removing media from a post While a post is still editable, drop one item without touching the rest: ```bash theme={null} curl -X DELETE \ "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID/media/$MEDIA_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` `mediaId` comes from the `media[]` array on the post. This removes the attachment and deletes its stored file when the file belongs to that post. An attachment that references the asset library is removed, but the library file stays. For a clip pipeline that removes files after publication, see [Media retention and cleanup](/docs/mintlify/social/cleanup). # Social publishing Source: https://docs.sapt.ai/docs/mintlify/social/overview Schedule and publish organic posts to Instagram, Facebook, TikTok, YouTube and Google Business Profile through one set of Sapt API endpoints. Sapt publishes organic content to **Instagram, Facebook, TikTok, YouTube and Google Business Profile** through one set of endpoints. You pick a connected account, attach media, and either schedule the post or publish it now. The platform-specific work happens behind the API. ## The shape of it **1. Find an account** [`GET /socials/accounts/{projectId}`](/api-reference/socials/list-connected-social-accounts) returns every connected account. Its `id` is the `socialAccountId` every other call takes. **2. Stage the media** Stream bytes to [`PUT /socials/media/{projectId}/stream-upload`](/api-reference/socials/stream-media-upload) and keep the returned handle. Small files can go inline as base64 instead. **3. Create the post** [`POST /socials/posts/{projectId}`](/api-reference/socials/create-post) with the account, caption, media type and either `scheduledFor` or `publishNow: true`. **4. Watch it land** [`GET /socials/posts/{projectId}/{postId}/status`](/api-reference/socials/get-post-status) until it reaches `published`, or `failed` with a reason. ## Platforms | Platform | `platform` value | | - | - | | Instagram | `instagram` | | Facebook | `facebook` | | TikTok | `tiktok` | | YouTube | `youtube` | | Google Business Profile | `google_business` | These five are the only platforms with a working publishing adapter. Threads, X, LinkedIn, Pinterest, Reddit and Snapchat are not supported for publishing. ## Media types `mediaType` describes the shape of the post. Not every platform accepts every shape, and the API checks the combination before it accepts the post. | `mediaType` | Use for | | - | - | | `IMAGE` | A single image post. | | `PHOTO` | A single photo (Facebook's vocabulary for the same thing). | | `VIDEO` | A standard video post. | | `REELS` | A vertical short-form video. | | `CAROUSEL` | Multiple images or videos in one post. | | `STORIES` | A story. It follows the same schedule rules as any other post. | | `LINK` | A link post with no uploaded media. Pass `linkUrl`. | ## Post lifecycle A post's `status` moves through a small state machine: ``` scheduled ──► queued ──► publishing ──► published (scheduled post) draft ──────► queued ──► publishing ──► published (publish now, async) draft ──────► uploading ─────────────► published (publish now, sync) any ────────────────────────────────► failed ``` You can still edit a post while its status is `draft`, `scheduled`, `queued` or `failed`. Once it is `uploading` or `publishing` the platform owns it, and `published` is live. ## Scheduling window `scheduledFor` must be **at least 10 minutes** and **at most 75 days** in the future. That mirrors what the upstream platforms accept, so the API rejects an out-of-range time immediately rather than letting the platform reject it after the media has already uploaded. > [card] [Connected accounts](/docs/mintlify/social/accounts) > [card] [Uploading media](/docs/mintlify/social/media) > [card] [Scheduling posts](/docs/mintlify/social/scheduling) > [card] [Publishing now](/docs/mintlify/social/publishing) # Publishing now Source: https://docs.sapt.ai/docs/mintlify/social/publishing Publish a social post immediately with the Sapt API, track delivery until it is live, and retry a failed post without double-posting. ## Publish on creation Set `publishNow: true` and omit `scheduledFor`: ```json theme={null} { "socialAccountId": "9f1c2f7a-…", "platform": "instagram", "mediaType": "STORIES", "caption": "Live now.", "uploadedHandles": [{ "stagingId": "stg_01JQ…", "ext": "mp4" }], "publishNow": true, "timezone": "UTC" } ``` ## Publish something already on the calendar ```bash theme={null} curl -X POST \ "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID/publish" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` This bypasses `scheduledFor` and sends the post now. The response's `data.dispatched` is `queued` or `sync`; a `sync` publish also returns the `permalink`. ## Track delivery Publishing is not always synchronous: media has to be uploaded to the platform and processed. Poll for the outcome: ```bash theme={null} curl "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID/status" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` ```typescript theme={null} async function waitForPublish(projectId: string, postId: string) { const terminal = new Set(['published', 'failed']) for (let attempt = 0; attempt < 40; attempt++) { const res = await fetch( `https://api.sapt.ai/socials/posts/${projectId}/${postId}/status`, { headers: { Authorization: `ApiKey ${process.env.SAPT_API_KEY}` } } ) const { data } = await res.json() if (terminal.has(data.status)) return data // Back off: platform video processing routinely takes minutes. await new Promise((r) => setTimeout(r, Math.min(2000 * 2 ** attempt, 30_000))) } throw new Error('Timed out waiting for publish') } ``` When it lands, `status` is `published` and `permalink` points at the live post. ## When it fails A failure sets `status: "failed"` and puts the reason in `errorMessage`: ```json theme={null} { "success": true, "data": { "status": "failed", "errorMessage": "Instagram rejected the media: aspect ratio must be between 4:5 and 1.91:1", "permalink": null } } ``` Retry by calling **publish** again. Publishing a `failed` post re-runs delivery from the failed state. There is no separate retry endpoint. ```bash theme={null} curl -X POST \ "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID/publish" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` > [!WARNING] > > Check `permalink` before retrying. If a post reached the platform but Sapt > failed to record the result, it will be `failed` with a non-null `permalink`, > and retrying that one double-posts. Fix the underlying cause (usually media that > violates a platform rule) before retrying a genuine failure. ## Two publish paths Which one runs is an implementation detail, but it explains the statuses you'll see: * **Async (queued):** `draft → queued → publishing → published`. The default for most publishes. * **Sync fallback:** `draft → uploading → published`. The request holds until the platform responds. Either way, `published` is the only status that means it is live, and `failed` is the only other terminal state. # Scheduling posts Source: https://docs.sapt.ai/docs/mintlify/social/scheduling Put a social post on the Sapt calendar with the API, then list, edit, move, save as a draft, or cancel it before it goes out. ## Schedule a post Give it a `scheduledFor` and a `timezone` instead of `publishNow`. ```bash cURL theme={null} curl -X POST "https://api.sapt.ai/socials/posts/$PROJECT_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "socialAccountId": "9f1c2f7a-4c9e-4a1d-9d0e-8a5b6c7d8e9f", "platform": "instagram", "mediaType": "REELS", "caption": "New drop, Friday.", "uploadedHandles": [{ "stagingId": "stg_01JQ…", "ext": "mp4" }], "scheduledFor": "2026-09-11T14:00:00Z", "timezone": "America/New_York" }' ``` ```typescript TypeScript theme={null} const res = await fetch(`https://api.sapt.ai/socials/posts/${projectId}`, { method: 'POST', headers: { Authorization: `ApiKey ${process.env.SAPT_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ socialAccountId, platform: 'instagram', mediaType: 'REELS', caption: 'New drop, Friday.', uploadedHandles: [handle], scheduledFor: '2026-09-11T14:00:00Z', timezone: 'America/New_York', }), }) const { data } = await res.json() console.log(data.post.id, data.post.status) // → "scheduled" ``` ### The scheduling window `scheduledFor` must land **between 10 minutes and 75 days from now**. Outside that range the API returns `400` immediately, rather than uploading your media and letting the platform reject it afterwards. `timezone` is an IANA name (`America/New_York`, `Europe/Berlin`). It does not shift `scheduledFor`, which is an absolute instant. It records the timezone the post was authored in so the calendar renders the time a person meant. ## List the calendar ```bash theme={null} curl "https://api.sapt.ai/socials/posts/$PROJECT_ID?status=scheduled" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` | Query | Effect | | - | - | | `status` | Filter to one status: `draft`, `scheduled`, `queued`, `published`, `failed`, … | | `startDate` / `endDate` | Restrict to a window, by `scheduledFor`. | | `accountId` | Only posts for one connected account. | ## Edit a scheduled post ```bash theme={null} curl -X PUT "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "caption": "New drop, Friday 9am.", "scheduledFor": "2026-09-11T13:00:00Z" }' ``` Editable fields are `caption`, `scheduledFor`, `timezone` and `status` (between `draft` and `scheduled`). Media is changed through the [media endpoints](/docs/mintlify/social/media), not here. A post can be edited while its status is `draft`, `scheduled`, `queued` or `failed`. `queued` still counts: the publish queue re-reads the row at delivery and drops a message whose time no longer matches, so moving a queued post is safe. Once it is `uploading` or `publishing`, the platform owns it and edits are rejected. ## Drafts A JSON create call always schedules or publishes. Send neither `publishNow` nor `scheduledFor` and it returns `400`. To park a post as a `draft` (on the calendar, not going anywhere), create it with a `scheduledFor`, then update it with: ```json theme={null} { "status": "draft" } ``` Promote it later by setting a time: ```json theme={null} { "status": "scheduled", "scheduledFor": "2026-09-12T16:00:00Z" } ``` ## Cancel ```bash theme={null} curl -X DELETE "https://api.sapt.ai/socials/posts/$PROJECT_ID/$POST_ID" \ -H "Authorization: ApiKey $SAPT_API_KEY" ``` Deleting removes the Sapt post record and files owned by that post, including media claimed from a streaming upload. Referenced asset-library files remain. It does **not** retract anything already published. For that, use [Delete published Facebook post](/api-reference/socials/delete-published-facebook-post). To remove clips 24 hours after successful publication, follow [Media retention and cleanup](/docs/mintlify/social/cleanup). # Build your website Source: https://docs.sapt.ai/docs/mintlify/website/build-your-website Create your shop's website in Sapt, find your way around the editor, change the look and business details, and publish when you are ready. Sapt hosts a website for your shop. It uses your business details from Sapt and Google, and every form on it sends requests straight into Sapt. ## Before you start * You edit your website on the web at [app.sapt.ai](https://app.sapt.ai), on a computer if you can. The phone app shows whether your site is live, but it does not edit it. * Your role needs permission to manage the website and edit content. If you see **Ask an admin to create it.**, ask whoever runs your Sapt team. See [Your team](/docs/mintlify/account/team). ## Create your site **1. Open Website** In the sidebar, click **Website**. **2. Click Create now** The **Create your website** card shows the address your site will use, such as `ridgeline-auto-demo.sapt.ai`. Click **Create now**. Your site goes live at that address right away, with its forms already connected to Sapt. ![The Create your website card saying it goes live at ridgeline-auto-demo.sapt.ai, with the Create now button](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/create.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=54ec0537d01fd2af6b9d28c35acfc546) **3. Turn on editing** The editor opens full screen. If the left side shows **Make this site yours**, click **Enable editing** once. ## Find your way around the editor ![The website editor with the Hero section picked: the Sections tab on the left, the home page in the middle, and the Hero's editing controls on the right](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/editor.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=95dd057793d6f5ce1abfb7cb969c825f) * **Top bar:** your site's address, a status such as **Unsaved changes**, **Private draft saved** or **All changes published**, Undo and Redo, the sliders button for **Website settings**, and **Publish**. * **Left side:** four tabs. **Sections** arranges the page you are on. **Pages** lists every page. **Website** holds details shared by every page. **Style** sets colors and fonts. * **Middle:** your page. Pick a page at the top, switch between **Desktop canvas** and **Mobile canvas** (the computer and phone icons), and switch between **Editing** and **Preview**. * **Right side:** **Editing controls** for whatever you clicked. To change something, click it on the page and use the controls on the right. Double-click a headline to type right on the page. Then click **Save changes** in the bar at the bottom, or press Ctrl+S (⌘S on a Mac). Your changes stay private until you publish. Visitors see the old version until then. ![The editor on Mobile canvas, showing the home page as it looks on a phone](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/editor-mobile-canvas.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=39937774b4f6606646364ee5052cb2eb) > [!TIP] > > Most of your visitors are on a phone. Click **Mobile canvas** before you publish and check the page there too. > [!NOTE] > > Forms do not send from inside the editor, even in **Preview**. Test them on your live site. See [Test your form](/docs/mintlify/website/forms#test-your-form-before-you-launch). ## Change the look Click the **Style** tab. The panel on the right is called **Make it yours**. ![The Style tab: Make it yours with the Workshop, Evergreen and Midnight looks, four colors and three fonts](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/style-tab.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=73188e0e756616d26f41816bf31156bb) * **Start with a look:** pick a ready-made style, such as Workshop, Evergreen or Midnight. It keeps your brand color if your branding has one. * **Colors:** Accent, Background, Surface and Text. * **Typography:** fonts for Headings, Body text and Buttons. * **Corner radius:** from Sharp to Soft. * **Use project branding:** go back to the colors and fonts from your Sapt branding. ## Edit your business details Click the **Website** tab. Under **Across your website** you find what every page shares. ![The Website tab listing header, business details, buttons and shared forms, with Address open on the right and its Use Sapt value button](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/website-tab.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=12812136245a541ec7bdb9238d7be2fc) * **Header & navigation:** your logo and name, the menu and its button, and the contact strip. * **Business details:** name, phone, address, hours, email, category, description, amenities, service areas and social links. Each one follows your Sapt and Google details until you change it here. To go back, click **Use Sapt value**. * **Buttons:** your main button's label and what it does, such as **Open Sapt booking** or **Call the business**. * **Search, footer & tracking:** how your home page looks in search results, the footer, and **Hide from search engines**. * **Shared forms:** your booking form and any other forms. See [Forms](/docs/mintlify/website/forms). ## Show your site on Google If the Website page shows **Hidden from search**, your site is asking Google to leave it out. Click **Show on Google**. If you have changes you have not published yet, Sapt asks you to publish them first. You can also turn it off yourself: **Website** tab, **Search, footer & tracking**, then switch off **Hide from search engines** and publish. ![Search & shared content with Home search title, Home search description and the Hide from search engines switch turned on](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/search-settings.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8923e88f7284b99bb4b9a93e1e3b4a97) ## Publish **1. Click Publish** **Publish** is in the top right. It turns on once you have changes. A box called **Ready to go live?** lists what will change. ![The Ready to go live? box listing two changes, About our shop and Website layout, with Keep editing and Publish website](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/publish.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=6c7c8ff5e0ce4061b1bbf56679df615b) **2. Click Publish website** Your live site updates shortly, usually within a minute. Open it from the address under **Your website** in the top bar. ![The published Ridgeline Auto home page on a computer, with Call and Request service buttons](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/live-desktop.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=5ea969cc4270a09594457fa5fdcfc084) ![The published Ridgeline Auto home page on a phone, with the Request service button](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/live-phone.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=dac41c15052340702be7a2335f0ab25b) Changed your mind? Click **Discard draft** at the bottom of the left side, then **Discard draft** again. Your published site stays as it is. New pages you made stay as unpublished pages. ## Your website on your phone In the phone app, open **Growth** and scroll to **Website** at the bottom. It shows whether your site is **Live**, waiting on your domain, or off, with **Open website** to see it. Editing happens on the web. ![The Growth tab in the phone app, which opens on Reviews. Website is at the bottom.](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/growth.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=c5fb9af1947b28e770ea52e1eeab7bfb) ## If something looks wrong * **"Your site goes live when your plan starts."** Your site turns on once your Sapt plan has started. * **You see Pages, Content, Brand and Settings instead of the editor.** Your role can see the site but not use the full editor. Ask whoever runs your Sapt team. * **A card says Your location.** Sapt found more than one Google location. Click **Choose location** and pick the right one. * **"The live website may still show the previous version."** Your changes are published. The live site often catches up 10 to 40 seconds later, even with this banner showing. Wait a moment, then click **Check again** or reload your site. ![A banner under the top bar: your changes are published, but the live-site refresh could not be confirmed, with Check again](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/publish-not-confirmed.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=ee38dda884855aa00117a3d7f2c656ca) * **Publishing failed.** Your draft is safe. Click **Try publishing again**. ## Keep going > [card] [Pages and sections](/docs/mintlify/website/pages-and-sections) > > Add pages and arrange the sections on each one. > [card] [Forms](/docs/mintlify/website/forms) > > Edit your forms and choose where requests go. > [card] [Connect your domain](/docs/mintlify/website/connect-your-domain) > > Move your site to a domain you own. # Connect your own domain to your website Source: https://docs.sapt.ai/docs/mintlify/website/connect-your-domain Move your Sapt website from its sapt.ai address to a domain you own, add the DNS records, and know what each status means while it connects. Your site starts at an address like `your-shop.sapt.ai`. Connect a domain you own, such as `example.com`, and your site moves there. Once it is live, people who visit the sapt.ai address are sent on to your domain. ## Before you start * A domain you own, and the login for the company that runs its DNS. That is usually where you bought the domain, or Cloudflare. * Your Sapt website. See [Build your website](/docs/mintlify/website/build-your-website). ## Open Domains Either way gets you to the same screen: * In the website editor, click the sliders button (**Website settings**) in the top bar. Under **Your own domain**, click **Connect website domain**. * Or in the sidebar, click **Project Settings**, then **Domains**. ![Website settings with Your own domain marked Not connected, the Connect website domain button, Time zone and Redirects](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/settings-domain.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=cab49a282ae4e0a358b7f3884d506452) ## Connect your domain **1. Type your domain** In **Connect a domain**, type it in **Domain you own**, such as `example.com`. ![Domains in Project Settings with the Connect a domain form: Domain you own, the Website, Email sending and First-party tracking boxes, Service addresses and Save domain settings](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/domains.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8853f0c8523f71112d31673c8f0c40ef) **2. Choose what it is for** **Website** and **First-party tracking** are selected by default. You can also tick **Email sending** to send customer email from your domain; your inbox stays where it is. Services can be added independently later. **3. Check the address** Leave the website address blank to use the root domain. Sapt connects root and www together for managed Cloudflare domains. To select another primary address, open **Other addresses and options**. **4. Click Set up domain** Your domain appears below. If Sapt already has Cloudflare DNS access, this action adds missing service records; conflicting records are shown for review. **5. Add the DNS records** For a domain managed by Sapt, follow the managed Cloudflare steps below. Other DNS providers have separate options. **6. Wait for Live** The **Website** row moves from **Waiting for records** to **Issuing certificate** to **Live**. Then your site is on your domain. ## Add the DNS records Your domain's card says where its DNS is, such as "DNS at GoDaddy", and lists the records under **DNS records**. ### If Sapt manages your Cloudflare domain Sapt uses three DNS-only CNAMEs: `@`, `www`, and `m`, all pointing to `ingest.sapt.ai`, with TTL on Auto. Keep email and unrelated DNS records. 1. Click **Set up domain**, or **Connect website** for an existing setup. 2. If the zone is waiting for a nameserver change, enter the assigned Cloudflare nameservers at your registrar. 3. Sapt verifies DNS and HTTPS automatically, then selects the primary website address when all checks pass. Root and www redirect to the selected primary address with the page path intact. There are no certificate TXT records to copy. HTTPS validation starts when public DNS points to Sapt; a pending transfer can take time. **Check connection** refreshes the checks. **Retry setup** recovers an older pending setup without restarting an active certificate. ### If you manage your own Cloudflare account Sapt can add the records for you. You see this option only when your DNS is at Cloudflare. 1. Click **Connect Cloudflare DNS access**, then **Open Cloudflare**. Cloudflare's token page opens with the access Sapt needs already filled in. 2. In Cloudflare, make sure the token can reach your domain, click **Continue to summary**, then **Create Token**. Copy the token. Cloudflare shows it only once. [Cloudflare's guide](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) has the details. 3. Back in Sapt, paste it in **Paste the token** and click **Connect**. 4. Look over the records, then click **Apply DNS records**. Connecting a Cloudflare credential grants access only. **Set up domain**, **Connect website**, and **Apply DNS records** are explicit actions that can add missing service records. More on the [Cloudflare page](/docs/mintlify/integrations/cloudflare). ### Add the records yourself This works with any DNS host. 1. Read the line under the records. It says where to add them at your host. 2. Click a **Host** or **Value** to copy it, or click **Copy all**. 3. At your DNS host, add each record exactly as shown. For CNAME records, turn the proxy off (DNS only) and leave TTL on auto. 4. Back in Sapt, click **Check connection**. Checking only looks. It never changes anything at your host. > [!TIP] > > Managed Cloudflare setup connects both root and www automatically. With an external DNS provider, follow any separate root-forwarding instructions shown by Sapt. Each record shows a status: **Live** (found and right), **Add this** (not there yet), **Conflict** (something else is there, and Sapt shows its current value) or **Not checked**. ### Let us do it for you Click **Text us and we do it for you**. It starts a text to Sapt with your domain filled in, so it works best on your phone. The number we reply from is on the screen. ## What the statuses mean | Status | What it means | | - | - | | **Not connected** | This service does not use the domain yet. | | **Waiting for records** | Sapt is waiting to see the DNS records. | | **Issuing certificate** | The records are in. Sapt is setting up the secure (https) connection. | | **Live** | Your site is on this domain. | | **Verified** | A second address that works, but is not the one your site uses. | | **Failed** | Something is wrong. The reason shows in red under the row. | ## While DNS updates * DNS changes are not instant. While the Domains screen is open, it checks again by itself. You can also close it and click **Check connection** later. * Your site keeps working at its sapt.ai address the whole time. * The phone app shows the same progress under **Growth**, **Website**, such as "Waiting on your domain settings for [www.example.com](http://www.example.com)". ## Change to a different domain 1. On the Domains screen, click **Connect another domain** and connect the new one the same way. Your current domain keeps working. 2. When the new address shows **Verified**, click **Manage** on its **Website** row, then **Make primary**. Making a domain primary also lets Google show your site again if it was set to **Hide from search engines**. ## Disconnect a domain * **Stop using it for the website:** click **Manage** on the **Website** row, then **Disconnect**. Your site stays up at its sapt.ai address. * **Remove it completely:** click **Remove domain**. Every Sapt service stops using it. Your DNS records stay at your host until you delete them there. ## If something looks wrong * **A record shows Conflict.** An old record is in the way. At your DNS host, change it to the value Sapt shows, then click **Check connection**. * **"Your Cloudflare token cannot see example.com."** Make a new token that includes that domain and paste it in. * **The record is for the bare domain (`example.com`) and your host will not take a CNAME there.** Use your host's CNAME flattening, ALIAS or ANAME option, and keep your email records. Or use the www address. * **Still stuck?** Click **Text us and we do it for you**. ## Keep going > [card] [Cloudflare](/docs/mintlify/integrations/cloudflare) > > Let Sapt add DNS records on your Cloudflare account. > [card] [Build your website](/docs/mintlify/website/build-your-website) > > The editor tour, style and publishing. # Website forms and where requests go Source: https://docs.sapt.ai/docs/mintlify/website/forms Build and edit the forms on your Sapt website, choose where each request is saved, let customers pick a time, and test the form before you launch. The forms on your Sapt website send every request into Sapt, with the customer's contact details attached. You build and edit them inside the website editor. There is no separate form builder. > [!NOTE] > > Sapt forms work on your Sapt website. There is no embed code to put them on a website Sapt does not host. If a developer built your site, they can send form entries to Sapt themselves. See [Starter website](/docs/mintlify/platform/starter-website). ## Find your forms Open the editor from **Website** in the sidebar. * **Your booking form:** click the **Website** tab. Under **Shared forms**, click **Appointment request**. Every site has it. * **A new form:** click the **Sections** tab, then **Add section**, then **Connected form**. Type "form" in **Search layouts…** to find it fast. Sapt adds the section and a new form, and opens the form. * **The same form in another place:** add a **Connected form** section, then pick the form under **Reusable form**. Click **Edit questions & fields** to open it. ![The Build your page box with form typed in the search, showing the Connected form layout](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/form-section.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=1b6256f7a2743cef445ed419970cf7c7) Every form you make is listed under **Shared forms**. Changes to a form apply everywhere it is used. A site can have up to 20 forms. ## Edit the questions Under **Questions**, click a question to open it. Change the **Question** and the **Supporting text** under it. Use the arrows to move it and the trash can to remove it. ![Four questions. What vehicle is it? is open with its Question, Supporting text, Answer format, Placeholder and Required answer. Choices and Written answer are below.](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/form-questions.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=708f4f08e8bced063d9e558f5cbae3e3) To add a question, click **Choices** or **Written answer**. A form holds up to 12 questions, counting the contact details at the end. **Choices** questions give the customer answers to tap. * **Answer source:** **My own choices** lets you type the answers. Click **Add option** for more. **Live project services** lists your published services and stays up to date by itself. * **Allow multiple answers:** the customer can pick more than one. * **Allow an additional note:** adds a box under an answer for the customer to explain. * **Skip when a service is already selected:** skips the question when the customer already picked a service. **Written answer** questions give the customer a box to type in. * **Answer format:** **Short answer**, **Long answer**, **Date** or **Number**. * **Placeholder:** example text in the empty box, like "2018 Honda Civic". * **Required answer:** the customer cannot skip it. Here is the question above as a customer sees it: ![Step 3 of 4 on the live form: What vehicle is it?, its supporting text, a box showing 2018 Honda Civic, and Continue](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/form-live-custom-question.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=8f402c19285b9d0895716c316d79465f) The last question, marked **Contact**, asks how to reach the customer. It always asks for a name, and asks for a phone number unless you untick it. Email is added when customers can pick a time (see below). Keep at least one way to reach the customer marked **Required**. **Submit button** sets the words on the button. ## Choose where requests are saved At the top of the form, under **Connected to Sapt CRM**, pick a record type in **Save inquiries to**. ![The Contact form's Connected to Sapt CRM box, with Save inquiries to set to Website default (appointment requests)](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/form-destination.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=c527a40d47147aa587d6a56275a8ad73) * **Website default (appointment requests)** saves each request as a **Website inquiries** record in your CRM. This is the right choice for most shops. * Any other record type works if it has **Accept public submissions** turned on and **Strict schema** turned off. See [Record types](/docs/mintlify/crm/custom-objects). * If the list is empty, click **Set up website inquiries**. When you pick another record type, each question gets its own menu. Send the answer to one of that type's fields, or leave it on **Keep in inquiry details**. ## Let customers pick a time Under **Choose a time with Google Calendar**, pick a schedule in **Appointment schedule**. Customers then request an open time. When you confirm the request in CRM or in the phone app, the customer gets a Google Calendar invitation. Only schedules with **Customers can request times online** turned on show up. Click **Manage schedules in Calendar** to set one up, or see [Booking](/docs/mintlify/leads/booking). Picking a schedule makes email required, because the invitation goes by email. To send customers to a booking page somewhere else instead, open **Online scheduling** and paste the link in **Public booking link**. You can use a schedule or a booking link, not both. ## Change the wording Each of these opens with a click, below the questions. * **Form settings & Sapt connection:** **Form name**, and **Duplicate** to copy the form. **Use general business questions** replaces your questions with a standard set, so use it only to start over. * **Reassurance & consent:** short lines that put the customer at ease, and the **Consent checkbox text** customers tick to agree to calls and texts. It comes filled in with your business name. * **After submission:** the **Confirmation title** and **Confirmation message** the customer sees once it sends. * **Buttons & messages:** the words on the form's buttons and notes. ## Test your form before you launch The editor says it plainly: "A configured destination is not a delivery test. Check a test inquiry in CRM before launching." Forms do not send from inside the editor, so test on your live site. **1. Publish** Click **Publish**, then **Publish website**. **2. Send a test request** Open your live site, fill in the form with your own name and number, and send it. Use a test name you will recognize, such as "Test Maya Chen". ![Step 1 of 4 on the live form: How can we help?, with the shop's services to tick and Continue](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/form-live.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=bb426628ae09b4d24d288cf739acaacf) **3. Find it in Sapt** Open **CRM** and the record type you chose (**Website inquiries** unless you changed it). Your test should be there. If a workflow starts on new requests, it runs for your test too, so you see what customers get. ## Where requests show up * **CRM:** in the record type you chose, linked to the customer. * **Inbox:** filter by **Forms**. The conversation carries a **Submission** tag. See [Inbox](/docs/mintlify/leads/inbox). * **Workflows:** start a workflow with the **New CRM record** trigger for that record type, for example to text the customer back. See [Workflows](/docs/mintlify/automations/workflows). * **Phone app:** a request for a time shows at the top of **Calendar** as **Website request · Needs your OK**, with **Confirm** and **Decline**. ![Website request, Needs your OK, at the top of the phone app's Calendar: Ethan Davis, A/C service on Thursday at 2:00 PM, with Confirm and Decline](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/phone/calendar.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=c708dc81423bf96f8f6e22e1ac829475) ## Common questions **How do I delete a form?** There is no button to delete a form yet. Removing a **Connected form** section takes the form off that page, and the form stays under **Shared forms** for later. **What about spam?** Sapt screens form entries for bots. To hold suspicious requests before any workflow runs, open the record type in CRM and turn on **Spam moderation**. **Why did my test from the editor not arrive?** Entries sent from the editor never create records. Test on your live site. ## Keep going > [card] [Record types](/docs/mintlify/crm/custom-objects) > > Set up the CRM record type your form saves to. > [card] [Booking](/docs/mintlify/leads/booking) > > Set the hours and rules for online requests. > [card] [Pages and sections](/docs/mintlify/website/pages-and-sections) > > Put a form on any page. # Add pages and sections to your website Source: https://docs.sapt.ai/docs/mintlify/website/pages-and-sections Add a page to your Sapt website, put it in the menu, and add, hide, reorder or remove the sections on each page in the editor. Every page on your site is a stack of sections. You add pages in the **Pages** tab and arrange sections in the **Sections** tab. Open the editor from **Website** in the sidebar. ## The pages you start with | Page | Address | What it shows | | - | - | - | | Home | `/` | Your main page, made of sections you arrange. | | Services | `/services` | Your published services. Each one also gets its own page at `/services/...`. | | Blog | `/blog` | Your published articles. Each one gets its own page at `/blog/...`. | | Reviews | `/reviews` | Reviews from your connected Google profile. | | Review & feedback | `/review` | A page that asks customers for a rating, saves their feedback in Sapt and links to your Google review page. | You can add and arrange sections on Home, on pages you add, and on each service and article page. ## Add a page **1. Open the Pages tab** Click **Pages**. Under **Your pages**, click **New page**. **2. Name the page** In **Add a page**, type a **Page title**, such as "About our shop". Sapt fills in the **Page address** for you (`about-our-shop`). You can shorten it to `about`. Use lowercase letters, numbers and dashes. Click **Create draft page**. ![The Add a page box with About our shop as the Page title, about as the Page address, and Create draft page](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/add-page.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=2dde29e81974c0214b6feefbf60f3dc5) **3. Write the page** The new page opens with its settings on the right: its name, its body, its title and how it looks in search results. Add sections to it too (see below). **4. Put it in the menu** In the page's settings, tick **Show in menu**. To use a shorter name in the menu, fill in **Menu label**. ![The Pages tab listing six pages, with About our shop marked Draft. On the right, its Menu label is About and Show in menu is ticked.](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/pages-tab.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=b27f4f954cf2a734abd7bd8682c5b441) **5. Publish** Click **Publish**, then **Publish website**. Until then the page is a draft that only you can see. > [!NOTE] > > If you set your own menu links under **Website**, **Header & navigation**, **Menu & button**, those links replace the automatic menu and **Show in menu** has no effect. Add the page there with **Add link** instead, or click **Use automatic menu**. To find a page later, type in **Find a page or URL…** or use the filters: **All**, **Pages**, **Services**, **Articles** and **Drafts**. ## Add a section **1. Pick the page** Choose the page in the picker above your page, or click it in the **Pages** tab. Then click **Sections**. **2. Click Add section** A box called **Build your page** opens. Click the layout you want. You can search with **Search layouts…**. ![The Build your page box with Search layouts and the first layouts: Statistics strip, Service areas, Process, Questions & answers, Testimonials and Photo gallery](https://mintcdn.com/sapt/uTSH2FdHG3EzpkYv/docs/mintlify/images/website/add-section.webp?fit=max\&auto=format\&n=uTSH2FdHG3EzpkYv\&q=85\&s=e5f1a8ce1c75d8c2960f023a4915d94d) **3. Fill it in** The new section is selected. Change its text, images and button on the right. To try a different design, change **Layout**. The layouts in **Build your page**: | Layout | Use it for | | - | - | | Statistics strip | A few facts with big numbers. | | Service areas | The towns or neighborhoods you serve. | | Process | Steps, numbered in order. | | Questions & answers | Common questions with answers that open on tap. | | Testimonials | Customer quotes with their names. | | Photo gallery | Your photos in an even grid. | | Photo dome | Your photos on a globe visitors can spin. Heavier than the grid. | | Logo marquee | Partners, certifications or memberships. | | Connected form | A form that sends requests into Sapt. See [Forms](/docs/mintlify/website/forms). | | Image & text | A photo beside your message. | | Statement | A headline and a short introduction. | | Feature grid | Benefits, team members, prices or steps. | | Call to action | One message and a button. | Your home page also has built-in sections: Hero, Logos & credentials, How it works, Services, Offers, Reviews, About the shop, Gallery, Visit and Questions. ## Hide, move or remove a section The **Sections** tab lists the sections on the page in order. * **Hide:** click the eye next to the section. It stays in the list, crossed out, and visitors do not see it. * **Move:** drag it by the handle on the left, or click it and use the up and down arrows. * **Remove from the page:** click the section, then the trash can under it. To bring it back, pick it from **Add an existing section**. * **Delete a section you added:** click it, then the trash can in the controls on the right. If Sapt asks, click **Remove section**. You can undo any of these with Undo in the top bar before you leave the editor. Nothing changes on your live site until you publish. On the home page, **Use only custom sections** takes off all the built-in sections at once. ## Show content from Sapt A **Connected content** section shows items from a collection in [Content](/docs/mintlify/cms/collections), such as your services, team or projects. When you publish a change to those items, the section updates by itself. **1. Add the section** In the **Sections** tab, click **Connected content** and pick a collection, such as **Specials**. **2. Set it up** On the right, choose the **Layout** (**Cards**, **List** or **Spotlight**), match the fields under **Connect the fields**, and pick how many **Items to show**. ![A This month's specials section on the home page. On the right, Content source is Specials and Layout is Cards. On the left, the hidden Offers section is crossed out.](https://mintcdn.com/sapt/xBY44wtgTzA0SZof/docs/mintlify/images/cms/connected-content.webp?fit=max\&auto=format\&n=xBY44wtgTzA0SZof\&q=85\&s=1f88d5b4d94c02142a760d47f02a3e75) To add or change the items themselves, click **Add or manage content in Sapt ↗**. More in [Content on your website](/docs/mintlify/cms/content-on-your-website). ## If something looks wrong * **Add section is grey.** Click **Enable editing** first if you see **Make this site yours**. A site can have up to 60 sections you added. * **No sections show for Services, Blog or Reviews.** Those pages are built from your services, articles and reviews. Click the text on the page to edit it. * **A new page does not show on the live site.** Pages start as drafts. Publish your website. * **Create draft page stays grey.** Fill in both boxes and use only lowercase letters, numbers and dashes in the address. ## Keep going > [card] [Forms](/docs/mintlify/website/forms) > > Edit your forms and choose where requests go. > [card] [Content on your website](/docs/mintlify/cms/content-on-your-website) > > Show your services, team and more from Content. > [card] [Build your website](/docs/mintlify/website/build-your-website) > > The editor tour, style and publishing.