Article

Content

Instantly API: How to Fetch Unibox Emails & Replies (v2 Guide, 2026)

Instantly API: How to Fetch Unibox Emails & Replies (v2 Guide, 2026)

Instantly API: How to Fetch Unibox Emails & Replies (v2 Guide, 2026)

Table Of Contents

Scanning page for headings…

Instantly API v2 dashboard showing how to fetch Unibox emails, replies, API responses, and webhook automation workflows

Managing cold email campaigns becomes much easier when your email data is connected with your own tools, dashboards, or workflows. But many developers face the same problem: how do you actually fetch Instantly Unibox emails, replies, and conversations through the API?

If you are building a CRM integration, AI sales assistant, reporting dashboard, or automated follow-up system, manually checking the Instantly inbox is not practical. You need a reliable way to pull email data programmatically.

That is where the Instantly API v2 comes in.

With the updated API, developers can fetch Unibox emails, filter replies, access conversation threads, manage pagination, and connect outreach data with external applications.

In this guide, you will learn:

  • How to authenticate with Instantly API v2

  • How to fetch Unibox emails

  • How to get only real replies

  • How to filter Primary emails instead of "Others"

  • How pagination works

  • Polling vs webhooks

  • Common API errors and fixes

  • Working Python and JavaScript examples

Whether you are building sales automation tools or integrating Instantly data into your own platform, this guide covers everything you need.

Before You Start: Instantly API Key and Required Access

Before making API requests, you need an active Instantly account with API access and a valid API key.

Generate Your Instantly API Key

To create an API key:

  1. Open your Instantly account

  2. Go to Settings

  3. Open Integrations

  4. Select API Keys

  5. Create a new API key

Make sure you store your API key securely because it is only shown once during creation.

Avoid placing API keys directly inside public code repositories.

Required API Scopes

The email endpoint requires one of the following scopes:

  • emails:read

  • emails:all

  • all:read

  • all:all

These permissions allow your application to access email data from Unibox.

Instantly API Plan Requirements

API access requires a paid Outreach plan.

If your account does not have the required plan, the API may return:

402 Payment Required
402 Payment Required
402 Payment Required

This is different from an authentication problem.

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

Instantly API v1 vs v2: What Changed?

Instantly updated its API structure by replacing the older v1 endpoints with the newer v2 system.

The biggest changes include:

Feature

API v1

API v2

Email endpoint

/unibox/emails/list

/api/v2/emails

Authentication

API key parameter

Bearer token

Pagination

Offset-based

Cursor-based

Naming

Inconsistent fields

snake_case format

API Authentication Changed

Older API versions used API keys differently.

API v2 requires a Bearer token:

Authorization: Bearer YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY

Example:

GET https://api.instantly.ai/api/v2/emails
GET https://api.instantly.ai/api/v2/emails
GET https://api.instantly.ai/api/v2/emails

Pagination Method Changed

API v1 used offset pagination.

API v2 uses cursor pagination with:

starting_after
starting_after
starting_after

This makes retrieving large amounts of email data more efficie

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

How To Fetch Unibox Emails Using Instantly API v2

The main endpoint for retrieving Unibox emails is:

GET https://api.instantly.ai/api/v2/emails
GET https://api.instantly.ai/api/v2/emails
GET https://api.instantly.ai/api/v2/emails

Your request should include authentication headers:

Authorization: Bearer YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY

Basic API Request Example

curl --request GET \
--url https://api.instantly.ai/api/v2/emails \
--header "Authorization: Bearer YOUR_API_KEY"
curl --request GET \
--url https://api.instantly.ai/api/v2/emails \
--header "Authorization: Bearer YOUR_API_KEY"
curl --request GET \
--url https://api.instantly.ai/api/v2/emails \
--header "Authorization: Bearer YOUR_API_KEY"

The response contains email objects with information such as:

  • Subject

  • Email body

  • Lead information

  • Thread ID

  • Sending account

  • Read status

  • Interest status

Need pre-warmed inboxes ready today? Litemail delivers Google Workspace & Microsoft 365 mailboxes with weeks of warm-up history built in.Check Available Domains →

Instantly API Email Parameters Explained

The /api/v2/emails endpoint supports multiple filters.

Understanding these parameters helps you retrieve exactly the data you need.

Parameter

Type

Description

limit

Integer

Number of emails per request

starting_after

String

Pagination cursor

search

String

Search emails or threads

campaign_id

UUID

Filter by campaign

list_id

UUID

Filter by lead list

lead

String

Filter by lead email

eaccount

String

Filter sending accounts

email_type

String

Received, sent, or manual

mode

String

Primary, Others, or All

is_unread

Boolean

Filter unread emails

latest_of_thread

Boolean

Return latest email only

assigned_to

UUID

Filter assigned users

Litemail's pre-warmed Google Workspace & Microsoft 365 inboxes come with US/EU IPs, automated DNS, full admin access, and 4–12 weeks of warm-up history — all from $4.99/inbox. No separate warm-up tool needed.

How To Fetch Only Replies From Instantly Unibox

One of the most common API requirements is:

"I only want replies from prospects."

By default, your API response may include different types of emails.

To fetch only received replies, use:

email_type=received
email_type=received
email_type=received

To get only Primary replies:

mode=emode_focused
mode=emode_focused
mode=emode_focused

To return only the latest message from each conversation:

latest_of_thread=true
latest_of_thread=true
latest_of_thread=true

Complete Reply Fetch Request

GET /api/v2/emails?
email_type=received&
mode=emode_focused&
latest_of_thread=true
GET /api/v2/emails?
email_type=received&
mode=emode_focused&
latest_of_thread=true
GET /api/v2/emails?
email_type=received&
mode=emode_focused&
latest_of_thread=true

This returns:

  • Prospect replies

  • Primary inbox messages

  • Latest conversation messages

Why You Are Getting "Others" Instead of Primary Emails

Instantly Unibox separates messages into two categories:

Primary

Important conversations and replies.

API value:

emode_focused
emode_focused
emode_focused

Others

Less important messages.

API value:

emode_others
emode_others
emode_others

All Emails

To retrieve everything:

emode_all
emode_all
emode_all

Fixing the Primary Inbox Issue

If your API only returns "Others", you are probably missing the mode parameter.

Use:

mode=emode_focused
mode=emode_focused
mode=emode_focused

You can also check the email object:

"is_focused": true
"is_focused": true
"is_focused": true

This confirms that the email belongs to the Primary category.

Start Sending Cold Email Today — Not in 6 Weeks
Pre-warmed Google Workspace & Microsoft 365 inboxes. Automated DNS. US & EU IPs. From $4.99/inbox.
See Domains Ready to Send →
No credit card required · Setup in 5 minutes · Cancel anytime
Start Sending Cold Email — Pre-warmed inboxes from $4
Get Inboxes

Instantly API Pagination Explained

When retrieving many emails, you cannot request everything at once.

Instantly API v2 uses cursor-based pagination.

The API response includes:

{
 "items": [],
 "next_starting_after": "cursor_value"
}
{
 "items": [],
 "next_starting_after": "cursor_value"
}
{
 "items": [],
 "next_starting_after": "cursor_value"
}

The next cursor is used in your following request.

Pagination Process

  1. Send your first API request

  2. Receive email results

  3. Save next_starting_after

  4. Send it with your next request

  5. Continue until no cursor remains

Get Fresh Email Inboxes — Set Up in 30 Minutes
Real Google Workspace and Microsoft 365 accounts on your domains. Automated DNS, SPF, DKIM and DMARC included.
Find Your Sending Domains →
Starts at $2.50/inbox · Automated DNS · No manual setup

Frequently Asked Questions About Instantly API v2

How do I fetch emails from Instantly Unibox API?

You can fetch Instantly Unibox emails using the API v2 endpoint:

GET https://api.instantly.ai/api/v2/emails
GET https://api.instantly.ai/api/v2/emails
GET https://api.instantly.ai/api/v2/emails

You need:

  • A valid Instantly API key

  • Correct API permissions

  • Bearer token authentication

You can also use filters like campaign ID, lead email, email type, and inbox mode to retrieve specific messages.

How do I fetch only replies from Instantly API?

To fetch only replies, use these parameters:

email_type=received
mode=emode_focused
latest_of_thread=true
email_type=received
mode=emode_focused
latest_of_thread=true
email_type=received
mode=emode_focused
latest_of_thread=true

This combination returns received replies from the Primary inbox and removes unnecessary messages.

Why am I only getting "Others" emails from Instantly API?

Instantly Unibox separates emails into:

  • Primary

  • Others

If you are receiving only "Others", check your API request.

Use:

mode=emode_focused
mode=emode_focused
mode=emode_focused

to retrieve Primary emails.

You can also check the is_focused field in the response to confirm the inbox category.

Is Instantly API v1 still available?

No. Instantly deprecated the v1 API, including the old Unibox email endpoint.

The previous endpoint:

/unibox/emails/list
/unibox/emails/list
/unibox/emails/list

was replaced with:

/api/v2/emails
/api/v2/emails
/api/v2/emails

API v2 now uses Bearer authentication, improved field naming, and cursor-based pagination.

What is the Instantly API v2 rate limit?

The Instantly email endpoint has a limit of:

20 requests per minute

If you receive a:

429 Too Many Requests
429 Too Many Requests
429 Too Many Requests

response, slow down your requests and retry after a short delay.

Do I need a paid Instantly plan to use the API?

Yes.

API access requires an active paid Outreach plan.

If your account does not have API access, you may receive:

402 Payment Required
402 Payment Required
402 Payment Required

What is the difference between polling and webhooks in Instantly API?

Polling

Your application regularly asks Instantly:

"Are there any new emails?"

Useful for:

  • Reports

  • Data exports

  • Historical syncing

Webhooks

Instantly sends information automatically when an event happens.

Useful for:

  • Real-time reply notifications

  • CRM updates

  • Automated workflows

How do I get the latest email from a conversation thread?

Use:

latest_of_thread=true
latest_of_thread=true
latest_of_thread=true

This returns only the newest message from each email conversation instead of every message in the thread.

Can I filter Instantly emails by campaign?

Yes.

Use:

campaign_id
campaign_id
campaign_id

This allows you to retrieve emails from a specific outreach campaign.

Can I search specific leads using Instantly API?

Yes.

You can filter emails using:

lead
lead
lead

or:

search
search
search

For example, you can search by:

  • Lead email address

  • Thread ID

  • Conversation data

How can I integrate Instantly replies with my CRM?

You can connect Instantly API data with your CRM by:

  1. Fetching replies through API v2

  2. Processing email data

  3. Matching leads

  4. Updating CRM records

For real-time workflows, webhooks are usually the better option.

Conclusion

The Instantly API v2 provides developers with a flexible way to access Unibox emails, replies, and conversation data. Whether you are building a CRM integration, analytics dashboard, or automated sales workflow, understanding the correct API parameters is essential.

The most important points are:

  • Use /api/v2/emails for fetching emails

  • Authenticate with Bearer API keys

  • Use email_type=received for replies

  • Use mode=emode_focused for Primary inbox messages

  • Use pagination for large datasets

  • Use webhooks for real-time automation

With the right API setup, businesses can turn Instantly email data into powerful automation workflows and improve their outbound sales operations.


Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

Share

Share LiteMail automated email setup on Twitter (X)
Share LiteMail email marketing growth strategies on Facebook
Share LiteMail inbox placement and outreach analytics on LinkedIn
Share LiteMail cold email infrastructure on Reddit
Share LiteMail affordable business email plans on Pinterest
Share LiteMail deliverability optimization services on Telegram
Share LiteMail cold email outreach tools on WhatsApp
Share Litemail on whatsapp