Skip to main content

Overview

The Orsay REST API allows you to manage sequences and access conversations programmatically from your own server. This is useful for:
  • Automating sequence creation from a VPS or cron job
  • Integrating Orsay into your existing pipeline (e.g., Instagram → DM sequence)
  • Building custom automations without going through the dashboard
  • Retrieving conversation data for your CRM or analytics tools

Authentication

All API requests require a Bearer token using your API key.

Getting your API key

  1. Go to Settings → API Keys in the Orsay dashboard
  2. Click Generate API Key
  3. Copy the key immediately — it won’t be shown again
Your API key gives full access to your organization’s sequences. Keep it secret and never expose it in client-side code.

Rate Limiting

The API is rate-limited to 200 requests per hour per organization. If you exceed this limit, you’ll receive a 429 Too Many Requests response with a Retry-After header indicating how many seconds to wait.

Base URL

Endpoints

List Agents

Returns all AI agents for your organization. Response:

List Profiles

Returns all connected Instagram and WhatsApp profiles. Response:

List Sequences

Returns all sequences for your organization. Response:

Get Sequence

Returns full details of a specific sequence. Response:

Create Sequence

Request body:
Required fields: Optional fields: Response (201):

Update Sequence

Only include the fields you want to update. Request body:
Response:

Delete Sequence

Response:

List Conversations

Returns conversations for your organization with optional filters. Query parameters: Example:
Response:
Use next_cursor as the last_lead_id parameter in subsequent requests to paginate through results. When next_cursor is null, there are no more results.

Get Conversation Messages

Returns the full message history of a conversation. Path parameters: Example:
Response:

Trigger Types

Error Codes

Example: Full Pipeline