Send Multiple Emails
Send Multiple Emails

You can send multiple emails via next4biz CRM Send Email Service.

Your request body must be contain 4 properties.

  • tenant_slug This is your subdomain on selphiu URL. For example: if your selphiu domain is “acme.selpihu.com” then your tenant_slug is “acme”
  • access_token next4biz CRM provide an access_token via access_token service. Every access_token expires after 15 minutes. Best Practice, you request a new access_token for each service request.
  • channel This is bussines channel id. If you don’t know your bussiness_channels and there’s id numbers. You can learn via bussiness_channel service.
  • emails This is an array containsemail object as email property is an object contain your new email values.
    • email_sender_id your email sender’s id number. You can learn via Email Sender Service
    • sales_channel_id your email’s sales channel’s id number. You can learn via Sales Channel Service
    • subject your email’s subject
    • to this is an array. contain recipient email address. The email address must be recorded as person on next4biz CRM
    • cc this is an array. Contain recipient cc email address. The email address must be recorded as person on next4biz CRM.
    • bcc this is an array. Contain recipient bcc email address.
    • variables this is an object. Contain your template custom field names and values
    • message you can send message or template id. Message is a text. It’s email body.
    • template_id you can send template id or message. You can learn template id via Email Template Service or next4biz CRM UI.
Name Value
REST-API METHOD Send Multiple Email
HTTP METHOD POST
RESPONSE TYPE JSON
URL https://api.crm.next4biz.com/send-multiple-emails/
REQUEST HEAD Accept: application/json; Content-Type: application/json
ENDPOINT DEFINITION
GET
SAMPLE REQUEST BODY
{
	"tenant_slug": "acme",
	"channel": "79",
	"emails": [{
		"email_sender_id": "75",
		"sales_channel_id": "173",
		"subject": "API Test",
		"to": [
			"[email protected]"
		],
		"cc": [],
		"bcc": [],
		"variables": {
			"issue_id": "1578588"
		},
		"template_id": "839"
	}],
	"access_token": "[YOUR ACCESSTOKEN]"
}
SAMPLE RESPONSE BODY
{
    "code": 200,
    "status": "Success",
    "result": [
        {
            "code": 200,
            "status": "Success",
            "result": [
                {
			"email": "[email protected]",
			"status": true
                }
            ]
        }
    ]
}