REST API · v1
One token. Every endpoint.
A clean, resource-oriented HTTP API for campaigns, lists, subscribers, automations, sending servers, and customer billing. Authenticate with a single token, query JSON, ship in minutes. The same API plugins use is the same API external clients use — no second-class endpoints.
What you can build
WHY THIS API
No surprises. No second-class endpoints.
The same API your plugins use.
Token-authenticated
Every request carries a single bearer token. Generated per user from Profile → API token. Pass via Authorization: Bearer header or ?api_token= query string. Revoke and rotate at any time.
Resource-oriented
Every concept is a resource with predictable verbs. GET /lists returns the collection, POST /lists creates one, PATCH /lists/:uid updates, DELETE /lists/:uid removes. Sub-resources nest naturally: /lists/:uid/subscribers.
Same as plugins use
There is no internal-vs-external split. The endpoints AcelleMail’s own UI hits, the endpoints your plugin extends, and the endpoints your external client reads — identical. See the plugin SDK →
Self-hosted endpoint
The base URL is your own server — https://your-acelle.example.com/api/v1/. No vendor proxy, no shared rate limit, no per-request fee. Throughput is whatever your hardware provides.
QUICK START
From zero to first response in four steps.
Each AcelleMail install hosts its own API at /api/v1/. Replace your-acelle.example.com with your installation hostname.
Generate a token
Sign in to your AcelleMail install. Open your profile menu and click API token. Copy the value — it is unique per user and tied to that user’s permissions.
# In your shell:
$ export ACELLE_TOKEN=paste-your-token-here
$ export ACELLE_BASE=https://your-acelle.example.com
Verify the token
Hit /me. If the token is valid you get back your user record. If not, you get a 401 — check the token and base URL.
$ curl $ACELLE_BASE/api/v1/me \
-H "Accept: application/json" \
-H "Authorization: Bearer $ACELLE_TOKEN"
{ "id": 1, "email": "you@…", "uid": "…" }
Create a list
Resources are created with POST. The required body fields for a mailing list are name, from_email, from_name, subject, plus a contact block.
$ curl -X POST $ACELLE_BASE/api/v1/lists \
-H "Accept: application/json" \
-H "Authorization: Bearer $ACELLE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Newsletter",
"from_name": "Acme",
"from_email": "hi@acme.com"
}'
Add a subscriber
Use the list’s UID from step 3. Custom fields are passed as uppercase params (FIRST_NAME, LAST_NAME, …) matching your list’s field config.
$ curl -X POST $ACELLE_BASE/api/v1/subscribers \
-H "Accept: application/json" \
-H "Authorization: Bearer $ACELLE_TOKEN" \
-d list_uid=$LIST_UID \
-d EMAIL=alice@example.com \
-d FIRST_NAME=Alice \
-d tag=newsletter,beta
RESOURCES
Every endpoint, straight from the reference the application ships.
All endpoints below are under /api/v1/ and need an API token (auth:api): send Authorization: Bearer YOUR_API_TOKEN and Accept: application/json. The ones marked No token need none; the ones marked ADMIN need an admin’s token. Open an endpoint for its parameters, a curl example, the PHP SDK call where there is one, and example answers.
Authentication
Get an API token, or a link that signs a user in.
POST
/user/login
Get the API token of a user
No token
Trades an email address and a password for the user's API token. No token is needed to call it. Limited to 5 calls a minute from one IP address.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
email
|
string (email) | |
password
|
string |
Example request
curl -X POST 'https://your-domain/api/v1/user/login' \
-H "Accept: application/json" \
--data-urlencode 'email=user@example.com' \
--data-urlencode 'password=your-password'
Responses
{
"api_token": "YOUR_API_TOKEN"
}
{
"error": "Invalid credentials"
}
{
"message": "The password field is required.",
"errors": {
"password": [
"The password field is required."
]
}
}
{
"message": "Too Many Attempts."
}
POST
/login-token
Get a link that signs a user in
Creates a one-time token and the link that uses it. Opening the link signs the user in to the web interface, once, without a password.
With a customer's token, the link signs in the owner of that token. With an admin
token, customer_uid names the customer to sign in as.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
customer_uid
|
string | Admin token only. The customer to sign in as; the admin must be allowed to log in as this customer. |
Example request
curl -X POST 'https://your-domain/api/v1/login-token' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'customer_uid=6adaabb568fda'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->loginToken();
Responses
{
"token": "6af7d91dd5d06a3c5e1f",
"url": "https://your-domain/login/token/6af7d91dd5d06a3c5e1f"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
customer_uid.
{
"status": 0,
"message": "Customer with uid 6adaabb568fda not found"
}
Account
The user a token belongs to and their account.
GET
/me
Get the user of the token
The quickest way to check that a token works.
Example request
curl 'https://your-domain/api/v1/me' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"id": 2,
"uid": "6adaabb567bf6",
"email": "emma@example.com",
"first_name": "Emma",
"last_name": "Tanaka",
"created_at": "2025-12-14T00:00:00.000000Z"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
GET
/user/info
Get the name and picture of the user
Example request
curl 'https://your-domain/api/v1/user/info' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"email": "emma@example.com",
"first_name": "Emma",
"last_name": "Tanaka",
"image_url": "https://your-domain/users/6adaabb567bf6/avatar?v=ad8f37ef5550ed84"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
GET
/dashboard
Get the account's totals
The numbers of the dashboard. A customer's token only.
Example request
curl 'https://your-domain/api/v1/dashboard' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"campaign_count": 13,
"list_count": 10,
"subscriber_percent": 71.785,
"subscriber_used": "71,785/100,000"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
Lists
Contact lists and their fields.
GET
/lists
List the lists
The lists of the token's account, a page at a time.
Parameters
| Name | Type | Description |
|---|---|---|
page
|
integer | |
per_page
|
integer | Lists per page. |
Example request
curl 'https://your-domain/api/v1/lists' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->list()->all(['page' => 1, 'per_page' => 10]);
Responses
[
{
"id": 1,
"uid": "6adaabbf98847",
"name": "Newsletter",
"from_email": "newsletter@example.com",
"from_name": "Example Team",
"subscribers": 1738,
"open_rate": 0.43,
"click_rate": 0.06,
"created_at": "2026-10-13T21:21:36.000000Z",
"updated_at": "2026-10-23T10:56:23.000000Z"
}
]
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/lists
Create a list
The list starts with the fields EMAIL, FIRST_NAME and LAST_NAME.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
name
|
string | |
from_email
|
string (email) | Default From address of its campaigns. |
from_name
|
string | Default From name of its campaigns. |
remind_message
|
string | Why a contact gets the emails, shown in their footer. |
subscribe_confirmation
|
boolean | Ask new contacts to confirm their address (double opt-in). |
send_welcome_email
|
boolean | Send a welcome email to a new contact. |
unsubscribe_notification
|
boolean | Send a goodbye email to a contact who unsubscribes. |
email_subscribe
|
string | Addresses, separated by commas, told of each new contact. |
email_unsubscribe
|
string | Addresses, separated by commas, told of each contact who unsubscribes. |
email_daily
|
string | Addresses, separated by commas, sent a daily summary. |
Example request
curl -X POST 'https://your-domain/api/v1/lists' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'name=Newsletter' \
--data-urlencode 'from_email=newsletter@example.com' \
--data-urlencode 'from_name=Example Team' \
--data-urlencode 'remind_message=You signed up at example.com.' \
--data-urlencode 'subscribe_confirmation=1' \
--data-urlencode 'send_welcome_email=1' \
--data-urlencode 'unsubscribe_notification=0' \
--data-urlencode 'email_subscribe=owner@example.com' \
--data-urlencode 'email_unsubscribe=owner@example.com' \
--data-urlencode 'email_daily=owner@example.com'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->list()->create([
'name' => 'Newsletter',
'from_email' => 'newsletter@example.com',
'from_name' => 'Example Team',
]);
Responses
{
"status": 1,
"message": "List was successfully created",
"list_uid": "6adaabbf98847"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{"status": 0, "message": "You have exceeded the service quota"}.
{
"from_email": [
"The from email must be a valid email address."
]
}
{
"status": "error",
"message": "You've reached your plan limit for contact lists (10 of 10). Upgrade your plan to add more."
}
GET
/lists/{uid}
Get a list
The list, its fields and its statistics.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The list's uid. |
Example request
curl 'https://your-domain/api/v1/lists/6adaabbf98847' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->list()->find('6adaabbf98847');
Responses
{
"list": {
"uid": "6adaabbf98847",
"name": "Newsletter",
"from_email": "newsletter@example.com",
"from_name": "Example Team",
"remind_message": "You signed up at example.com.",
"created_at": "2026-10-13T21:21:36.000000Z",
"updated_at": "2026-10-23T10:56:23.000000Z",
"fields": [
{
"key": "EMAIL",
"label": "Email",
"type": "string",
"tag": "EMAIL",
"default_value": "",
"visible": 1,
"required": true
},
{
"key": "FIRST_NAME",
"label": "First Name",
"type": "string",
"tag": "FIRST_NAME",
"default_value": "",
"visible": 1,
"required": false
}
]
},
"statistics": {
"subscriber_count": 1738,
"open_uniq_rate": 0.43,
"click_rate": 0.06,
"subscribe_rate": 0.62,
"unsubscribe_rate": 0.12,
"unsubscribe_count": 216,
"unconfirmed_count": 230
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Mail list not found"
}
DELETE
/lists/{uid}
Delete a list
Deletes the list with its contacts.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The list's uid. |
Example request
curl -X DELETE 'https://your-domain/api/v1/lists/6adaabbf98847' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->list()->delete('6adaabbf98847');
Responses
{
"status": 1,
"message": "Deleted"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Mail list not found"
}
POST
/lists/{uid}/add-field
Add a field to a list
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The list's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
type
|
string |
One of: text, number, datetime.
|
label
|
string | |
tag
|
string | Letters, digits, dashes and underscores. The name of the field in subscriber requests. |
default_value
|
string |
Example request
curl -X POST 'https://your-domain/api/v1/lists/6adaabbf98847/add-field' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'type=text' \
--data-urlencode 'label=Company' \
--data-urlencode 'tag=COMPANY' \
--data-urlencode 'default_value='
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->list()->addCustomField('6adaabbf98847', [
'type' => 'text',
'label' => 'Company',
'tag' => 'COMPANY',
]);
Responses
{
"status": 1,
"message": "List's field was created",
"field": {
"uid": "6adaabc2e15a9",
"type": "text",
"tag": "COMPANY",
"label": "Company",
"default_value": null,
"required": false,
"visible": true
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{"status": 0, "message": …}), or the token's user may not change the list.
{
"type": [
"The selected type is invalid."
]
}
{
"status": 0,
"message": "Can not find list with uid=6adaabbf98847"
}
Subscribers
Contacts inside a list, one at a time or in bulk.
GET
/subscribers
List the contacts of a list
Each row has the contact's id, email, status, tags, and one key per field of the list.
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
keyword
|
string | Only contacts whose fields contain every word. |
status
|
string |
Only contacts with this status. One of: subscribed, unsubscribed, unconfirmed, blacklisted, spam-reported.
|
open
|
string |
yes: only contacts who opened a campaign; no: only contacts who never did. One of: yes, no.
|
click
|
string |
yes: only contacts who clicked in a campaign; no: only contacts who never did. One of: yes, no.
|
page
|
integer | |
per_page
|
integer | Contacts per page. |
Example request
curl 'https://your-domain/api/v1/subscribers?list_uid=6adaabbf98847' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->all([
'list_uid' => '6adaabbf98847',
'per_page' => 25,
'page' => 1,
]);
Responses
[
{
"id": 1,
"email": "anna@example.com",
"status": "subscribed",
"tags": [],
"FIRST_NAME": "Anna",
"LAST_NAME": "Berg"
},
{
"id": 2,
"email": "ben@example.com",
"status": "subscribed",
"tags": [
"vip",
"newsletter"
],
"FIRST_NAME": "Ben",
"LAST_NAME": "Okafor"
}
]
list_uid.
{
"message": "List not found"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/subscribers
Add a contact to a list
Besides the fields below, send any field of the list by its tag (FIRST_NAME,
LAST_NAME, …). When the list asks new contacts to confirm their address, the contact
is unconfirmed and gets the confirmation email, unless status says otherwise:
subscribed sends no confirmation email and starts the welcome email and the
automations of a new contact; unsubscribed sends nothing.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
list_uid
|
string | |
EMAIL
|
string (email) | |
tag
|
string | Tags, separated by commas. |
status
|
string |
One of: subscribed, unsubscribed, unconfirmed.
|
Example request
curl -X POST 'https://your-domain/api/v1/subscribers' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'list_uid=6adaabbf98847' \
--data-urlencode 'EMAIL=anna@example.com' \
--data-urlencode 'tag=vip,newsletter' \
--data-urlencode 'status=subscribed'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->create([
'list_uid' => '6adaabbf98847',
'EMAIL' => 'anna@example.com',
'FIRST_NAME' => 'Anna',
'tag' => 'vip,newsletter',
]);
Responses
{
"status": 1,
"message": "Subscriber was successfully created",
"subscriber_id": 70757,
"channels": null
}
list_uid.
{
"message": "List not found"
}
{
"message": "Unauthorized!"
}
{"message": …}).
{
"EMAIL": [
"The email field must be a valid email address."
]
}
GET
/subscribers/{id}
Get a contact
Parameters
| Name | Type | Description |
|---|---|---|
id
|
integer | The contact's id. The same address has a different id in each list. |
Example request
curl 'https://your-domain/api/v1/subscribers/1' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->find(1);
Responses
{
"subscriber": {
"id": 1,
"email": "anna@example.com",
"status": "subscribed",
"source": "signup",
"ip_address": "203.0.113.24",
"tags": [],
"FIRST_NAME": "Anna",
"LAST_NAME": "Berg"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Subscriber not found"
}
PATCH
/subscribers/{id}
Change a contact
Send the fields of the list by their tag. The list's rules apply as on the create
call: EMAIL and every required field must be sent.
Parameters
| Name | Type | Description |
|---|---|---|
id
|
integer | The contact's id. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
EMAIL
|
string (email) | |
tag
|
string | Tags, separated by commas. They replace the contact's tags. |
status
|
string |
One of: subscribed, unsubscribed, unconfirmed.
|
Example request
curl -X PATCH 'https://your-domain/api/v1/subscribers/1' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'EMAIL=anna@example.com' \
--data-urlencode 'tag=vip,newsletter' \
--data-urlencode 'status=subscribed'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->update(1, [
'EMAIL' => 'anna@example.com',
'FIRST_NAME' => 'Anna',
]);
Responses
{
"status": 1,
"message": "Subscriber was successfully updated",
"subscriber_id": 1,
"channels": null
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"EMAIL": [
"The email field is required."
]
}
DELETE
/subscribers/{id}
Delete a contact
Parameters
| Name | Type | Description |
|---|---|---|
id
|
integer | The contact's id. |
Example request
curl -X DELETE 'https://your-domain/api/v1/subscribers/1' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->delete(1);
Responses
{
"status": 1,
"message": "Deleted"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Subscriber not found"
}
GET
/subscribers/email/{email}
Find a contact in every list
Every contact with this address, in the lists the token's user may read, each with the uid of its list.
Parameters
| Name | Type | Description |
|---|---|---|
email
|
string (email) |
Example request
curl 'https://your-domain/api/v1/subscribers/email/anna@example.com' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->findByEmail('anna@example.com');
Responses
{
"subscribers": [
{
"id": 1,
"list_uid": "6adaabbf98847",
"email": "anna@example.com",
"status": "subscribed",
"source": "signup",
"ip_address": "203.0.113.24",
"tags": [],
"FIRST_NAME": "Anna"
},
{
"id": 70756,
"list_uid": "6adaabc2e15a9",
"email": "anna@example.com",
"status": "subscribed",
"source": "admin",
"ip_address": null,
"tags": [
"vip"
],
"FIRST_NAME": "Anna"
}
]
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/subscribers/{id}/add-tag
Add tags to a contact
Parameters
| Name | Type | Description |
|---|---|---|
id
|
integer | The contact's id. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
tag
|
string | Tags, separated by commas. |
Example request
curl -X POST 'https://your-domain/api/v1/subscribers/1/add-tag' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'tag=vip,newsletter'
Responses
{
"status": 1,
"message": "Tag was added successfully",
"subscriber_id": 1,
"tags": [
"vip",
"newsletter"
]
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/subscribers/{id}/remove-tag
Remove tags from a contact
Parameters
| Name | Type | Description |
|---|---|---|
id
|
integer | The contact's id. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
tag
|
string | Tags, separated by commas. |
Example request
curl -X POST 'https://your-domain/api/v1/subscribers/1/remove-tag' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'tag=newsletter'
Responses
{
"status": 1,
"message": "Tag was removed successfully",
"subscriber_id": 1,
"tags": [
"vip"
]
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
PATCH
/lists/{list_uid}/subscribers/{id}/subscribe
Subscribe a contact
The contact is found by its id; list_uid is not checked.
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
id
|
integer | The contact's id. |
Example request
curl -X PATCH 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/1/subscribe' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": 1,
"message": "Subscribed"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Subscriber not found"
}
{
"status": 0,
"message": "Already subscribed"
}
PATCH
/lists/{list_uid}/subscribers/{id}/unsubscribe
Unsubscribe a contact
The contact is found by its id; list_uid is not checked.
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
id
|
integer | The contact's id. |
Example request
curl -X PATCH 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/1/unsubscribe' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": 1,
"message": "Unsubscribed"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Subscriber not found"
}
{
"status": 0,
"message": "Already unsubscribed"
}
PATCH
/lists/{list_uid}/subscribers/email/{email}/unsubscribe
Unsubscribe an address from a list
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
email
|
string (email) |
Example request
curl -X PATCH 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/email/anna@example.com/unsubscribe' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": 1,
"message": "anna@example.com was unsubscribed"
}
{
"status": 0,
"message": "Email is not valid"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Unauthorized"
}
{
"status": 0,
"message": "Subscriber not found"
}
POST
/lists/{list_uid}/subscribers/bulk
Import contacts, in the request
Adds or updates many contacts at once and answers with the result of each row. Rows
that fail are listed in errors; the others are saved. When an address appears more
than once, its last row wins. For a large import, use the asynchronous call instead:
this one runs inside the request. Limited to 60 calls a minute.
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
Request body application/json
| Name | Type | Description |
|---|---|---|
subscribers
|
array of object |
The contacts. Each one has EMAIL, any field of the list by its tag, and
optionally tags (a list) and status.
|
mode
|
string |
What to do with an address the list already holds: update it, or leave it. One of: overwrite, skip.
|
overwrite_status
|
boolean |
With overwrite, also replace the status of a contact the list holds.
|
overwrite_tags
|
boolean |
With overwrite, replace its tags instead of adding to them.
|
Example request
curl -X POST 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/bulk' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"mode":"overwrite","subscribers":[{"EMAIL":"alice@example.com","FIRST_NAME":"Alice","tags":["vip","newsletter"]},{"EMAIL":"bob@example.com","FIRST_NAME":"Bob","status":"subscribed"}]}'
Responses
{
"list_uid": "6adaabbf98847",
"received": 2,
"inserted": 1,
"updated": 1,
"failed": 0,
"batch_id": "9d2c4f7e-1b6a-4c55-9a52-61d3e0b7a1c4",
"errors": []
}
subscribers is missing or empty.
{
"message": "`subscribers` array is required and must be non-empty"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "List not found"
}
mode is not overwrite or skip, or the import was refused (for example, the plan allows no more contacts).
{
"message": "invalid mode: 'replace' — expected 'overwrite' or 'skip'"
}
POST
/lists/{list_uid}/subscribers/bulk/async
Import contacts, in the background
Queues an import and answers at once with the job to follow. Send the contacts as JSON, in the same shape as the import in the request, or upload a CSV file with a mapping of its columns. Follow the job with the import job call. Limited to 60 calls a minute.
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
Request body application/json
| Name | Type | Description |
|---|---|---|
subscribers
|
array of object | The contacts, as for the import in the request. |
mode
|
string |
One of: overwrite, skip.
|
overwrite_status
|
boolean | |
overwrite_tags
|
boolean |
Request body multipart/form-data
| Name | Type | Description |
|---|---|---|
file
|
file | The CSV file. |
mapping
|
string | JSON: each CSV column → the tag of a field (or the id of a field). |
mode
|
string |
One of: overwrite, skip.
|
overwrite_status
|
boolean | |
overwrite_tags
|
boolean |
curl, application/json
curl -X POST 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/bulk/async' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"subscribers":[{"EMAIL":"alice@example.com"},{"EMAIL":"bob@example.com"}]}'
curl, multipart/form-data
curl -X POST 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/bulk/async' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F 'file=@subscribers.csv' \
-F 'mapping={"Email":"EMAIL","First Name":"FIRST_NAME"}'
Responses
{
"job_uid": "6af7d91f0e1c7",
"status": "queued",
"status_url": "https://your-domain/api/v1/import-jobs/6af7d91f0e1c7",
"cancel_url": "https://your-domain/api/v1/import-jobs/6af7d91f0e1c7"
}
mapping.
{
"message": "`subscribers` array required (or upload a CSV file)"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "List not found"
}
mode is wrong, or mapping names a field the list does not have.
{
"message": "unknown field tag 'COMPANY' in mapping for column 'Company'"
}
GET
/lists/{list_uid}/import-jobs
List the recent imports of a list
Parameters
| Name | Type | Description |
|---|---|---|
list_uid
|
string | The list's uid. |
limit
|
integer | Jobs to return, newest first. |
Example request
curl 'https://your-domain/api/v1/lists/6adaabbf98847/import-jobs' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"data": [
{
"job_uid": "6af7d91f0e1c7",
"list_uid": "6adaabbf98847",
"status": "done",
"source": "api",
"progress": {
"processed": 2,
"total": 2,
"failed": 0,
"percentage": 100
},
"counts": {
"inserted": 1,
"updated": 1,
"failed": 0
},
"message": null,
"error": null,
"batch_id": "9d2c4f7e-1b6a-4c55-9a52-61d3e0b7a1c4",
"created_at": "2026-11-14T10:00:00+00:00",
"updated_at": "2026-11-14T10:00:04+00:00"
}
]
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "List not found"
}
GET
/import-jobs/{job_uid}
Follow an import
Parameters
| Name | Type | Description |
|---|---|---|
job_uid
|
string |
The job_uid the import answered with.
|
Example request
curl 'https://your-domain/api/v1/import-jobs/6af7d91f0e1c7' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"job_uid": "6af7d91f0e1c7",
"list_uid": "6adaabbf98847",
"status": "running",
"source": "api",
"progress": {
"processed": 1200,
"total": 5000,
"failed": 3,
"percentage": 24
},
"counts": {
"inserted": 1100,
"updated": 97,
"failed": 3
},
"message": null,
"error": null,
"batch_id": null,
"created_at": "2026-11-14T10:00:00+00:00",
"updated_at": "2026-11-14T10:00:30+00:00"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Job not found"
}
DELETE
/import-jobs/{job_uid}
Cancel an import
Stops a queued or running import. The job stays readable, with the status cancelled. Limited to 60 calls a minute.
Parameters
| Name | Type | Description |
|---|---|---|
job_uid
|
string |
The job_uid the import answered with.
|
Example request
curl -X DELETE 'https://your-domain/api/v1/import-jobs/6af7d91f0e1c7' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"message": "cancelled",
"job_uid": "6af7d91f0e1c7",
"status": "cancelled"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Job not found"
}
POST
/public/subscribers
Sign a contact up, without a token
No token
For a sign-up form of your own: anyone can call it, so it takes no status and the
list's own rules apply (confirmation email, welcome email). Send any field of the list
by its tag. Limited to 60 calls a minute from one IP address.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
list_uid
|
string | |
EMAIL
|
string (email) | |
tag
|
string | Tags, separated by commas. |
Example request
curl -X POST 'https://your-domain/api/v1/public/subscribers' \
-H "Accept: application/json" \
--data-urlencode 'list_uid=6adaabbf98847' \
--data-urlencode 'EMAIL=anna@example.com' \
--data-urlencode 'tag=website'
Responses
{
"status": 1,
"message": "Confirmation email sent to the subscriber",
"subscriber_id": 70758
}
list_uid.
{
"message": "List not found"
}
status
was sent, or the plan allows no more contacts ({"message": …}).
{
"message": "Status is not allowed"
}
{
"message": "Too Many Attempts."
}
Campaigns
Campaigns, their delivery logs and their webhooks.
GET
/campaigns
List the campaigns
The campaigns of the token's account, a page at a time.
Parameters
| Name | Type | Description |
|---|---|---|
page
|
integer | |
per_page
|
integer | Campaigns per page. |
Example request
curl 'https://your-domain/api/v1/campaigns' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->all(['page' => 1, 'per_page' => 10]);
Responses
[
{
"id": 1,
"uid": "6adaabd2b4753",
"name": "November newsletter",
"type": "regular",
"subscribers": 1942,
"sent_percent": 0.61,
"sent_label": "1188/1942",
"open_rate": 0.39,
"click_rate": 0.04,
"archive_status": null,
"subject": "What's new this month",
"plain": "Hello, here is what changed this month.",
"from_email": "hello@example.com",
"from_name": "Example Team",
"reply_to": "hello@example.com",
"custom_headers": [],
"status": "done",
"stalled": null,
"delivery_at": "2026-11-03T09:00:00.000000Z",
"created_at": "2026-11-01T05:29:19.000000Z",
"updated_at": "2026-11-03T10:12:40.000000Z"
}
]
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/campaigns
Create a campaign
Creates the campaign with html as its content. It goes to a list (mail_list_uid)
or to addresses typed in (addresses), not both. Run it with the run call.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
mail_list_uid
|
string | The list to send to. |
addresses
|
array of string (email) | Instead of a list: the addresses to send to, at most 100. One string, the addresses separated by commas or new lines, works too. |
name
|
string | |
subject
|
string | |
from_email
|
string (email) | |
from_name
|
string | |
reply_to
|
string (email) | |
html
|
string | The content of the email. |
preheader
|
string | The line shown after the subject in the inbox. |
track_open
|
boolean | |
track_click
|
boolean | |
sign_dkim
|
boolean | |
skip_failed_message
|
boolean | Keep sending when a message fails. |
custom_headers
|
array of object |
Headers added to every email, at most 10, e.g. X-Postmaster-Msgtype or
Feedback-ID. Headers that build the email or decide its delivery are refused.
|
Example request
curl -X POST 'https://your-domain/api/v1/campaigns' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'mail_list_uid=6adaabbf98847' \
--data-urlencode 'addresses[]=anna@example.com' \
--data-urlencode 'addresses[]=ben@example.com' \
--data-urlencode 'name=November newsletter' \
--data-urlencode 'subject=What'\''s new this month' \
--data-urlencode 'from_email=hello@example.com' \
--data-urlencode 'from_name=Example Team' \
--data-urlencode 'reply_to=hello@example.com' \
--data-urlencode 'html=<p>Hello!</p>' \
--data-urlencode 'preheader=Three changes worth knowing about' \
--data-urlencode 'track_open=1' \
--data-urlencode 'track_click=1' \
--data-urlencode 'sign_dkim=1' \
--data-urlencode 'skip_failed_message=0' \
--data-urlencode 'custom_headers[0][name]=X-Postmaster-Msgtype' \
--data-urlencode 'custom_headers[0][value]=news{{ CAMPAIGN_UID }}'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->create([
'mail_list_uid' => '6adaabbf98847',
'name' => 'November newsletter',
'subject' => "What's new this month",
'from_email' => 'hello@example.com',
'from_name' => 'Example Team',
'reply_to' => 'hello@example.com',
'html' => '<p>Hello!</p>',
]);
Responses
{
"status": 1,
"message": "A new campaign was added!",
"attributes": {
"uid": "6adaabd2b4753",
"name": "November newsletter",
"status": "new",
"created_at": "2026-11-14 10:00:00"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{"status": 0, "message": "Unauthorized"}).
{
"reply_to": [
"The reply to field must be a valid email address."
]
}
{
"status": "error",
"message": "Send a campaign to mail_list_uid or to addresses, not both."
}
GET
/campaigns/{uid}
Get a campaign
The campaign and its statistics. For an archived campaign, the statistics are the ones
kept when it was archived; null when it was archived before statistics were kept.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->find('6adaabd2b4753');
Responses
{
"campaign": {
"id": 1,
"uid": "6adaabd2b4753",
"name": "November newsletter",
"list": "Newsletter",
"segment": "",
"audience": "lists",
"addresses": null,
"from_email": "hello@example.com",
"from_name": "Example Team",
"custom_headers": [],
"remind_message": null,
"status": "done",
"stalled": null,
"archive_status": null,
"archived_at": null,
"created_at": "2026-11-01T05:29:19.000000Z",
"updated_at": "2026-11-03T10:12:40.000000Z"
},
"statistics": {
"subscriber_count": 1942,
"duplicate_count": 0,
"delivered_rate": 0.6117,
"uniq_open_rate": 0.3965,
"open_rate": 0.3965,
"unique_open_count": 471,
"uniq_open_count": 471,
"last_open": "2026-11-04T23:13:30.000000Z",
"click_rate": 0.0396,
"click_count": 47,
"last_click": "2026-11-04T23:07:30.000000Z",
"abuse_feedback_count": 0,
"bounce_count": 0,
"unsubscribe_count": 0,
"links": [
"https://example.com/offer"
],
"top_locations": [
"203.0.113.5",
"198.51.100.30"
],
"top_active_subscribers": [
{
"uid": "ec9a5eef0b70f",
"email": "anna@example.com",
"opens": 3,
"clicks": 1
}
]
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
PATCH
/campaigns/{uid}
Change a campaign
Send only what changes. mail_list_uid replaces the typed addresses; addresses
replaces them too. custom_headers left out keeps the current headers; sent empty,
it removes them all.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
mail_list_uid
|
string | |
addresses
|
array of string (email) | |
name
|
string | |
subject
|
string | |
from_email
|
string (email) | |
from_name
|
string | |
reply_to
|
string (email) | |
preheader
|
string | |
track_open
|
boolean | |
track_click
|
boolean | |
sign_dkim
|
boolean | |
skip_failed_message
|
boolean | |
custom_headers
|
array of object |
Example request
curl -X PATCH 'https://your-domain/api/v1/campaigns/6adaabd2b4753' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'mail_list_uid=6adaabbf98847' \
--data-urlencode 'addresses[]=anna@example.com' \
--data-urlencode 'name=November newsletter' \
--data-urlencode 'subject=What'\''s new this month' \
--data-urlencode 'from_email=hello@example.com' \
--data-urlencode 'from_name=Example Team' \
--data-urlencode 'reply_to=hello@example.com' \
--data-urlencode 'preheader=Three changes worth knowing about' \
--data-urlencode 'track_open=1' \
--data-urlencode 'track_click=1' \
--data-urlencode 'sign_dkim=1' \
--data-urlencode 'skip_failed_message=0'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->update('6adaabd2b4753', [
'subject' => 'Three changes this month',
]);
Responses
{
"status": 1,
"message": "A new campaign was updated!",
"attributes": {
"uid": "6adaabd2b4753",
"name": "November newsletter",
"status": "new",
"updated_at": "2026-11-14 10:05:00"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
custom_headers is wrong (its messages), or the campaign is not the token's ({"status": 0, "message": "Unauthorized"}).
{
"status": 0,
"message": "Unauthorized"
}
{
"status": "error",
"message": "Send a campaign to mail_list_uid or to addresses, not both."
}
DELETE
/campaigns/{uid}
Delete a campaign
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl -X DELETE 'https://your-domain/api/v1/campaigns/6adaabd2b4753' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->delete('6adaabd2b4753');
Responses
{
"status": 1,
"message": "Deleted"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Campaign list not found"
}
POST
/campaigns/{uid}/run
Send a campaign
Starts sending now. The launch rules of the account apply.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl -X POST 'https://your-domain/api/v1/campaigns/6adaabd2b4753/run' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": "success",
"message": "The campaign was launched",
"campaign": {
"id": 1,
"uid": "6adaabd2b4753",
"name": "November newsletter",
"list": "Newsletter",
"segment": "",
"from_email": "hello@example.com",
"from_name": "Example Team",
"remind_message": null,
"status": "queued",
"created_at": "2026-11-01T05:29:19.000000Z",
"updated_at": "2026-11-14T10:00:00.000000Z"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "Your plan requires every campaign to use a verified custom tracking domain. Attach one before launching."
}
POST
/campaigns/{uid}/pause
Pause a campaign
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl -X POST 'https://your-domain/api/v1/campaigns/6adaabd2b4753/pause' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->pause('6adaabd2b4753');
Responses
{
"status": "success",
"message": "The campaign was paused",
"campaign": {
"id": 1,
"uid": "6adaabd2b4753",
"name": "November newsletter",
"list": "Newsletter",
"segment": "",
"from_email": "hello@example.com",
"from_name": "Example Team",
"remind_message": null,
"status": "paused",
"created_at": "2026-11-01T05:29:19.000000Z",
"updated_at": "2026-11-14T10:02:00.000000Z"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
POST
/campaigns/{uid}/resume
Resume a campaign
Resumes a paused campaign, a campaign stopped by an error, a scheduled one, or a stalled one
(see stalled on the campaign). A campaign in no state to resume is refused with the reason.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl -X POST 'https://your-domain/api/v1/campaigns/6adaabd2b4753/resume' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": "success",
"message": "The campaign was resumed",
"campaign": {
"id": 1,
"uid": "6adaabd2b4753",
"name": "November newsletter",
"list": "Newsletter",
"segment": "",
"from_email": "hello@example.com",
"from_name": "Example Team",
"remind_message": null,
"status": "sending",
"created_at": "2026-11-01T05:29:19.000000Z",
"updated_at": "2026-11-14T10:04:00.000000Z"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "You are not allowed to resume campaign \"November newsletter\"."
}
{
"message": "Campaign not found"
}
{
"message": "Campaign \"November newsletter\" is working: a background job worked on it at Nov 14, 2026 10:04. Nothing was restarted."
}
GET
/campaigns/{uid}/tracking-log/download
Download the delivery log of a campaign
One row per message sent, as a CSV file.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/tracking-log/download' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "This campaign is archived: its delivery logs were removed. Its per-recipient results are kept in the archive snapshot.",
"archived": true
}
GET
/campaigns/{uid}/open-log/download
Download the opens of a campaign
One row per open, as a CSV file.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/open-log/download' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "This campaign is archived: its delivery logs were removed. Its per-recipient results are kept in the archive snapshot.",
"archived": true
}
GET
/campaigns/{uid}/click-log/download
Download the clicks of a campaign
One row per click, as a CSV file.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/click-log/download' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "This campaign is archived: its delivery logs were removed. Its per-recipient results are kept in the archive snapshot.",
"archived": true
}
GET
/campaigns/{uid}/bounce-log/download
Download the bounces of a campaign
One row per bounce, as a CSV file.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/bounce-log/download' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "This campaign is archived: its delivery logs were removed. Its per-recipient results are kept in the archive snapshot.",
"archived": true
}
GET
/campaigns/{uid}/feedback-log/download
Download the complaints of a campaign
One row per complaint (spam or abuse report), as a CSV file.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/feedback-log/download' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "This campaign is archived: its delivery logs were removed. Its per-recipient results are kept in the archive snapshot.",
"archived": true
}
GET
/campaigns/{uid}/unsubscribe-log/download
Download the unsubscribes of a campaign
One row per unsubscribe, as a CSV file.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/unsubscribe-log/download' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Campaign not found"
}
{
"message": "This campaign is archived: its delivery logs were removed. Its per-recipient results are kept in the archive snapshot.",
"archived": true
}
GET
/campaigns/{uid}/webhooks
List the webhooks of a campaign
Each webhook with the secret its requests are signed with.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/webhooks' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
[
{
"uid": "6af7d91dd5d06",
"type": "bounce",
"endpoint": "https://crm.example.com/hooks/bounce",
"secret": "3f1c9a0b7e2d4c6f8a1b3c5d7e9f0a2b",
"is_active": true,
"consecutive_failures": 0,
"last_attempt_at": "2026-11-14T10:00:00+00:00",
"last_status_code": 200,
"last_error": null,
"created_at": "2026-11-10T08:00:00+00:00",
"updated_at": "2026-11-14T10:00:00+00:00"
}
]
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Campaign not found"
}
POST
/campaigns/{uid}/webhooks
Add a webhook to a campaign
From now on, each event of this type is posted to endpoint as JSON, signed in the
X-Webhook-Signature header: sha256= followed by the HMAC-SHA256 of the raw body,
keyed with the webhook's secret. A delivery is tried 5 times.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
type
|
string |
One of: open, click, unsubscribe, bounce, complaint.
|
endpoint
|
string (uri) | The URL the events are posted to, at most 2048 characters. |
is_active
|
boolean |
Example request
curl -X POST 'https://your-domain/api/v1/campaigns/6adaabd2b4753/webhooks' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'type=bounce' \
--data-urlencode 'endpoint=https://crm.example.com/hooks/bounce' \
--data-urlencode 'is_active=1'
Responses
{
"uid": "6af7d91dd5d06",
"type": "bounce",
"endpoint": "https://crm.example.com/hooks/bounce",
"secret": "3f1c9a0b7e2d4c6f8a1b3c5d7e9f0a2b",
"is_active": true,
"consecutive_failures": 0,
"last_attempt_at": null,
"last_status_code": null,
"last_error": null,
"created_at": "2026-11-14T10:00:00+00:00",
"updated_at": "2026-11-14T10:00:00+00:00"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Campaign not found"
}
{
"message": "The selected type is invalid.",
"errors": {
"type": [
"The selected type is invalid."
]
}
}
GET
/campaigns/{uid}/webhooks/{webhook_uid}
Get a webhook of a campaign
The webhook, its secret and the result of its last delivery.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
webhook_uid
|
string | The webhook's uid. |
Example request
curl 'https://your-domain/api/v1/campaigns/6adaabd2b4753/webhooks/6af7d91dd5d06' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"uid": "6af7d91dd5d06",
"type": "bounce",
"endpoint": "https://crm.example.com/hooks/bounce",
"secret": "3f1c9a0b7e2d4c6f8a1b3c5d7e9f0a2b",
"is_active": false,
"consecutive_failures": 20,
"last_attempt_at": "2026-11-14T10:00:00+00:00",
"last_status_code": 500,
"last_error": "Server error",
"created_at": "2026-11-10T08:00:00+00:00",
"updated_at": "2026-11-14T10:00:00+00:00"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Webhook not found"
}
PATCH
/campaigns/{uid}/webhooks/{webhook_uid}
Change a webhook of a campaign
A field left out keeps its value. Switching on a webhook that was turned off after repeated failures gives it a fresh start.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
webhook_uid
|
string | The webhook's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
type
|
string |
One of: open, click, unsubscribe, bounce, complaint.
|
endpoint
|
string (uri) | |
is_active
|
boolean |
Example request
curl -X PATCH 'https://your-domain/api/v1/campaigns/6adaabd2b4753/webhooks/6af7d91dd5d06' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'type=click' \
--data-urlencode 'endpoint=https://crm.example.com/hooks/click' \
--data-urlencode 'is_active=1'
Responses
{
"uid": "6af7d91dd5d06",
"type": "bounce",
"endpoint": "https://crm.example.com/hooks/bounce",
"secret": "3f1c9a0b7e2d4c6f8a1b3c5d7e9f0a2b",
"is_active": true,
"consecutive_failures": 0,
"last_attempt_at": "2026-11-14T10:00:00+00:00",
"last_status_code": 500,
"last_error": "Server error",
"created_at": "2026-11-10T08:00:00+00:00",
"updated_at": "2026-11-14T10:05:00+00:00"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Webhook not found"
}
{
"message": "The selected type is invalid.",
"errors": {
"type": [
"The selected type is invalid."
]
}
}
DELETE
/campaigns/{uid}/webhooks/{webhook_uid}
Delete a webhook of a campaign
Deletes the webhook with its delivery log.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The campaign's uid. |
webhook_uid
|
string | The webhook's uid. |
Example request
curl -X DELETE 'https://your-domain/api/v1/campaigns/6adaabd2b4753/webhooks/6af7d91dd5d06' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": 1,
"message": "Webhook deleted."
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Unauthorized"
}
{
"message": "Webhook not found"
}
Automations
Automations, and starting one for a contact.
GET
/automations
List the automations
The automations of the token's account, a page at a time.
Parameters
| Name | Type | Description |
|---|---|---|
page
|
integer | |
per_page
|
integer | Automations per page. |
Example request
curl 'https://your-domain/api/v1/automations' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
[
{
"uid": "6adaabd9f2abd",
"name": "Welcome journey",
"description": "Trigger when new subscriber opts in",
"subscribers": 1738,
"emails": 3,
"complete": 412,
"status": "active",
"last_error": null,
"last_updated": "3 weeks ago",
"created_at": "2026-10-23T00:35:37.000000Z",
"updated_at": "2026-10-23T11:19:46.000000Z"
}
]
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/automations/{uid}/execute
Start an automation for a person, by email
For an automation whose trigger is "API call". The person is named by EMAIL, and the
automation's list is used as it is — this call creates and changes no contact:
- the list holds
EMAIL, subscribed: the automation runs for that contact; - the list holds it, not subscribed (unsubscribed, unconfirmed…): nothing starts;
- the list does not hold it: the automation runs for the email alone, outside the list.
Steps that need a contact's list data (tags, fields, status, copy to a list) fail that
run with the reason. To make the person a contact, add them first (
POST /subscribers).
Any field of the list, by its tag, is data the run enters with: its emails show it as that field's tag (for a contact, the value sent here wins for the fields it names). An automation runs once per person.
Until 2026-11-19 a person the list did not hold was added to it first.
The automation's page shows the URL of this call, with its uid.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The automation's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
EMAIL
|
string (email) |
Example request
curl -X POST 'https://your-domain/api/v1/automations/6adaabd9f2abd/execute' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'EMAIL=anna@example.com'
Responses
{
"success": true,
"run_uid": "6adb1c0e4f2a1",
"subscriber_uid": null
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"success": false,
"error": "Automation not found"
}
{
"success": false,
"error": "anna@example.com already entered automation \"Welcome journey\" on 2026-11-02T10:00:00+00:00. An automation runs once per person.",
"run_uid": "6adb1c0e4f2a1",
"subscriber_uid": "ec9a5eef0b70f"
}
EMAIL is missing or not an email address, the
list holds EMAIL and it is not subscribed there, or the person is outside the
segment the automation is limited to (someone outside the list always is).
{
"success": false,
"error": "Automation \"Welcome journey\" is not active. Activate it before triggering it."
}
Bounces and complaints
Report a bounce or a complaint for a message that was sent.
POST
/notification/bounce
Report a hard bounce
For a message sent through a server that does not report bounces by itself. The address is blacklisted and the bounce is recorded on the message. Soft bounces need no report. An admin token may report any message; a customer's token, only its own.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
message_id
|
string | The Message-ID the email was sent with. |
description
|
string | The bounce message. |
Example request
curl -X POST 'https://your-domain/api/v1/notification/bounce' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'message_id=201637442604422402.6199642caf7f3@example.com' \
--data-urlencode 'description=550 5.1.1 User unknown'
Responses
{
"id": 5021,
"runtime_message_id": "201637442604422402.6199642caf7f3@example.com",
"message_id": null,
"customer_id": 1,
"tracking_log_id": 88231,
"bounce_type": "hard",
"status_code": null,
"raw": "550 5.1.1 User unknown",
"created_at": "2026-11-14T10:00:00.000000Z",
"updated_at": "2026-11-14T10:00:00.000000Z"
}
message_id is missing, or no message of the token's account was sent with it.
{
"error": "Cannot find a tracking log record with runtime_message_id of #201637442604422402.6199642caf7f3@example.com"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/notification/feedback
Report a complaint
A spam or abuse report about a message. The contact is marked as having reported spam. An admin token may report any message; a customer's token, only its own.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
message_id
|
string | The Message-ID the email was sent with. |
type
|
string |
One of: spam, abuse.
|
description
|
string | The report. |
Example request
curl -X POST 'https://your-domain/api/v1/notification/feedback' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'message_id=201637442604422402.6199642caf7f3@example.com' \
--data-urlencode 'type=abuse' \
--data-urlencode 'description=Reported as spam by the recipient'
Responses
{
"id": 812,
"runtime_message_id": "201637442604422402.6199642caf7f3@example.com",
"message_id": null,
"customer_id": 1,
"tracking_log_id": 88231,
"feedback_type": "abuse",
"raw_feedback_content": "Reported as spam by the recipient",
"created_at": "2026-11-14T10:00:00.000000Z",
"updated_at": "2026-11-14T10:00:00.000000Z"
}
message_id or type is missing or wrong, or no message of the token's account was sent with this id.
{
"error": "Feedback type must be either 'abuse' or 'spam'"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
Customers ADMIN
Customer accounts. Admin token only.
GET
/customers
List the customers
Every customer the token's admin may read: all of them, or only the ones this admin created, by the admin's permission. Each one as stored, column by column.
Example request
curl 'https://your-domain/api/v1/customers' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->all();
Responses
[
{
"id": 1,
"uid": "6adaabb568fda",
"name": "Awesome Solutions",
"status": "active",
"timezone": "Asia/Tokyo",
"language_id": 1,
"admin_id": 1,
"created_at": "2025-12-14T00:00:00.000000Z",
"updated_at": "2026-11-10T11:49:22.000000Z"
}
]
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/customers
Create a customer
Creates the customer and its first user, and answers with that user's API token. Allowed only when creating customers through the API is turned on in the settings, and only for an admin allowed to create customers.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
name
|
string | The customer's name. |
email
|
string (email) | The first user's email address. No other user may have it. |
password
|
string | The first user's password: 5 to 255 characters. |
first_name
|
string | |
last_name
|
string | |
timezone
|
string | |
language_id
|
integer |
Example request
curl -X POST 'https://your-domain/api/v1/customers' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'name=Awesome Solutions' \
--data-urlencode 'email=emma@example.com' \
--data-urlencode 'password=a-long-password' \
--data-urlencode 'first_name=Emma' \
--data-urlencode 'last_name=Tanaka' \
--data-urlencode 'timezone=UTC' \
--data-urlencode 'language_id=1'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->create([
'name' => 'Awesome Solutions',
'email' => 'emma@example.com',
'password' => 'a-long-password',
'timezone' => 'UTC',
'language_id' => 1,
]);
Responses
{
"status": 1,
"message": "Customer was successfully created",
"customer_uid": "6adaabb568fda",
"api_token": "YOUR_API_TOKEN"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{"status": 0, "message": …}), or a
field is missing or wrong (each field that failed, with its messages).
{
"status": 0,
"message": "Customer creation via API is disabled, please enable it in settings."
}
language_id.
{
"status": 0,
"message": "Language with ID [9] not found"
}
GET
/customers/{uid}
Get a customer
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
Example request
curl 'https://your-domain/api/v1/customers/6adaabb568fda' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->find('6adaabb568fda');
Responses
{
"customer": {
"uid": "6adaabb568fda",
"name": "Awesome Solutions",
"timezone": "Asia/Tokyo",
"status": "active",
"users": [
{
"uid": "6adaabb567bf6",
"api_token": "YOUR_API_TOKEN",
"one_time_api_token": null,
"first_name": "Emma",
"last_name": "Tanaka",
"email": "emma@example.com",
"is_activated": 1,
"role": "Full Access",
"phone": null,
"updated_at": "2026-10-23T00:35:01.000000Z",
"created_at": "2025-12-14T00:00:00.000000Z"
}
],
"current_subscription": {
"uid": "6adaabbcdbd1e",
"plan_name": "Standard",
"current_period_ends_at": "2027-10-23T00:35:08.000000Z",
"cancelled_at": null,
"terminated_at": null,
"status": "active"
}
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Customer not found"
}
PATCH
/customers/{uid}
Change a customer
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
name
|
string | |
timezone
|
string | |
language_id
|
integer |
Example request
curl -X PATCH 'https://your-domain/api/v1/customers/6adaabb568fda' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'name=Awesome Solutions' \
--data-urlencode 'timezone=Asia/Tokyo' \
--data-urlencode 'language_id=1'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->update('6adaabb568fda', [
'name' => 'Awesome Solutions',
'timezone' => 'Asia/Tokyo',
'language_id' => 1,
]);
Responses
{
"status": 1,
"message": "Customer was successfully updated",
"customer_uid": "6adaabb568fda"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"from_email": [
"The from email must be a valid email address."
]
}
{
"message": "Customer not found"
}
DELETE
/customers/{uid}
Delete a customer
Deletes the customer with its users, lists, campaigns and everything else of the account.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
Example request
curl -X DELETE 'https://your-domain/api/v1/customers/6adaabb568fda' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->delete('6adaabb568fda');
Responses
{
"status": 1,
"message": "One or more customers were successfully deleted",
"customer_uid": "6adaabb568fda"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Customer not found"
}
GET
/customers/by-email/{email}
Find a customer by a user's email address
Parameters
| Name | Type | Description |
|---|---|---|
email
|
string (email) | The email address of one of the customer's users. |
Example request
curl 'https://your-domain/api/v1/customers/by-email/emma@example.com' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"customer": {
"uid": "6adaabb568fda",
"name": "Awesome Solutions",
"timezone": "Asia/Tokyo",
"status": "active",
"users": [
{
"uid": "6adaabb567bf6",
"api_token": "YOUR_API_TOKEN",
"one_time_api_token": null,
"first_name": "Emma",
"last_name": "Tanaka",
"email": "emma@example.com",
"is_activated": 1,
"role": "Full Access",
"phone": null,
"updated_at": "2026-10-23T00:35:01.000000Z",
"created_at": "2025-12-14T00:00:00.000000Z"
}
],
"current_subscription": {
"uid": "6adaabbcdbd1e",
"plan_name": "Standard",
"current_period_ends_at": "2027-10-23T00:35:08.000000Z",
"cancelled_at": null,
"terminated_at": null,
"status": "active"
}
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Customer not found by email: emma@example.com"
}
PATCH
/customers/{uid}/enable
Enable a customer
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
Example request
curl -X PATCH 'https://your-domain/api/v1/customers/6adaabb568fda/enable' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->enable('6adaabb568fda');
Responses
{
"status": 1,
"message": "Customer was enabled",
"customer_uid": "6adaabb568fda"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Customer not found"
}
PATCH
/customers/{uid}/disable
Disable a customer
A disabled customer cannot sign in, and nothing is sent for it.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
Example request
curl -X PATCH 'https://your-domain/api/v1/customers/6adaabb568fda/disable' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->disable('6adaabb568fda');
Responses
{
"status": 1,
"message": "Customer was disabled",
"customer_uid": "6adaabb568fda"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"message": "Customer not found"
}
Subscriptions ADMIN
Customers' plans. Admin token only.
POST
/customers/{uid}/assign-plan/{plan_uid}
Assign a plan to a customer
Gives the customer a new subscription to the plan. With force, a subscription the
customer has now is ended first, in the same step. The subscription waits for its first
invoice to be paid, unless disable_billing is true.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
plan_uid
|
string | The plan's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
force
|
boolean | End the customer's current subscription first. |
disable_billing
|
boolean | Activate the subscription without an invoice to pay. |
Example request
curl -X POST 'https://your-domain/api/v1/customers/6adaabb568fda/assign-plan/6adaabb0c9e12' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'force=1' \
--data-urlencode 'disable_billing=1'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->assignPlan('6adaabb568fda', '6adaabb0c9e12');
Responses
{
"status": 1,
"message": "Assigned Awesome Solutions plan to Standard successfully.",
"customer_uid": "6adaabb568fda",
"plan_uid": "6adaabb0c9e12"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Plan is not active"
}
POST
/customers/{uid}/change-plan/{plan_uid}
Change the plan of a customer's active subscription
What happens depends on the subscription:
- free change, or one the payment provider applies itself: done (
Plan changed…); - a change to pay for: an invoice is created, which the customer pays from the web interface;
- the provider asks the customer to confirm the payment:
hosted_invoice_urlis where to send them; - the saved card cannot pay: 402, and nothing changes.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
plan_uid
|
string | The plan's uid. |
Example request
curl -X POST 'https://your-domain/api/v1/customers/6adaabb568fda/change-plan/6adaabb0c9e12' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": 1,
"message": "Plan changed",
"customer_uid": "6adaabb568fda",
"plan_uid": "6adaabb0c9e12"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Your card has expired.",
"decline_code": "expired_card",
"customer_uid": "6adaabb568fda",
"plan_uid": "6adaabb0c9e12"
}
{
"status": 0,
"message": "The customer does not have a current active subscription."
}
POST
/customers/{uid}/subscription/update
Replace a customer's subscription
Ends the customer's current subscription and subscribes it to plan_uid, in one step:
assigning a plan with force. Every check is made before anything ends.
Parameters
| Name | Type | Description |
|---|---|---|
uid
|
string | The customer's uid. |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
plan_uid
|
string | |
disable_billing
|
boolean | Activate the subscription without an invoice to pay. |
Example request
curl -X POST 'https://your-domain/api/v1/customers/6adaabb568fda/subscription/update' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'plan_uid=6adaabb0c9e12' \
--data-urlencode 'disable_billing=1'
Responses
{
"status": 1,
"message": "Assigned Awesome Solutions plan to Standard successfully.",
"customer_uid": "6adaabb568fda",
"plan_uid": "6adaabb0c9e12"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Plan is not active"
}
GET
/subscriptions
List the subscriptions
The subscriptions of the customers the token's admin may read, a page at a time, each as stored, column by column, with the paging of the list around them.
Parameters
| Name | Type | Description |
|---|---|---|
page
|
integer | |
per_page
|
integer | Subscriptions per page. |
Example request
curl 'https://your-domain/api/v1/subscriptions' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscription()->all(['page' => 1, 'per_page' => 25]);
Responses
{
"current_page": 1,
"last_page": 22,
"per_page": 1,
"total": 22,
"data": [
{
"id": 1,
"uid": "6adaabbcdbd1e",
"customer_id": 1,
"plan_id": 3,
"status": "active",
"current_period_ends_at": "2027-10-23T00:35:08.000000Z",
"trial_ends_at": null,
"cancelled_at": null,
"terminated_at": null,
"created_at": "2026-10-23T00:35:08.000000Z",
"updated_at": "2026-10-23T00:35:08.000000Z"
}
]
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/subscriptions
Subscribe a customer to a plan
Gives the customer a new subscription to the plan. The subscription waits for its
first invoice to be paid, unless disable_billing is true. The same as assigning a
plan without force.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
customer_uid
|
string | |
plan_uid
|
string | |
disable_billing
|
boolean | Activate the subscription without an invoice to pay. |
Example request
curl -X POST 'https://your-domain/api/v1/subscriptions' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'customer_uid=6adaabb568fda' \
--data-urlencode 'plan_uid=6adaabb0c9e12' \
--data-urlencode 'disable_billing=1'
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscription()->create([
'customer_uid' => '6adaabb568fda',
'plan_uid' => '6adaabb0c9e12',
]);
Responses
{
"status": 1,
"message": "Assigned Awesome Solutions plan to Standard successfully.",
"customer_uid": "6adaabb568fda",
"plan_uid": "6adaabb0c9e12"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": 0,
"message": "Plan is not active"
}
Sending servers ADMIN
The sending servers of the platform. Admin token only.
GET
/sending_servers
List the sending servers
The active sending servers of the platform. Only for an admin allowed to read every sending server.
Example request
curl 'https://your-domain/api/v1/sending_servers' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
PHP SDK
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->sending_server()->all();
Responses
[
{
"uid": "6adaabb063fe6",
"name": "Amazon SES (us-east-1)",
"created_at": "2026-10-23T00:34:56.000000Z",
"updated_at": "2026-10-23T00:34:56.000000Z"
}
]
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
Maintenance ADMIN
Version, license, plugins and upgrades of the installation. Admin token only.
GET
/whoami
Get the version of the installation
The user of the token and the installation it talks to. Any token may call it.
Example request
curl 'https://your-domain/api/v1/whoami' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"user": {
"id": 1,
"email": "admin@example.com",
"is_admin": true
},
"instance": {
"url": "https://your-domain",
"version": "4.2.0-p180"
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
POST
/license/refresh
Refresh the license
Checks the installed license again with the license server, like the Refresh button of the license settings. Only for an admin allowed to change the general settings.
Example request
curl -X POST 'https://your-domain/api/v1/license/refresh' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": "success",
"license": {
"purchase_code_masked": "ab12****************cd34",
"type": "Regular License",
"status": "active",
"is_active": true,
"is_expired": false,
"supported_until": "2027-05-01T00:00:00+00:00",
"supported_until_human": "Sat, May 1, 2027 12:00 AM",
"days_remaining": 167,
"buyer": "example-buyer"
}
}
{
"status": "error",
"message": "cURL error 28 Connection timed out",
"license": null
}
{
"status": "error",
"message": "Unauthorized"
}
{
"status": "error",
"message": "No license installed",
"license": null
}
POST
/plugins/install
Install a plugin from a URL
Downloads the plugin's zip file, installs it, and activates it when asked. Only for an admin allowed to install plugins.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
url
|
string (uri) | Where to download the plugin's zip file. |
overwrite
|
boolean | Replace the plugin if it is installed already. |
activate
|
boolean | Activate it once installed. |
Example request
curl -X POST 'https://your-domain/api/v1/plugins/install' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'url=https://example.com/plugins/my-plugin-1.2.0.zip' \
--data-urlencode 'overwrite=0' \
--data-urlencode 'activate=1'
Responses
{
"status": "success",
"plugin": {
"uid": "6af7d91f0e1c7",
"name": "vendor/my-plugin",
"title": "My plugin",
"version": "1.2.0",
"status": "active"
},
"source": "https://example.com/plugins/my-plugin-1.2.0.zip"
}
{
"status": "error",
"message": "Unauthorized"
}
url is missing.
{
"status": "error",
"message": "'url' parameter is required"
}
POST
/upgrade/stage
Put an upgrade package in place
The first step of an upgrade from outside, the same upgrade the upgrade page runs: give
the package as an uploaded patch file, or as a url the installation downloads it
from. It is checked and kept until an upgrade starts; nothing is applied yet. Only for
an admin allowed to manage upgrades.
The steps, in order: stage, preflight, launch test, start, then follow the progress
until the run is done, and clear the code cache.
Request body multipart/form-data
| Name | Type | Description |
|---|---|---|
patch
|
file | The upgrade package (zip). |
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
url
|
string (uri) | Where the installation downloads the package from. |
timeout
|
integer | Seconds the download may take: 60 to 1800. |
curl, multipart/form-data
curl -X POST 'https://your-domain/api/v1/upgrade/stage' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F 'patch=@patch.zip'
curl, application/x-www-form-urlencoded
curl -X POST 'https://your-domain/api/v1/upgrade/stage' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'url=https://example.com/patch.zip' \
--data-urlencode 'timeout=600'
Responses
{
"status": "staged",
"from": "4.2.0-p180",
"to": "4.2.0-p194"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
already_running with its run_id, or busy while one of its steps holds the lock.
{
"status": "already_running",
"run_id": "c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9",
"message": "An upgrade is already running."
}
patch nor url, a URL that is not http or https, a timeout out of range, or a failed upload.
{
"status": "error",
"message": "Give the patch: a multipart file 'patch', or a 'url' to download it from"
}
GET
/upgrade/preflight
Check what an upgrade would do
The PHP command line the upgrade runs with, what the package needs of PHP, and what starting now would do.
Parameters
| Name | Type | Description |
|---|---|---|
retry_of
|
string | A failed run to retry, by its id. |
Example request
curl 'https://your-domain/api/v1/upgrade/preflight' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"php_cli": {
"path": "/usr/bin/php8.3",
"ok": true,
"version": "8.3.21",
"problem": null,
"message": ""
},
"php_requirement": null,
"plan": {
"kind": "refused",
"from": null,
"to": null,
"applied_by": null,
"refusal": {
"code": "no_package",
"message": "No patch is waiting to be applied. Upload or fetch one first."
}
},
"active_run": null,
"cron_url": "https://your-domain/admin/settings/cronjob?return_to=upgrade"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
{
"status": "error",
"message": "This upgrade run no longer exists."
}
POST
/upgrade/launch-test
Start a launch test
Launches a harmless background process the way the upgrade will be launched, to check this host can run it: the shell starts it, it finds every command it needs, the PHP command line boots, and it outlives the request. Follow it until it ends; an upgrade starts only with a test that passed less than 30 minutes ago.
Example request
curl -X POST 'https://your-domain/api/v1/upgrade/launch-test' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": "success",
"test": {
"id": "3b8e1f0c7a2d4e5f6a7b8c9d0e1f2a3b",
"state": "running",
"created_at": "2026-11-14T10:00:00+00:00",
"php_path": "/usr/bin/php8.3",
"method": "setsid",
"checks": [
{
"key": "launch",
"label": "The shell started a process",
"state": "passed",
"detail": "Process 41231, started with setsid"
}
],
"log": null
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
{
"status": "php_cli_invalid",
"message": "The upgrade needs a working PHP CLI. The configured path does not exist.",
"php_cli": {
"path": "/usr/bin/php",
"ok": false
},
"redirect": null
}
GET
/upgrade/launch-test/{id}
Follow a launch test
Parameters
| Name | Type | Description |
|---|---|---|
id
|
string | The test's id. |
Example request
curl 'https://your-domain/api/v1/upgrade/launch-test/3b8e1f0c7a2d4e5f6a7b8c9d0e1f2a3b' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": "success",
"test": {
"id": "3b8e1f0c7a2d4e5f6a7b8c9d0e1f2a3b",
"state": "running",
"created_at": "2026-11-14T10:00:00+00:00",
"php_path": "/usr/bin/php8.3",
"method": "setsid",
"checks": [
{
"key": "launch",
"label": "The shell started a process",
"state": "passed",
"detail": "Process 41231, started with setsid"
}
],
"log": null
}
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
POST
/upgrade/start
Start the upgrade
Starts the run in the background and answers at once with its id. Follow it with the
progress call until its state is done or failed.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
launch_test
|
string | The id of a launch test that passed less than 30 minutes ago. |
retry_of
|
string | The failed run this one retries. |
Example request
curl -X POST 'https://your-domain/api/v1/upgrade/start' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'launch_test=3b8e1f0c7a2d4e5f6a7b8c9d0e1f2a3b' \
--data-urlencode 'retry_of=c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9'
Responses
started; starting with 202 while it is being launched).
{
"status": "started",
"run_id": "9f1c2b7a4e3d5c6b8a0f1e2d3c4b5a69",
"progress_url": "https://your-domain/api/v1/upgrade/progress/9f1c2b7a4e3d5c6b8a0f1e2d3c4b5a69",
"run": {
"id": "9f1c2b7a4e3d5c6b8a0f1e2d3c4b5a69",
"state": "starting",
"from_version": "4.2.0-p180",
"to_version": "4.2.0-p194",
"percent": 0
},
"log": null
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
{
"status": "error",
"message": "This upgrade run no longer exists."
}
already_running with its run_id and progress_url, or busy.
refused (with reason, e.g. no package in place), php_cli_invalid,
php_requirement_not_met, or launch_test_required (with reason).
{
"status": "launch_test_required",
"reason": "missing",
"message": "The upgrade starts only after a launch test passed. Open the confirmation again to run one."
}
launch_failed: the run could not be launched; or corrupt: its record cannot be read.
GET
/upgrade/progress/{id}
Follow an upgrade
The run as the upgrade page shows it: its state (starting, running, done,
failed, stalled or not_started), each phase with its progress, the error with
where it happened, and the end of its log. A request may fail while the code is being
replaced; ask again.
Parameters
| Name | Type | Description |
|---|---|---|
id
|
string | The run's id. |
Example request
curl 'https://your-domain/api/v1/upgrade/progress/9f1c2b7a4e3d5c6b8a0f1e2d3c4b5a69' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"run": {
"id": "9f1c2b7a4e3d5c6b8a0f1e2d3c4b5a69",
"state": "running",
"from_version": "4.2.0-p180",
"to_version": "4.2.0-p194",
"dry_run": false,
"percent": 42.5,
"current_phase": "migrate.run",
"current_label": "Running migrations",
"phases": [
{
"key": "apply.extract",
"step": "apply",
"label": "Extracting the package",
"state": "done",
"done": 1,
"total": 1,
"item": null,
"sub": null,
"notes": [],
"ms": 5210
}
],
"error": null,
"exit": null,
"created_at": "2026-11-14T10:01:00+00:00",
"elapsed": 95
},
"log": "Running migrations: 12 of 40"
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
{
"status": "error",
"message": "This upgrade run no longer exists."
}
corrupt: the run's record cannot be read.
GET
/upgrade/progress/{id}/log
Download the log of an upgrade
Parameters
| Name | Type | Description |
|---|---|---|
id
|
string | The run's id. |
Example request
curl 'https://your-domain/api/v1/upgrade/progress/9f1c2b7a4e3d5c6b8a0f1e2d3c4b5a69/log' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
{
"status": "error",
"message": "This upgrade run no longer exists."
}
POST
/upgrade/code-cache/clear
Clear the code cache after an upgrade
Once a run is done, clears the code cache of the PHP that serves the web requests:
the upgrade's own processes cannot. none when there is no cache to clear; failed
with PHP's reason, after which PHP must be restarted on the server.
Example request
curl -X POST 'https://your-domain/api/v1/upgrade/code-cache/clear' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Responses
{
"status": "cleared",
"reason": null
}
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
{
"message": "Unauthenticated."
}
{
"status": "error",
"message": "You are not authorized for this action."
}
WEBHOOKS
Push events out, instead of polling for them.
AcelleMail ships two webhook surfaces. Lifecycle webhooks fire on customer + subscription + automation transitions and are configured globally. Per-recipient tracking pings fire on opens, clicks, unsubscribes, bounces and complaints, and are configured per campaign. Both retry on failure with exponential backoff.
Lifecycle webhooks
Customer + subscription transitions
Configured once in Admin → Settings → Webhooks. Each webhook is a name + event + outbound HTTP config (URL, method, headers, body template). Six events ship in core:
API call nodes)Retry policy is per-webhook: configurable retry_times (default 2) and retry_after_seconds (default 900). Failed deliveries are logged, retried, and surfaced in the admin webhook log.
Plugins can register additional events via the EVENT hook pattern — acelle/ai, for example, fires ai_task_completed from its custom listeners.
Per-recipient tracking
Opens, clicks, unsubscribes, bounces, complaints
Configured per campaign, in the campaign’s Webhooks panel or with POST /api/v1/campaigns/{uid}/webhooks. One webhook is one event type and one URL. Five event types:
Each event is a JSON POST signed in X-Webhook-Signature: sha256= followed by the HMAC-SHA256 of the raw body, keyed with the webhook’s secret. A delivery is tried 5 times; a webhook that fails 20 times in a row is switched off. Add as many webhooks per campaign as you need.
Bounces and complaints reach the webhook however they were reported: by the sending server’s own webhook, a bounce mailbox, or the API. Download log CSVs →
Example: new_subscription payload
POST /your-webhook-url
Content-Type: application/json
X-AcelleMail-Event: new_subscription
X-AcelleMail-Signature: sha256=…
{
"event": "new_subscription",
"customer_id": 1234,
"plan_id": "extended-monthly",
"fired_at": "2026-05-06T12:34:56Z"
}
Example: click tracking payload
POST /your-webhook-url
Content-Type: application/json
X-Webhook-Event: click
X-Webhook-Delivery: 6af7d91f0e1c7
X-Webhook-Signature: sha256=…
{
"version": "1",
"event": "click",
"webhook_uid": "6af7d91dd5d06",
"delivery_uid": "6af7d91f0e1c7",
"occurred_at": "2026-05-06T12:34:56+00:00",
"campaign": { "uid": "6adaabd2b4753",
"name": "Spring sale" },
"subscriber": { "uid": "ec9a5eef0b70f",
"email": "alice@example.com" },
"event_data": { "url": "https://acme.com/promo",
"ip": "203.0.113.5",
"user_agent": "…" }
}
RESPONSES & ERRORS
Predictable JSON. Conventional status codes.
Answers are JSON. A failed call answers with an HTTP status and a body that says why: a message (sometimes with a status), or each field that failed with its messages. Branch your client on the status code.
| Code | When you’ll see it |
|---|---|
| 200 OK | Successful read or update. |
| 201 Created | Successful create. |
| 401 Unauthorized | Missing or invalid token. |
| 403 Forbidden | A field failed (each field with its messages), or the token’s user may not do this. |
| 404 Not Found | UID does not exist. |
| 422 Unprocessable | Refused; the message says why (a plan limit, a campaign sent to both a list and addresses, …). |
| 500 Server | Server-side bug. Check storage/logs/laravel.log. |
Validation error (403)
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
"from_email": [
"The from email must be a valid email address."
],
"name": [
"The name field is required."
]
}
Auth failure (401)
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{ "message": "Unauthenticated." }
Pagination
List endpoints take page and per_page (10 or 25 by default, depending on the resource) and answer with a plain array of that page. Only /subscriptions answers with Laravel’s paginator shape (data, current_page, last_page, total).
Rate limits
A few calls are limited: /user/login to 5 a minute per IP address, the bulk imports and /public/subscribers to 60 a minute. Over the limit, the answer is 429. Add your own throttle on top if you need one.
Versioning
Current major version is v1. New endpoints are added freely; breaking changes to existing endpoints would ship as v2 alongside v1. Pin your client to /api/v1/ and you’re stable.
CLIENTS
Any HTTP client. No proprietary SDK.
There is no AcelleMail SDK to install. The API speaks JSON over HTTP — reach for whatever client your stack already has. Three of the most common in practice:
curl · one-liners
curl $ACELLE_BASE/api/v1/lists \
-H "Accept: application/json" \
-H "Authorization: Bearer $ACELLE_TOKEN" \
| jq '.[].name'
Laravel HTTP client
$resp = Http::withToken($token)
->baseUrl($base.'/api/v1')
->post('/subscribers', [
'list_uid' => $listUid,
'EMAIL' => $email,
]);
return $resp->json();
Browser / Node fetch
const r = await fetch(
`${base}/api/v1/campaigns/${uid}/run`,
{
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
},
}
);
const data = await r.json();
Building an open-source SDK? Email us — we’ll link it from this page.
RESOURCES & COMMUNITY
Build with the API, ship as a plugin, ask when you’re stuck.
For Developers
Plugin SDK, Hook system, Hello World plugin in 5 minutes, and 14 extension surfaces with real production examples.
/for/developers →Knowledge Base
Setup, deliverability, sending-server config, troubleshooting, plugin guides, billing.
acellesend.com/kb →Stuck? Email us
Endpoint contract, webhook payload, or auth question. Typical response within 24 hours.
admin@acellesend.com →START BUILDING
Run AcelleMail. Get a token. Make a call.
One-time license. Full source. Self-hosted endpoint. The API is included — no add-on, no rate plan.