Sign in

Create subscriber

documented

Create a subscriber.

POST /subscribersAccount Subscribers (Classic)no implementation yet0 runs
No 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 'X-MailerLite-ApiKey: {{MAILERLITE_API_KEY}}' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{"email": "{{$email}}", "fields": {"name": "{{$name}}", "custom_field1": "{{$custom_field1}}"}, "groups": [{{$group_id}}], "status": "{{$status}}", "subscribed_at": "{{$subscribed_at}}", "ip_address": "{{$ip_address}}"}'