- Base URL:
https://message.sls.epilot.io - API Docs: https://docs.epilot.io/api/message
Send and receive email messages via your epilot organization
# List available operations
epilot message
# Call an operation
epilot message sendMessage| Flag | Description |
|---|---|
-p key=value |
Set a named parameter |
-d '{...}' |
Request body JSON |
-H 'Key: Value' |
Custom header |
-t, --token <token> |
Bearer token for authentication |
--profile <name> |
Use a named profile |
-s, --server <url> |
Override server base URL |
-i, --include |
Include response headers in output |
--json |
Output raw JSON (no formatting) |
-v, --verbose |
Verbose output (show request details) |
--jsonata <expr> |
JSONata expression to transform response |
--definition <file> |
Override OpenAPI spec file/URL |
--guided |
Prompt for all parameters interactively |
--no-interactive |
Disable interactive prompts |
Messages
sendMessage— Send an email messageupdateMessage— Update message metadatagetMessage— Get an email message by iddeleteMessage— Immediately and permanently delete a message. This operation cannot be undone.getMessageEml— Download a message as an EML file.searchMessages— Search MessagestrashMessage— Move a message to the trashuntrashMessage— Restore a trashed messagemarkReadMessage— Mark message as readmarkReadMessageV2— Mark message as read within a scopemarkUnreadMessage— Mark message as unreadgetUnread— Get all unread messages by actorgetUnreadCounts— Unread counts for several named scopes in one request.markUnreadMessageV2— Mark message as unread within a scopespamMessage— Mark a single message as spam. Also marks the parent thread as spam if all messages in the thread are spam.unspamMessage— Remove spam marking from a single message. Also removes spam from the parent thread if no other messages are spam.getMessageV2— - Fetches message by ID
Threads
searchThreads— Search for threads of email messages.searchThreadsV2— Search for threads of email messages.searchIds— Return all thread id's that match a criteriagetAssigneeWorkload— Return the open-thread workload for a set of user ids.updateThread— Modify thread metadatadeleteThread— Immediately and permanently delete a thread. This operation cannot be undone.moveThread— Move thread to a different InboxmarkThreadAsDone— Mark thread as donemarkThreadAsOpen— Mark thread as opengetThreadTimeline— Get thread timelinetrashThread— Move a thread to trashuntrashThread— Restore a trashed threadspamThread— Mark a thread as spamunspamThread— Remove spam marking from a threadbulkMoveThreads— Move many threads to a different inboxbulkAssignThreads— Assign many threadsthreadBulkActionsRead— Perform a bulk action of marking an array of thread ids as readthreadBulkActionsUnread— Perform a bulk action of marking an array of thread ids as unreadthreadBulkActionsFavorite— Perform a bulk action of marking an array of thread ids favoritethreadBulkActionsUnfavorite— Perform a bulk action of marking an array of thread ids unfavoritedthreadBulkActionsTrash— Perform a bulk action of trashing an array of threadsthreadBulkActionsUntrash— Perform a bulk action of untrashing an array of threadsthreadBulkActionsDelete— Performs a bulk permanent delete for all threadsthreadBulkActionsDone— Perform a bulk action of marking an array of threads as donethreadBulkActionsOpen— Perform a bulk action of marking an array of threads as openmarkReadThread— Mark thread as readmarkReadThreadV2— Mark thread as read within a scopemarkUnreadThread— Mark thread as unreadmarkUnreadThreadV2— Mark thread as unread within a scopeassignThread— Assign thread to entitiesunassignThread— Unassign thread from entitiesassignUsers— Assign users to thread for receiving notifications.assignUsersV2— Assign users to thread.pinThread— Pin a single threadunpinThread— Unpin a single thread
Drafts
createDraft— Create a new draftsendDraft— Send the existing draft to the recipients
Send an email message
POST /v1/message/messages
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
do_not_create_entities |
query | boolean | No | When true, this flag lets the caller to send only the message and by-pass creating the thread & message entities. |
Request Body
Sample Call
epilot message sendMessage \
-d '{}'Using stdin pipe:
cat body.json | epilot message sendMessageWith JSONata filter:
epilot message sendMessage --jsonata 'complete_thread'Sample Response
{}Update message metadata
PUT /v1/message/messages
Sample Call
epilot message updateMessageWith JSONata filter:
epilot message updateMessage --jsonata '$'Sample Response
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"cc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"bcc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"file": {
"$relation": [
{
"entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
"filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
"is_message_attachment": true,
"may_be_signature_attachment": true,
"cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
"inline": false,
"send_as_link": false,
"save_to_entity": true
}
]
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}Get an email message by id
GET /v1/message/messages/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message getMessage \
-p id=4d74976d-fb64-47fd-85e2-65eea140f5ebUsing positional args for path parameters:
epilot message getMessage 4d74976d-fb64-47fd-85e2-65eea140f5ebWith JSONata filter:
epilot message getMessage -p id=4d74976d-fb64-47fd-85e2-65eea140f5eb --jsonata '$'Sample Response
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"cc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"bcc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"file": {
"$relation": [
{
"entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
"filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
"is_message_attachment": true,
"may_be_signature_attachment": true,
"cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
"inline": false,
"send_as_link": false,
"save_to_entity": true
}
]
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}Immediately and permanently delete a message. This operation cannot be undone.
DELETE /v1/message/messages/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message deleteMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message deleteMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message deleteMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Download a message as an EML file.
GET /v1/message/messages/{id}/eml
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message entity ID |
Sample Call
epilot message getMessageEml \
-p id=4d74976d-fb64-47fd-85e2-65eea140f5ebUsing positional args for path parameters:
epilot message getMessageEml 4d74976d-fb64-47fd-85e2-65eea140f5ebWith JSONata filter:
epilot message getMessageEml -p id=4d74976d-fb64-47fd-85e2-65eea140f5eb --jsonata '$'Search Messages
POST /v1/message/messages:search
Request Body
Sample Call
epilot message searchMessagesWith request body:
epilot message searchMessages \
-d '{
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"q": "subject:\"Request for solar panel price\" AND _tags:INBOX",
"view": {
"folder": "inbox",
"mailbox": "organization",
"labels": ["string"],
"purposes": ["string"],
"filters": ["unread"],
"from": ["string"],
"to": ["string"],
"assigned_to": ["string"],
"include_unassigned": true,
"date_from_days_ago": 0,
"date_to_days_ago": 0,
"email_filter": ["string"],
"text": "string",
"thread_ids": ["string"],
"pinned_by": "string"
},
"user_groups": ["string"],
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"],
"from": 0,
"size": 10,
"hydrate": false,
"include_scores": false,
"sort": "string",
"highlight": {}
}'Using stdin pipe:
cat body.json | epilot message searchMessagesWith JSONata filter:
epilot message searchMessages --jsonata 'results[0]'Sample Response
{
"hits": 14,
"results": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {},
"reply_to": {},
"to": [],
"cc": [],
"bcc": [],
"file": {},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}
]
}Move a message to the trash
POST /v1/message/messages/{id}/trash
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message trashMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message trashMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message trashMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Restore a trashed message
POST /v1/message/messages/{id}/untrash
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message untrashMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message untrashMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message untrashMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark message as read
POST /v1/message/messages/{id}/read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message markReadMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message markReadMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markReadMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark message as read within a scope
POST /v2/message/messages/{id}/read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Request Body (required)
Sample Call
epilot message markReadMessageV2 \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"scopes":["organization","user"]}'Using positional args for path parameters:
epilot message markReadMessageV2 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message markReadMessageV2 -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markReadMessageV2 -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark message as unread
POST /v1/message/messages/{id}/unread
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message markUnreadMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message markUnreadMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markUnreadMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Get all unread messages by actor
GET /v1/message/messages/unread/{actor}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actor |
path | "organization" | "user" | Yes | Actor performing call, can be user or organization |
email_filter |
query | string[] | string | No | emails to filter by |
Sample Call
epilot message getUnread \
-p actor=exampleUsing positional args for path parameters:
epilot message getUnread exampleWith JSONata filter:
epilot message getUnread -p actor=example --jsonata 'count'Sample Response
{
"count": 14,
"unread": 0,
"drafts": 12,
"unassigned": 1,
"spam": 3
}Unread counts for several named scopes in one request.
POST /v1/message/unread:counts
Request Body (required)
Sample Call
epilot message getUnreadCountsWith request body:
epilot message getUnreadCounts \
-d '{
"actor": "organization",
"email_filter": ["string"],
"user_groups": ["string"],
"scopes": [
{
"name": "inbox-support",
"type": "organization",
"q": "_tags.keyword:inbox AND !_tags.keyword:trash",
"view_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}
]
}'Using stdin pipe:
cat body.json | epilot message getUnreadCountsWith JSONata filter:
epilot message getUnreadCounts --jsonata 'enabled'Sample Response
{
"enabled": true,
"counts": {},
"omitted": ["string"]
}Mark message as unread within a scope
POST /v2/message/messages/{id}/unread
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Request Body (required)
Sample Call
epilot message markUnreadMessageV2 \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"scopes":["organization","user"]}'Using positional args for path parameters:
epilot message markUnreadMessageV2 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message markUnreadMessageV2 -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markUnreadMessageV2 -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Search for threads of email messages.
POST /v1/message/threads:search
Request Body
Sample Call
epilot message searchThreads \
-d '{"q":"subject:\"Request for solar panel price\" AND _tags:INBOX","from":0,"size":10,"hydrate":false}'Using stdin pipe:
cat body.json | epilot message searchThreadsWith JSONata filter:
epilot message searchThreads --jsonata 'results[0]'Sample Response
{
"hits": 14,
"results": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"topic": "CUSTOMER_MESSAGE",
"assigned_to": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"done": false,
"latest_message": {},
"latest_trash_message": {},
"latest_message_at": "2024-02-10T09:14:31.990Z"
}
]
}Search for threads of email messages.
POST /v2/message/threads:search
Request Body
Sample Call
epilot message searchThreadsV2With request body:
epilot message searchThreadsV2 \
-d '{
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"q": "subject:\"Request for solar panel price\" AND _tags:INBOX",
"view": {
"folder": "inbox",
"mailbox": "organization",
"labels": ["string"],
"purposes": ["string"],
"filters": ["unread"],
"from": ["string"],
"to": ["string"],
"assigned_to": ["string"],
"include_unassigned": true,
"date_from_days_ago": 0,
"date_to_days_ago": 0,
"email_filter": ["string"],
"text": "string",
"thread_ids": ["string"],
"pinned_by": "string"
},
"user_groups": ["string"],
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"],
"from": 0,
"size": 10,
"hydrate": false,
"include_scores": false,
"sort": "string",
"highlight": {}
}'Using stdin pipe:
cat body.json | epilot message searchThreadsV2With JSONata filter:
epilot message searchThreadsV2 --jsonata 'results[0]'Sample Response
{
"hits": 14,
"results": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"topic": "CUSTOMER_MESSAGE",
"assigned_to": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"done": false,
"latest_message": {},
"latest_trash_message": {},
"latest_message_at": "2024-02-10T09:14:31.990Z"
}
]
}Return all thread id's that match a criteria
POST /v1/message/threads:searchIds
Request Body
Sample Call
epilot message searchIdsWith request body:
epilot message searchIds \
-d '{
"view": {
"folder": "inbox",
"mailbox": "organization",
"labels": ["string"],
"purposes": ["string"],
"filters": ["unread"],
"from": ["string"],
"to": ["string"],
"assigned_to": ["string"],
"include_unassigned": true,
"date_from_days_ago": 0,
"date_to_days_ago": 0,
"email_filter": ["string"],
"text": "string",
"thread_ids": ["string"],
"pinned_by": "string"
},
"user_groups": ["string"],
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"q": "subject:\"Request for solar panel price\" AND _tags:INBOX"
}'Using stdin pipe:
cat body.json | epilot message searchIdsWith JSONata filter:
epilot message searchIds --jsonata 'results[0]'Sample Response
{
"hits": 14,
"results": ["string"]
}Return the open-thread workload for a set of user ids.
POST /v2/message/threads:workload
Request Body (required)
Sample Call
epilot message getAssigneeWorkload \
-d '{"user_ids":["11000902","11001053"]}'Using stdin pipe:
cat body.json | epilot message getAssigneeWorkloadWith JSONata filter:
epilot message getAssigneeWorkload --jsonata 'workloads'Sample Response
{
"workloads": [
{
"user_id": "11000902",
"open_threads": 2
}
]
}Modify thread metadata
PUT /v1/message/threads
Sample Call
epilot message updateThreadWith JSONata filter:
epilot message updateThread --jsonata '$'Sample Response
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"topic": "CUSTOMER_MESSAGE",
"assigned_to": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"done": false,
"latest_message": {
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{}
],
"cc": [
{}
],
"bcc": [
{}
],
"file": {
"$relation": []
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
},
"latest_trash_message": {
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{}
],
"cc": [
{}
],
"bcc": [
{}
],
"file": {
"$relation": []
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
},
"latest_message_at": "2024-02-10T09:14:31.990Z"
}Immediately and permanently delete a thread. This operation cannot be undone.
DELETE /v1/message/threads/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message deleteThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message deleteThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message deleteThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Move thread to a different Inbox
POST /v1/message/threads/{id}:move
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Request Body (required)
Sample Call
epilot message moveThread \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"inbox_id":"3f34ce73-089c-4d45-a5ee-c161234e41c3"}'Using positional args for path parameters:
epilot message moveThread 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message moveThread -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message moveThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark thread as done
POST /v1/message/threads/{id}:markAsDone
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message markThreadAsDone \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message markThreadAsDone 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markThreadAsDone -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark thread as open
POST /v1/message/threads/{id}:markAsOpen
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message markThreadAsOpen \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message markThreadAsOpen 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markThreadAsOpen -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Get thread timeline
GET /v1/message/threads/{id}/timeline
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message getThreadTimeline \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message getThreadTimeline 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message getThreadTimeline -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata 'events'Sample Response
{
"events": [
{
"id": "string",
"data": {
"type": "THREAD_DONE",
"user_id": "123",
"organization_id": "456"
},
"timestamp": "2024-01-01T00:00:00.000Z",
"message_id": "string",
"source": "user",
"automated": true,
"actor": {
"user_id": "string",
"email": "string"
},
"automation": {
"id": "string",
"name": "string"
}
}
]
}Move a thread to trash
POST /v1/message/threads/{id}/trash
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message trashThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message trashThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message trashThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Restore a trashed thread
POST /v1/message/threads/{id}/untrash
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message untrashThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message untrashThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message untrashThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark a thread as spam
POST /v1/message/threads/{id}/spam
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message spamThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message spamThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message spamThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Remove spam marking from a thread
POST /v1/message/threads/{id}/unspam
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message unspamThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message unspamThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message unspamThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark a single message as spam. Also marks the parent thread as spam if all messages in the thread are spam.
POST /v1/message/messages/{id}/spam
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message spamMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message spamMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message spamMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Remove spam marking from a single message. Also removes spam from the parent thread if no other messages are spam.
POST /v1/message/messages/{id}/unspam
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message unspamMessage \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message unspamMessage 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message unspamMessage -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Move many threads to a different inbox
POST /v1/message/threads/bulk:move
Request Body (required)
Sample Call
epilot message bulkMoveThreadsWith request body:
epilot message bulkMoveThreads \
-d '{
"ids": ["6b299eda-4018-4554-8965-c4b5598e6531"],
"assign_to": ["206801"],
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"scopes": ["organization", "user"]
}'Using stdin pipe:
cat body.json | epilot message bulkMoveThreadsWith JSONata filter:
epilot message bulkMoveThreads --jsonata '$'Assign many threads
POST /v1/message/threads/bulk:assign
Request Body (required)
Sample Call
epilot message bulkAssignThreadsWith request body:
epilot message bulkAssignThreads \
-d '{
"ids": ["6b299eda-4018-4554-8965-c4b5598e6531"],
"assign_to": ["206801"],
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"scopes": ["organization", "user"]
}'Using stdin pipe:
cat body.json | epilot message bulkAssignThreadsWith JSONata filter:
epilot message bulkAssignThreads --jsonata '$'Perform a bulk action of marking an array of thread ids as read
POST /v1/message/threads/bulk:read
Request Body (required)
Sample Call
epilot message threadBulkActionsReadWith request body:
epilot message threadBulkActionsRead \
-d '{
"ids": ["6b299eda-4018-4554-8965-c4b5598e6531"],
"assign_to": ["206801"],
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"scopes": ["organization", "user"]
}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsReadWith JSONata filter:
epilot message threadBulkActionsRead --jsonata '$'Perform a bulk action of marking an array of thread ids as unread
POST /v1/message/threads/bulk:unread
Request Body (required)
Sample Call
epilot message threadBulkActionsUnreadWith request body:
epilot message threadBulkActionsUnread \
-d '{
"ids": ["6b299eda-4018-4554-8965-c4b5598e6531"],
"assign_to": ["206801"],
"inbox_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3",
"scopes": ["organization", "user"]
}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsUnreadWith JSONata filter:
epilot message threadBulkActionsUnread --jsonata '$'Perform a bulk action of marking an array of thread ids favorite
POST /v1/message/threads/bulk:favorite
Request Body (required)
Sample Call
epilot message threadBulkActionsFavorite \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsFavoriteWith JSONata filter:
epilot message threadBulkActionsFavorite --jsonata '$'Perform a bulk action of marking an array of thread ids unfavorited
POST /v1/message/threads/bulk:unfavorite
Request Body (required)
Sample Call
epilot message threadBulkActionsUnfavorite \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsUnfavoriteWith JSONata filter:
epilot message threadBulkActionsUnfavorite --jsonata '$'Perform a bulk action of trashing an array of threads
POST /v1/message/threads/bulk:trash
Request Body (required)
Sample Call
epilot message threadBulkActionsTrash \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsTrashWith JSONata filter:
epilot message threadBulkActionsTrash --jsonata '$'Perform a bulk action of untrashing an array of threads
POST /v1/message/threads/bulk:untrash
Request Body (required)
Sample Call
epilot message threadBulkActionsUntrash \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsUntrashWith JSONata filter:
epilot message threadBulkActionsUntrash --jsonata '$'Performs a bulk permanent delete for all threads
POST /v1/message/threads/bulk:delete
Request Body (required)
Sample Call
epilot message threadBulkActionsDelete \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsDeleteWith JSONata filter:
epilot message threadBulkActionsDelete --jsonata '$'Perform a bulk action of marking an array of threads as done
POST /v1/message/threads/bulk:done
Request Body (required)
Sample Call
epilot message threadBulkActionsDone \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsDoneWith JSONata filter:
epilot message threadBulkActionsDone --jsonata '$'Perform a bulk action of marking an array of threads as open
POST /v1/message/threads/bulk:open
Request Body (required)
Sample Call
epilot message threadBulkActionsOpen \
-d '{"ids":["6b299eda-4018-4554-8965-c4b5598e6531"]}'Using stdin pipe:
cat body.json | epilot message threadBulkActionsOpenWith JSONata filter:
epilot message threadBulkActionsOpen --jsonata '$'Mark thread as read
POST /v1/message/threads/{id}/read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message markReadThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message markReadThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markReadThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark thread as read within a scope
POST /v2/message/threads/{id}/read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Request Body (required)
Sample Call
epilot message markReadThreadV2 \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"scopes":["organization","user"]}'Using positional args for path parameters:
epilot message markReadThreadV2 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message markReadThreadV2 -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markReadThreadV2 -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark thread as unread
POST /v1/message/threads/{id}/unread
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message markUnreadThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message markUnreadThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markUnreadThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Mark thread as unread within a scope
POST /v2/message/threads/{id}/unread
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Request Body (required)
Sample Call
epilot message markUnreadThreadV2 \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"scopes":["organization","user"]}'Using positional args for path parameters:
epilot message markUnreadThreadV2 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message markUnreadThreadV2 -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message markUnreadThreadV2 -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Assign thread to entities
POST /v1/message/threads/{id}/assign
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Request Body (required)
Sample Call
epilot message assignThread \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '[{"slug":"contact","entity_id":"3f34ce73-089c-4d45-a5ee-c161234e41c3","org_id":"206801","is_main_entity":true}]'Using positional args for path parameters:
epilot message assignThread 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message assignThread -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message assignThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Unassign thread from entities
POST /v1/message/threads/{id}/unassign
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
unlink_mapped_entities |
query | boolean | No | When true, also removes unassigned entities from mapped_entities on related source entities |
Request Body (required)
Sample Call
epilot message unassignThread \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '[{"slug":"contact","entity_id":"3f34ce73-089c-4d45-a5ee-c161234e41c3"}]'Using positional args for path parameters:
epilot message unassignThread 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message unassignThread -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message unassignThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Assign users to thread for receiving notifications.
POST /v1/message/threads/{id}/assign:users
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Request Body (required)
Sample Call
epilot message assignUsers \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"assigned_to":["206801"]}'Using positional args for path parameters:
epilot message assignUsers 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message assignUsers -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message assignUsers -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Assign users to thread.
POST /v2/message/threads/{id}/assign:users
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Request Body (required)
Sample Call
epilot message assignUsersV2 \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{"add":["206801"],"remove":["206801"]}'Using positional args for path parameters:
epilot message assignUsersV2 123e4567-e89b-12d3-a456-426614174000Using stdin pipe:
cat body.json | epilot message assignUsersV2 -p id=123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message assignUsersV2 -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Pin a single thread
POST /v1/message/threads/{id}:pin
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message pinThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message pinThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message pinThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Unpin a single thread
DELETE /v1/message/threads/{id}:pin
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Thread ID |
Sample Call
epilot message unpinThread \
-p id=123e4567-e89b-12d3-a456-426614174000Using positional args for path parameters:
epilot message unpinThread 123e4567-e89b-12d3-a456-426614174000With JSONata filter:
epilot message unpinThread -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'Create a new draft
POST /v1/message/drafts
Request Body
Sample Call
epilot message createDraft \
-d '{}'Using stdin pipe:
cat body.json | epilot message createDraftWith JSONata filter:
epilot message createDraft --jsonata '$'Sample Response
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"cc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"bcc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"file": {
"$relation": [
{
"entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
"filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
"is_message_attachment": true,
"may_be_signature_attachment": true,
"cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
"inline": false,
"send_as_link": false,
"save_to_entity": true
}
]
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}Send the existing draft to the recipients
POST /v1/message/drafts:send
Sample Call
epilot message sendDraftWith JSONata filter:
epilot message sendDraft --jsonata '$'Sample Response
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"cc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"bcc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"file": {
"$relation": [
{
"entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
"filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
"is_message_attachment": true,
"may_be_signature_attachment": true,
"cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
"inline": false,
"send_as_link": false,
"save_to_entity": true
}
]
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}- Fetches message by ID
GET /v2/message/messages/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Message ID |
Sample Call
epilot message getMessageV2 \
-p id=4d74976d-fb64-47fd-85e2-65eea140f5ebUsing positional args for path parameters:
epilot message getMessageV2 4d74976d-fb64-47fd-85e2-65eea140f5ebWith JSONata filter:
epilot message getMessageV2 -p id=4d74976d-fb64-47fd-85e2-65eea140f5eb --jsonata '$'Sample Response
{
"html_omitted": false,
"html_download_url": "https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html",
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_title": "string",
"_org": "206801",
"_schema": "message",
"_tags": ["pricing", "INBOX"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-10T09:14:31.990Z",
"message_id": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>",
"sender": "206801",
"updated_by": "206801",
"subject": "Request for solar panel price",
"html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
"text": "We at ABC GmbH would like to request a price quote for the solar panel.",
"from": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"reply_to": {
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
},
"to": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"cc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"bcc": [
{
"name": "epilot",
"address": "messaging@epilot.cloud",
"email_type": "INTERNAL",
"send_status": "SEND",
"send_error": {}
}
],
"file": {
"$relation": [
{
"entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
"filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
"is_message_attachment": true,
"may_be_signature_attachment": true,
"cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
"inline": false,
"send_as_link": false,
"save_to_entity": true
}
]
},
"references": "<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"in_reply_to": "<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>",
"user_read_message": ["206801", "200109"],
"org_read_message": ["789372", "210291"],
"send_status": ["SEND"],
"type": "SENT",
"template_id": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
}