Notifly
API ReferenceSubscribers

Bulk create subscribers

Using this endpoint multiple subscribers can be created at once. The bulk API is limited to 500 subscribers per request.

POST
/v1/subscribers/bulk
  Using this endpoint multiple subscribers can be created at once. The bulk API is limited to 500 subscribers per request.

Authorization

secretKey
Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <secret_key>".

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/subscribers/bulk" \  -H "Content-Type: application/json" \  -d '{    "subscribers": [      {        "subscriberId": "string"      }    ]  }'
{  "data": {    "updated": [      {        "subscriberId": "string"      }    ],    "created": [      {        "subscriberId": "string"      }    ],    "failed": [      {        "message": "string",        "subscriberId": "string"      }    ]  }}