This example assumes using Resend; is in scope and apiKey contains your Resend API key.
12345678
varapiKey=Environment.GetEnvironmentVariable("RESEND_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("RESEND_API_KEY environment variable is not found.");usingvarclient=newResendClient(apiKey);// The client has sub-clients for different API areas.