To record the consent of many contacts at once, import it with your contacts file: name the consent column "suivi", then map it to the Email behavioral tracking consent field at the column mapping step. The consent date is updated automatically.
A Sarbacane account with access to Contacts.
A contacts file (preferably .csv, semicolon separator) with a consent column containing True or 1 for contacts who accept tracking, and False or 0 for those who refuse it.
Proof of consent for the contacts you set to "Active".
Important: name your consent column "suivi". A column whose header contains the word "email" (for example "Email behavioral tracking consent") is not picked up during the import, because "email" and "phone" are system columns. Your file must contain only one "email" column and one "phone" column.
Important: each import replaces the consent date with today's date, even if the value does not change. If you keep this date as proof, only import the contacts whose consent changes.
For a new list:
In Contacts, start importing your list.
Select your file and choose the Complete option.
At the column mapping step, map the "suivi" column to the Email behavioral tracking consent field.
Confirm the import.
For a list already in Sarbacane:
In Contacts, open the list.
At the top left, next to the list name, click the three dots, then export the list.

In your spreadsheet, rename the Email behavioral tracking consent column to "suivi", then update its values.
Reopen the list, click the three dots, then Add contacts.
Import your file with the Complete option, then map the "suivi" column to the Email behavioral tracking consent field.
Confirm the import.
Through the API: add the pixelOptin field to your contact creation or update request. The pixelOptinAt field does not need to be filled in: the date is set automatically. See the developer documentation.

The imported contacts show their status in the Email behavioral tracking consent column, with the import date.
Its header contains the word "email". Rename it "suivi" and start again.
Check that the "suivi" column was mapped to the consent field, and that its values are True or 1.
Check the exact field name: pixelOptin. Any other name (for example optinPixel) is ignored, without an error message.