How to get SMTP-ID in sendgrid API via json? Example: In the API tutorial they mentioned for executing HTTP (s): // username: password @ domain /foo.php
and the result will be (in json): "email": " john.doe@sendgrid.com ", "timestamp": 1337197600, "smtp-id": "< 4FB4041F.6080505@sendgrid.com >", "event": "processed" But actually we need the perfect url to get json. for example: https://sendgrid.com/api/bounces.get.json for scanned emails similarly, is there anything to get the json sample above.
Thanks in advance.
If you send email to SendGrid via the web API, you will not have an SMTP-ID. This will be generated by the SendGrid server, which transfers the API call to the SMTP object. So, you're right, the SMTP-ID that returns in the POST event does not help.
However, you can add Unique Args to your API call with the x-smtpapi argument in the mail.send call . This will allow you to identify all the tracking metrics that you want to report, and all this will return to the POST event.
Unique Args, , , . , sendgrid, "missing unique_args" . , , " " , : (
. API URL- , POST, , json-. , - , Sendgrid. .
.
, jacobmovingfwd