The API KEY is the same I send email without problems.
I just purchased the Extended Email Activity History add-on :-)
From the Try it out page the below call with the same API KEY "SG.xxxxxxxxxxxxxxxxx" in the Authorization field of the UI, I got the reply "401 Unauthorized":
https://api.sendgrid.com/v3/messages/ERsDbjjdQZ-sQW5X18erfA.filterdrecv-p3mdw1-7745b6f999-bnpxx-19-603139AC-6F.0
I had checked the key and I'm seeing it doesn't have Email Activity permissions. After editing the API key permissions and giving Read Access to the Email Activity permission, I was be able to access the API.
Hello @thinkingserious
Please could you help me with the usage of GET /messages/{msg_id} ?
Using Java I got:
My code:
SendGrid sg = new SendGrid("SG.xxxxxxxxxxxxxxxxx");
Request request = new Request(); request.setMethod(Method.GET); request.setEndpoint("messages"); request.addQueryParam("query", "msg_id='ERsDbjjdQZ-sQW5X18erfA.filterdrecv-p3mdw1-7745b6f999-bnpxx-19-603139AC-6F.0'");
Note that:
https://api.sendgrid.com/v3/messages/ERsDbjjdQZ-sQW5X18erfA.filterdrecv-p3mdw1-7745b6f999-bnpxx-19-603139AC-6F.0
Thank you for any help
Originally posted by @icarrara in https://github.com/sendgrid/sendgrid-java/issues/425#issuecomment-782718871