Browse API reference
Mailing List Recipients
Create a mailing list recipient
Creates a single new mailing list recipient.
Parameters
Path
mailing_listrequiredThe ID of the mailing list the recipient belongs to.
Request body
application/jsonaddressrequirednamestringThe name of the recipient.
"John Doe"linestringrequiredThe complete address line for the recipient.
"123 Main St, Anytown, Anyplace"postcodestringThe postal code of the address.
"AB1 2CD"countrystringThe country code of the address. This is an ISO 3166-1 alpha-2 country code. Example: GB.
"GB""GB"variablesAn arbitrary object of the dynamic fields for this recipient. Dynamic fields are used to tailor templates uniquely for each recipient.
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
idA globally unique identifier for the mailing list recipient.
"mal_rcp_eg"objectThe type of the object. Always mailing_list_recipient.
mailing_list_recipientmailing_listThe ID of the mailing list that the recipient belongs to.
"mal_eg"accountThe Intelliprint account ID that the mailing list belongs to.
"acc_eg"addressnamestringThe name of the recipient.
"John Doe"linestringThe complete address line for the recipient.
"123 Main St, Anytown, Anyplace"postcodestringThe postal code of the address.
"AB1 2CD"countrystringThe country code of the address. This is an ISO 3166-1 alpha-2 country code. Example: GB.
"GB""GB"variablesAn arbitrary object of the dynamic fields for this recipient. Dynamic fields are used to tailor templates uniquely for each recipient.
address_validation_statusThe address validation status for this recipient's address. Address validation for a recipient is only performed if address validation has been requested for the mailing list.
passedfailedpendingnot_requested"not_requested"createdThe UNIX timestamp of when the mailing list recipient was created. We use UNIX timestamps to avoid timezone-based issues.
1761955200400Example 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"