Grambell API
Send EMAIL
Authentication
To authenticate to the API you need to add api-key
header to your requests with an active subscription key supporting the
API in use, you can get your keys from subscriptions page under your AMS account.
Endpoint
endpoint is available at:
https://amsapis.azure-api.net/communication/grambell​/send-email
Request
The request you send will include the details of the following:
{
"channelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"receiver": {
"subject": "string",
"fromName": "string",
"to": [
{
"name": "string",
"email": "string"
}
],
"cc": [
{
"name": "string",
"email": "string"
}
]
},
"variables": "string"
}
Breakdown of request fields is as follow:
channelId
: The channel id to send the email throughtemplateId
: The template id to use for the emailreceiver
: The receiver of the emailsubject
: The subject of the emailfromName
: The name of the senderto
: The list of receiversname
: The name of the receiveremail
: The email of the receiver
cc
: The list of cc receiversname
: The name of the cc receiveremail
: The email of the cc receiver
variables
: The variables to use in the email template
Response
The response will be a JSON object with the following fields:
{
"processingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"messageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"channelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "string"
}
Open API Documentation
You can view the API documentation in open API format from here
Send SMS
Authentication
To authenticate to the API you need to add api-key
header to your requests with an active subscription key supporting the
API in use, you can get your keys from subscriptions page under your AMS account.
Endpoint
endpoint is available at:
https://amsapis.azure-api.net/communication/grambell​/send-sms
Request
The request you send will include the details of the following:
{
"channelId": "string",
"receiver": "string",
"message": {
"text": "string"
}
}
Breakdown of request fields is as follow:
channelId
: The channel id to send the sms throughreceiver
: The receiver of the smsmessage
: The message to sendtext
: The text of the sms
Response
The response if successful will be code 200 OK, example response:
200 OK
Open API Documentation
You can view the API documentation in open API format from here