# Create new subscriber

# HTTP method: POST

https://api.sender.net/v2/subscribers

Creates a new subscriber, providing basic information, fields and groups.

email string required

The value must be a valid email address.

firstname string

Subscriber firstname

lastname string

Subscriber lastname

groups array

Provide the new groups assigned to the subscriber, by inserting the group id separated by commas for more than one.

fields array

Provide an array formed by key - field name, value - field value.

phone string

Phone number must include the country code: +370 or 00370 follow by a valid phone number

trigger_automation boolean

This property by default its true. You ca send it as false if you want not to activate an automation.

Code snippets

Response example

{
  "success": true,
  "message": "Success",
  "data": {
    "id": "xk05JJq",
    "email": "[email protected]",
    "firstname": "Sender",
    "lastname": "Support",
    "unsubscribed_at": null,
    "bounced_at": null,
    "created": "2021-05-12 09:51:02",
    "unsubscribed": null,
    "bounced": null,
    "spam_reported": null,
    "location": null,
    "ip_address": null,
    "sent_count": 0,
    "opened_count": 0,
    "clicked_count": 0,
    "subscriber_tags": [
      {
        "id": "eZVD4w",
        "title": "Test group",
        "recipient_count": 2,
        "unsubscribed_count": 0,
        "bounced_count": 0,
        "account_id": "eEqqve",
        "user_id": "egp79a",
        "created": "2021-05-11 15:37:45",
        "modified": null
      },
      {
        "id": "b2vAR1",
        "title": "Test group 1",
        "recipient_count": 2,
        "unsubscribed_count": 0,
        "bounced_count": 0,
        "account_id": "eEqqve",
        "user_id": "egp79a",
        "created": "2021-05-11 15:38:19",
        "modified": null
      }
    ],
    "columns": []
  }
}