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>orX-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.
| Resource | Read scope | Write scope | Wave |
|---|---|---|---|
| health | — | — | framework |
| seo-reports | — | seo.report.generate | framework |
| leads | leads.read | leads.write | a |
| customers | customers.read | customers.write | a |
| contacts | contacts.read | contacts.write | a |
| pipelines | pipelines.read | — | b |
| deals | deals.read | deals.write | b |
| quotes | quotes.read | quotes.write | b |
| quote-templates | quote_templates.read | quote_templates.write | b |
| products | products.read | products.write | b |
| packages | packages.read | packages.write | b |
| invoices | invoices.read | invoices.write | b |
| activities | activities.read | activities.write | c |
| keyword-research/runs | keywords.read | — | c |
| business-profiles | business_profiles.read | — | c |
| workspaces | workspaces.read | — | c |
| connections | connections.read | connections.write | c |
| webhooks/subscriptions | webhooks.read | webhooks.write | c |
| events | events.read | — | c |
| mcp/tools | mcp.invoke | — | c |
| mcp/invoke | — | mcp.invoke | c |
| approvals | approvals.read | approvals.write | c |
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"}'