발송 차단
이 그룹의 모든 작업: 받는 값, 반환하는 값, 응답할 수 있는 오류.
작업
The addresses this workspace will not send to: hard bounces and complaints, recorded as they happen, and any address somebody blocks by hand. A send to one is refused for that recipient before anything leaves. A hard bounce stays for good; a complaint or a manual entry can be removed. Reading needs settings:read and changing needs settings:write, the scopes the Blocked addresses screen in Settings is gated on.
GET/suppressions
List suppressed addresses
The addresses this workspace will not send to, newest first: every address that bounced hard, complained, or was added by hand. It is the Blocked addresses screen in Settings. A send to a suppressed address is refused for that recipient before anything leaves, and a message whose recipients are all suppressed fails outright.
The list belongs to the whole workspace, so a key limited to particular addresses or domains reads all of it. A row names the recipient and never which of your addresses sent to it.
Requires the settings:read scope.
쿼리 매개변수
qstringSearches the address, the reason and the detail. Words match loosely, and a close spelling is tried when nothing matches exactly.
최대 320자reasonstringKeeps one kind.
다음 중 하나"bounce""complaint""manual"limitintegerRows per page, 1 to 100.
1 이상100 이하기본값25cursorstringThe previous page's
nextCursor, passed back as it came. It is opaque: it holds where the last row sat in this list's order, so a row deleted or edited between pages never breaks the walk, and the next page starts at the first row that sorts after it. A value this list did not hand out is a 400invalid_cursor.
반환값
A page of the suppression list, newest first.
오류
모든 작업이 반환할 수 있는 오류400401403404422500오류 목록
다른 사용처
POST/suppressions
Add a suppressed address
Puts an address on the list by hand, with reason: "manual", so no address in the workspace sends to it until it is removed. Adding one that is already there changes nothing and answers 200 with the row it already holds, whatever its reason. A new entry fires suppression.added.
The list stops mail from every address in the workspace, so a key limited to particular addresses or domains, and an app connected by anybody but the owner, cannot change it.
Requires the settings:write scope.
요청 본문
emailstring필수The address to stop sending to. Trimmed and lower-cased on the way in.
최대 320자형식email
반환값
It was already on the list. The row that was there, unchanged.
Added. Nothing is sent to the address from here on.
오류
- 422
invalid_parameterfor an address that is not one, orcapability_unsupportedfor a key limited to particular addresses or domains.
모든 작업이 반환할 수 있는 오류400401403404500오류 목록
다른 사용처
GET/suppressions/{id}
Retrieve a suppressed address
One row of the suppression list.
Requires the settings:read scope.
경로 매개변수
idstring필수The id from
GET /suppressions.
반환값
The row.
오류
모든 작업이 반환할 수 있는 오류400401403404422500오류 목록
다른 사용처
DELETE/suppressions/{id}
Remove a suppressed address
Takes an address off the list, so mail may go to it again. It is Allow again on the Blocked addresses screen, and it fires suppression.removed. Only a complaint or a manual entry can be removed.
Requires the settings:write scope.
경로 매개변수
idstring필수The id from
GET /suppressions.
반환값
Removed. Mail may go to the address again.
objectstring- 다음 중 하나
"suppression" idstringemailstringdeletedboolean- 다음 중 하나
true
오류
- 409
suppression_not_removable: the address bounced hard, so it stays. Check the address is right and send to the corrected one.- 422
capability_unsupportedfor a key limited to particular addresses or domains.
모든 작업이 반환할 수 있는 오류400401403404500오류 목록
다른 사용처
객체
Suppressionobject
objectstring- 다음 중 하나
"suppression" idstringemailstringThe recipient address, lower-cased. It is somebody you sent to, not one of your own.
reasonstringbounceis a hard bounce and stays for good.complaintmeans the recipient marked a message as spam.manualmeans somebody added it.다음 중 하나"bounce""complaint""manual"detailstringWhat the bounce or complaint said, when it said anything.
null 가능removablebooleanWhether
DELETE /suppressions/{id}will take it off. False for a bounce.createdAtstring- 형식
date-time
SuppressionListobject
objectstring- 다음 중 하나
"list" dataSuppression[]hasMorebooleanTrue when another page follows. Pass
nextCursorback ascursorto read it.nextCursorstringAn opaque cursor for the next page, or null on the last page. Pass it back unchanged.
null 가능