Create address book

The CreateAddressBook method creates an address book in your dotMailer account.

This method can be used when you need to create an address book on the fly instead of having to rely on an address book which already exists within the dotMailer system.


Guidance Notes

The name cannot be the name of an already existing address book or one of the reserved address books such as Test or All contacts.


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
book book This is an address book object; it includes an ID (integer) and a name (string). Only the name is required as the ID will be automatically generated for you upon creation. partially required

Return values

book book This is an address book object; it includes the generated ID (integer) and the name (string) provided.

Error responses

  • ERROR_ADDRESSBOOK_DUPLICATE
  • ERROR_ADDRESSBOOK_INVALID
  • ERROR_ADDRESSBOOK_LIMITEXCEEDED
  • ERROR_APIUSAGE_EXCEEDED
  • ERROR_INVALID_LOGIN
  • ERROR_PARAMETER_INVALID
  • ERROR_SYSTEM_SERVICETEMPORARILYUNAVAILABLE
  • ERROR_UNKNOWN

Request

Example of use in C# .NET

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