Skip to main content
Instance provides two programmatic interfaces to access your CRM data, manage tags, update deal stages, and trigger Instagram automations:
  1. REST API: Standard HTTP endpoints for webhooks, external tools (Make, Zapier, n8n), and backend services.
  2. MCP Server: Native Model Context Protocol server connecting AI assistants (Claude Desktop, Cursor, Windsurf, Claude Code) over stdio.
Both interfaces authenticate using workspace API keys.

1. Authentication

Generate an API key in the dashboard:
  1. Navigate to Dashboard -> Settings -> API Keys.
  2. Click Create New Key and enter a descriptive label.
  3. Copy the generated key (inst_live_...).
For REST API calls, pass the key in your HTTP request headers:
Or:

2. Response Envelopes

All REST API endpoints return a standard JSON envelope with either a success or error status.

Success Response Envelope

Error Response Envelope


3. REST Endpoints Reference

Workspace and Pipelines

Contacts and CRM Leads

Audience Lists and Segmentation

Automation Funnel Execution

Trigger request payload:
(Alternatively, supply "username": "target_handle" instead of contactId).

4. Rate Limiting

To prevent accidental loops and protect self-hosted databases from overload, all public endpoints enforce request rate limits:
  • Limit: 60 requests per rolling 60-second window per API key.
  • HTTP 429 Response: When the limit is exceeded, the server returns status code 429 Too Many Requests with a Retry-After: 60 header:

5. Code Examples

cURL

Node.js (Fetch)

Python


6. Model Context Protocol (MCP) Server

The Instance MCP server allows AI assistants (such as Claude Desktop, Cursor, Windsurf, and Claude Code) to interact with your CRM as native tools. Add the instance server to your MCP configuration using npx:

7. Available AI Tools Reference

Connected AI agents have access to 11 native CRM tools over stdio: