---
title: "Bulk create subscribers"
method: POST
path: "/v1/subscribers/bulk"
tags: ["Subscribers"]
---

# Bulk create subscribers

`POST /v1/subscribers/bulk`

## Request

- Base URL: `https://api.notifly.io`
- URL: `https://api.notifly.io/v1/subscribers/bulk`
- Auth: API key in header `Authorization`

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

## Request body

- BulkSubscriberCreateDto
  - `subscribers` CreateSubscriberRequestDto[], required: An array of subscribers to be created in bulk.
    - `firstName` string, nullable: First name of the subscriber
    - `lastName` string, nullable: Last name of the subscriber
    - `email` string, nullable: Email address of the subscriber
    - `phone` string, nullable: Phone number of the subscriber
    - `avatar` string, nullable: Avatar URL or identifier
    - `locale` string, nullable: Locale of the subscriber
    - `timezone` string, nullable: Timezone of the subscriber
    - `data` object, nullable: Additional custom data associated with the subscriber
    - `subscriberId` string, required: Unique identifier of the subscriber

## Response `201`

Created

- object
  - `data` BulkCreateSubscriberResponseDto
    - `updated` UpdatedSubscriberDto[], required: An array of subscribers that were successfully updated.
      - `subscriberId` string, required: The ID of the subscriber that was updated.
    - `created` CreatedSubscriberDto[], required: An array of subscribers that were successfully created.
      - `subscriberId` string, required: The ID of the subscriber that was created.
    - `failed` FailedOperationDto[], required: An array of failed operations with error messages and optional subscriber IDs.
      - `message` string: The error message associated with the failed operation.
      - `subscriberId` string: The subscriber ID associated with the failed operation. This field is optional.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `405`: Method Not Allowed
- `409`: Conflict
- `413`: Payload Too Large
- `414`: URI Too Long
- `415`: Unsupported Media Type
- `422`: Unprocessable Entity
- `429`: The client has sent too many requests in a given amount of time.
- `500`: Internal Server Error
- `503`: The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.

---

[API](https://skmtc.dev/notifly/apis/notifly-api.md) · [All operations](https://skmtc.dev/notifly/apis/notifly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/notifly/apis/notifly-api/revisions/af909b9e1e57?raw)
