S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

API Reference

Email Management

Add Email BlockCheck if BlockedGet Email Block LogsList Email BlocksRemove Email BlockUpdate Email BlockDisable Catch-AllEnable Catch-AllGet Catch-All ConfigGet Catch-All StatsUpdate Catch-All ConfigAdd Email DomainCheck Domain VerificationEnable Email ReceivingGet Email Domain StatusList Email DomainsRemove Email DomainVerify Email DomainGet Forwarding LogCreate Forwarding RuleDelete Forwarding RuleList Forwarding RulesUpdate Forwarding RuleGet EmailGet Email StatsSend EmailAdd Email SenderCheck Sender VerificationList Email SendersRemove Email SenderCreate Email TemplateList Email TemplatesGet Email ThreadGet Thread MetadataGet Email Thread by IDGet Thread CountsGet Thread MessagesList Email Threads

Conversation Management

Configuration

Analytics & Operations

OpenAPI Specification
API ReferenceEmail

Add Email Block

POST
/email/blocks

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

Length1 <= length
reason*string

Reason for blocking

Length1 <= length
notes?string

Additional context

expiresAt?string

Optional expiration date

Formatdate-time

Response 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"
}

API Reference

Complete reference for all Samva API endpoints

Check if Blocked

Next Page

curl -X POST "https://samva.app/api/v1/email/blocks" \
  -H "Content-Type: application/json" \
  -d '{
    "blockType": "email",
    "blockValue": "string",
    "reason": "string"
  }'