# Retrieving SendGrid Api Key from Action Event

**URL:** <https://community.auth0.com/t/retrieving-sendgrid-api-key-from-action-event/104017>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [April 3, 2023, 2:15pm UTC](https://community.auth0.com/t/retrieving-sendgrid-api-key-from-action-event/104017 "2023-04-03T14:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibrazil](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jibrazil/32/33961_2.png) [@jibrazil](https://community.auth0.com/u/jibrazil)\
**Post date:** [April 3, 2023, 2:15pm UTC](https://community.auth0.com/t/retrieving-sendgrid-api-key-from-action-event/104017/1 "2023-04-03T14:15:02Z")

</div>

Hi,

I’m creating a custom action that sends our users an email whenever they log in. I have the code working by utilizing a local secret created in my custom action.

My issue is that I now have two places where I’ve entered my SendGrid api key in Auth0. Its entered in:

1. User Management → Branding → Email Provider
2. Actions → Library → Details → MyAction

Is there a way I can access my SendGrid api key that I entered into User Management → Branding → Email Provider in my custom action via event.secrets.SomeKey or some other mechanism?

Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 6, 2023, 7:07pm UTC](https://community.auth0.com/t/retrieving-sendgrid-api-key-from-action-event/104017/3 "2023-04-06T19:07:52Z")

</div>

Hi @jibrazil,

Welcome back to the Auth0 Community!

There is no simple way to share that key from the Email Provider setting to the Actions Secrets.

Feel free to leave us some feedback on it in our #feedback category. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 20, 2023, 7:08pm UTC](https://community.auth0.com/t/retrieving-sendgrid-api-key-from-action-event/104017/4 "2023-04-20T19:08:40Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
