REST API: Messages
Replace {subdomain}
in the endpoints below with your Vitally subdomain.
You can find your subdomain in the URL used to log into Vitally (i.e., https://yoursubdomain.vitally.io
The Message object
Property | Type | Description | Editable |
id |
| Vitally's unique ID for the Message | No |
type |
| The type of Message. Inferred from the sender type. | No |
externalId |
| The unique ID of the message in your system | Only on create |
timestamp |
| The ISO-formatted string timestamp of when the message was sent | Yes |
message |
| Required The HTML content of the message. | Yes |
from |
| Required A JSON object describing the sender Participant. | Yes |
to |
| Required An array of JSON objects describing the recipient Participants. | Yes |
cc |
| An array of JSON objects describing the cc recipient Participants. | Yes |
bcc |
| An array of JSON objects describing the bcc recipient Participants. | Yes |
The Participant Object
Participant
Property | Type | Description |
type |
|
|
id |
| The unique Vitally ID of the Admin or User |
Create A Message POST
POST
US Data Center (default):
EU Data Center:
Request Body
Property | Type | Description |
externalId |
| Required The unique ID of the message in your system |
message |
| Required The HTML content of the message. |
from |
| Required A JSON object describing the sender Participant. |
to |
| Required An array of JSON objects describing the recipient Participants. |
timestamp |
| The ISO-formatted string timestamp of when the message was sent |
cc |
| An array of JSON objects describing the cc recipient Participants. |
bcc |
| An array of JSON objects describing the bcc recipient Participants. |
Participant
Property | Type | Description |
type |
|
|
id |
| The ID of the Admin or User |
Example Request
Example Response
Get a Message GET
GET
US Data Center (default):
EU Data Center:
Request Parameters
Property | Type | Description |
id |
| The message ID assigned by Vitally |
Delete A Message DELETE
DELETE
US Data Center (default):
EU Data Center:
Request Params
Property | Type | Description |
id |
| The message ID assigned by Vitally |
Last updated