Emails

Create Email

This endpoint allows you to create an Email based on JSON input.

You will only be able to create an Email after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterValueDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*Any data of whatever mime type is accepted
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication

REQUEST BODY

AttributeTypeDescription
accountIdIntegerAccount to which the Email is linked to
attachmentsObject (Array), NullAttachment's lists
bodyStringEmail's content
contactIdObject, NullContact to which the Email is linked to
dateStringDate and time when the Email was sent or received
emailFromStringEmail of the person who's sending the email
emailToArrayList of Emails, that will receive the mail
extIdStringExternal ID of the Email from a third party system (ERP, CRM, Accounting System)
mailFolderStringFolder to which the mail belongs. (For example: Inbox)
opportunityIdIntegerOpportunity to which the Email is linked to
salesRepIdIntegerFirst sales representative responsible for the Email
subjectStringEmail's subject
typeInteger0 -> outgoing email and 1 -> incoming email

List of the supported Attachments attributes:

AttributeTypeDescription
nameStringAttachment name (include the file type (.pdf, xls...))

RESPONSE

AttributeTypeDescription
idIntegerId assigned to the new WebHook
MessageStringShows the operation status

RESPONSE CODES

StatusDescription
200 OKShows the emails that will receive the email and the operation's id
400 Bad RequestShows when an invalid request or the requested service is not available
post/emails

Request

  • Base URL: https://api.forcemanager.com/api/v4
  • URL: https://api.forcemanager.com/api/v4/emails
  • Auth: API key in header X-Session-Key

Headers

Acceptstring

Request body

extIdstring
accountIdinteger
contactIdinteger
opportunityIdinteger
salesRepIdinteger
emailFromstring
bodystring
datestring
typeinteger
mailFolderstring
subjectstring

Response

Create Email

Changes

No recorded changes to this operation across all 1 revision of this API.