.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.