Skip to content

Email

Ingest inbound email into the platform. Supports ingesting an external inbound email, ingesting an email with file attachments, and importing an email transcript onto a case.

Ingest external inbound email

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
accountUserIdstring
fromstringrequired

Sender email address

tostring

Primary recipient email address

ccArray of strings

CC recipient email addresses

bccArray of strings

BCC recipient email addresses

brandPostboolean

Whether the email is a brand post

subjectstringrequired

Email subject

bodystringrequired

Email body

sentTimeinteger, (int64)

Sent time in epoch milliseconds

attachmentsArray of objects(ExternalMailAttachment)

Attachments: provide url or base64EncodedContent. For local file uploads use the multipart variant of this endpoint.

customPropertiesobject
curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/email \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "accountUserId": "string",
    "from": "string",
    "to": "string",
    "cc": [
      "string"
    ],
    "bcc": [
      "string"
    ],
    "brandPost": true,
    "subject": "string",
    "body": "string",
    "sentTime": 0,
    "attachments": [
      {
        "fileName": "string",
        "contentType": "string",
        "url": "string",
        "base64EncodedContent": "string"
      }
    ],
    "customProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    }
  }'

Responses

Success

Bodyapplication/json
string(AssigneeType)
Response
"string"