GET/api/v1/projects/{project_id}/lists/{list_id}
get_list
Reads one mailing list: its name, double opt-in, confirmation template and sender.
- Call it
- to check a list before adding subscribers or sending to it, or whether it is deleted.
- Needs
- the list’s id and an admin key with
project_id, or a project key with scoperead(its own project; the argument is ignored; another project’s list isnot_found). - Returns
- the list (
deleted_atis set once it is deleted), the same asGET /api/v1/projects/{project_id}/lists/{list_id}.
Arguments
- object
-
list_idstring · uuidrequiredThe list’s id, as
create_listorlist_listsgave it. -
project_idstring · uuid | nullThe list’s project. 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
-
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.
Definitions
FromOverride
The sender of a list’s own letters.
- object · all fields required
-
from_emailstring -
from_namestring | nullnull: the project’ssettings.from_name.
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/{list_id}