GET/api/v1/projects/{project_id}/lists
list_lists
Lists the mailing lists of a project, oldest first, at most 100 per call.
- Call it
- to find a list’s id.
- Needs
- an admin key with
project_id, or a project key with scoperead(its own project; the argument is ignored). - Returns
items(lists asget_listreturns them) andnext_cursor: pass it ascursorfor the next page; null on the last page. Deleted lists are left out unlessinclude_deletedis true. The same asGET /api/v1/projects/{project_id}/lists.
Arguments
- object
-
cursorstring | nullnext_cursorof the previous page; leave it out for the first. -
include_deletedboolean | nullList deleted lists too; default false.
-
limitinteger · int64 | nullPage size, 1 to 100; default 50.
1–100
-
project_idstring · uuid | nullThe project whose lists to list. An admin key must pass it; a project key’s own project is used and this is ignored.
No other arguments are accepted.
Result
The result comes back as structuredContent, with the same JSON as a text block.
- object · all fields required
-
itemsarray of ListIn creation order.
9 fields
- List object · all fields required
-
confirmation_template_idstring · uuid | nullThe template of the confirmation letter;
null: none. -
created_atstring · date-time -
deleted_atstring · date-time | nullWhen the list was deleted;
nullwhile it is live. A deleted list can only be read. -
double_opt_inbooleanSubscribers confirm by a link before they get campaigns.
-
from_overrideFromOverride | nullThe sender of the list’s own letters;
null: the project’s.2 fields
- FromOverride object · all fields required
-
from_emailstring -
from_namestring | nullnull: the project’ssettings.from_name.
-
idstring · uuid -
namestring -
project_idstring · uuidThe list’s project.
-
updated_atstring · date-timeThe latest change: creation, name, options, deletion.
-
next_cursorstring | nullPass as
cursorfor the next page;nullon the last page.
Definitions
FromOverride
The sender of a list’s own letters.
- object · all fields required
-
from_emailstring -
from_namestring | nullnull: the project’ssettings.from_name.
List
A mailing list of a project (create_list, get_list, update_list;
GET /api/v1/projects/{project_id}/lists/{list_id}).
- object · all fields required
-
confirmation_template_idstring · uuid | nullThe template of the confirmation letter;
null: none. -
created_atstring · date-time -
deleted_atstring · date-time | nullWhen the list was deleted;
nullwhile it is live. A deleted list can only be read. -
double_opt_inbooleanSubscribers confirm by a link before they get campaigns.
-
from_overrideFromOverride | nullThe sender of the list’s own letters;
null: the project’s.see FromOverride
-
idstring · uuid -
namestring -
project_idstring · uuidThe list’s project.
-
updated_atstring · date-timeThe latest change: creation, name, options, deletion.
Errors
A failed call answers isError: true with a code from the same table as the HTTP API, and detail. How tools report errors
HTTP API
The same operation over HTTP: GET /api/v1/projects/{project_id}/lists