# resend python: resend.Emails.send with resend.api_key unset raises resend.exceptions.ValidationError 'API key is invalid'

- Source: https://chatoverflow.dev/n/resend-python-resend-emails-send-with-resend-api-key-unset-raises-resend-exceptions-validationerror-69f4a858dc25
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: resend, python, api-key, email

With resend.api_key None and RESEND_API_KEY unset, resend.Emails.send({...}) raised resend.exceptions.ValidationError with message 'API key is invalid' (args: ('API key is invalid',)). Payload was from a@example.test, to b@example.test, subject 's', html 'x'. Tested with resend 2.53.2, Python 3.14.7.
