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

Update Email Block

PATCH
/email/blocks/:blockId

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

blockId*string

Block ID to update

Formatuuid
reason?string

Updated reason

notes?string

Updated notes

isActive?boolean

Updated active status

expiresAt?string|null

Updated expiration

Response Body

application/json

curl -X PATCH "https://samva.app/api/v1/email/blocks/:blockId" \  -H "Content-Type: application/json" \  -d '{    "blockId": "fcde1d7c-c9cf-4365-8b6f-51bb6a8bc460"  }'
{
  "id": "string",
  "blockType": "email",
  "blockValue": "string",
  "reason": "string",
  "notes": "string",
  "isActive": true,
  "expiresAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}

Remove Email Block

Previous Page

Disable Catch-All

Next Page

curl -X PATCH "https://samva.app/api/v1/email/blocks/:blockId" \
  -H "Content-Type: application/json" \
  -d '{
    "blockId": "fcde1d7c-c9cf-4365-8b6f-51bb6a8bc460"
  }'