Automate soft opt-in participants to Beta & Experimental marketing communication

Currently, we need to export data from product DB to understand who opt-ins and after that give this list to marketing team to subscribe those people to Beta & Experimental specific communication.

We want to automate this process by webhooks:

graph LR;
  GitLab.com-->CustomerDot;
  CustomerDot-->Marketo;

Proposed data format and endpoints

CustomerDot POST /api/leads/opt_in

{
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@example.org",
  "company_name": "ACME",
  "country": "United States",
  "email_subscriptions": ["test_subscription"]
}

Marketo POST /leads/opt_in (issue for Marketo side)

{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john@example.org",
  "companyName": "ACME",
  "country": "United States",
  "emailSubscriptions": ["test_subscription"]
}

MR checklist

Edited by Rostyslav Safonov