SaintCRM docs

Connect to SaintCRM

Private-beta documentation for the Machine API used by n8n and other trusted automation clients. Human product UI docs stay light while the CRM is in beta.

For AI agents

  • Base path: /api/machine/v1
  • Auth: Authorization: Bearer <N8N_MACHINE_API_KEY> or X-SaintCRM-Machine-Key
  • Mutations require X-SaintCRM-Idempotency
  • Machine-readable contract: /docs/machine/openapi.json
  • Discovery file: /llms.txt

Machine API guide

Auth, pagination, idempotency, scopes, and resource notes.

OpenAPI 3.1

Generated from the live machine registry and route shapes.

Changelog

What shipped for public automation access.

PHP / MariaDB contracts

Permissions, modules, Machine API, and SQL mappings for a future PHP edition.

Resource catalog

Same catalog returned by authenticated GET /api/machine/v1/health.

ResourceRead scopeWrite scopeWave
health——framework
seo-reports—seo.report.generateframework
leadsleads.readleads.writea
customerscustomers.readcustomers.writea
contactscontacts.readcontacts.writea
pipelinespipelines.read—b
dealsdeals.readdeals.writeb
quotesquotes.readquotes.writeb
quote-templatesquote_templates.readquote_templates.writeb
productsproducts.readproducts.writeb
packagespackages.readpackages.writeb
invoicesinvoices.readinvoices.writeb
activitiesactivities.readactivities.writec
keyword-research/runskeywords.read—c
business-profilesbusiness_profiles.read—c
workspacesworkspaces.read—c
connectionsconnections.readconnections.writec
webhooks/subscriptionswebhooks.readwebhooks.writec
eventsevents.read—c
mcp/toolsmcp.invoke—c
mcp/invoke—mcp.invokec
approvalsapprovals.readapprovals.writec

Quick start

Health check
curl -sS "https://crm.saintcode.com/api/machine/v1/health" \
  -H "Authorization: Bearer $N8N_MACHINE_API_KEY"
Lead upsert
curl -sS -X POST "https://crm.saintcode.com/api/machine/v1/leads" \
  -H "Authorization: Bearer $N8N_MACHINE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-SaintCRM-Idempotency: lead-upsert-001" \
  -d '{"name":"Acme Plumbing","email":"hello@acme.example","city":"Vancouver","industry":"plumbing"}'