✦ Postlys
.NET / C#

.NET / C#

A few lines with the built-in HttpClient.

Developers⏱ 2 min

Register an HttpClient once with the API key and call it wherever a customer is created.

Program.cs / a service
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "pl_live_xxx");

await http.PostAsJsonAsync(
    "https://app.postlys.com/api/v1/contacts",
    new { email = customer.Email, name = customer.FullName, list = "Customers" });
Tip: Register a typed HttpClient in DI and read the key from appsettings.json / environment, so it's reused and never hard-coded.

Ready to try it? Spin up a workspace and grab your key.

Start sending better email today

Marketing, lifecycle and transactional email in one platform.

✦ Postlys

The email platform for modern teams and stores.

Product

Developers

Get started

© 2026 Postlys. All rights reserved. All systems operational