Download OpenAPI specification:Download
The Communications API is a restful web service which allows end developers a way to integrate with IDI Billing Solutions communication infrastruture.
Use to check whether or not the communications system is up and running.
{- "systemHealthy": true,
- "componentsStatus": "AllComponentsOK",
- "components": [
- {
- "item": "Cosmos DB",
- "status": "Okay",
- "success": true,
- "isCriticalComponent": true
}, - {
- "item": "Primary Service Bus",
- "status": "Okay",
- "success": true,
- "isCriticalComponent": true
}, - {
- "item": "Failover Service Bus",
- "status": "Okay",
- "success": true,
- "isCriticalComponent": true
}, - {
- "item": "Search",
- "status": "Okay",
- "success": true,
- "isCriticalComponent": true
}, - {
- "item": "Rewrite Rules",
- "status": "Okay",
- "success": true,
- "isCriticalComponent": true
}
]
}
Archives the bodies of messages. Message bodies that have been archived are no longer searchable [1.21]
linkType
and linkRefernceID
are provided, all messages for the referenced object will be archived and the contents of their message bodies will no longer be searchable.messageDateStart
and messageDateEnd
are provided, all unlinked messages between those dates will be archived and the contents of their message bodies will no longer be searchable.Content-Type required | string Example: application/json |
linkReferenceID | integer Unique identifier for the referenced object. Note:
|
linkType | integer The type of the referenced object. Note:
|
messgeDateEnd | string <datetime> The end date for which unlinked messages will be archived for Note:
|
messgeDateStart | string <datetime> The start date for which unlinked messages will be archived for. Note:
|
{- "linkReferenceID": 1,
- "linkType": "ticket",
- "messgeDateEnd": "2016-09-09T21:35:09.000Z",
- "messgeDateStart": "2016-09-09T19:35:09.000Z"
}
{- "hasMoreResults": true,
- "messagesArchived": 7
}
Searches the list of Bounced email addresses. [Rev 1.20]
string Example: email=IDI@example.com The Email address or part of the email address for the search to filter on. NOTE:Email must be at least 3 characters and at most 255 characters | |
endDate | string <date-time> Example: endDate=2019-05-01T18:00:00.000Z The ending date and time from which the the results will be filtered to. |
top | integer Example: top=1 The number of results to retrieve. |
skip | integer Example: skip=1 The number of results to skip. |
startDate | string <date-time> Example: startDate=2019-05-01T14:00:00.0000-04:00 The starting date and time from which the the results will be filtered to. |
{- "value": [
- {
- "createDate": "string",
- "email": "test@idibilling.com",
- "reason": "string"
}
], - "@odata.firstLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "@odata.lastLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "@odata.nextLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "@odata.previousLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50"
}
Delete the provided list of Bounced email addresses. [Rev 1.20]
Content-Type required | string Example: application/json |
Array of objects (DeleteBounceEmail) List of email addresses to remove from the bounce list. | |
deleteAll | boolean When set to True all bounced emails will be deleted. The provided email list is ignored. |
{- "emails": [
- {
- "email": "test@idibilling.com"
}
], - "deleteAll": true
}
Companies must be added to Communications before messages can be sent from their environment(s). Each company is allowed a single domain configuration which will allow for the sending and receiving of messages. Each domain object will contain entries which must be created with the appropriate hosting provider in order for them to validated. Domains must be validated before they can be used to send and receiving messages.
Provides the ability to create company.
Content-Type required | string Example: application/json |
companyID required | integer The unique identifier for the company. |
companyName required | string Name of the company that this domain information is associated with. |
createDate | string <datetime> Date the company was created |
createUser | string User that created the company. |
required | Array of objects (DomainInfo) List of domains configured in communications for this company. |
primaryEnvironment required | string Name of the primary environment to be used by this Company in Communications. |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T19:00:00.000Z",
- "createUser": "Don",
- "domains": [
- {
- "domain": "example.com",
- "subdomain": "em1",
- "isEventNotificationWebhookEnabled": true,
- "isInboundWebhookEnabled": true,
- "isValid": true
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "domain": "example.com",
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "isDefaultDomain": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Provides the ability to retrieve the company configuration.
id required | number Example: 1 Id of Company to retrieve. |
Content-Type required | string Example: application/json |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Provides the ability to update properties of a company. This operation uses the JSON Patch document structure for defining updates to the company objects. Read more about JSON Patch (RFC 6902) Here.
id required | number Example: 1 Id of Company to update. |
Content-Type required | string Example: application/json |
op required | string |
path required | string |
value required | string |
[- {
- "op": "replace",
- "path": "/primaryEnvironment",
- "value": "new_primary_environment"
}
]
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Create a subdomain on an existing Company.
id required | number Example: 1 Id of the Company to valiate the Domain information for. |
Content-Type required | string Example: application/json |
domain required | string Domain name. |
subdomain required | string Subdomain on domain that this configuration is for. |
[- {
- "domain": "example.com",
- "subdomain": "em1"
}
]
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Delete a subdomain from a company.
id required | number Example: 1 Id of the Company to valiate the Domain information for. |
fullDomainName required | string Example: em1.example.com Full domain name for the domain of the Company. |
Content-Type required | string Example: application/json |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Configure the given domain to receive inbound messages.
id required | number Example: 1 Id of the Company to create an inbound webhook for. |
fullDomainName required | string Example: em1.example.com Full domain name for the domain to receive messages on. |
Content-Type required | string Example: application/json |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Configure the given domain to receive event notifications.[Rev 1.20]
id required | integer Example: 1 Id of the Company to create an event notifications webhook for. |
fullDomainName required | string Example: em1.example.com Full domain name for the domain to receive notifications on. |
Content-Type required | string Example: application/json |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Removes the event notification webhook causing the domain to no longer receive event notifications. [Rev 1.20]
id required | integer Example: 1 Id of the Company to remove the webhook for. |
fullDomainName required | string Example: em1.example.com Full domain name for the domain to remove the webhook for. |
Content-Type required | string Example: application/json |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "createDate": "1996-01-01T14:00:00.156Z",
- "createUser": "Don",
- "domains": [
- {
- "dnsEntries": [
- {
- "data": "example.sendgrid.net",
- "entryType": "cname",
- "host": "em1.example.com",
- "isValid": true,
- "name": "mail_cname"
}
], - "domain": "example.com",
- "isDefaultDomain": true,
- "isEventNotificationWebhookEnabled": false,
- "isInboundWebhookEnabled": false,
- "isValid": true,
- "subdomain": "em1"
}
], - "primaryEnvironment": "IDI01_P_PRODUCTION"
}
Validate a domain configuration for a Company.
id required | number Example: 1 Id of the Company to valiate the Domain information for. |
fullDomainName required | string Example: em1.example.com Full domain name for the domain of the Company to validate. |
Content-Type required | string Example: application/json |
{- "companyID": 1,
- "companyName": "IDI Billing Solutions",
- "dnsValidationResults": [
- {
- "isValid": true,
- "name": "dkim1",
- "reason": "\"Expected your MX record to be \\\"mx.sendgrid.net\\\" but found \\\"example.com\\\"."
}
], - "isValid": true
}
Retrieve a list of supported data formats to be used in template creation.
{- "@odata.count": 145,
- "@odata.nextLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "value": [
- {
- "@search.score": 1.23,
- "appliesToDataTypes": [ ],
- "dataFormatCode": "date",
- "description": "Format a Date and Time value as DD/MM/YY",
- "environment": "environment",
- "exampleFormatValue": "2017-02-21T05:00:00.000Z",
- "name": "Day Month With Two Digit Year",
- "templateFilter": "date(\"DD/MM/YY\")"
}
]
}
Search for messages.
The following is a list of fields from the Message and how the can be used within the search.
searchMode | string (searchMode) Enum: "any" "full" Example: searchMode=any
|
searchFields | string Example: searchFields="body"
|
queryType | string (queryType) Enum: "simple" "full" Example: queryType=simple
|
$skip | number Example: $skip=10
|
$top | number Example: $top=1
|
$count | boolean Example: $count=true
|
$orderBy | string <datetime> Example: $orderBy="createDate"
|
$select | string Example: $select="subject"
|
$filter | string Example: $filter="subject eq 'Important'"
|
facets | string Example: facets=threadID
|
{- "@odata.count": 145,
- "@odata.nextLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "value": [
- {
- "@search.score": 1.23,
- "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "bodyPreview": "This is the first 150 characters of the contents of the message.",
- "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "hasAttachments": true,
- "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "messageID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "receivingAddress": "johndoe@domain.com",
- "replyTo": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "b040fbcd-069a-48c8-a340-bf0dbc698a49",
- "templateVersionID": "88dab45e-2742-4d21-a9c8-68964716fc92"
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
], - "facets": {
- "facetName": [
- {
- "count": 4,
- "facetType": "Value",
- "value": "9eec5356-7b84-49be-be3c-6008598ee62d",
- "from": 0,
- "to": 99
}
]
}
}
Provides the ability to create a message. If the createAsDraft
is TRUE
then the message will be created with a status of Drafting
, otherwise
the message will be created with a status of Pending
and will be immediately queued to be sent.
The following fields are required for a message to be sent. Any messages created with createAsDraft
equal to FALSE
will be sent immediately, and must supply the following fields:
Content-Type required | string Example: application/json |
Array of objects (Participant) List of blind carbon copy recipients for this message. | |
body | string Contents of the message. This field accepts HTML and plain text content. Communications will dynamically determine the content type provided by
inspecting the body. This field is required if |
bodyContentType | string Content type of the message. If not specified, the message will be sent as |
Array of objects (Participant) List of carbon copy recipients for this message. | |
createAsDraft | boolean Indicates if the message should be created as a draft. Draft messages will have a status of |
object (Participant) | |
inReplyToMessageID | string Identifier of the message that this message is in response to. |
Array of objects (LinkReference) The object(s) to which the message is linked. | |
subject | string Subject of the message. This field is required if |
Array of objects (Participant) List of recipients of the message. This field is required if |
{- "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "body": "<p>This is the contents of the message.</p>",
- "bodyContentType": "text/html",
- "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "createAsDraft": false,
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "subject": "This is the subject.",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "messageID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "receivingAddress": "johndoe@domain.com",
- "replyTo": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Retrieve a specific message by id.
Use the format query string parameter to change the output format from this API. The format query string accepts the following values:
default
: Indicates that all standard fields should be returned. This will include all metadata and the body of the message, in HTML if available.allContent
: Indicates that all standard fields should be returned, in addition all available content properties should be included.id required | string Id of the message to retrieve. |
format | string (format) Enum: "default" "allContent" Example: format=default Indicates the response format to be used when returning the message. |
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "messageID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "receivingAddress": "johndoe@domain.com",
- "replyTo": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Provides the ability to update specific properties of a message.
This operation uses the JSON Patch document structure for defining updates to the Message objects. Read more about JSON Patch (RFC 6902) Here.
Updating the read status of a message will automatically cause lastReadDate
and lastReadUser
to be captured.
The following is a list of properties of a non-draft Message that can be patched.
id required | string Id of the message to update. |
format | string |
op required | string Indicates what type of JSON Patch operation being requested. Valid values are |
path required | string Path within the JSON document that should be modified. |
object (JSONPatchMessageValueObjectExample) |
[- {
- "op": "replace",
- "path": "/linkReferences/-",
- "value": {
- "referenceID": 123457,
- "referenceType": "Ticket"
}
}
]
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "messageID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "receivingAddress": "johndoe@domain.com",
- "replyTo": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Provides the ability to add a file attachment to an existing message. The message must be in either the In Error
or Drafting
status.
The file attachment should be included as one part of the form data. Only the first file found will be uploaded, the rest will be ignored.
id required | string |
Content-Type required | string Example: multipart/form-data |
Authoriation required | string Example: WRAP access_token="mytoken" |
{- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
Provides the ability to forward an existing message. The message returned will be a draft that can be futher updated before being sent. All attachments on
the original message will be copied over to the new, forwarded message. Only messages in a status of Processed
can be forwarded.
id required | string |
Content-Type required | string Example: application/json |
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "messageID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "receivingAddress": "johndoe@domain.com",
- "replyTo": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Provides the ability to send an existing message, for example if the message was created as a draft and is in the Drafting
status.
The following fields are required for a message to be sent.
id required | string |
Content-Type required | string Example: application/json |
Provides the ability to get the contents of an attachment.
If successful, the response from this call will be the attachment data. Response headers will be populated with the appropriate file name and media type.
messageId required | string The unique identifier of the message containing the attachment. |
attachmentId required | string The unique identifier of the attachment to get. |
{- "value": {
- "@odata.type": "#Microsoft.OutlookServices.FileAttachment",
- "Id": "AAMkADkwMDQ0M2FlLTFhYzYtNGYyYi04ZjRiLTkyNzU4ZTBlZGIxNQBGAAAAAADe7-eHxAawQ5_cjeap2LB6BwCH6xAWha2ETrbjZ2oWEo6VAAAHU8p0AABC7LRUmoNTSZSMu_QXwQKhAAN5KJLoAAABEgAQABIfiRwzWINKq6ealdUf8Zw=",
- "LastModifiedDateTime": "2018-07-17T17:34:20Z",
- "Name": "calvin.png",
- "ContentType": "image/png",
- "Size": 10740,
- "IsInline": false,
- "ContentId": "F761E5B6CB7D8B43BB731705E54BDD4E@namprd07.prod.outlook.com",
- "ContentLocation": null,
- "ContentBytes": "Can be lots"
}
}
Provides the ability to remove an attachment from a message. The message must be in either the In Error
or Drafting
status.
messageId required | string The unique identifier of the message on which to delete the attachment. |
attachmentId required | string The unique identifier of the attachment to delete. |
Create a new message from a template. The newly created message will have a status of Drafting
.
Content-Type required | string Example: application/json |
data | object Data to be used when generating the template. |
inReplyToMessageID | string Identifier of the message that this message is in response to. |
Array of objects (LinkReference) The object(s) to which the message is linked. | |
templateID required | string Identifier of the template to generate the message from. |
{- "data": { },
- "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "templateID": "f306224a-0a8c-4f1b-a2de-1ff9ca2cfd1b"
}
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "inReplyToMessageID": "41c01fd1-0b9d-42d8-8f99-05138d85ee66",
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "messageID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "receivingAddress": "johndoe@domain.com",
- "replyTo": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Search for notifications. [Rev 1.16]
The following is a list of fields from the Notification and how the can be used within the search.
searchMode | string (searchMode) Enum: "any" "full" Example: searchMode=any
|
searchFields | string Example: searchFields="body"
|
queryType | string (queryType) Enum: "simple" "full" Example: queryType=simple
|
$skip | number Example: $skip=10
|
$top | number Example: $top=1
|
$count | boolean Example: $count=true
|
$orderBy | string Example: $orderBy="createDate"
|
$select | string Example: $select="subject"
|
$filter | string Example: $filter="subject eq 'Important'"
|
facets | string Example: facets=threadID
|
{- "@odata.count": 145,
- "@odata.nextLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "value": [
- {
- "@search.score": 1.23,
- "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "bodyPreview": "This is the first 150 characters of the contents of the message.",
- "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}, - "hasAttachments": true,
- "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "notificationID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "b040fbcd-069a-48c8-a340-bf0dbc698a49",
- "templateVersionID": "88dab45e-2742-4d21-a9c8-68964716fc92"
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
], - "facets": {
- "facetName": [
- {
- "count": 4,
- "facetType": "Value",
- "value": "9eec5356-7b84-49be-be3c-6008598ee62d",
- "from": 0,
- "to": 99
}
]
}
}
Provides the ability to create a notification. If the createAsDraft
is TRUE
then the notification will be created with a status of Drafting
, otherwise
the notification will be created with a status of Pending
and will be immediately queued to be sent. [Rev 1.16]
The following fields are required for a notification to be sent. Any notifications created with createAsDraft
equal to FALSE
will be sent immediately, and must supply the following fields:
Content-Type required | string Example: application/json |
Array of objects (Participant) List of blind carbon copy recipients for this notification. | |
body | string Contents of the notification. This field accepts HTML and plain text content. Communications will dynamically determine the content type provided by
inspecting the body. This field is required if |
bodyContentType | string Content type of the notification. If not specified, the notification will be sent as |
Array of objects (Participant) List of carbon copy recipients for this notification. | |
createAsDraft | boolean Indicates if the notification should be created as a draft. Draft notification will have a status of |
fromAlias | string Alias for the from address of the notification. If no value is provided the system configured value will be used. |
Array of objects (LinkReference) The object(s) to which the notification is linked. | |
subject | string Subject of the notification. This field is required if |
Array of objects (Participant) List of recipients of the notification. This field is required if |
{- "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "body": "<p>This is the contents of the notification.</p>",
- "bodyContentType": "text/html",
- "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "createAsDraft": false,
- "fromAlias": "No-Reply.",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "subject": "This is the subject.",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "NOREPLY@domain.com",
- "name": "No-Reply"
}, - "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "notificationID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Retrieve a specific notification by id. [Rev 1.16]
Use the format query string parameter to change the output format from this API. The format query string accepts the following values:
default
: Indicates that all standard fields should be returned. This will include all metadata and the body of the notification, in HTML if available.allContent
: Indicates that all standard fields should be returned, in addition all available content properties should be included.id required | string Id of the notification to retrieve. |
format | string (format) Enum: "default" "allContent" Example: format=default Indicates the response format to be used when returning the notification. |
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "NOREPLY@domain.com",
- "name": "No-Reply"
}, - "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "notificationID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
"Provides the ability to update specific properties of a notification.This operation uses the JSON Patch document structure for defining updates to the Notification objects. Read more about JSON Patch (RFC 6902) <a href="https://tools.ietf.org/html/rfc6902\" target="blank">Here.\nUpdating the read status of a notification will automatically cause lastReadDate
and lastReadUser
to be captured. [Rev 1.16]
The following is a list of properties of a non-draft Notification that can be patched.
id required | string Id of the notification to update. |
format | string |
Content-Type required | string Example: application/json |
op required | string Indicates what type of JSON Patch operation being requested. Valid values are |
path required | string Path within the JSON document that should be modified. |
object (JSONPatchNotificationValueObjectExample) |
[- {
- "op": "replace",
- "path": "/linkReferences/-",
- "value": {
- "referenceID": 123457,
- "referenceType": "Ticket"
}
}
]
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "NOREPLY@domain.com",
- "name": "No-Reply"
}, - "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "notificationID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Provides the ability to add a file attachment to an existing notification. The notification must be in either the In Error
or Drafting
status.
The file attachment should be included as one part of the form data. Only the first file found will be uploaded, the rest will be ignored. [Rev 1.16]
id required | string |
Content-Type required | string Example: multipart/form-data |
Authoriation required | string Example: WRAP access_token="mytoken" |
{- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
Provides the ability to resubmit an existing notification as long as it is not in the Drafting
or Pending
status. [Rev 1.16]
id required | string |
Content-Type required | string Example: application/json |
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "NOREPLY@domain.com",
- "name": "No-Reply"
}, - "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "notificationID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "resubmitted": false,
- "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Provides the ability to send an existing notification, for example if the notification was created as a draft and is in the Drafting
status. [Rev 1.16]
The following fields are required for a notification to be sent.
id required | string |
Content-Type required | string Example: application/json |
Provides the ability to get the contents of an attachment. [Rev 1.16]
If successful, the response from this call will be the attachment data. Response headers will be populated with the appropriate file name and media type.
notificationId required | string The unique identifier of the notification containing the attachment. |
attachmentId required | string The unique identifier of the attachment to get. |
{- "value": {
- "@odata.type": "#Microsoft.OutlookServices.FileAttachment",
- "Id": "AAMkADkwMDQ0M2FlLTFhYzYtNGYyYi04ZjRiLTkyNzU4ZTBlZGIxNQBGAAAAAADe7-eHxAawQ5_cjeap2LB6BwCH6xAWha2ETrbjZ2oWEo6VAAAHU8p0AABC7LRUmoNTSZSMu_QXwQKhAAN5KJLoAAABEgAQABIfiRwzWINKq6ealdUf8Zw=",
- "LastModifiedDateTime": "2018-07-17T17:34:20Z",
- "Name": "calvin.png",
- "ContentType": "image/png",
- "Size": 10740,
- "IsInline": false,
- "ContentId": "F761E5B6CB7D8B43BB731705E54BDD4E@namprd07.prod.outlook.com",
- "ContentLocation": null,
- "ContentBytes": "Can be lots"
}
}
Provides the ability to remove an attachment from a notification. The notification must be in either the In Error
or Drafting
status. [Rev 1.16]
notificationId required | string The unique identifier of the notification on which to delete the attachment. |
attachmentId required | string The unique identifier of the attachment to delete. |
Create a new notification from a template. The newly created notification will have a status of Drafting
. [Rev 1.16]
Content-Type required | string Example: application/json |
data | object Data to be used when generating the template. |
Array of objects (LinkReference) The object(s) to which the notification is linked. | |
templateID required | string Identifier of the template to generate the notification from. |
{- "data": { },
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "templateID": "f306224a-0a8c-4f1b-a2de-1ff9ca2cfd1b"
}
{- "attachments": [
- {
- "attachmentID": "9f73e081-d074-4d8c-b1b0-f69f254eeae2",
- "contentType": "image/png",
- "fileName": "violet.png",
- "size": 680540
}
], - "bcc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "cc": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
], - "contents": [
- {
- "contentType": "text/html",
- "content": "<p>This is a sample content string.</p>"
}
], - "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "direction": "Outbound",
- "environment": "myenvironment",
- "from": {
- "address": "NOREPLY@domain.com",
- "name": "No-Reply"
}, - "lastReadDate": "2016-09-09T17:35:09.156Z",
- "lastReadUser": "user1",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "linkReferences": [
- {
- "referenceID": 123457,
- "referenceType": "ticket"
}
], - "notificationID": "bf942102-60bf-49a6-8564-961199a8c82f",
- "read": true,
- "sendDate": "2016-09-09T17:35:09.156Z",
- "sendUser": "user1",
- "status": "Pending",
- "subject": "This is the subject.",
- "templateReference": {
- "templateID": "",
- "templateVersionID": ""
}, - "threadID": "c4aac6f9-d3f5-43e2-bb2c-0D1ff4814226",
- "to": [
- {
- "address": "johndoe@domain.com",
- "name": "John Doe"
}
]
}
Search for templates.
The following is a list of fields from the Message and how the can be used within the search.
searchMode | string (searchMode) Enum: "any" "full" Example: searchMode=any
|
searchFields | string Example: searchFields=description
|
queryType | string (queryType) Enum: "simple" "full" Example: queryType=simple
|
$skip | number Example: $skip=10
|
$top | number Example: $top=1
|
$count | boolean Example: $count=true
|
$orderBy | string Example: $orderBy=createDate
|
$select | string Example: $select=name
|
$filter | string Example: $filter=isAvailable eq true
|
{- "@odata.count": 145,
- "@odata.nextLink": "https://comms.idibilling.com/comm/anenvironment/api/odataquery?$filter=name eq 'foo'&$skip=50",
- "value": [
- {
- "@search.score": 1.23,
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "description": "Description for My Template",
- "environment": "myenvironment",
- "isAvailable": true,
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "name": "My Template",
- "templateID": "6fd987c7-621f-4fc4-b902-2bbe96abc126",
- "templateTypeCode": "custom",
- "templateTypeID": "fa126c55-621f-4fc4-b902-2ebc96abc112"
}
]
}
Provides the ability to create a new template.
Content-Type required | string Example: application/json |
description required | string Description of the template. |
name required | string Name of the template. |
templateTypeID required | string Type identifier of the template type. |
{- "description": "Description for My Template",
- "name": "My Template",
- "templateTypeID": "fa126c55-621f-4fc4-b902-2ebc96abc112"
}
{- "description": "Description for My Template",
- "isAvailable": true,
- "name": "My Template",
- "templateTypeID": "fa126c55-621f-4fc4-b902-2ebc96abc112",
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "templateID": "6fd987c7-621f-4fc4-b902-2bbe96abc126",
- "templateTypeCode": "custom",
- "versions": [
- {
- "templateVersionID": "aa126c55-cd9d-4792-bd66-5eebb9bd0339",
- "note": "Updated link location",
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z"
}
]
}
Retrieve a specific template by ID.
id required | string ID of the template to retrieve. |
{- "description": "Description for My Template",
- "isAvailable": true,
- "name": "My Template",
- "templateTypeID": "fa126c55-621f-4fc4-b902-2ebc96abc112",
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "templateID": "6fd987c7-621f-4fc4-b902-2bbe96abc126",
- "templateTypeCode": "custom",
- "versions": [
- {
- "templateVersionID": "aa126c55-cd9d-4792-bd66-5eebb9bd0339",
- "note": "Updated link location",
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z"
}
]
}
Provides the ability to update specific properties of a template. This operation uses the JSON Patch document structure for defining updates to the company objects. Read more about JSON Patch (RFC 6902) Here.
The following is a list of properties of a Template that can be patched.
id required | string Id of the template to update. |
{- "description": "Description for My Template",
- "isAvailable": true,
- "name": "My Template",
- "templateTypeID": "fa126c55-621f-4fc4-b902-2ebc96abc112",
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "templateID": "6fd987c7-621f-4fc4-b902-2bbe96abc126",
- "templateTypeCode": "custom",
- "versions": [
- {
- "templateVersionID": "aa126c55-cd9d-4792-bd66-5eebb9bd0339",
- "note": "Updated link location",
- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z"
}
]
}
Generate a preview for the given template id.
id required | string ID of the template to generate the preview from. |
data | object |
{- "data": { }
}
{- "body": "Hello Sir...",
- "subject": "Welcome to IDI Billing Solutions",
- "templateID": "6fd987c7-621f-4fc4-b902-2bbe96abc126",
- "templateVersionID": "aa126c55-cd9d-4792-bd66-5eebb9bd0339"
}
Retrieve a specific template version by ID.
id required | string ID of the template associated with which the template version is associated. |
versionID required | string ID of the template version to retrieve. |
{- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "body": "This is the body of my awesome template!",
- "dataDefinitions": [
- {
- "name": "favorite color",
- "defaultValue": "purple",
- "dataType": "string"
}
], - "note": "Updated link location",
- "subject": "Template Subject",
- "templateVersionID": "aa126c55-cd9d-4792-bd66-5eebb9bd0339"
}
Provides the ability to update specific properties of a template version. This operation uses the JSON Patch document structure for defining updates to the company objects. Read more about JSON Patch (RFC 6902) Here.
The following is a list of properties of a Template that can be patched.
id required | string ID of the template associated with which the template version is associated. |
versionID required | string ID of the template version to update. |
op required | string |
path required | string |
value required | string |
[- {
- "op": "replace",
- "path": "/subject",
- "value": "updated subject"
}
]
{- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "body": "This is the body of my awesome template!",
- "dataDefinitions": [
- {
- "name": "favorite color",
- "defaultValue": "purple",
- "dataType": "string"
}
], - "note": "Updated link location",
- "subject": "Template Subject",
- "templateVersionID": "aa126c55-cd9d-4792-bd66-5eebb9bd0339"
}
Retrieve a specific template by ID.
id required | string ID of the template type to retrieve. |
{- "createDate": "2016-09-09T17:35:09.156Z",
- "createUser": "user1",
- "environment": "myenvironment",
- "lastModifiedDate": "2016-09-09T17:35:09.156Z",
- "lastModifiedUser": "user1",
- "dataDefinitions": [
- {
- "name": "favorite color",
- "defaultValue": "purple",
- "dataType": "string"
}
], - "description": "A template type for general communications",
- "name": "Custom",
- "templateTypeCode": "custom",
- "templateTypeID": "aabbccdd-4444-5555-6666-eeff00112233"
}
Retrieve monthly communications utilization for the given company. If no company is supplied then the company associated with current environment is used.
companyId required | number ID of the company to retrieve utilization statistics for. |
{- "companyID": 1007,
- "entries": [
- {
- "inboundMessageCount": 23456,
- "inboundMessageStorageSize": 3893821,
- "lastCollectionDate": "2016-09-09T17:35:09.156Z",
- "outboundMessageCount": 55426,
- "outboundMessageStorageSize": 14878321,
- "utilizationPeriod": "2017-07-01T04:00:00.000Z"
}
]
}
POST /api/notification
operation to create a notification.GET /api/notification({id})
operation to get a notification.DELETE /api/notification({id})
operation to delete a notification.POST /api/notification({id})/send
operation to send an existing notification.PATCH /api/notification({id})
operation to update a notification.POST /api/notification({id})/attachment
operation to add an attachment to an existing notification.GET /api/notification({notificationId})/attachment({attachmentId})
operation to get an attachment on an existing notification.DELETE /api/notification({notificationId})/attachment({attachmentId})
operation to delete an attachment on an existing notification.POST /api/notification/fromTemplate
operation to create a notification from a template.GET /api/notification
operation to search notifications.POST /api/notification({id})/resubmit
operation to resubmit an existing notifications.GET api/message
- Added lastReadDate
, lastReadUser
, read
.GET api/message({id})
- Added lastReadDate
, lastReadUser
, read
.PATCH api/message({id})
- Added ability to set read flag on a message.