Skip to content

Create contact list

If you have questions regarding this API, please visit our API FAQ page.

Creating a contact list

Make a POST request to https://webapi.inboxroad.com/api/v2/contacts-lists/ with a valid X-API-Key.

Terminal window
curl -X POST 'https://webapi.inboxroad.com/api/v2/contacts-lists/' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json' \
-d '{
"label": "Newsletter Subscribers",
"color": "#7cb7de",
"description": "Main newsletter contact list"
}'

Request fields

Field nameRequiredDescription
labelYesHuman-readable name shown in dashboards.
colorYesHex color from the allowed palette (see below).
descriptionNoDescription of the list.
unsub_success_redirect_urlNoURL recipients are redirected to after a successful unsubscribe.
unsub_failed_redirect_urlNoURL recipients are redirected to if the unsubscribe link fails.
send_welcome_emailNoWhether to send a welcome email to new contacts. Default false.
welcome_email_subjectNoSubject of the welcome email.
welcome_email_template_idNoTemplate id (UUID) used for the welcome email.
welcome_sender_profile_idNoSender profile id (UUID) used for the welcome email.

Allowed colors

color must be one of the following palette values:

#cc9ccb #f0f080 #ecd12d #dadabc #7cb7de #b6d8d5
#065358 #dbe3b4 #c1cceb #944c6d #f7819b #f9c8cb

Example request

{
"label": "Newsletter Subscribers",
"color": "#7cb7de",
"description": "Main newsletter contact list",
"send_welcome_email": false
}

Response

On success the API returns 200 with the created list, including its field schema in sorted_fields. See Get contact list for the full response shape and a description of the field schema object.

{
"id": "0fd3d5b4-1c0a-4e91-8a4f-0f17dc6dc5ab",
"label": "Newsletter Subscribers",
"color": "#7cb7de",
"description": "Main newsletter contact list",
"unsub_success_redirect_url": null,
"unsub_failed_redirect_url": null,
"sorted_fields": [
{
"id": "b1f3c0a2-1111-4e91-8a4f-0f17dc6dc5ab",
"label": "Email",
"column_name": "email",
"data_type": "EMAIL",
"required": true,
"unique": true,
"default": null,
"choices": null,
"max_length": 150,
"read_only": false,
"pattern": null
}
],
"integration_id": null,
"contacts_import_task_id": null,
"send_welcome_email": false,
"welcome_email_subject": null,
"welcome_email_template_id": null,
"welcome_sender_profile_id": null
}

Possible response codes

Status codeDescription
200Contact list created successfully.
400Invalid request data (e.g. missing label/color, or color not in the palette).
401Unauthorized.