List documents

The ListDocuments method returns a list of documents in a specific folder.

The available folders to list can be obtained using GetDocumentFolders.

Parameters

username string This is the username from your API key. It is in the format of an email address and will look similar to apiuser‑908709770324@apiconnector.com required
password string This is the password from your API key. required
parentFolderId int The identifier for the folder you wish to list the documents of. required

Return values

The response is an array of APIDocument objects each consisting of:
id integer The identifier for document.
name string The name of the document.
fileName string The filename for the document.
fileSize int The filesize of the document.
dateCreated dateTime The date and time the document was added to the system.
dateModified dateTime The date and time the document was last modified in the system.

Error responses

  • ERROR_APIUSAGE_EXCEEDED
  • ERROR_DOCUMENT_PARENTFOLDERDOESNOTEXIST
  • ERROR_INVALID_LOGIN
  • ERROR_SYSTEM_SERVICETEMPORARILYUNAVAILABLE
  • ERROR_UNKNOWN

Request

Sample request

Sample response

Get started with dotMailer:

Small & Medium businesses Large businesses
Call the team on 0845 337 9170
What our clients say:

“dotMailer has changed our complete marketing process for the better. It's one of the easiest apps I have used and allows us to do things we have only dreamed of before."

Amberley Shermon, Cazenove+Loyd