Skip to content
Docs

Manage subscriber lists used by campaigns and sign-up forms.

Base URLhttps://api.emailit.com/v2AuthenticationErrorsRate limits

Create an audience

Creates an empty audience.

POST/audiences

Requires a full API key. Add people with Add a subscriber, or by passing the audience ID in audiences when you create a contact. Fires an audience.created event. See Audiences.

Body parameters

namestringrequired
The audience name, such as Newsletter. Must be unique in the workspace.

Returns

Returns 201 with the new audience:

objectstring
Always audience.
idstring
The audience ID.
namestring
The audience name.
tokenstring
The public token for the audience’s hosted subscribe URL.
created_atstring
When the audience was created.
updated_atstring
When the audience was last changed.
POST/audiences
Terminal
curl -X POST https://api.emailit.com/v2/audiences \
  -H "Authorization: Bearer $EMAILIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Newsletter"}'
JSON
{
  "object": "audience",
  "id": "aud_4KbFmQPy1feMCGAY8F8pAhiZ1u2",
  "name": "Newsletter",
  "token": "4KXUJdXRVlVgbkWQm4GHLy8BleP",
  "created_at": "2026-10-01T10:02:44.613207Z",
  "updated_at": "2026-10-01T10:02:44.613207Z"
}

Retrieve an audience

Retrieves an audience with its subscriber count and public token.

GET/audiences/{id}

Requires a full API key.

Path parameters

idstringrequired
The audience ID (aud_…) or its exact name, URL-encoded.

Returns

Returns the audience object.

objectstring
Always audience.
idstring
The audience ID.
namestring
The audience name.
tokenstring
The public token for the audience’s hosted subscribe URL. Treat it as public: anyone with it can subscribe to the audience.
subscribers_countinteger
How many contacts are in the audience, including unsubscribed ones.
usageobject

used (the same count), limit (the most subscribers an audience can have on your plan, or null for no limit) and plan. See Limits.

created_atstring
When the audience was created.
updated_atstring
When the audience was last changed.
GET/audiences/{id}
Terminal
curl https://api.emailit.com/v2/audiences/aud_4KbFmQPy1feMCGAY8F8pAhiZ1u2 \
  -H "Authorization: Bearer $EMAILIT_API_KEY"
JSON
{
  "object": "audience",
  "id": "aud_4KbFmQPy1feMCGAY8F8pAhiZ1u2",
  "name": "Newsletter",
  "token": "4KXUJdXRVlVgbkWQm4GHLy8BleP",
  "subscribers_count": 1284,
  "usage": {
    "used": 1284,
    "limit": 50000,
    "plan": "pro"
  },
  "created_at": "2026-10-01T10:02:44.000000Z",
  "updated_at": "2026-10-01T10:02:44.000000Z"
}

Update an audience

Renames an audience.

POST/audiences/{id}

Requires a full API key. The ID, token and subscribers don’t change. Fires an audience.updated event.

Path parameters

idstringrequired
The audience ID or its current name.

Body parameters

namestringrequired
The new name. Must be unique in the workspace.

Returns

Returns the audience with object, id, name, token, subscribers_count, created_at and updated_at. In this response subscribers_count is always 0; use Retrieve an audience for the real count.

POST/audiences/{id}
Terminal
curl -X POST https://api.emailit.com/v2/audiences/aud_4KbFmQPy1feMCGAY8F8pAhiZ1u2 \
  -H "Authorization: Bearer $EMAILIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Weekly newsletter"}'
JSON
{
  "object": "audience",
  "id": "aud_4KbFmQPy1feMCGAY8F8pAhiZ1u2",
  "name": "Weekly newsletter",
  "token": "4KXUJdXRVlVgbkWQm4GHLy8BleP",
  "subscribers_count": 0,
  "created_at": "2026-10-01T10:02:44.000000Z",
  "updated_at": "2026-10-01T14:31:09.000000Z"
}

List audiences

Returns a page of audiences, newest first.

GET/audiences

Requires a full API key. List items don’t include the audience token; use Retrieve an audience for it.

Query parameters

pageintegerdefault: 1
The page to return.
limitintegerdefault: 10
Audiences per page, from 1 to 100.
matchstringdefault: all
all or or. How the filters below combine.
orderstring
name or created_at.
directionstring
asc or desc.

Filters

Add filters as key.condition=value, for example name.contains=news. See Filtering.

Key Type
name string
created_at date

Returns

dataobject[]
The audiences on this page, each with object, id, name, subscribers_count, usage, created_at and updated_at. See Retrieve an audience.
total_recordsinteger
The number of audiences in the workspace.
next_page_urlstring | null
Path of the next page, or null. See Pagination.
previous_page_urlstring | null
Path of the previous page, or null.
GET/audiences
Terminal
curl https://api.emailit.com/v2/audiences \
  -H "Authorization: Bearer $EMAILIT_API_KEY"
JSON
{
  "data": [
    {
      "object": "audience",
      "id": "aud_4KbFmQPy1feMCGAY8F8pAhiZ1u2",
      "name": "Newsletter",
      "subscribers_count": 1284,
      "usage": {
        "used": 1284,
        "limit": 50000,
        "plan": "pro"
      },
      "created_at": "2026-10-01T10:02:44.000000Z",
      "updated_at": "2026-10-01T10:02:44.000000Z"
    },
    {
      "object": "audience",
      "id": "aud_4KOlh9t2uw5od4qypqCtyrZyDq2",
      "name": "Customers",
      "subscribers_count": 312,
      "usage": {
        "used": 312,
        "limit": 50000,
        "plan": "pro"
      },
      "created_at": "2026-09-20T16:45:10.000000Z",
      "updated_at": "2026-09-20T16:45:10.000000Z"
    }
  ],
  "total_records": 2,
  "next_page_url": null,
  "previous_page_url": null
}

Delete an audience

Permanently deletes an audience and removes everyone from it.

DELETE/audiences/{id}

Requires a full API key. The audience’s subscriber memberships are deleted with it, but the contacts stay in your workspace and in their other audiences. Its hosted subscribe URL stops working. Fires an audience.deleted event. No subscriber.deleted events are sent for the removed memberships.

Path parameters

idstringrequired
The audience ID or its name.

Returns

objectstring
Always audience.
idstring
The ID of the deleted audience.
namestring
The audience name.
deletedboolean
Always true.
DELETE/audiences/{id}
Terminal
curl -X DELETE https://api.emailit.com/v2/audiences/aud_4KOlh9t2uw5od4qypqCtyrZyDq2 \
  -H "Authorization: Bearer $EMAILIT_API_KEY"
JSON
{
  "object": "audience",
  "id": "aud_4KOlh9t2uw5od4qypqCtyrZyDq2",
  "name": "Customers",
  "deleted": true
}

Was this page helpful?

Thanks for the feedback.

Thanks, we read every message.