digitaluapi

<back to all web services

SendGridWebHook


export class SendGridWebHooksData
{
    // @DataMember(Name="email")
    public email: string;

    // @DataMember(Name="timestamp")
    public timestamp: number;

    public SmtpId: string;
    public Event: string;
    public Category: string[];
    public Sg_Event_Id: string;
    public Sg_Message_Id: string;
    public Useragent: string;
    public Ip: string;
    public Url: string;
    public Asm_Group_id: string;
    public OurUniqueId: string;

    public constructor(init?: Partial<SendGridWebHooksData>) { (Object as any).assign(this, init); }
}

export class SendGridWebHook extends Array<SendGridWebHooksData>
{

    public constructor(init?: Partial<SendGridWebHook>) { super(); (Object as any).assign(this, init); }
}

TypeScript SendGridWebHook DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/SendGridWebHook HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

[
	
]
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}