API ReferenceEmail
Add Email Block
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
blockType*unknown
Type of block
Value in
"email" | "domain"blockValue*string
Email address or domain to block
Length
1 <= lengthreason*string
Reason for blocking
Length
1 <= lengthnotes?string
Additional context
expiresAt?string
Optional expiration date
Format
date-timeResponse Body
application/json
curl -X POST "https://samva.app/api/v1/email/blocks" \ -H "Content-Type: application/json" \ -d '{ "blockType": "email", "blockValue": "string", "reason": "string" }'{
"id": "string",
"blockType": "email",
"blockValue": "string",
"reason": "string",
"notes": "string",
"isActive": true,
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z"
}