Skip to content

SendGrid integration with JDoodle.ai

SendGrid is a cloud-based email delivery service that provides reliable transactional and marketing email infrastructure. Its API enables seamless integration into your projects, allowing you to send emails, manage campaigns, and track engagement.

Integrating SendGrid with JDoodle.ai allows you to:

  • Send transactional emails, such as account notifications and password resets.
  • Manage and automate marketing email campaigns.
  • Track email performance and user engagement.
  • Monitor email analytics directly within your project.

Integrating the SendGrid API

Get the SendGrid API key

  • Navigate to SendGrid.
  • Sign in to your SendGrid account (or create one if you haven’t already).
  • Once signed in, locate the API key section by accessing the account dashboard or searching for SendGrid API in the documentation. You can also head to the SendGrid documentation from here.
  • Follow the prompts to generate a new API key:
    • click on the API key option,
    • name your API key,
    • set the desired permissions, and then
    • click to create or view your key.
  • Copy and securely store the generated API key, which is displayed only once.

Adding the SendGrid API key to your project

  • Log in to your JDoodle.ai account and open your project.
  • If you’ve asked JDoodle.ai to integrate SendGrid into your project — for example, to send automated emails or notifications — JDoodle.ai will automatically add the required fields to the Secrets tab.
  • Go to the Secrets tab located at the top of your project dashboard.
  • You’ll see a field named SENDGRID_API_KEY.
  • Replace the dummy value in this field with your actual SendGrid API key.
  • Click the Save icon in the top-right corner to apply the changes.
  • Once saved, refresh your project to activate the integration and start using SendGrid’s email features.

Troubleshooting

If the API key is not working, here are a couple of things you can do:

  • Double-check that the API key is copied correctly.
  • Refresh your project after re-adding the key.
  • Submit a new prompt to check if the key is active. If you're still facing troubles, find bugs, or need additional help, feel free to post in our community to get help.

Safety note

Do not share your API key in any public or insecure channels to ensure the security of your account.