Skip to main content

Send Email

You can use send email API to send email message.

Request parameters

NameTypeRequired/OptionalDescription
fromstringRequiredFrom email
tostringRequiredTo email
subjectstringRequiredEmail subject
htmlTextstringRequiredHTML/Body text
senderNamestringRequiredSender name

Request Information

CategoryValue
Http requestPOST
URLhttps://bikapi.bikayi.app/integrations/bikPlatformFunctions-messages/v2/sendEmail
curl --location 'https://bikapi.bikayi.app/integrations/bikPlatformFunctions-messages/v2/sendEmail' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic AUTH_TOKEN' \
--data-raw '{
"from": "test@test.com",
"to": "sachin@bik.ai",
"subject": "This is a test subject",
"htmlText": "This is a test htmlText",
"senderName": "Sachin"
}

'

JSON response example:

{
"status": 200,
"success": true,
"data": {
"messageId": "639952844"
}
}

Response parameters

NameTypeDescription
statusnumberResponse status
successbooleanIs successful response or not
messageIdstringMessage id if any

Errors

Error CodeMeaning
400Invalid payload -- Your request is invalid.
401Unauthorized -- User is not authenticated.
404Not Found -- The specified API could not be found.
500Internal Server Error -- We had a problem with our server. Try again later.

Error response example:

{
"status": 400,
"errors": [
{
"code": 400,
"message": "Not able to send email"
}
]
}