Skip to contents

Retrieves and validates Resend API configuration from environment variables.

Usage

get_resend_config()

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

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()
} # }