sendgridsendgrid-api-v3

How to receive a verification token for single sender in sendgrid


I can see in sendgrid API we have a call to verify a single sender with a token

https://docs.sendgrid.com/api-reference/sender-verification/verify-sender-request

but I can't find a way to actually receive this token from anywhere, the only way is by sending an email that needs authentication (and we fall into this issue verifying sender email requires user to log in to sendgrid)

Anyone actually used this route in a way ?


Solution

  • There is a workaround as follows: The link in the email redirects to a URL that looks like this https://app.sendgrid.com/settings/sender_auth/senders/verify?token=xyz, with the token query parameter. You can use that token in the api call to verify the sender email using your own api credentials.