Create and manage Approved Senders using the API.
REST Methods
Note: API is case sensitive. Make all parameters entries lower case. All parameters in red
are required.
Note: Write actions (POST, UPDATE, DELETE) may take several minutes to propagate and be reflected by the API. If a subsequent read request fails to reflect your changes, please wait a few minutes and try again.
VERB | RESOURCE | PARAMETERS | DESCRIPTION |
GET | /senders |
|
Retrieves a list of up to 25 Email Sub-Accounts. |
GET | /senders/details |
|
Retrieves a list of details on the specified approved sender. |
GET | /senders/status |
|
Retrieves the status of an approved sender. |
POST | /senders |
|
Create or update an Approved Sender account. |
POST | /senders/dkim |
|
Defines an Approved Sender’s DKIM Selector. |
POST | /senders/delete |
|
Deletes the defined Approved Sender. |
GET /sendersRetrieves a list of approved senders from your master account. Parameters
Example Request curl --request GET "https://emailapi.dynect.net/rest/json/senders?apikey=ABC123XYZ" Example Results (JSON) {"response":{"status":200,"message":"OK","data":{"senders":[{"emailaddress":"email1@domain.org"},{"emailaddress":"email2@domain.org"},…]}} GET /senders/detailsRetrieves a list of details on the specified approved sender. Parameters
Example Request curl --request GET "https://emailapi.dynect.net/rest/json/senders/details?emailaddress=example@example.com&apikey=ABC123XYZ"
Example Results (JSON) {"response":{"status":200,"message":"OK","data":{"ready":1}}} GET /senders/statusRetrieves the status of an approved sender. This is most useful when you create a new approved sender and need to know for sure whether it is ready to use. Parameters
Example Request curl --request GET "https://emailapi.dynect.net/rest/json/senders/status?email=example@example.com&apikey=ABC123XYZ"
Example Results (JSON) {"response":{"status":200,"message":"OK","data":{"ready":1}}} POST /sendersCreate or update an Approved Sender account. Parameters
Example Request curl --request POST "https://emailapi.dynect.net/rest/json/senders" --data "apikey=ABC123XYZ&emailaddress=example@example.com" Example Results (JSON) {"response":{"status":200,"message":"OK","data":[]}} POST /senders/dkimDefines an Approved Sender’s DKIM Selector. Parameters
Example Request curl --request POST "https://emailapi.dynect.net/rest/json/senders/dkim" --data "apikey=ABC123XYZ&emailaddress=example@example.com&dkim=my-identifier" Example Results (JSON) { "response":{ "status": 200, "message": "OK", "data": { "my-identifier._domainkey.mydomain.com": "k=rsa\\; t=y\\; p=MHwwDQYJKoZIhvcNA8593QADawAwaAJhAP3X49p188SrwGKsiPWU68lIzUJn8hsfEHLHuRU48aliKBuvg3wl3A9dix56h8mdBJOo+4DgRGhg2Egmxy4pevYyNT1t9Lrg8d9kl2byWhwMo+hBgiGKRUbMUhVpVyDlLQIDAQAB", "_domainkey.mydomain.com": "t=y\\; o=~\\;" } } } } POST /senders/deleteDeletes an approved sender from the account. Parameters
Example Request curl --request POST "https://emailapi.dynect.net/rest/json/senders/delete" --data "apikey=ABC123XYZ&emailaddress=example@example.com" Example Results (JSON) {"response":{"status":200,"message":"OK","data":[]}} |