# Complaint
When the recipient reports your email as spam, his email address will be added to the list of spam reporting.
Email addresses in this list will be intercepted until the expiration time.
You may search in the spam list.
# Query
URL
https://api2.sendcloud.net/api/complaint/list
1
HTTP Request Method
post get
1
Parameter Description
parameter | type | required or not | description |
---|---|---|---|
apiUser | string | yes | API_USER |
apiKey | string | yes | API_KEY |
days | int | * | stats in the past [days] days (days=1 means today |
startDate | string | * | format of start date is yyyy-MM-dd |
endDate | string | * | format of end date is yyyy-MM-dd |
string | * | learn more about the address in the list | |
start | int | no | start position, [0-], defaults to 0 |
limit | int | no | amount, [0-100],defaults to 100 |
Tips:
- With designated time span, your search should be within the period. Note: start_date and end_date or days is required.
- Time span cannot be longer than 3 months.
- With given email address, your search in spams should provide the details of this email. Note: time span will turn to invalid now.
Request Example:
https://api2.sendcloud.net/apiv2/complaint/list?apiUser=***&apiKey=***
1
Returned Value Description
None
Returned Value Example
{
"statusCode":200
"info":{
"dataList":[
{
"receiver":"9978977@qq.com",
"reason":"from softbounce",
"spamReportedTime":"2016-02-22 14:40:25",
"domain":"qq.com"
}
],
"count":1
},
"message":"request was successful",
"result":true
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Delete
URL
https://api2.sendcloud.net/apiv2/complaint/delete
1
HTTP Request Method
post get
1
Parameter Description
parameter | type | required or not | description |
---|---|---|---|
apiUser | string | yes | API_USER |
apiKey | string | yes | API_KEY |
startDate | string | * | format of start date is yyyy-MM-dd |
endDate | string | * | format of end date is yyyy-MM-dd |
string | * | email addresses to delete |
Tips:
- email and (startDate and enddate) cannot be empty at the same time. If email is empty, the addresses within the specified time (startDate and enddate) will be deleted
- If email is not empty, delete the address of the specified address
Request Example:
https://api2.sendcloud.net/apiv2/complaint/list?apiUser=***&apiKey=***&email=****
1
Returned Value Description None
Returned Value Example
{
"statusCode":200
"info":{
"count":1
},
"message":"request was successful",
"result":true
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8