Browse API reference
Mailing Lists
List all mailing lists
Returns a paginated list of all the available mailing lists.
Parameters
Query
limitThe number of objects to return in the response.
1skipThe number of objects to skip (For pagination).
0sort_fieldThe field to sort the mailing lists by.
sort_orderThe order to sort the mailing lists in.
fieldsA filtered down list of fields to return in the response. Example: ["id", "name", "recipients"]. By default, all fields are returned.
Responses
Sample JSON for every response shape is in the right rail. Expand a row below to see every field this endpoint can return.
200Successful responseapplication/json
objectThe object type. Always list.
listdataobject.idstringA globally unique identifier for the mailing list.
"mal_eg"objectstringThe object type. Always mailing_list.
mailing_listaccountstringThe Intelliprint account ID that the mailing list belongs to.
"acc_eg"namestringA user-friendly name for this mailing list. This name is displayed in the dashboard.
"Black Friday Leads"recipientsintegerThe number of recipients present in the mailing list. This value is updated automatically when recipients are added or removed from the mailing list.
1000variablesarray of objectAn array of the dynamic fields present in the mailing list. Dynamic fields are used to tailor templates uniquely for each recipient.
object.namestringThe name of the dynamic field. This is the value without the curly braces. For example, if the dynamic field is {exampleA}, the name will be exampleA.
"salutation"longest_address_linestringThis is the longest address line present across all recipients in the mailing list. We keep track of this to ensure the address box on postcard templates is large enough to fit the longest address.
"123 Main St, Anytown, Anyplace"address_validationobjectAddress validation is a value-added service that we offer to ensure your mailings are only charged for and sent to real, deliverable addresses. Please contact us at hello@intelliprint.net to enable this service for your account.
requestedbooleanWhether address validation has been requested for the mailing list.
falsefalsecompletedbooleanWhether all addresses in the mailing list have been validated.
falsefalserecipientsobjectThe number of recipients that have passed or failed address validation.
passedintegerThe number of recipients that have passed address validation.
00failedintegerThe number of recipients that have failed address validation.
00createdinteger<int64>The UNIX timestamp of when the mailing list was created. We use UNIX timestamps to avoid timezone-based issues.
1761955200total_availableThe total number of objects available that can be returned by the API using successive paginated requests.
100has_moreWhether there are more objects available that can be requested in the next paginated request.
true400Example error responseapplication/json
errormessagestringA human-readable message describing the error. You can display this to your users to help them understand what went wrong.
"Received unknown parameter: testmood (Did you mean testmode?)"typestringThe general category of the error.
invalid_request_errorauthentication_errorpayment_errorrate_limitedinternal_error"invalid_request_error"codestringA unique code for the specific error that occurred.
parameter_invalidparameter_missingparameter_unknownbody_too_largebody_incorrect_formatno_api_keyinvalid_api_keylogged_outforbiddenpayment_errornot_foundrate_limitedrefusedinternal_error"parameter_unknown"paramstringThe parameter that caused the error, if applicable.
"testmood"