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: "01976454-4628-780c-b29f-f465b029b758"
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-06-12T13:28:54.056Z"
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-06-12T13:28:54.056Z"
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: "01976454-4628-780c-b29f-f466965efa5a"
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_emailnull or string(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_listnull or string

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_listnull or string

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tonull or string

Reply-to email address

Example: "replyto@example.com"
campaign_idnull or string(uuid)

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

Example: "01976454-4628-780c-b29f-f467f628eb23"
subsequence_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5451b348a6b4"
list_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5452224667ff"
leadnull or string

The email address of the lead that the email is associated with

Example: "jondoe@example.com"
lead_idnull or string(uuid)

The lead id (if any)

Example: "01976454-4629-7dc7-99dd-54539a7ca87a"
ue_typenull or number

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepnull or string

The campaign step that the email is associated with

Example: "step-123"
is_unreadnull or number

Indicates if the email is unread

Example: 1
is_auto_replynull or numberread-only

Indicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true

Example: 0
reminder_tsnull or string(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
ai_interest_valuenull or number

AI interest value

Example: 0.75
ai_assistednull or number

Indicates if AI assistance was used

Example: 1
is_focusednull or number

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

Example: 1
i_statusnull or number

Indicates the interest status of the email

Example: 0
thread_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-545465aae916"
content_previewnull or string

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 null or arrays or null

List of from address details

to_address_jsonArray of null or arrays or null

List of to address details

cc_address_jsonArray of null or arrays or null

List of CC address details

{ "id": "01976454-4628-780c-b29f-f465b029b758", "timestamp_created": "2025-06-12T13:28:54.056Z", "timestamp_email": "2025-06-12T13:28:54.056Z", "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": "01976454-4628-780c-b29f-f466965efa5a", "campaign_id": "01976454-4628-780c-b29f-f467f628eb23", "subsequence_id": "01976454-4629-7dc7-99dd-5451b348a6b4", "list_id": "01976454-4629-7dc7-99dd-5452224667ff", "lead": "jondoe@example.com", "lead_id": "01976454-4629-7dc7-99dd-54539a7ca87a", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": 1, "is_auto_reply": 0, "reminder_ts": "2025-06-12T13:28:54.057Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01976454-4629-7dc7-99dd-545465aae916", "content_preview": "This is a preview of the email content.", "from_address_json": null, "to_address_json": null, "cc_address_json": null }

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-06-12T13:29:10.242Z"
assigned_tostring(uuid)

The user id assigned to the lead

Example: "01976454-8562-79f4-9e84-3140bc5d054f"
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: "01976454-4628-780c-b29f-f465b029b758"
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-06-12T13:28:54.056Z"
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-06-12T13:28:54.056Z"
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: "01976454-4628-780c-b29f-f466965efa5a"
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_emailnull or string(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_listnull or string

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_listnull or string

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tonull or string

Reply-to email address

Example: "replyto@example.com"
campaign_idnull or string(uuid)

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

Example: "01976454-4628-780c-b29f-f467f628eb23"
subsequence_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5451b348a6b4"
list_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5452224667ff"
leadnull or string

The email address of the lead that the email is associated with

Example: "jondoe@example.com"
lead_idnull or string(uuid)

The lead id (if any)

Example: "01976454-4629-7dc7-99dd-54539a7ca87a"
ue_typenull or number

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepnull or string

The campaign step that the email is associated with

Example: "step-123"
is_unreadnull or number

Indicates if the email is unread

Example: 1
is_auto_replynull or numberread-only

Indicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true

Example: 0
reminder_tsnull or string(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
ai_interest_valuenull or number

AI interest value

Example: 0.75
ai_assistednull or number

Indicates if AI assistance was used

Example: 1
is_focusednull or number

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

Example: 1
i_statusnull or number

Indicates the interest status of the email

Example: 0
thread_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-545465aae916"
content_previewnull or string

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 null or arrays or null

List of from address details

to_address_jsonArray of null or arrays or null

List of to address details

cc_address_jsonArray of null or arrays or null

List of CC address details

Response
application/json
{ "id": "01976454-4628-780c-b29f-f465b029b758", "timestamp_created": "2025-06-12T13:28:54.056Z", "timestamp_email": "2025-06-12T13:28:54.056Z", "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": "01976454-4628-780c-b29f-f466965efa5a", "campaign_id": "01976454-4628-780c-b29f-f467f628eb23", "subsequence_id": "01976454-4629-7dc7-99dd-5451b348a6b4", "list_id": "01976454-4629-7dc7-99dd-5452224667ff", "lead": "jondoe@example.com", "lead_id": "01976454-4629-7dc7-99dd-54539a7ca87a", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": 1, "is_auto_reply": 0, "reminder_ts": "2025-06-12T13:28:54.057Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01976454-4629-7dc7-99dd-545465aae916", "content_preview": "This is a preview of the email content.", "from_address_json": null, "to_address_json": null, "cc_address_json": null }

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

The id of the email to start the list from (use the "next_starting_after" field you got in a previous request to paginate)

Example: starting_after=01976454-8563-7460-9fec-1c5ab3315409
searchstring
Example: search=search term
campaign_idstring(uuid)
Example: campaign_id=123e4567-e89b-12d3-a456-426614174000
i_statusnumber
Example: i_status=1
eaccountstring

The email account that was used to send this email

Example: eaccount=jon@example.com
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=jondoe@example.com
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=jon%40example.com&email_type=received&has_reminder=true&i_status=1&is_unread=true&lead=jondoe%40example.com&limit=10&marked_as_done=true&mode=emode_focused&preview_only=true&scheduled_only=true&search=search%20term&sort_order=asc&starting_after=01976454-8563-7460-9fec-1c5ab3315409' \
  -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: "01976454-4628-780c-b29f-f465b029b758"
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-06-12T13:28:54.056Z"
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-06-12T13:28:54.056Z"
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: "01976454-4628-780c-b29f-f466965efa5a"
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_emailnull or string(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
items[].​cc_address_email_listnull or string

Comma-separated list of CC email addresses

Example: "cc@example.com"
items[].​bcc_address_email_listnull or string

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
items[].​reply_tonull or string

Reply-to email address

Example: "replyto@example.com"
items[].​campaign_idnull or string(uuid)

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

Example: "01976454-4628-780c-b29f-f467f628eb23"
items[].​subsequence_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5451b348a6b4"
items[].​list_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5452224667ff"
items[].​leadnull or string

The email address of the lead that the email is associated with

Example: "jondoe@example.com"
items[].​lead_idnull or string(uuid)

The lead id (if any)

Example: "01976454-4629-7dc7-99dd-54539a7ca87a"
items[].​ue_typenull or number

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[].​stepnull or string

The campaign step that the email is associated with

Example: "step-123"
items[].​is_unreadnull or number

Indicates if the email is unread

Example: 1
items[].​is_auto_replynull or numberread-only

Indicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true

Example: 0
items[].​reminder_tsnull or string(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
items[].​ai_interest_valuenull or number

AI interest value

Example: 0.75
items[].​ai_assistednull or number

Indicates if AI assistance was used

Example: 1
items[].​is_focusednull or number

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

Example: 1
items[].​i_statusnull or number

Indicates the interest status of the email

Example: 0
items[].​thread_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-545465aae916"
items[].​content_previewnull or string

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 null or arrays or null

List of from address details

items[].​to_address_jsonArray of null or arrays or null

List of to address details

items[].​cc_address_jsonArray of null or arrays or null

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: "01976454-8564-76a4-90cc-64fc53762717"
Response
application/json
{ "items": [ { … } ], "next_starting_after": "01976454-8564-76a4-90cc-64fc53762717" }

Get email

Request

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

Path
idstring(uuid)required

The ID of the requested item

Example: 01976454-8564-76a4-90cc-64fd5ff8b018
curl -i -X GET \
  https://api.instantly.ai/api/v2/emails/01976454-8564-76a4-90cc-64fd5ff8b018 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The requested Email

Bodyapplication/json
idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01976454-4628-780c-b29f-f465b029b758"
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-06-12T13:28:54.056Z"
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-06-12T13:28:54.056Z"
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: "01976454-4628-780c-b29f-f466965efa5a"
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_emailnull or string(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_listnull or string

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_listnull or string

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tonull or string

Reply-to email address

Example: "replyto@example.com"
campaign_idnull or string(uuid)

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

Example: "01976454-4628-780c-b29f-f467f628eb23"
subsequence_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5451b348a6b4"
list_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5452224667ff"
leadnull or string

The email address of the lead that the email is associated with

Example: "jondoe@example.com"
lead_idnull or string(uuid)

The lead id (if any)

Example: "01976454-4629-7dc7-99dd-54539a7ca87a"
ue_typenull or number

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepnull or string

The campaign step that the email is associated with

Example: "step-123"
is_unreadnull or number

Indicates if the email is unread

Example: 1
is_auto_replynull or numberread-only

Indicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true

Example: 0
reminder_tsnull or string(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
ai_interest_valuenull or number

AI interest value

Example: 0.75
ai_assistednull or number

Indicates if AI assistance was used

Example: 1
is_focusednull or number

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

Example: 1
i_statusnull or number

Indicates the interest status of the email

Example: 0
thread_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-545465aae916"
content_previewnull or string

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 null or arrays or null

List of from address details

to_address_jsonArray of null or arrays or null

List of to address details

cc_address_jsonArray of null or arrays or null

List of CC address details

Response
application/json
{ "id": "01976454-4628-780c-b29f-f465b029b758", "timestamp_created": "2025-06-12T13:28:54.056Z", "timestamp_email": "2025-06-12T13:28:54.056Z", "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": "01976454-4628-780c-b29f-f466965efa5a", "campaign_id": "01976454-4628-780c-b29f-f467f628eb23", "subsequence_id": "01976454-4629-7dc7-99dd-5451b348a6b4", "list_id": "01976454-4629-7dc7-99dd-5452224667ff", "lead": "jondoe@example.com", "lead_id": "01976454-4629-7dc7-99dd-54539a7ca87a", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": 1, "is_auto_reply": 0, "reminder_ts": "2025-06-12T13:28:54.057Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01976454-4629-7dc7-99dd-545465aae916", "content_preview": "This is a preview of the email content.", "from_address_json": null, "to_address_json": null, "cc_address_json": null }

Patch email

Request

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

Path
idstring(uuid)required

The ID of the item to update

Example: 01976454-8564-76a4-90cc-64fe417e607c
Bodyapplication/json
non-empty
is_unreadnumber or null

Indicates if the email is unread

Example: 1
reminder_tsstring or null(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
curl -i -X PATCH \
  https://api.instantly.ai/api/v2/emails/01976454-8564-76a4-90cc-64fe417e607c \
  -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: "01976454-4628-780c-b29f-f465b029b758"
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-06-12T13:28:54.056Z"
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-06-12T13:28:54.056Z"
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: "01976454-4628-780c-b29f-f466965efa5a"
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_emailnull or string(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_listnull or string

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_listnull or string

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tonull or string

Reply-to email address

Example: "replyto@example.com"
campaign_idnull or string(uuid)

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

Example: "01976454-4628-780c-b29f-f467f628eb23"
subsequence_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5451b348a6b4"
list_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5452224667ff"
leadnull or string

The email address of the lead that the email is associated with

Example: "jondoe@example.com"
lead_idnull or string(uuid)

The lead id (if any)

Example: "01976454-4629-7dc7-99dd-54539a7ca87a"
ue_typenull or number

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepnull or string

The campaign step that the email is associated with

Example: "step-123"
is_unreadnull or number

Indicates if the email is unread

Example: 1
is_auto_replynull or numberread-only

Indicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true

Example: 0
reminder_tsnull or string(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
ai_interest_valuenull or number

AI interest value

Example: 0.75
ai_assistednull or number

Indicates if AI assistance was used

Example: 1
is_focusednull or number

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

Example: 1
i_statusnull or number

Indicates the interest status of the email

Example: 0
thread_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-545465aae916"
content_previewnull or string

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 null or arrays or null

List of from address details

to_address_jsonArray of null or arrays or null

List of to address details

cc_address_jsonArray of null or arrays or null

List of CC address details

Response
application/json
{ "id": "01976454-4628-780c-b29f-f465b029b758", "timestamp_created": "2025-06-12T13:28:54.056Z", "timestamp_email": "2025-06-12T13:28:54.056Z", "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": "01976454-4628-780c-b29f-f466965efa5a", "campaign_id": "01976454-4628-780c-b29f-f467f628eb23", "subsequence_id": "01976454-4629-7dc7-99dd-5451b348a6b4", "list_id": "01976454-4629-7dc7-99dd-5452224667ff", "lead": "jondoe@example.com", "lead_id": "01976454-4629-7dc7-99dd-54539a7ca87a", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": 1, "is_auto_reply": 0, "reminder_ts": "2025-06-12T13:28:54.057Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01976454-4629-7dc7-99dd-545465aae916", "content_preview": "This is a preview of the email content.", "from_address_json": null, "to_address_json": null, "cc_address_json": null }

Delete email

Request

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

Path
idstring(uuid)required

The ID of the item to delete

Example: 01976454-8565-7d01-be6a-aa79a8750b2c
Bodyapplication/json
null
curl -i -X DELETE \
  https://api.instantly.ai/api/v2/emails/01976454-8565-7d01-be6a-aa79a8750b2c \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json'

Responses

The deleted Email

Bodyapplication/json
idstring(uuid)read-onlyrequired

A Unique identifier

Example: "01976454-4628-780c-b29f-f465b029b758"
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-06-12T13:28:54.056Z"
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-06-12T13:28:54.056Z"
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: "01976454-4628-780c-b29f-f466965efa5a"
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_emailnull or string(email)read-only

The sender email address, populated based on the eaccount

Example: "sender@example.com"
cc_address_email_listnull or string

Comma-separated list of CC email addresses

Example: "cc@example.com"
bcc_address_email_listnull or string

Comma-separated list of BCC email addresses

Example: "bcc@example.com"
reply_tonull or string

Reply-to email address

Example: "replyto@example.com"
campaign_idnull or string(uuid)

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

Example: "01976454-4628-780c-b29f-f467f628eb23"
subsequence_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5451b348a6b4"
list_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-5452224667ff"
leadnull or string

The email address of the lead that the email is associated with

Example: "jondoe@example.com"
lead_idnull or string(uuid)

The lead id (if any)

Example: "01976454-4629-7dc7-99dd-54539a7ca87a"
ue_typenull or number

Email type based on the life cycle of the email

Enum ValueDescription
1

Sent from campaign

2

Received

3

Sent

4

Scheduled

Example: 3
stepnull or string

The campaign step that the email is associated with

Example: "step-123"
is_unreadnull or number

Indicates if the email is unread

Example: 1
is_auto_replynull or numberread-only

Indicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true

Example: 0
reminder_tsnull or string(date-time)

Timestamp for the reminder.

Example: "2025-06-12T13:28:54.057Z"
ai_interest_valuenull or number

AI interest value

Example: 0.75
ai_assistednull or number

Indicates if AI assistance was used

Example: 1
is_focusednull or number

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

Example: 1
i_statusnull or number

Indicates the interest status of the email

Example: 0
thread_idnull or string(uuid)

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

Example: "01976454-4629-7dc7-99dd-545465aae916"
content_previewnull or string

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 null or arrays or null

List of from address details

to_address_jsonArray of null or arrays or null

List of to address details

cc_address_jsonArray of null or arrays or null

List of CC address details

Response
application/json
{ "id": "01976454-4628-780c-b29f-f465b029b758", "timestamp_created": "2025-06-12T13:28:54.056Z", "timestamp_email": "2025-06-12T13:28:54.056Z", "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": "01976454-4628-780c-b29f-f466965efa5a", "campaign_id": "01976454-4628-780c-b29f-f467f628eb23", "subsequence_id": "01976454-4629-7dc7-99dd-5451b348a6b4", "list_id": "01976454-4629-7dc7-99dd-5452224667ff", "lead": "jondoe@example.com", "lead_id": "01976454-4629-7dc7-99dd-54539a7ca87a", "eaccount": "eaccount-123", "ue_type": 3, "step": "step-123", "is_unread": 1, "is_auto_reply": 0, "reminder_ts": "2025-06-12T13:28:54.057Z", "ai_interest_value": 0.75, "ai_assisted": 1, "is_focused": 1, "i_status": 0, "thread_id": "01976454-4629-7dc7-99dd-545465aae916", "content_preview": "This is a preview of the email content.", "from_address_json": null, "to_address_json": null, "cc_address_json": null }

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
thread_idstringrequired
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 accounts and campaigns. You can use them as filters in apis that list accounts and campaigns.

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

Audit Log

Audit log records for tracking system activities

Operations

Schemas