Skip to main content

Send Email

Using this API, email will be sent to the user's based on the template which is specified in the mailtype.

Send Welcome Email

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

POST https://{tenantId}.{hostname}/digitanium/v4/mail/test

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/mail/test
note

API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body (* Required)

Field NameTypeDescription
*mailTypeStringSpecify the mail type for template. Value should be "WELCOME"
*portalUrlStringSpecify the Portal access url
*iosLinkStringSpecify the iOS link
*androidLinkStringSpecify Android link

Sample Request

{
"mailType": "WELCOME",
"iosLink": "https://xxxx.xxx.com",
"androidLink": "https://xxxx.xxx.com",
"portalUrl": "https://xxxx.xxx.com"
}

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.

Sample Response

{
"message": "Mail Sent Successfully to the user",
"status": "OK",
"subSystem": 8
}

Response Status Information

Status CodeStatusMessage
200OKMail Sent Successfully to the user
400BAD_REQUESTPortal url is missing, Android Link is missing, Ios Link is missing, and Mail type or text body is required.
401UnauthorizedHTTP 401 Unauthorized

Send Tenant Information Email

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

POST https://{tenantId}.{hostname}/digitanium/v4/mail/test

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/mail/test

NOTE: API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body (* Required)

Field NameTypeDescription
*mailTypeStringSpecify the mail type for template. Value should be "TENANT_INFO"
userNameStringSpecify the Username
tenantNameStringSpecify Tenant name
portalUrlStringSpecify the Portal access url

Sample Request

{
"mailType": "TENANT_INFO",
"tenantName": "xxx_tenant",
"userName": "xx_user",
"portalUrl": "https://xxxx.portal.com"
}

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.

Sample Response

{
"message": "Mail Sent Successfully to the user",
"status": "OK",
"subSystem": 8
}

Response Status Information

Status CodeStatusMessage
200OKMail Sent Successfully to the user
400BAD_REQUESTTenant name is missing, User name missing, Portal url is missing, and Mail type or text body is required.
401UnauthorizedHTTP 401 Unauthorized

Send Verification Email

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

POST https://{tenantId}.{hostname}/digitanium/v4/mail/test

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/mail/test

NOTE: API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body (* Required)

Field NameTypeDescription
*mailTypeStringSpecify the mail type for template. Value should be "VERIFY"
redirectUriStringSpecify the URI where user needs to land after completing the process
appNameStringApplication Name (Note: App should accept the redirect URI)
portalUrlStringSpecify the Tenant portal access url
supportEmailStringSpecify the Contact Support email if any.

Sample Request

{
"mailType": "VERIFY",
"redirectUri": "https://xxxx.xxx.xxxx.test.xxxx.com/",
"appName": "account",
"portalUrl": "https://xxxx.xxx.com",
"supportEmail": "xxxsupport@xxx.com"
}

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.

Sample Response

{
"message": "Mail Sent Successfully to the user",
"status": "OK",
"subSystem": 8
}

Response Status Information

Status CodeStatusMessage
200OKMail Sent Successfully to the user
400BAD_REQUESTMail type or text body is required.
401UnauthorizedHTTP 401 Unauthorized

Send Forgot Password Email

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

POST https://{tenantId}.{hostname}/digitanium/v4/mail/test

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/mail/test

NOTE: API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body (* Required)

Field NameTypeDescription
*mailTypeStringSpecify the mail type for template. Value should be "FORGOT_PASSWORD"
redirectUriStringSpecify the URI where user needs to land after completing the process
appNameStringApplication Name (Note: App should accept the redirect URI)
supportEmailStringSpecify the Contact Support email. When not provide will display the default mail

Sample Request

{
"mailType": "FORGOT_PASSWORD",
"redirectUri": "https://xxxx.xxx.xxxx.test.xxxx.com/",
"appName": "account",
"supportEmail": "xxxsupport@xxx.com"
}

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.

Sample Response

{
"message": "Mail Sent Successfully to the user",
"status": "OK",
"subSystem": 8
}

Response Status Information

Status CodeStatusMessage
200OKMail Sent Successfully to the user
400BAD_REQUESTMail type or text body is required.
401UnauthorizedHTTP 401 Unauthorized

Send Required Actions Verification Email

Required actions for a particular user can be configured and sent through a verification email as well. The user will be asked to perform all the required actions set for him through the email.

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

POST https://{tenantId}.{hostname}/digitanium/v4/mail/test

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/mail/test

NOTE: API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body (* Required)

Field NameTypeDescription
*mailTypeStringSpecify the mail type for template. Value should be "VERIFY"
iosLinkStringSpecify the iOS link
androidLinkStringSpecify Android link
requiredactionsArray of stringSpecify the required actions to be verified for the user.

Sample Request

{
"mailType": "VERIFY",
"iosLink": "https://xxxx.xxx.com",
"androidLink": "https://xxxx.xxx.com",
"requiredactions":["required-action"]
}

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.

Sample Response

{
"message": "Mail Sent Successfully to the user",
"status": "OK",
"subSystem": 7
}

Response Status Information

Status CodeStatusMessage
200OKMail Sent Successfully to the user
400BAD_REQUESTMail type or text body is required.
401UnauthorizedHTTP 401 Unauthorized