SendEmail

This method can be used for the following functionality: Send a custom email.

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

GET /api/ss/email HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

to (string | object)

Send email To. Must be either an email as a string or an object with one field "user_id"

Example:

{
   "to": [
      "[email protected]",
      {
        "user_id": "6698cbabba716055c969a658"
      }
    ]
}

cc (string | object)

CC email to. Must be either an email as a string or an object with one field "user_id"

Example:

bcc (string | object)

BCC email to. Must be either an email as a string or an object with one field "user_id"

Example:

subject

Email subject

Example:

text

Email body in plaintext

Example:

html

Email body in html

Example:

Example

The following example is a cURL request to send daily project commencement email to project team.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

Response

Response contains a status.

Last updated