Developer Access

REST API & AI Integrations

Full programmatic access to your OPC data. Build automations, sync with third-party tools, or connect AI assistants via MCP.

MCP Server

Streamable HTTP endpoint for AI assistants. OAuth or PAT auth, scoped permissions, audit logging.

Connection guide

REST API

Standard JSON endpoints for every module — contacts, orders, accounting, inventory, and more. Authenticate with Personal Access Tokens.

Authorization: Bearer opc_pat_…

Token Management

Generate tokens in Dashboard → Settings → Developer → AI Connections.
Tokens are SHA-256 hashed. The raw value is shown once — store it securely.
Granular scopes: assign read/write per module, or grant all for full access.

Quick Examples

# List contacts
curl https://www.myopc.io/api/contacts \ -H "Authorization: Bearer opc_pat_YOUR_TOKEN"
# Create an order
curl -X POST https://www.myopc.io/api/orders \ -H "Authorization: Bearer opc_pat_YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"contact_id": "...", "items": [...]}'