Skip to content

mail

Operations

sendJobRequest

Request

Security
httpBasicAuth
Bodyapplication/jsonrequired

JobRequest - Full Example

mailobject(Mail)required
recipientsArray of objects, [ 1 .. 100 ] items(Recipient)required
subjectobject(Subject)required
bodyobject(Body)
alternativeobject(Alternative)
attachmentsArray of objects, [ 1 .. 20 ] items(Attachment)
jobobject(Job)
notificationobject(Notification)
curl -i -X POST \
  -u '<username>:<password>' \
  https://developers.retarus.com/_mock/tem/m4a-api/jobs \
  -H 'Content-Type: application/json' \
  -d '{
    "subject": {
      "content": "minimal subject"
    },
    "recipients": [
      {
        "mail": {
          "to": [
            {
              "email": "test-01@null.dev.retloc"
            }
          ]
        }
      }
    ],
    "mail": {
      "from": {
        "email": "test@bot.com"
      }
    }
  }'

Responses

Accepted

Bodyapplication/json
metaobject(ResponseMeta)required
contentobject(ResponseContent)
Response
{ "meta": { "jobId": "22579950-b1cb-4ad8-be2b-715d63a06fcd", "state": {} }, "content": { "recipients": [] } }