Skip to main content
POST
/
merchant
/
email
/
send_email_via_api_credential
Send Email Via API Credential
curl --request POST \
  --url https://api.unibee.dev/merchant/email/send_email_via_api_credential \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "gatewayName": "<string>",
  "apiCredential": {
    "apiKey": "<string>",
    "apiSecret": "<string>",
    "authType": "<string>",
    "oauthToken": "<string>",
    "password": "<string>",
    "skipTLSVerify": true,
    "smtpHost": "<string>",
    "smtpPort": 123,
    "useTLS": true,
    "username": "<string>"
  },
  "content": "<string>",
  "language": "<string>",
  "subject": "<string>",
  "variables": {}
}
'
{
  "code": 123,
  "data": {},
  "merchantId": 123,
  "message": "<string>",
  "redirect": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<string>
required

Email

gatewayName
string<string>
required

The name of email gateway, available for sendgrid|smtp, default gateway will use if not provide

apiCredential
object
content
string<string>
language
string<string>

Language

subject
string<string>
variables
object

Variables,Map

Response

200 - application/json
code
integer<int>
data
object
merchantId
integer<int64>
message
string<string>
redirect
string<string>
requestId
string<string>