| POST | /ValidateEmail |
|---|
// @ts-nocheck
export class ValidateEmail
{
public email?: string;
public source?: string;
public constructor(init?: Partial<ValidateEmail>) { (Object as any).assign(this, init); }
}
export class Additional
{
public hasKnownBounces: boolean;
public hasSpamReports: boolean;
public hasSuspectedBounces: boolean;
public spamReportCreated?: string;
public constructor(init?: Partial<Additional>) { (Object as any).assign(this, init); }
}
export class Domain
{
public hasMxOrARecord: boolean;
public hasValidAddressSyntax: boolean;
public isSuspectedDisposableAddress: boolean;
public constructor(init?: Partial<Domain>) { (Object as any).assign(this, init); }
}
export class LocalPart
{
public isSuspectedRoleAddress: boolean;
public constructor(init?: Partial<LocalPart>) { (Object as any).assign(this, init); }
}
export class Checks
{
public additional?: Additional;
public domain?: Domain;
public localPart?: LocalPart;
public constructor(init?: Partial<Checks>) { (Object as any).assign(this, init); }
}
export class Result
{
public checks?: Checks;
public email?: string;
public host?: string;
public ip_Address?: string;
public local?: string;
public score: number;
public source?: string;
public suggestion?: string;
public verdict?: string;
public constructor(init?: Partial<Result>) { (Object as any).assign(this, init); }
}
export class EmailValidation
{
public result?: Result;
public constructor(init?: Partial<EmailValidation>) { (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ValidateEmail HTTP/1.1
Host: cpmwebservices-t.clarkpud.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"email":"String","source":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"result":{"checks":{"additional":{"hasKnownBounces":false,"hasSpamReports":false,"hasSuspectedBounces":false,"spamReportCreated":"\/Date(-62135596800000-0000)\/"},"domain":{"hasMxOrARecord":false,"hasValidAddressSyntax":false,"isSuspectedDisposableAddress":false},"localPart":{"isSuspectedRoleAddress":false}},"email":"String","host":"String","ip_Address":"String","local":"String","score":0,"source":"String","suggestion":"String@String","verdict":"String"}}