Email Sender Read

When you call Email Sender Service with GET method, you can find email_sender on next4biz CRM.

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.
  • email_sender This is an array includes objects as email_sender property is an object contain your email_sender search values. Every email_sender object property join as AND operator and every email_sender object JOIN as OR operator.

Hints

You can sent two optional parameters:

  • limit Number of objects to return. Default is 50 maximum value is 200
  • offset The number from which to start for read. Default is 0
Name Value
REST-API METHOD Email Sender Read
HTTP METHOD GET
RESPONSE TYPE JSON
URL https://api.crm.next4biz.com/email-sender/
REQUEST HEAD Accept: application/json; Content-Type: application/json
ENDPOINT DEFINITION
GET
SAMPLE REQUEST BODY
{
	"tenant_slug": "acme",
	"channel": "79",
	"access_token": "[YOUR ACCESSTOKEN]",
	"email_sender": [
		{
			"sender_name": "Jhon"
		},
		{
			"sender_name": "Jhony"
		}
	]
}
SAMPLE RESPONSE BODY
{
	"code": "200",
	"status": "Success",
	"result": [
		{
			"email_sender_id": 75,
			"sender_name": "John Doe",
			"email_address": "[email protected]",
			"smtp_username": "[email protected]",
			"smtp_password": "***********",
			"smtp_server": "smtp.acme.com",
			"smtp_secure": "tls",
			"smtp_port": "587",
			"channel": {
				"channel_id": "79",
				"channel_name": "Jhony",
				"channel_slug": "jhony",
				"created_at": "2017-09-05 11:53:41",
				"lang": "tr",
				"is_builtin": true,
				"business_type": 1
			}
		}
	]
}