Emails API Endpoint

POST /emails

#!/bin/sh # script to get token AccessToken=$(curl -X POST -d "client_id={clientId}&client_secret={clientSecret}&username={userName}&password={password}&grant_type=password" \ https://demo.visualvault.com/oauth/token | python -c 'import sys, json; print json.load(sys.stdin)["access_token"]') # script to send email using token as a variable AccessToken curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AccessToken" \ -d '{ "recipients": "user@company.com, user2@company.com", "ccrecipients": "user3@company.com, user4@company.com", "subject": "Email Subject Line", "body": "E-mail body here" }' \ https://demo.visualvault.com/api/v1/{customerAlias}/{databaseAlias}/emails/
{
  "meta": {
    "status": 201,
    "statusMsg": "Created",
    "method": "POST",
    "href": "https://demo.visualvault.com/mycustomer/mydatabase/emails/"
  },
  "data": {
    "success": true
  }
}
Creates and sends an email from VisualVault. Email messages are queued for sending immediately and transmitted in periodic batches with logging.
Parameters
Key Type Description
clientId guid Client Id from Visual Vault
clientSecret guid Client Secret from Visual Vault
customerAlias string The alias of the customer you want to connect to
databaseAlias string The alias of the database of the customer you want to connect to
password string Password from Visual Vault
userName string User Name from Visual Vault