Create/upsert subscriber
documentedCreate a new subscriber or update an existing one by email.
POST /subscribersSubscribersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://connect.mailerlite.com/api/subscribers" \
-X POST \
-H "Authorization: Bearer {{MAILERLITE_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email": "{{$email}}", "fields": {"name": "{{$name}}", "last_name": "{{$last_name}}"}, "groups": ["{{$group_id_1}}","{{$group_id_2}}"], "status": "active", "subscribed_at": "{{$subscribed_at}}", "ip_address": "{{$ip_address}}", "opted_in_at": "{{$opted_in_at}}", "optin_ip": "{{$optin_ip}}"}'