API Explorer (2.0.0)

The entire API V2 documentation is interactive and can be tested here. To the right side of every endpoint you will see a box with an example request. You can click on the "Try it" button to send a request to the server right from the docs. You will need to provide an API key by clicking the ApiKeyAuth_token blue text.

Languages
Servers
Instantly API Server
https://api.instantly.ai/
Mock server
https://developer.instantly.ai/_mock/api/v2/

Analytics

Endpoints related to analytics

Operations

Account

An email account that can be used to send campaigns

Operations

Campaign

A campaign that can be sent to a list of recipients

Operations

Email

A campaign email, a reply, a manually sent email, or any other email that's visible in the Unibox

Operations

Email

A campaign email, a reply, a manually sent email, or any other email that's visible in the Unibox

idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01959271-1f7f-7d76-8a8f-286834e2ee38"
timestamp_createdstring(date-time)read-onlyrequired

Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.

Example: "2025-03-14T02:17:22.047Z"
timestamp_emailstring(date-time)read-onlyrequired

The timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server.

Example: "2025-03-14T02:17:22.047Z"
message_idstringread-onlyrequired

Unique email ID from the email server

Example: "<example123@mail.gmail.com>"
subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
to_address_email_liststringrequired

Comma-separated list of recipient email addresses

Example: "recipient@example.com"
bodyobjectread-onlyrequired

An object containing the email body in HTML and text format

body.​textstring

Text content of the email

Example: "This is a test email"
body.​htmlstring

HTML content of the email

Example: "<p>This is a test email</p>"
organization_idstring(uuid)read-onlyrequired

The workspace ID

Example: "01959271-1f7f-7d76-8a8f-2869119acdf6"
eaccountstringrequired

The email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace

Example: "eaccount-123"
from_address_emailstring(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tostring

Reply-to email address

Example: "replyto@example.com"
campaign_idstring(uuid)

The id of the campaign that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286ada9833bd"
subsequence_idstring(uuid)

The id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286bbb2b2346"
list_idstring(uuid)

The id of the list (if the lead is part of a list)

Example: "01959271-1f7f-7d76-8a8f-286cd99afd33"
leadstring(uuid)

The lead id (if any)

Example: "01959271-1f7f-7d76-8a8f-286d1e5745c5"
ue_typenumber

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepstring

The campaign step that the email is associated with

Example: "step-123"
is_unreadboolean

Indicates if the email is unread

Example: true
is_auto_replyboolean

Indicates if the email is an auto-reply

Example: false
reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
ai_interest_valuenumber

AI interest value

Example: 0.75
ai_assistednumber

Indicates if AI assistance was used

Example: 1
is_focusednumber

Indicates if the email is focused (is in the primary tab in the Unibox)

Example: 1
i_statusnumber

Indicates the interest status of the email

Example: 0
thread_idstring(uuid)

Identifier for the email thread. All the emails in the same thread have the same thread ID

Example: "01959271-1f7f-7d76-8a8f-286ef545e568"
content_previewstring

A short preview of the email content (usually the first few lines of the email)

Example: "This is a preview of the email content."
from_address_jsonArray of arrays

List of from address details

to_address_jsonArray of arrays

List of to address details

cc_address_jsonArray of arrays

List of CC address details

{ "id": "01959271-1f7f-7d76-8a8f-286834e2ee38", "timestamp_created": "2025-03-14T02:17:22.047Z", "timestamp_email": "2025-03-14T02:17:22.047Z", "message_id": "<example123@mail.gmail.com>", "subject": "Re: Your inquiry", "from_address_email": "sender@example.com", "to_address_email_list": "recipient@example.com", "cc_address_email_list": "cc@example.com", "bcc_address_email_list": "bcc@example.com", "reply_to": "replyto@example.com", "body": { "text": "This is a test email", "html": "<p>This is a test email</p>" }, "organization_id": "01959271-1f7f-7d76-8a8f-2869119acdf6", "campaign_id": "01959271-1f7f-7d76-8a8f-286ada9833bd", "subsequence_id": "01959271-1f7f-7d76-8a8f-286bbb2b2346", "list_id": "01959271-1f7f-7d76-8a8f-286cd99afd33", "lead": "01959271-1f7f-7d76-8a8f-286d1e5745c5", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": true, "is_auto_reply": false, "reminder_ts": "2025-03-14T02:17:22.047Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01959271-1f7f-7d76-8a8f-286ef545e568", "content_preview": "This is a preview of the email content.", "from_address_json": [], "to_address_json": [], "cc_address_json": [] }

Reply to an email

Request

Send a reply to an email. This endpoint can be used to send an email only as a reply to an existing email. In order to reply to an email, please specify the reyply_to_uuid field, and your email will be sent as a reply to that email. The reyply_to_uuid field represents the id field of an existing email, which is being returned to you in all the /email endpoints

Requires one of the following scopes: emails:create, emails:all, all:create, all:all

Bodyapplication/jsonrequired
reply_to_uuidstringrequired

The id of the email to reply to

Example: "123e4567-e89b-12d3-a456-426614174000"
eaccountstringrequired

The email account that will be used to send this email. It has to be an email account connected to your workspace

Example: "jondoe@example.com"
subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
bodyobjectrequired

The email body. You can specify either the html or the text field, or both

body.​htmlstring

HTML body of the email message

Example: "<p>Hello, how are you?</p>"
body.​textstring

Text body of the email message

Example: "Hello, how are you?"
cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reminder_tsstring

Timestamp for the reminder. If this field is included, then this email will be added to the database, but will be sent at the specified timestamp

Example: "2025-03-14T02:17:26.208Z"
curl -i -X POST \
  https://api.instantly.ai/api/v2/emails/reply \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "eaccount": "jondoe@example.com",
    "reply_to_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "subject": "Re: Your inquiry",
    "body": {}
  }'

Responses

The requested Email

Bodyapplication/json
idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01959271-1f7f-7d76-8a8f-286834e2ee38"
timestamp_createdstring(date-time)read-onlyrequired

Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.

Example: "2025-03-14T02:17:22.047Z"
timestamp_emailstring(date-time)read-onlyrequired

The timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server.

Example: "2025-03-14T02:17:22.047Z"
message_idstringread-onlyrequired

Unique email ID from the email server

Example: "<example123@mail.gmail.com>"
subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
to_address_email_liststringrequired

Comma-separated list of recipient email addresses

Example: "recipient@example.com"
bodyobjectread-onlyrequired

An object containing the email body in HTML and text format

body.​textstring

Text content of the email

Example: "This is a test email"
body.​htmlstring

HTML content of the email

Example: "<p>This is a test email</p>"
organization_idstring(uuid)read-onlyrequired

The workspace ID

Example: "01959271-1f7f-7d76-8a8f-2869119acdf6"
eaccountstringrequired

The email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace

Example: "eaccount-123"
from_address_emailstring(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tostring

Reply-to email address

Example: "replyto@example.com"
campaign_idstring(uuid)

The id of the campaign that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286ada9833bd"
subsequence_idstring(uuid)

The id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286bbb2b2346"
list_idstring(uuid)

The id of the list (if the lead is part of a list)

Example: "01959271-1f7f-7d76-8a8f-286cd99afd33"
leadstring(uuid)

The lead id (if any)

Example: "01959271-1f7f-7d76-8a8f-286d1e5745c5"
ue_typenumber

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepstring

The campaign step that the email is associated with

Example: "step-123"
is_unreadboolean

Indicates if the email is unread

Example: true
is_auto_replyboolean

Indicates if the email is an auto-reply

Example: false
reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
ai_interest_valuenumber

AI interest value

Example: 0.75
ai_assistednumber

Indicates if AI assistance was used

Example: 1
is_focusednumber

Indicates if the email is focused (is in the primary tab in the Unibox)

Example: 1
i_statusnumber

Indicates the interest status of the email

Example: 0
thread_idstring(uuid)

Identifier for the email thread. All the emails in the same thread have the same thread ID

Example: "01959271-1f7f-7d76-8a8f-286ef545e568"
content_previewstring

A short preview of the email content (usually the first few lines of the email)

Example: "This is a preview of the email content."
from_address_jsonArray of arrays

List of from address details

to_address_jsonArray of arrays

List of to address details

cc_address_jsonArray of arrays

List of CC address details

Response
application/json
{ "id": "01959271-1f7f-7d76-8a8f-286834e2ee38", "timestamp_created": "2025-03-14T02:17:22.047Z", "timestamp_email": "2025-03-14T02:17:22.047Z", "message_id": "<example123@mail.gmail.com>", "subject": "Re: Your inquiry", "from_address_email": "sender@example.com", "to_address_email_list": "recipient@example.com", "cc_address_email_list": "cc@example.com", "bcc_address_email_list": "bcc@example.com", "reply_to": "replyto@example.com", "body": { "text": "This is a test email", "html": "<p>This is a test email</p>" }, "organization_id": "01959271-1f7f-7d76-8a8f-2869119acdf6", "campaign_id": "01959271-1f7f-7d76-8a8f-286ada9833bd", "subsequence_id": "01959271-1f7f-7d76-8a8f-286bbb2b2346", "list_id": "01959271-1f7f-7d76-8a8f-286cd99afd33", "lead": "01959271-1f7f-7d76-8a8f-286d1e5745c5", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": true, "is_auto_reply": false, "reminder_ts": "2025-03-14T02:17:22.047Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01959271-1f7f-7d76-8a8f-286ef545e568", "content_preview": "This is a preview of the email content.", "from_address_json": [], "to_address_json": [], "cc_address_json": [] }

List email

Request

Requires one of the following scopes: emails:read, emails:all, all:read, all:all

Query
limitinteger[ 1 .. 100 ]

The number of items to return

Example: limit=10
starting_afterstring
Example: starting_after=2025-03-07T00:00:00.000Z
searchstring
Example: search=search term
campaign_idstring(uuid)
Example: campaign_id=123e4567-e89b-12d3-a456-426614174000
i_statusnumber
Example: i_status=1
eaccountstring
Example: eaccount=123e4567-e89b-12d3-a456-426614174000
is_unreadboolean
Example: is_unread=true
has_reminderboolean
Example: has_reminder=true
modestring
Enum"emode_focused""emode_others""emode_all"
Example: mode=emode_focused
preview_onlyboolean
Example: preview_only=true
sort_orderstring
Enum"asc""desc"
Example: sort_order=asc
scheduled_onlyboolean
Example: scheduled_only=true
assigned_tostring
Example: assigned_to=123e4567-e89b-12d3-a456-426614174000
leadstring
Example: lead=123e4567-e89b-12d3-a456-426614174000
company_domainstring
Example: company_domain=example.com
marked_as_doneboolean
Example: marked_as_done=true
email_typestring
Enum"received""sent""manual"
Example: email_type=received
curl -i -X GET \
  'https://api.instantly.ai/api/v2/emails?assigned_to=123e4567-e89b-12d3-a456-426614174000&campaign_id=123e4567-e89b-12d3-a456-426614174000&company_domain=example.com&eaccount=123e4567-e89b-12d3-a456-426614174000&email_type=received&has_reminder=true&i_status=1&is_unread=true&lead=123e4567-e89b-12d3-a456-426614174000&limit=10&marked_as_done=true&mode=emode_focused&preview_only=true&scheduled_only=true&search=search%20term&sort_order=asc&starting_after=2025-03-07T00%3A00%3A00.000Z' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The list of Email

Bodyapplication/json
itemsArray of objects(Email)required
items[].​idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01959271-1f7f-7d76-8a8f-286834e2ee38"
items[].​timestamp_createdstring(date-time)read-onlyrequired

Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.

Example: "2025-03-14T02:17:22.047Z"
items[].​timestamp_emailstring(date-time)read-onlyrequired

The timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server.

Example: "2025-03-14T02:17:22.047Z"
items[].​message_idstringread-onlyrequired

Unique email ID from the email server

Example: "<example123@mail.gmail.com>"
items[].​subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
items[].​to_address_email_liststringrequired

Comma-separated list of recipient email addresses

Example: "recipient@example.com"
items[].​bodyobjectread-onlyrequired

An object containing the email body in HTML and text format

items[].​body.​textstring

Text content of the email

Example: "This is a test email"
items[].​body.​htmlstring

HTML content of the email

Example: "<p>This is a test email</p>"
items[].​organization_idstring(uuid)read-onlyrequired

The workspace ID

Example: "01959271-1f7f-7d76-8a8f-2869119acdf6"
items[].​eaccountstringrequired

The email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace

Example: "eaccount-123"
items[].​from_address_emailstring(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
items[].​cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
items[].​bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
items[].​reply_tostring

Reply-to email address

Example: "replyto@example.com"
items[].​campaign_idstring(uuid)

The id of the campaign that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286ada9833bd"
items[].​subsequence_idstring(uuid)

The id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286bbb2b2346"
items[].​list_idstring(uuid)

The id of the list (if the lead is part of a list)

Example: "01959271-1f7f-7d76-8a8f-286cd99afd33"
items[].​leadstring(uuid)

The lead id (if any)

Example: "01959271-1f7f-7d76-8a8f-286d1e5745c5"
items[].​ue_typenumber

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
items[].​stepstring

The campaign step that the email is associated with

Example: "step-123"
items[].​is_unreadboolean

Indicates if the email is unread

Example: true
items[].​is_auto_replyboolean

Indicates if the email is an auto-reply

Example: false
items[].​reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
items[].​ai_interest_valuenumber

AI interest value

Example: 0.75
items[].​ai_assistednumber

Indicates if AI assistance was used

Example: 1
items[].​is_focusednumber

Indicates if the email is focused (is in the primary tab in the Unibox)

Example: 1
items[].​i_statusnumber

Indicates the interest status of the email

Example: 0
items[].​thread_idstring(uuid)

Identifier for the email thread. All the emails in the same thread have the same thread ID

Example: "01959271-1f7f-7d76-8a8f-286ef545e568"
items[].​content_previewstring

A short preview of the email content (usually the first few lines of the email)

Example: "This is a preview of the email content."
items[].​from_address_jsonArray of arrays

List of from address details

items[].​to_address_jsonArray of arrays

List of to address details

items[].​cc_address_jsonArray of arrays

List of CC address details

next_starting_afterstring

The filter for getting the next items after this one, this could either be a UUID, a MongoDB ID, a timestamp, on an email depending on the specific API

Example: "0000-0000-0000-0000"
Response
application/json
{ "items": [ { … } ], "next_starting_after": "0000-0000-0000-0000" }

Get email

Request

Requires one of the following scopes: emails:read, emails:all, all:read, all:all

Path
idstringrequired
curl -i -X GET \
  'https://api.instantly.ai/api/v2/emails/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The requested Email

Bodyapplication/json
idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01959271-1f7f-7d76-8a8f-286834e2ee38"
timestamp_createdstring(date-time)read-onlyrequired

Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.

Example: "2025-03-14T02:17:22.047Z"
timestamp_emailstring(date-time)read-onlyrequired

The timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server.

Example: "2025-03-14T02:17:22.047Z"
message_idstringread-onlyrequired

Unique email ID from the email server

Example: "<example123@mail.gmail.com>"
subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
to_address_email_liststringrequired

Comma-separated list of recipient email addresses

Example: "recipient@example.com"
bodyobjectread-onlyrequired

An object containing the email body in HTML and text format

body.​textstring

Text content of the email

Example: "This is a test email"
body.​htmlstring

HTML content of the email

Example: "<p>This is a test email</p>"
organization_idstring(uuid)read-onlyrequired

The workspace ID

Example: "01959271-1f7f-7d76-8a8f-2869119acdf6"
eaccountstringrequired

The email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace

Example: "eaccount-123"
from_address_emailstring(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tostring

Reply-to email address

Example: "replyto@example.com"
campaign_idstring(uuid)

The id of the campaign that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286ada9833bd"
subsequence_idstring(uuid)

The id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286bbb2b2346"
list_idstring(uuid)

The id of the list (if the lead is part of a list)

Example: "01959271-1f7f-7d76-8a8f-286cd99afd33"
leadstring(uuid)

The lead id (if any)

Example: "01959271-1f7f-7d76-8a8f-286d1e5745c5"
ue_typenumber

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepstring

The campaign step that the email is associated with

Example: "step-123"
is_unreadboolean

Indicates if the email is unread

Example: true
is_auto_replyboolean

Indicates if the email is an auto-reply

Example: false
reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
ai_interest_valuenumber

AI interest value

Example: 0.75
ai_assistednumber

Indicates if AI assistance was used

Example: 1
is_focusednumber

Indicates if the email is focused (is in the primary tab in the Unibox)

Example: 1
i_statusnumber

Indicates the interest status of the email

Example: 0
thread_idstring(uuid)

Identifier for the email thread. All the emails in the same thread have the same thread ID

Example: "01959271-1f7f-7d76-8a8f-286ef545e568"
content_previewstring

A short preview of the email content (usually the first few lines of the email)

Example: "This is a preview of the email content."
from_address_jsonArray of arrays

List of from address details

to_address_jsonArray of arrays

List of to address details

cc_address_jsonArray of arrays

List of CC address details

Response
application/json
{ "id": "01959271-1f7f-7d76-8a8f-286834e2ee38", "timestamp_created": "2025-03-14T02:17:22.047Z", "timestamp_email": "2025-03-14T02:17:22.047Z", "message_id": "<example123@mail.gmail.com>", "subject": "Re: Your inquiry", "from_address_email": "sender@example.com", "to_address_email_list": "recipient@example.com", "cc_address_email_list": "cc@example.com", "bcc_address_email_list": "bcc@example.com", "reply_to": "replyto@example.com", "body": { "text": "This is a test email", "html": "<p>This is a test email</p>" }, "organization_id": "01959271-1f7f-7d76-8a8f-2869119acdf6", "campaign_id": "01959271-1f7f-7d76-8a8f-286ada9833bd", "subsequence_id": "01959271-1f7f-7d76-8a8f-286bbb2b2346", "list_id": "01959271-1f7f-7d76-8a8f-286cd99afd33", "lead": "01959271-1f7f-7d76-8a8f-286d1e5745c5", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": true, "is_auto_reply": false, "reminder_ts": "2025-03-14T02:17:22.047Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01959271-1f7f-7d76-8a8f-286ef545e568", "content_preview": "This is a preview of the email content.", "from_address_json": [], "to_address_json": [], "cc_address_json": [] }

Patch email

Request

Requires one of the following scopes: emails:update, emails:all, all:update, all:all

Path
idstringrequired
Bodyapplication/json
non-empty
is_unreadboolean

Indicates if the email is unread

Example: true
reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
curl -i -X PATCH \
  'https://api.instantly.ai/api/v2/emails/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

The updated Email

Bodyapplication/json
idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01959271-1f7f-7d76-8a8f-286834e2ee38"
timestamp_createdstring(date-time)read-onlyrequired

Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.

Example: "2025-03-14T02:17:22.047Z"
timestamp_emailstring(date-time)read-onlyrequired

The timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server.

Example: "2025-03-14T02:17:22.047Z"
message_idstringread-onlyrequired

Unique email ID from the email server

Example: "<example123@mail.gmail.com>"
subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
to_address_email_liststringrequired

Comma-separated list of recipient email addresses

Example: "recipient@example.com"
bodyobjectread-onlyrequired

An object containing the email body in HTML and text format

body.​textstring

Text content of the email

Example: "This is a test email"
body.​htmlstring

HTML content of the email

Example: "<p>This is a test email</p>"
organization_idstring(uuid)read-onlyrequired

The workspace ID

Example: "01959271-1f7f-7d76-8a8f-2869119acdf6"
eaccountstringrequired

The email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace

Example: "eaccount-123"
from_address_emailstring(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tostring

Reply-to email address

Example: "replyto@example.com"
campaign_idstring(uuid)

The id of the campaign that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286ada9833bd"
subsequence_idstring(uuid)

The id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286bbb2b2346"
list_idstring(uuid)

The id of the list (if the lead is part of a list)

Example: "01959271-1f7f-7d76-8a8f-286cd99afd33"
leadstring(uuid)

The lead id (if any)

Example: "01959271-1f7f-7d76-8a8f-286d1e5745c5"
ue_typenumber

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepstring

The campaign step that the email is associated with

Example: "step-123"
is_unreadboolean

Indicates if the email is unread

Example: true
is_auto_replyboolean

Indicates if the email is an auto-reply

Example: false
reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
ai_interest_valuenumber

AI interest value

Example: 0.75
ai_assistednumber

Indicates if AI assistance was used

Example: 1
is_focusednumber

Indicates if the email is focused (is in the primary tab in the Unibox)

Example: 1
i_statusnumber

Indicates the interest status of the email

Example: 0
thread_idstring(uuid)

Identifier for the email thread. All the emails in the same thread have the same thread ID

Example: "01959271-1f7f-7d76-8a8f-286ef545e568"
content_previewstring

A short preview of the email content (usually the first few lines of the email)

Example: "This is a preview of the email content."
from_address_jsonArray of arrays

List of from address details

to_address_jsonArray of arrays

List of to address details

cc_address_jsonArray of arrays

List of CC address details

Response
application/json
{ "id": "01959271-1f7f-7d76-8a8f-286834e2ee38", "timestamp_created": "2025-03-14T02:17:22.047Z", "timestamp_email": "2025-03-14T02:17:22.047Z", "message_id": "<example123@mail.gmail.com>", "subject": "Re: Your inquiry", "from_address_email": "sender@example.com", "to_address_email_list": "recipient@example.com", "cc_address_email_list": "cc@example.com", "bcc_address_email_list": "bcc@example.com", "reply_to": "replyto@example.com", "body": { "text": "This is a test email", "html": "<p>This is a test email</p>" }, "organization_id": "01959271-1f7f-7d76-8a8f-2869119acdf6", "campaign_id": "01959271-1f7f-7d76-8a8f-286ada9833bd", "subsequence_id": "01959271-1f7f-7d76-8a8f-286bbb2b2346", "list_id": "01959271-1f7f-7d76-8a8f-286cd99afd33", "lead": "01959271-1f7f-7d76-8a8f-286d1e5745c5", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": true, "is_auto_reply": false, "reminder_ts": "2025-03-14T02:17:22.047Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01959271-1f7f-7d76-8a8f-286ef545e568", "content_preview": "This is a preview of the email content.", "from_address_json": [], "to_address_json": [], "cc_address_json": [] }

Delete email

Request

Requires one of the following scopes: emails:delete, emails:all, all:delete, all:all

Path
idstringrequired
curl -i -X DELETE \
  'https://api.instantly.ai/api/v2/emails/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The deleted Email

Bodyapplication/json
idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01959271-1f7f-7d76-8a8f-286834e2ee38"
timestamp_createdstring(date-time)read-onlyrequired

Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.

Example: "2025-03-14T02:17:22.047Z"
timestamp_emailstring(date-time)read-onlyrequired

The timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server.

Example: "2025-03-14T02:17:22.047Z"
message_idstringread-onlyrequired

Unique email ID from the email server

Example: "<example123@mail.gmail.com>"
subjectstringrequired

Subject line of the email message

Example: "Re: Your inquiry"
to_address_email_liststringrequired

Comma-separated list of recipient email addresses

Example: "recipient@example.com"
bodyobjectread-onlyrequired

An object containing the email body in HTML and text format

body.​textstring

Text content of the email

Example: "This is a test email"
body.​htmlstring

HTML content of the email

Example: "<p>This is a test email</p>"
organization_idstring(uuid)read-onlyrequired

The workspace ID

Example: "01959271-1f7f-7d76-8a8f-2869119acdf6"
eaccountstringrequired

The email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace

Example: "eaccount-123"
from_address_emailstring(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_liststring

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_liststring

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tostring

Reply-to email address

Example: "replyto@example.com"
campaign_idstring(uuid)

The id of the campaign that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286ada9833bd"
subsequence_idstring(uuid)

The id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)

Example: "01959271-1f7f-7d76-8a8f-286bbb2b2346"
list_idstring(uuid)

The id of the list (if the lead is part of a list)

Example: "01959271-1f7f-7d76-8a8f-286cd99afd33"
leadstring(uuid)

The lead id (if any)

Example: "01959271-1f7f-7d76-8a8f-286d1e5745c5"
ue_typenumber

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepstring

The campaign step that the email is associated with

Example: "step-123"
is_unreadboolean

Indicates if the email is unread

Example: true
is_auto_replyboolean

Indicates if the email is an auto-reply

Example: false
reminder_tsstring(date-time)

Timestamp for the reminder.

Example: "2025-03-14T02:17:22.047Z"
ai_interest_valuenumber

AI interest value

Example: 0.75
ai_assistednumber

Indicates if AI assistance was used

Example: 1
is_focusednumber

Indicates if the email is focused (is in the primary tab in the Unibox)

Example: 1
i_statusnumber

Indicates the interest status of the email

Example: 0
thread_idstring(uuid)

Identifier for the email thread. All the emails in the same thread have the same thread ID

Example: "01959271-1f7f-7d76-8a8f-286ef545e568"
content_previewstring

A short preview of the email content (usually the first few lines of the email)

Example: "This is a preview of the email content."
from_address_jsonArray of arrays

List of from address details

to_address_jsonArray of arrays

List of to address details

cc_address_jsonArray of arrays

List of CC address details

Response
application/json
{ "id": "01959271-1f7f-7d76-8a8f-286834e2ee38", "timestamp_created": "2025-03-14T02:17:22.047Z", "timestamp_email": "2025-03-14T02:17:22.047Z", "message_id": "<example123@mail.gmail.com>", "subject": "Re: Your inquiry", "from_address_email": "sender@example.com", "to_address_email_list": "recipient@example.com", "cc_address_email_list": "cc@example.com", "bcc_address_email_list": "bcc@example.com", "reply_to": "replyto@example.com", "body": { "text": "This is a test email", "html": "<p>This is a test email</p>" }, "organization_id": "01959271-1f7f-7d76-8a8f-2869119acdf6", "campaign_id": "01959271-1f7f-7d76-8a8f-286ada9833bd", "subsequence_id": "01959271-1f7f-7d76-8a8f-286bbb2b2346", "list_id": "01959271-1f7f-7d76-8a8f-286cd99afd33", "lead": "01959271-1f7f-7d76-8a8f-286d1e5745c5", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": true, "is_auto_reply": false, "reminder_ts": "2025-03-14T02:17:22.047Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01959271-1f7f-7d76-8a8f-286ef545e568", "content_preview": "This is a preview of the email content.", "from_address_json": [], "to_address_json": [], "cc_address_json": [] }

Count unread emails

Request

Requires one of the following scopes: emails:read, emails:all, all:read, all:all

curl -i -X GET \
  https://api.instantly.ai/api/v2/emails/unread/count \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Default Response

Bodyapplication/json
countnumber
Example: 100
Response
application/json
{ "count": 100 }

Mark all emails in a thread as read

Request

Requires one of the following scopes: emails:update, emails:all, all:update, all:all

Path
threadIdstringrequired
Example: 123e4567-e89b-12d3-a456-426614174000
curl -i -X POST \
  https://api.instantly.ai/api/v2/emails/threads/123e4567-e89b-12d3-a456-426614174000/mark-as-read \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Default Response

Bodyapplication/json
successboolean
Example: true
Response
application/json
{ "success": true }

Email Verification

A single email verification

Operations

Lead List

A list used to store leads

Operations

Inbox Placement Test

An inbox placement test

Operations

Inbox Placement Analytics

Analytics data for individual emails in inbox placement tests

Operations

Inbox Placement Blacklist & SpamAssassin Report

Report data for an inbox placement test

Operations

API Key

API Key

Operations

Account Campaign Mapping

Account Campaign Mapping

Operations

Lead

A lead entity representing an individual lead

Operations

Background Job

A background job that can be used to perform long-running tasks

Operations

Custom Tag

A custom tag for organizing and categorizing items

Operations

Block List Entry

A blocked email or domain

Operations

Lead Label

A custom label for categorizing and managing leads

Operations

Workspace

A workspace entity representing a workspace

Operations

Workspace Group Member

A member of a workspace group. You can use the endpoints within this entity to manage the members of a workspace group.

Operations

Workspace Member

A member of a workspace with associated user details

Operations

Campaign Subsequence

A subsequence entity representing a follow-up sequence

Operations

Schemas