Validate an email message
Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.
POST
Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.
apiKeyheader
x-api-key<token>application/json- body
conversationId?|null|nullmetadata?|nullchannel*"email"Value in
"email"to*array<|>Items
1 <= itemscc?array<|>|null|nullbcc?array<|>|null|nullfrom?|nullemail*ValidateEmailResponse
application/json- response
valid*trueValue in
truefrom*recipientCount*integerRange
-9007199254740991 <= value <= 9007199254740991content*import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.messages.validateEmail({ "channel": "email", "to": [ { "contactId": "example" } ], "email": {}});Example Response
{ "valid": true, "from": { "email": "string", "name": "string" }, "recipientCount": -9007199254740991, "content": { "source": "inline", "subject": "string", "hasHtml": true, "hasText": true }}