Get Recipient Lists

This API allows you to get the Lists in which your recipients are present.

Request Type

  • GET

Request URL

https://campaigns.zoho.com/emailapi/v1/recipients?start_index=1&end_index=1000

Content-Type

application/json

List of Request Parameters

ParametersData TypeDescription
start_indexIntegerStarting index of the number of objects to be obtained.
end_indexIntegerEnding index of the number of objects to be obtained.

List of Response Body Attributes

ParametersData TypeDescription
dataJSON ArrayContains information on the recipient lists configured, including their name, ID and description.
nameStringName of the list.
descriptionStringDescription provided for the list.
idIntegerUnique ID of the list which can be used in APIs.
countIntegerTotal number of lists returned.
rangeJSON ObjectContains information about start and end index.
start_indexIntegerStarting index of the data range being returned. Indicates the position in the overall data set where the returned data begins.
end_indexIntegerEnding index of the data range being returned. Indicates the position in the overall data set where the returned data ends.
errorsJSON ObjectContains the error details of the API such as 'code' and 'message'
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.

Sample Response - Success

Copied{
  "data": [
    {
      "name": "List 4",
      "description": "List 4 test",
      "id": "8000000097065"
    },
    {
      "name": "List 5",
      "description": "List 4 test",
      "id": "8000000098001"
    }
  ],
  "count": 2,
  "range": {
    "start_index": 1,
    "end_index": 1000
  }
}

Sample Response - Failure

Copied{
  "errors": [
    {
      "code": 500501,
      "message": "An error occurred in Recipient List API"
    }
  ]
}