Lists

Add profiles to a list

POST/lists/{id}/profiles

Up to 1,000 profiles per request, each named by id or email. Adding is idempotent. A reference that matches no profile of the account is reported at its index (not_found) and never fails the others. A person who unsubscribed from this list is not added again (unsubscribed at its index). Adding to a list does not change anyone's consent: membership is not permission to email.

Permission: lists:write · on the API key screen: Lists → Full access · All permissions

Path parameters

  • idstringrequired

    The id of the list.

Body parameters

  • profilesobject[]required

    At most 1000 items.

    Show properties
    • idstring

      At most 2,000 characters.

    • external_idstring

      At least 1 characters. At most 255 characters.

    • emailstring

      At most 254 characters.

Response

  • changednumberrequired
  • not_foundnumberrequired
  • unsubscribednumberrequired

    Profiles that were NOT added because the person unsubscribed from this list. Always 0 when removing.

  • resultsobject[]required

    At most 1000 items.

    Show properties
    • indexnumberrequired
    • statusstringrequired

      One of: ok not_found invalid unsubscribed

      At most 2,000 characters.

    • profile_idstring | nullrequired

      At most 2,000 characters.