This endpoint will bulk upload domain exclusions.

Endpoint

POST https://api.mailstand.com/domain-exclusions/manual

Payload

FieldTypeRequiredDescription
workspace stringtrueThe workspace ID that you want to query
payloadarraytrueAn array of emails, domains and/or urls to add. All inputs on this field will be converted to domains.

Payload Example

{
	"workspace": "space_GyZe2341nHkuoIVPZXRm0lr1q"
	"payload": [
		"[email protected]",
		"domain.com",
		"www.anotherdomain.com"
	]
}

Response

This will provide back an upload ID and will process your uploads in the background. Depending on the number of domains you upload, the upload will complete in 1-10 minutes generally.

{
    "id": "upload_ABCL6SZo8fCvlgVVn4offMs"
}