Manage and retrieve the status of your Recipients using the API.

REST Methods

NOTE: API is case sensitive. Make all parameters entries lower case. All parameters in red are required.

VERB RESOURCE PARAMETERS DESCRIPTION
GET /recipients/status
  • apikey
  • emailaddress
Retrieves the status of the specified recipients.
POST /recipients/activate
  • apikey
  • emailaddress
Updates the status of the specified recipient(s) to active which, in turn, allows them to receive email.

 


GET /recipients/status

Retrieves the status of the specified recipients. Valid values are active, meaning the recipient may be sent email, or inactive, meaning they have either bounced email or submitted a spam complaint.

Parameters

  • apikeyRequired. API key of the account with the desired information.
  • emailaddressRequired. Recipients email address.

Example Request

curl --request GET "https://emailapi.dynect.net/rest/json/recipients/status?emailaddress=example@example.com&apikey=ABC123XYZ"

Example Results (JSON)

{"response":"status":200,"message":"OK","data":{"recipients:"[{"emailaddress":"email1@example.net","status":"inactive"},{"emailaddress":"email2@example.com","status",:"active"},{"emailaddress":"zoom3@example.com","status":"inactive"},…]}}
{"response":{"status":200,"message":"OK","data":{"recipients":[{"emailaddress":"email1@example.net","status":"active","suppressionstatus":"unsuppressed"},{"emailaddress":"bademail@nonexistent.com","status":"inactive","suppressionstatus":"pending removal"},{"emailaddress":"noonehere@nonexistent.com","status":"inactive","suppressionstatus":"suppressed"}]}}}

POST /recipients/activate

Updates the status of the specified recipient(s) to active which, in turn, allows them to receive email.

Parameters

  • apikeyRequired. API key of the account with the desired information.
  • emailaddressRequired. Recipients email address.

Example Request

curl --request POST "https://emailapi.dynect.net/rest/json/recipients/activate" --data "apikey=ABC123XYZ&emailaddress=example@example.com"

Example Results (JSON)

{"response":{"status":200,"message":"OK","data":[]}}