Bulk create subscribers
curl --request POST \
--url https://app.letterbucket.com/api/v1/subscribers/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"email": "a@example.com",
"status": "active"
},
{
"email": "b@example.com",
"status": "pending"
},
{
"email": "c@example.com"
}
]
'import requests
url = "https://app.letterbucket.com/api/v1/subscribers/bulk"
payload = [{
"email": "a@example.com",
"status": "active"
}, {
"email": "b@example.com",
"status": "pending"
}, { "email": "c@example.com" }]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{email: 'a@example.com', status: 'active'},
{email: 'b@example.com', status: 'pending'},
{email: 'c@example.com'}
])
};
fetch('https://app.letterbucket.com/api/v1/subscribers/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.letterbucket.com/api/v1/subscribers/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'email' => 'a@example.com',
'status' => 'active'
],
[
'email' => 'b@example.com',
'status' => 'pending'
],
[
'email' => 'c@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.letterbucket.com/api/v1/subscribers/bulk"
payload := strings.NewReader("[\n {\n \"email\": \"a@example.com\",\n \"status\": \"active\"\n },\n {\n \"email\": \"b@example.com\",\n \"status\": \"pending\"\n },\n {\n \"email\": \"c@example.com\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.letterbucket.com/api/v1/subscribers/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"email\": \"a@example.com\",\n \"status\": \"active\"\n },\n {\n \"email\": \"b@example.com\",\n \"status\": \"pending\"\n },\n {\n \"email\": \"c@example.com\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.letterbucket.com/api/v1/subscribers/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"email\": \"a@example.com\",\n \"status\": \"active\"\n },\n {\n \"email\": \"b@example.com\",\n \"status\": \"pending\"\n },\n {\n \"email\": \"c@example.com\"\n }\n]"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"created": [
{
"id": "019756c2-aaaa",
"email": "a@example.com",
"name": "",
"status": "active",
"created_at": "2026-06-11T17:00:00+00:00"
},
{
"id": "019756c2-bbbb",
"email": "b@example.com",
"name": "",
"status": "pending",
"created_at": "2026-06-11T17:00:00+00:00"
}
]
}
}{
"success": false,
"code": "validation_error",
"message": "The request contains invalid data."
}{
"success": false,
"code": "unauthorized",
"message": "Invalid API key."
}{
"success": false,
"code": "api_access_disabled",
"message": "API access is not enabled."
}{
"success": false,
"code": "validation_error",
"message": "The request contains invalid data.",
"errors": {
"email": [
"Enter a valid email address."
]
}
}{
"success": false,
"code": "rate_limit_exceeded",
"message": "Too many requests. Please try again later.",
"errors": {
"retry_after": 42
}
}Subscribers
Bulk create subscribers
Create up to 100 subscribers in one request.
POST
/
subscribers
/
bulk
Bulk create subscribers
curl --request POST \
--url https://app.letterbucket.com/api/v1/subscribers/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"email": "a@example.com",
"status": "active"
},
{
"email": "b@example.com",
"status": "pending"
},
{
"email": "c@example.com"
}
]
'import requests
url = "https://app.letterbucket.com/api/v1/subscribers/bulk"
payload = [{
"email": "a@example.com",
"status": "active"
}, {
"email": "b@example.com",
"status": "pending"
}, { "email": "c@example.com" }]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{email: 'a@example.com', status: 'active'},
{email: 'b@example.com', status: 'pending'},
{email: 'c@example.com'}
])
};
fetch('https://app.letterbucket.com/api/v1/subscribers/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.letterbucket.com/api/v1/subscribers/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'email' => 'a@example.com',
'status' => 'active'
],
[
'email' => 'b@example.com',
'status' => 'pending'
],
[
'email' => 'c@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.letterbucket.com/api/v1/subscribers/bulk"
payload := strings.NewReader("[\n {\n \"email\": \"a@example.com\",\n \"status\": \"active\"\n },\n {\n \"email\": \"b@example.com\",\n \"status\": \"pending\"\n },\n {\n \"email\": \"c@example.com\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.letterbucket.com/api/v1/subscribers/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"email\": \"a@example.com\",\n \"status\": \"active\"\n },\n {\n \"email\": \"b@example.com\",\n \"status\": \"pending\"\n },\n {\n \"email\": \"c@example.com\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.letterbucket.com/api/v1/subscribers/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"email\": \"a@example.com\",\n \"status\": \"active\"\n },\n {\n \"email\": \"b@example.com\",\n \"status\": \"pending\"\n },\n {\n \"email\": \"c@example.com\"\n }\n]"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"created": [
{
"id": "019756c2-aaaa",
"email": "a@example.com",
"name": "",
"status": "active",
"created_at": "2026-06-11T17:00:00+00:00"
},
{
"id": "019756c2-bbbb",
"email": "b@example.com",
"name": "",
"status": "pending",
"created_at": "2026-06-11T17:00:00+00:00"
}
]
}
}{
"success": false,
"code": "validation_error",
"message": "The request contains invalid data."
}{
"success": false,
"code": "unauthorized",
"message": "Invalid API key."
}{
"success": false,
"code": "api_access_disabled",
"message": "API access is not enabled."
}{
"success": false,
"code": "validation_error",
"message": "The request contains invalid data.",
"errors": {
"email": [
"Enter a valid email address."
]
}
}{
"success": false,
"code": "rate_limit_exceeded",
"message": "Too many requests. Please try again later.",
"errors": {
"retry_after": 42
}
}The body is a JSON array (max 100 items). Each item can set its own
status; items with
pending receive confirmation emails.If any item fails validation, no subscribers are created. Bulk creation is all-or-nothing.
Authorizations
Your API key, sent as Authorization: Bearer sk_....
Body
application/json
Required array length:
1 - 100 elementsSubscriber email address.
Maximum string length:
254Example:
"user@example.com"
Full name. Stored as first + last name, split on the first space.
Maximum string length:
255Example:
"John Doe"
Optional. active makes the subscriber active directly; pending sends a confirmation email.
Available options:
active, pending Was this page helpful?
⌘I