How to find Api key ID with Event Webhook

Viewed 52

We have almost 30 API Keys that we distributed among developers so their apps can send emails through SendGrid. How can I find which API Key has been used for a certain message? I try with an Event Webhook, but nowhere in the resulting json is the API Key.

1 Answers

I checked with the team and they said that the API key is logged, but it is not returned as part of any API response or within the Event Webhook.

However, you can use the Email Activity API to request emails by api_key_id. So if you have your developers’ API key IDs you can find the emails that they have sent.

Related