Retrieves and validates Resend API configuration from environment variables.
Value
A list with API configuration:
- api_key
Resend API key from ART_RESEND_KEY
- api_url
Resend API base URL
- api_endpoint
Full API endpoint URL for sending emails
- from_email
Default sender email from ART_RESEND_FROM
Details
Requires the environment variable ART_RESEND_KEY to be set with a valid
Resend API key. The key should start with "re_" for production keys.
Optionally set ART_RESEND_FROM to customize the default sender address.
Defaults to "Artalytics no-reply@contact.artalytics.app".
See also
is_resend_configured()to check if API key is setsend_contact_email(),send_wp_email(),send_waitlist_confirm()for email sending functions that use this configurationResend API Reference for full API documentation
Other configuration:
is_resend_configured()
Examples
if (FALSE) { # \dontrun{
# Set environment variables
Sys.setenv(ART_RESEND_KEY = "re_xxxxxxxxxxxxx")
Sys.setenv(ART_RESEND_FROM = "Artalytics <no-reply@artalytics.app>")
# Get configuration
config <- get_resend_config()
} # }
