Skip to content

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

SaaS frontend Mobile app CRM sync Automation triggers Reseller dashboards
REQUEST POST /api/v1/campaigns HEADERS Authorization: Bearer ACELLE_TOKEN Content-Type: application/json BODY { "list_uid": "a3b9..." "name": "Welcome" "subject": "Hi friend" "from_name": "Acme" "from_email": "hi@..." "track_open": true "html": "<h1>…" } HTTPS your.acelle.com RESPONSE 200 OK { "campaign": { "uid": "abc123" "name": "Welcome" "subject": "Hi friend" "status": "ready" "track_open": true "created_at": "2026-05-06T…" "links": { "self": "/api/v1…" } } }

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.

STEP 1

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
STEP 2

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": "…" }
STEP 3

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"
    }'
STEP 4

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 required string (email)
password required 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

200 The user's API token.
{
    "api_token": "YOUR_API_TOKEN"
}
401 No user has this email address and password.
{
    "error": "Invalid credentials"
}
422 The email address or the password is missing.
{
    "message": "The password field is required.",
    "errors": {
        "password": [
            "The password field is required."
        ]
    }
}
429 More than 5 calls in a minute from this IP address.
{
    "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 optional 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

200 The one-time token and the link.
{
    "token": "6af7d91dd5d06a3c5e1f",
    "url": "https://your-domain/login/token/6af7d91dd5d06a3c5e1f"
}
401 The token is missing or wrong (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."
}
404 No customer has this 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

200 The user the token belongs to.
{
    "id": 2,
    "uid": "6adaabb567bf6",
    "email": "emma@example.com",
    "first_name": "Emma",
    "last_name": "Tanaka",
    "created_at": "2025-12-14T00:00:00.000000Z"
}
401 The token is missing or wrong (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

200 The user's email address, name and profile picture.
{
    "email": "emma@example.com",
    "first_name": "Emma",
    "last_name": "Tanaka",
    "image_url": "https://your-domain/users/6adaabb567bf6/avatar?v=ad8f37ef5550ed84"
}
401 The token is missing or wrong (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

200 Campaigns, lists and contacts of the account.
{
    "campaign_count": 13,
    "list_count": 10,
    "subscriber_percent": 71.785,
    "subscriber_used": "71,785/100,000"
}
401 The token is missing or wrong (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 optional · query integer Default: 1
per_page optional · query integer Lists per page. Default: 10

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

200 One page of lists.
[
    {
        "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"
    }
]
401 The token is missing or wrong (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 required string
from_email required string (email) Default From address of its campaigns.
from_name required string Default From name of its campaigns.
remind_message optional string Why a contact gets the emails, shown in their footer.
subscribe_confirmation optional boolean Ask new contacts to confirm their address (double opt-in).
send_welcome_email optional boolean Send a welcome email to a new contact.
unsubscribe_notification optional boolean Send a goodbye email to a contact who unsubscribes.
email_subscribe optional string Addresses, separated by commas, told of each new contact.
email_unsubscribe optional string Addresses, separated by commas, told of each contact who unsubscribes.
email_daily optional 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

200 The list was created.
{
    "status": 1,
    "message": "List was successfully created",
    "list_uid": "6adaabbf98847"
}
401 The token is missing or wrong (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."
}
403 A field is missing or wrong: each field that failed, with its messages. Or the token's user may not create a list: {"status": 0, "message": "You have exceeded the service quota"}.
{
    "from_email": [
        "The from email must be a valid email address."
    ]
}
422 The plan allows no more lists.
{
    "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 required · path 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

200 The list.
{
    "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
    }
}
401 The token is missing or wrong (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."
}
404 No list has this uid.
{
    "message": "Mail list not found"
}
DELETE /lists/{uid} Delete a list

Deletes the list with its contacts.

Parameters

Name Type Description
uid required · path 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

200 The list was deleted.
{
    "status": 1,
    "message": "Deleted"
}
401 The token is missing or wrong (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."
}
404 No list has this uid.
{
    "status": 0,
    "message": "Mail list not found"
}
POST /lists/{uid}/add-field Add a field to a list

Parameters

Name Type Description
uid required · path string The list's uid.

Request body application/x-www-form-urlencoded

Name Type Description
type required string One of: text, number, datetime.
label required string
tag required string Letters, digits, dashes and underscores. The name of the field in subscriber requests.
default_value optional 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

200 The field was added.
{
    "status": 1,
    "message": "List's field was created",
    "field": {
        "uid": "6adaabc2e15a9",
        "type": "text",
        "tag": "COMPANY",
        "label": "Company",
        "default_value": null,
        "required": false,
        "visible": true
    }
}
401 The token is missing or wrong (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."
}
403 A field is missing or wrong (each field that failed, with its messages), the tag is taken ({"status": 0, "message": …}), or the token's user may not change the list.
{
    "type": [
        "The selected type is invalid."
    ]
}
404 No list has this uid.
{
    "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 required · query string The list's uid.
keyword optional · query string Only contacts whose fields contain every word.
status optional · query string Only contacts with this status. One of: subscribed, unsubscribed, unconfirmed, blacklisted, spam-reported.
open optional · query string yes: only contacts who opened a campaign; no: only contacts who never did. One of: yes, no.
click optional · query string yes: only contacts who clicked in a campaign; no: only contacts who never did. One of: yes, no.
page optional · query integer Default: 1
per_page optional · query integer Contacts per page. Default: 25

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

200 One page of contacts.
[
    {
        "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"
    }
]
400 No list has this list_uid.
{
    "message": "List not found"
}
401 The token is missing or wrong (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 required string
EMAIL required string (email)
tag optional string Tags, separated by commas.
status optional string One of: subscribed, unsubscribed, unconfirmed.

A field of the list, by its tag.

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

200 The contact was added.
{
    "status": 1,
    "message": "Subscriber was successfully created",
    "subscriber_id": 70757,
    "channels": null
}
400 No list has this list_uid.
{
    "message": "List not found"
}
401 The token is missing or wrong, or its user may not add contacts to this list.
{
    "message": "Unauthorized!"
}
403 The list refused the contact (each field that failed, with its messages), the status is not one of the three, or the plan allows no more contacts ({"message": …}).
{
    "EMAIL": [
        "The email field must be a valid email address."
    ]
}
GET /subscribers/{id} Get a contact

Parameters

Name Type Description
id required · path 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

200 The contact.
{
    "subscriber": {
        "id": 1,
        "email": "anna@example.com",
        "status": "subscribed",
        "source": "signup",
        "ip_address": "203.0.113.24",
        "tags": [],
        "FIRST_NAME": "Anna",
        "LAST_NAME": "Berg"
    }
}
401 The token is missing or wrong (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."
}
404 No contact has this id.
{
    "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 required · path integer The contact's id.

Request body application/x-www-form-urlencoded

Name Type Description
EMAIL required string (email)
tag optional string Tags, separated by commas. They replace the contact's tags.
status optional string One of: subscribed, unsubscribed, unconfirmed.

A field of the list, by its tag.

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

200 The contact was changed.
{
    "status": 1,
    "message": "Subscriber was successfully updated",
    "subscriber_id": 1,
    "channels": null
}
401 The token is missing or wrong (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."
}
403 A field is missing or wrong (each field that failed, with its messages), or the status is not one of the three.
{
    "EMAIL": [
        "The email field is required."
    ]
}
DELETE /subscribers/{id} Delete a contact

Parameters

Name Type Description
id required · path 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

200 The contact was deleted.
{
    "status": 1,
    "message": "Deleted"
}
401 The token is missing or wrong (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."
}
404 No contact has this id.
{
    "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 required · path 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

200 The contacts; empty when no list has the address.
{
    "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"
        }
    ]
}
401 The token is missing or wrong (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 required · path integer The contact's id.

Request body application/x-www-form-urlencoded

Name Type Description
tag required 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

200 The contact's tags now.
{
    "status": 1,
    "message": "Tag was added successfully",
    "subscriber_id": 1,
    "tags": [
        "vip",
        "newsletter"
    ]
}
401 The token is missing or wrong (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 required · path integer The contact's id.

Request body application/x-www-form-urlencoded

Name Type Description
tag required 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

200 The contact's tags now.
{
    "status": 1,
    "message": "Tag was removed successfully",
    "subscriber_id": 1,
    "tags": [
        "vip"
    ]
}
401 The token is missing or wrong (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 required · path string The list's uid.
id required · path 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

200 The contact is subscribed.
{
    "status": 1,
    "message": "Subscribed"
}
401 The token is missing or wrong (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."
}
404 No contact has this id.
{
    "status": 0,
    "message": "Subscriber not found"
}
409 The contact is subscribed already, or the address is on the platform's blacklist.
{
    "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 required · path string The list's uid.
id required · path 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

200 The contact is unsubscribed.
{
    "status": 1,
    "message": "Unsubscribed"
}
401 The token is missing or wrong (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."
}
404 No contact has this id.
{
    "status": 0,
    "message": "Subscriber not found"
}
409 The contact is unsubscribed already.
{
    "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 required · path string The list's uid.
email required · path 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

200 Every contact of the list with this address is unsubscribed.
{
    "status": 1,
    "message": "anna@example.com was unsubscribed"
}
400 The address is not valid.
{
    "status": 0,
    "message": "Email is not valid"
}
401 The token is missing or wrong (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."
}
403 No list has this uid, or the token's user may not change it.
{
    "status": 0,
    "message": "Unauthorized"
}
404 The list has no contact with this address.
{
    "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 required · path string The list's uid.

Request body application/json

Name Type Description
subscribers required 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 optional string What to do with an address the list already holds: update it, or leave it. One of: overwrite, skip. Default: overwrite
overwrite_status optional boolean With overwrite, also replace the status of a contact the list holds. Default: 0
overwrite_tags optional boolean With overwrite, replace its tags instead of adding to them. Default: 0

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

200 What happened to the rows.
{
    "list_uid": "6adaabbf98847",
    "received": 2,
    "inserted": 1,
    "updated": 1,
    "failed": 0,
    "batch_id": "9d2c4f7e-1b6a-4c55-9a52-61d3e0b7a1c4",
    "errors": []
}
400 subscribers is missing or empty.
{
    "message": "`subscribers` array is required and must be non-empty"
}
401 The token is missing or wrong (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."
}
403 The token's user may not import into this list.
{
    "message": "Unauthorized"
}
404 No list has this uid.
{
    "message": "List not found"
}
422 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 required · path string The list's uid.

Request body application/json

Name Type Description
subscribers required array of object The contacts, as for the import in the request.
mode optional string One of: overwrite, skip. Default: overwrite
overwrite_status optional boolean Default: 0
overwrite_tags optional boolean Default: 0

Request body multipart/form-data

Name Type Description
file required file The CSV file.
mapping required string JSON: each CSV column → the tag of a field (or the id of a field).
mode optional string One of: overwrite, skip. Default: overwrite
overwrite_status optional boolean Default: 0
overwrite_tags optional boolean Default: 0

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

202 The import is queued.
{
    "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"
}
400 Neither contacts nor a file, or a file without mapping.
{
    "message": "`subscribers` array required (or upload a CSV file)"
}
401 The token is missing or wrong (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."
}
403 The token's user may not import into this list.
{
    "message": "Unauthorized"
}
404 No list has this uid.
{
    "message": "List not found"
}
422 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 required · path string The list's uid.
limit optional · query integer Jobs to return, newest first. Default: 20

Example request

curl 'https://your-domain/api/v1/lists/6adaabbf98847/import-jobs' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Responses

200 The import jobs.
{
    "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"
        }
    ]
}
401 The token is missing or wrong (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."
}
403 The token's user may not import into this list.
{
    "message": "Unauthorized"
}
404 No list has this uid.
{
    "message": "List not found"
}
GET /import-jobs/{job_uid} Follow an import

Parameters

Name Type Description
job_uid required · path 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

200 The job, its progress and its counts.
{
    "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"
}
401 The token is missing or wrong (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."
}
403 The job is not an import into one of the token's lists.
{
    "message": "Unauthorized"
}
404 No job has this uid.
{
    "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 required · path 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

200 The import was cancelled.
{
    "message": "cancelled",
    "job_uid": "6af7d91f0e1c7",
    "status": "cancelled"
}
401 The token is missing or wrong (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."
}
403 The job is not an import into one of the token's lists.
{
    "message": "Unauthorized"
}
404 No job has this uid.
{
    "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 required string
EMAIL required string (email)
tag optional string Tags, separated by commas.

A field of the list, by its tag.

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

200 The contact was added.
{
    "status": 1,
    "message": "Confirmation email sent to the subscriber",
    "subscriber_id": 70758
}
400 No list has this list_uid.
{
    "message": "List not found"
}
403 The list refused the contact (each field that failed, with its messages), a status was sent, or the plan allows no more contacts ({"message": …}).
{
    "message": "Status is not allowed"
}
429 More than 60 calls in a minute from this IP address.
{
    "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 optional · query integer Default: 1
per_page optional · query integer Campaigns per page. Default: 10

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

200 One page of campaigns.
[
    {
        "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"
    }
]
401 The token is missing or wrong (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 optional string The list to send to.
addresses optional 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 required string
subject required string
from_email required string (email)
from_name required string
reply_to required string (email)
html required string The content of the email.
preheader optional string The line shown after the subject in the inbox.
track_open optional boolean Default: 1
track_click optional boolean Default: 1
sign_dkim optional boolean Default: 1
skip_failed_message optional boolean Keep sending when a message fails. Default: 0
custom_headers optional 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

200 The campaign was created.
{
    "status": 1,
    "message": "A new campaign was added!",
    "attributes": {
        "uid": "6adaabd2b4753",
        "name": "November newsletter",
        "status": "new",
        "created_at": "2026-11-14 10:00:00"
    }
}
401 The token is missing or wrong (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."
}
403 A field is missing or wrong (each field that failed, with its messages), or the token's user may not create a campaign ({"status": 0, "message": "Unauthorized"}).
{
    "reply_to": [
        "The reply to field must be a valid email address."
    ]
}
422 The plan allows no more campaigns, both a list and addresses were sent, or the addresses were refused.
{
    "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 required · path 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

200 The campaign.
{
    "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
            }
        ]
    }
}
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "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 required · path string The campaign's uid.

Request body application/x-www-form-urlencoded

Name Type Description
mail_list_uid optional string
addresses optional array of string (email)
name optional string
subject optional string
from_email optional string (email)
from_name optional string
reply_to optional string (email)
preheader optional string
track_open optional boolean
track_click optional boolean
sign_dkim optional boolean
skip_failed_message optional boolean
custom_headers optional 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

200 The campaign was changed.
{
    "status": 1,
    "message": "A new campaign was updated!",
    "attributes": {
        "uid": "6adaabd2b4753",
        "name": "November newsletter",
        "status": "new",
        "updated_at": "2026-11-14 10:05:00"
    }
}
401 The token is missing or wrong (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."
}
403 custom_headers is wrong (its messages), or the campaign is not the token's ({"status": 0, "message": "Unauthorized"}).
{
    "status": 0,
    "message": "Unauthorized"
}
422 Both a list and addresses were sent, or the addresses were refused.
{
    "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 required · path 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

200 The campaign was deleted.
{
    "status": 1,
    "message": "Deleted"
}
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "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 required · path 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

200 The campaign is sending.
{
    "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"
    }
}
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
422 The account may not launch this campaign now; the message says why.
{
    "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 required · path 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

200 The campaign is paused.
{
    "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"
    }
}
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "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 required · path 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

200 The campaign is sending again.
{
    "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"
    }
}
401 The token is missing or wrong (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."
}
403 The token's user may read the campaign but not resume it.
{
    "message": "You are not allowed to resume campaign \"November newsletter\"."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is in no state to resume. The message says why.
{
    "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 required · path 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

200 The CSV file.
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is archived and its logs were removed. Its per-recipient results are kept in the archive.
{
    "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 required · path 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

200 The CSV file.
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is archived and its logs were removed. Its per-recipient results are kept in the archive.
{
    "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 required · path 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

200 The CSV file.
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is archived and its logs were removed. Its per-recipient results are kept in the archive.
{
    "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 required · path 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

200 The CSV file.
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is archived and its logs were removed. Its per-recipient results are kept in the archive.
{
    "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 required · path 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

200 The CSV file.
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is archived and its logs were removed. Its per-recipient results are kept in the archive.
{
    "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 required · path 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

200 The CSV file.
401 The token is missing or wrong (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."
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
409 The campaign is archived and its logs were removed. Its per-recipient results are kept in the archive.
{
    "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 required · path 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

200 The webhooks.
[
    {
        "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"
    }
]
401 The token is missing or wrong (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."
}
403 The campaign is not the token's.
{
    "message": "Unauthorized"
}
404 No campaign has this uid.
{
    "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 required · path string The campaign's uid.

Request body application/x-www-form-urlencoded

Name Type Description
type required string One of: open, click, unsubscribe, bounce, complaint.
endpoint required string (uri) The URL the events are posted to, at most 2048 characters.
is_active optional boolean Default: 1

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

201 The webhook, with its uid and secret.
{
    "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"
}
401 The token is missing or wrong (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."
}
403 The campaign is not the token's.
{
    "message": "Unauthorized"
}
404 No campaign has this uid.
{
    "message": "Campaign not found"
}
422 A field is wrong. The first message, then every one.
{
    "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 required · path string The campaign's uid.
webhook_uid required · path 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

200 The webhook.
{
    "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"
}
401 The token is missing or wrong (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."
}
403 The campaign is not the token's.
{
    "message": "Unauthorized"
}
404 No campaign has this uid, or it has no webhook with this uid.
{
    "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 required · path string The campaign's uid.
webhook_uid required · path string The webhook's uid.

Request body application/x-www-form-urlencoded

Name Type Description
type optional string One of: open, click, unsubscribe, bounce, complaint.
endpoint optional string (uri)
is_active optional 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

200 The webhook.
{
    "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"
}
401 The token is missing or wrong (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."
}
403 The campaign is not the token's.
{
    "message": "Unauthorized"
}
404 No campaign has this uid, or it has no webhook with this uid.
{
    "message": "Webhook not found"
}
422 A field is wrong. The first message, then every one.
{
    "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 required · path string The campaign's uid.
webhook_uid required · path 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

200 The webhook was deleted.
{
    "status": 1,
    "message": "Webhook deleted."
}
401 The token is missing or wrong (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."
}
403 The campaign is not the token's.
{
    "message": "Unauthorized"
}
404 No campaign has this uid, or it has no webhook with this uid.
{
    "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 optional · query integer Default: 1
per_page optional · query integer Automations per page. Default: 10

Example request

curl 'https://your-domain/api/v1/automations' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Responses

200 One page of automations.
[
    {
        "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"
    }
]
401 The token is missing or wrong (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 required · path string The automation's uid.

Request body application/x-www-form-urlencoded

Name Type Description
EMAIL required string (email)

A field of the list, by its tag — data the run enters with.

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

200 The automation started for the person.
{
    "success": true,
    "run_uid": "6adb1c0e4f2a1",
    "subscriber_uid": null
}
401 The token is missing or wrong (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."
}
404 The token's account has no automation with this uid.
{
    "success": false,
    "error": "Automation not found"
}
409 The person went through this automation already.
{
    "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"
}
422 Nothing was started: the automation is not started by API calls, is not active, has no step after its trigger or no list, 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 required string The Message-ID the email was sent with.
description optional 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

200 The bounce, as recorded (also when it was recorded already).
{
    "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"
}
400 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"
}
401 The token is missing or wrong (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 required string The Message-ID the email was sent with.
type required string One of: spam, abuse.
description optional 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

200 The complaint, as recorded (also when it was recorded already).
{
    "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"
}
400 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'"
}
401 The token is missing or wrong (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

200 The customers.
[
    {
        "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"
    }
]
401 The token is missing or wrong (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 required string The customer's name.
email required string (email) The first user's email address. No other user may have it.
password required string The first user's password: 5 to 255 characters.
first_name optional string
last_name optional string
timezone required string
language_id required 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

200 The customer was created.
{
    "status": 1,
    "message": "Customer was successfully created",
    "customer_uid": "6adaabb568fda",
    "api_token": "YOUR_API_TOKEN"
}
401 The token is missing or wrong (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."
}
403 Creating customers through the API is turned off ({"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."
}
404 No language has this language_id.
{
    "status": 0,
    "message": "Language with ID [9] not found"
}
GET /customers/{uid} Get a customer

Parameters

Name Type Description
uid required · path 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

200 The customer, its users, contact details and current subscription.
{
    "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"
        }
    }
}
401 The token is missing or wrong (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."
}
404 No customer has this uid.
{
    "message": "Customer not found"
}
PATCH /customers/{uid} Change a customer

Parameters

Name Type Description
uid required · path string The customer's uid.

Request body application/x-www-form-urlencoded

Name Type Description
name required string
timezone required string
language_id required 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

200 The customer was changed.
{
    "status": 1,
    "message": "Customer was successfully updated",
    "customer_uid": "6adaabb568fda"
}
401 The token is missing or wrong (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."
}
403 A field is missing or wrong. Each field that failed, with its messages.
{
    "from_email": [
        "The from email must be a valid email address."
    ]
}
404 No customer has this uid.
{
    "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 required · path 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

200 The customer was deleted.
{
    "status": 1,
    "message": "One or more customers were successfully deleted",
    "customer_uid": "6adaabb568fda"
}
401 The token is missing or wrong (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."
}
404 No customer has this uid.
{
    "message": "Customer not found"
}
GET /customers/by-email/{email} Find a customer by a user's email address

Parameters

Name Type Description
email required · path 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

200 The customer, its users, contact details and current subscription.
{
    "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"
        }
    }
}
401 The token is missing or wrong (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."
}
404 No user has this email address.
{
    "message": "Customer not found by email: emma@example.com"
}
PATCH /customers/{uid}/enable Enable a customer

Parameters

Name Type Description
uid required · path 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

200 The customer is enabled.
{
    "status": 1,
    "message": "Customer was enabled",
    "customer_uid": "6adaabb568fda"
}
401 The token is missing or wrong (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."
}
404 No customer has this uid.
{
    "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 required · path 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

200 The customer is disabled.
{
    "status": 1,
    "message": "Customer was disabled",
    "customer_uid": "6adaabb568fda"
}
401 The token is missing or wrong (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."
}
404 No customer has this uid.
{
    "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 required · path string The customer's uid.
plan_uid required · path string The plan's uid.

Request body application/x-www-form-urlencoded

Name Type Description
force optional boolean End the customer's current subscription first. Default: 0
disable_billing optional boolean Activate the subscription without an invoice to pay. Default: 0

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

200 The plan was assigned.
{
    "status": 1,
    "message": "Assigned Awesome Solutions plan to Standard successfully.",
    "customer_uid": "6adaabb568fda",
    "plan_uid": "6adaabb0c9e12"
}
401 The token is missing or wrong (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."
}
404 No customer or no plan has this uid, or the plan is not active.
{
    "status": 0,
    "message": "Plan is not active"
}
500 The plan could not be assigned; the message says why, and nothing changed.
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_url is where to send them;
  • the saved card cannot pay: 402, and nothing changes.

Parameters

Name Type Description
uid required · path string The customer's uid.
plan_uid required · path 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

200 The plan changed, or is waiting for a payment.
{
    "status": 1,
    "message": "Plan changed",
    "customer_uid": "6adaabb568fda",
    "plan_uid": "6adaabb0c9e12"
}
401 The token is missing or wrong (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."
}
402 The saved card cannot pay; the change was dropped.
{
    "status": 0,
    "message": "Your card has expired.",
    "decline_code": "expired_card",
    "customer_uid": "6adaabb568fda",
    "plan_uid": "6adaabb0c9e12"
}
404 No customer or no plan has this uid, the plan is not active, or the customer has no active subscription.
{
    "status": 0,
    "message": "The customer does not have a current active subscription."
}
500 The change failed; the message says why.
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 required · path string The customer's uid.

Request body application/x-www-form-urlencoded

Name Type Description
plan_uid required string
disable_billing optional boolean Activate the subscription without an invoice to pay. Default: 0

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

200 The plan was assigned.
{
    "status": 1,
    "message": "Assigned Awesome Solutions plan to Standard successfully.",
    "customer_uid": "6adaabb568fda",
    "plan_uid": "6adaabb0c9e12"
}
401 The token is missing or wrong (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."
}
404 No customer or no plan has this uid, or the plan is not active.
{
    "status": 0,
    "message": "Plan is not active"
}
500 The plan could not be assigned; the message says why, and nothing changed.
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 optional · query integer Default: 1
per_page optional · query integer Subscriptions per page. Default: 25

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

200 One page of subscriptions.
{
    "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"
        }
    ]
}
401 The token is missing or wrong (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 required string
plan_uid required string
disable_billing optional boolean Activate the subscription without an invoice to pay. Default: 0

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

200 The plan was assigned.
{
    "status": 1,
    "message": "Assigned Awesome Solutions plan to Standard successfully.",
    "customer_uid": "6adaabb568fda",
    "plan_uid": "6adaabb0c9e12"
}
401 The token is missing or wrong (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."
}
404 No customer or no plan has this uid, or the plan is not active.
{
    "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

200 The sending servers.
[
    {
        "uid": "6adaabb063fe6",
        "name": "Amazon SES (us-east-1)",
        "created_at": "2026-10-23T00:34:56.000000Z",
        "updated_at": "2026-10-23T00:34:56.000000Z"
    }
]
401 The token is missing or wrong (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

200 The user and the installation.
{
    "user": {
        "id": 1,
        "email": "admin@example.com",
        "is_admin": true
    },
    "instance": {
        "url": "https://your-domain",
        "version": "4.2.0-p180"
    }
}
401 The token is missing or wrong (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

200 The license, as the license server sees it now.
{
    "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"
    }
}
400 The license server could not be asked; the license is the one stored before.
{
    "status": "error",
    "message": "cURL error 28 Connection timed out",
    "license": null
}
401 The token is missing or wrong, or its admin may not change the general settings.
{
    "status": "error",
    "message": "Unauthorized"
}
404 No license is installed.
{
    "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 required string (uri) Where to download the plugin's zip file.
overwrite optional boolean Replace the plugin if it is installed already. Default: 0
activate optional boolean Activate it once installed. Default: 0

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

200 The plugin is installed.
{
    "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"
}
400 The plugin could not be installed; the message says why.
401 The token is missing or wrong, or its admin may not install plugins.
{
    "status": "error",
    "message": "Unauthorized"
}
422 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 required file The upgrade package (zip).

Request body application/x-www-form-urlencoded

Name Type Description
url required string (uri) Where the installation downloads the package from.
timeout optional integer Seconds the download may take: 60 to 1800. Default: 600

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

200 The package is in place.
{
    "status": "staged",
    "from": "4.2.0-p180",
    "to": "4.2.0-p194"
}
400 The package could not be downloaded or is not a valid package; the message says why.
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
409 An upgrade is in progress: 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."
}
422 Neither 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 optional · query 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

200 The checks and the plan.
{
    "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"
}
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
404 No run has this id.
{
    "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

200 The test and its checks so far.
{
    "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
    }
}
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
422 The PHP command line cannot run the upgrade.
{
    "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 required · path 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

200 The test and its checks so far.
{
    "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
    }
}
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
404 No test has this id.
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 required string The id of a launch test that passed less than 30 minutes ago.
retry_of optional 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

200 The run started (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
}
202 The run is being launched.
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
404 No run has this id.
{
    "status": "error",
    "message": "This upgrade run no longer exists."
}
409 An upgrade is in progress: already_running with its run_id and progress_url, or busy.
422 Not started: 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."
}
500 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 required · path 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

200 The run and the end of its log.
{
    "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"
}
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
404 No run has this id.
{
    "status": "error",
    "message": "This upgrade run no longer exists."
}
500 corrupt: the run's record cannot be read.
GET /upgrade/progress/{id}/log Download the log of an upgrade

Parameters

Name Type Description
id required · path 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

200 The whole log, as a text file.
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "status": "error",
    "message": "You are not authorized for this action."
}
404 No run has this id.
{
    "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

200 What happened to the cache.
{
    "status": "cleared",
    "reason": null
}
401 The token is missing or wrong (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."
}
403 The token's admin may not manage upgrades.
{
    "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:

new_customer — params: customer_id
new_subscription — customer_id, plan_id
change_plan — customer_id, old_plan_id, new_plan_id
cancel_subscription — customer_id, plan_id
terminate_subscription — customer_id, plan_id
automation_webhook — automation_id (fires from 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:

open — recipient opened the email (tracking pixel)
click — recipient clicked a tracked link
unsubscribe — recipient hit the unsubscribe link
bounce — the message bounced (the payload says hard or soft)
complaint — the recipient reported the message as spam or abuse

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 OKSuccessful read or update.
201 CreatedSuccessful create.
401 UnauthorizedMissing or invalid token.
403 ForbiddenA field failed (each field with its messages), or the token’s user may not do this.
404 Not FoundUID does not exist.
422 UnprocessableRefused; the message says why (a plan limit, a campaign sent to both a list and addresses, …).
500 ServerServer-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.

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.

Plugin SDK →