Skip to main content
POST
Your central hub for all lead responses across campaigns. Essential for managing conversations, tracking engagement, and ensuring no reply goes unnoticed.

Overview

Retrieves all replies from leads across all campaigns in your unified inbox. This is the primary endpoint for managing all incoming responses from your outreach efforts. Key Features:
  • Unified view of all replies across campaigns
  • Optional full message history retrieval
  • Comprehensive filtering by campaign, account, team, tags, clients
  • Lead category filtering
  • Date range and engagement status filtering
  • Flexible sorting options
Use Cases:
  • Response management: Central inbox for all campaign replies
  • Team collaboration: Filter by assigned team members
  • Performance tracking: Monitor reply rates and patterns
  • Lead qualification: Filter by category and engagement
  • Client reporting: Segment replies by client
  • Follow-up workflows: Identify leads needing attention

Query Parameters

string
required
Your SmartLead API key
boolean
default:"false"
Include full email thread history.
  • true: Returns complete conversation thread (slower, more data)
  • false: Returns only latest message (faster, recommended for list views)
Performance tip: Use false for list views, true only when viewing individual conversations.

Request Body

number
default:"0"
Number of records to skip for pagination. Must be non-negative.
number
default:"20"
Number of records to return per page. Must be between 1 and 20.
object
Advanced filtering options
string
default:"REPLY_TIME_DESC"
Sort order for results
  • REPLY_TIME_DESC: Most recent replies first (default)
  • SENT_TIME_DESC: Most recently sent emails first

Response Codes

Success
Request successful - inbox replies retrieved
Unauthorized
Invalid or missing API key
Validation Error
Request validation failed. Common issues:
  • limit > 20
  • More than 5 campaign IDs
  • More than 20 email account IDs
  • More than 10 items in other array filters
  • Invalid date format
Internal Server Error
Server error occurred

Common Workflows

Daily Inbox Check

Priority Lead Follow-up

Team Workload Distribution

Campaign Performance Monitor

Message History vs List View

  • List views: Displaying inbox overview
  • Counting replies: Just need totals
  • Quick filtering: Finding specific leads
  • Dashboard displays: Overview metrics
  • Mobile apps: Faster loading
  • Pagination: Browsing multiple pages
Performance: ~10x faster, ~90% less data transferred

When to Use fetch_message_history=true

  • Conversation view: Displaying full thread
  • Reply context: Need full conversation history
  • AI analysis: Processing full threads
  • Detailed reporting: Complete interaction data
  • CRM sync: Syncing full conversation history
Trade-off: Slower response, much more data, but complete context

Filtering Best Practices

1. Use Appropriate Array Limits

2. Combine Category Filters

3. Smart Date Ranges

4. Progressive Filtering

Performance Optimization

  1. Disable message history for lists: 10x faster
  2. Use pagination properly: Limit=20 is optimal
  3. Filter by campaign/account: Reduces query scope
  4. Cache frequently accessed data: Store client-side
  5. Batch similar requests: Group by filter criteria
  6. Use appropriate sort orders: Match your use case

Error Handling