Skip to main content

API Overview

The Instance Public API lets you connect external tools (such as Make, Zapier, n8n, or your own backend) directly to your workspace. You can query leads, manage tags and pipeline stages, reply in Sales Chat, schedule Instagram posts, and trigger automations programmatically. Every endpoint in the sidebar comes with live cURL, JavaScript, and Python examples plus an interactive Try it playground.

1. Base URL

  • Production / Cloud: https://api.yourdomain.com/api/v1
  • Local Self-Hosted: http://localhost:4000/api/v1

2. Authentication

Instance uses workspace-scoped API keys (inst_live_...) instead of per-user OAuth2 tokens for public API access:
  1. Open Dashboard -> Settings -> API Keys.
  2. Click Create New Key and give it a label.
  3. Copy your generated key (inst_live_...). It is only shown once.
Pass your key in the X-API-Key header (or Authorization: Bearer) on every request:

3. Rate Limits

Public API endpoints are rate-limited to 60 requests per minute per workspace API key. If your integration exceeds this limit, the API returns HTTP 429 Too Many Requests.

4. JSON Output and Error Handling

Every endpoint returns a consistent JSON envelope with status: "success" or status: "error".

Success Response

Error Response


5. Terminology

  • Workspace: Your company account containing connected Instagram handles, team members, leads, and flows.
  • Contact (Lead): An Instagram user who has messaged, commented, mentioned you, or submitted a Bio Link form.
  • Conversation: A Sales Chat DM thread tied to a contact, with AI active/paused state, Whisper Notes, and deal status.
  • Automation: A visual DM, Comment, Live, or Story flow that can be triggered or inspected via API.
  • Audience List: A segmented list of contacts with captured emails or phone numbers.
  • Webhook: An HTTPS callback signed with HMAC-SHA256 (X-Instance-Signature-256) that notifies your server in real time. See Outbound Webhooks.