Get Segment Contacts

Using this API, you can get the segment contacts along with their relevant details like first name, last name, time when they were added, company and their phone number.

Request Type

  • GET/POST

Scope required

  • ZohoCampaigns.contact.READ

Other alternative scopes

  • ZohoCampaigns.contact.ALL (CREATE + UPDATE + DELETE + READ)

Header:

Authorization: Zoho-oauthtoken <access_token>

Request URL

https://campaigns.zoho.com/api/v1.1/getsegmentcontacts

API Limit

  • Duration: 5 mins
  • Number of Calls: 500
  • Lock Period: 30 mins

You can send 500 API calls per 5 minutes. If you hit this limit, you can't use this API for the next 30 minutes due to security reasons, but you can still use other APIs if their lock period hasn’t been reached.

List of Parameters --Version 1.1

ParameterData TypeDescription
resfmtStringXML (or) JSON
cvid*NumberYou will get cvid from getmailinglists.

* - Mandatory Parameters

Possible Error Cases

Error codeDescription
903Mandatory fields are missing.
2202 Listkey is empty or invalid.
2603 Error in getting segments details. Please try after sometime.
2604 There are no contacts in this segments.

If your error code is not listed above, click here.

Sample XML Request

Copiedhttps://campaigns.zoho.com/api/v1.1/getsegmentcontacts?resfmt=XML&cvid=[cvid]

Sample Response

Copied<response uri="/api/v1.1/getsegmentcontacts" version="1.1">
	<status>success</status>
	<code>0</code>
	<range>20</range>
	<cvid>303000014567003</cvid>
	<fromindex>1</fromindex>
	<segment_contacts>
		<contact>
			<fl val="contact_email">user512@thandora.com</fl>
			<fl val="firstname"/>
			<fl val="lastname"/>
			<fl val="companyname"/>
			<fl val="added_time">22 Apr 2011, 04:37 PM</fl>
			<fl val="phone"/>
		</contact>
		<contact>
			<fl val="contact_email">user212@thandora.com</fl>
			<fl val="firstname"/>
			<fl val="lastname"/>
			<fl val="companyname"/>
			<fl val="added_time">22 Apr 2011, 04:37 PM</fl>
			<fl val="phone"/>
		</contact>
		<contact>
			<fl val="contact_email">user612@thandora.com</fl>
			<fl val="firstname"/>
			<fl val="lastname"/>
			<fl val="companyname"/>
			<fl val="added_time">22 Apr 2011, 04:37 PM</fl>
			<fl val="phone"/>
		</contact>
		<contact>
			<fl val="contact_email">user118@thandora.com</fl>
			<fl val="firstname">changefname users</fl>
			<fl val="lastname">users</fl>
			<fl val="companyname"/>
			<fl val="added_time">16 Apr 2011, 09:00 PM</fl>
			<fl val="phone"/>
		</contact>
	</segment_contacts>
</response>