Skip to main content
POST
cURL

Overview

The add entries method adds up to 100 records to a list in one request. Each record is identified either by its ID or by match criteria on the list’s object. Both forms can be mixed in one request. The request returns HTTP 200 whenever the body is valid, even if some records could not be added. Each item in data reports the outcome for one record, in request order: No records are created. Re-adding a record that is already in the list has no effect, so the request is safe to retry.

Examples

This adds one person by ID and one by email to a person list:

Usage

match works the same way as the request body of find unique record. It must include at least one unique attribute of the list’s object, such as email for a person or domain for a company. The request fails as a whole only when:
  • The body is malformed, including a record listed twice or a match that is not valid for the list’s object (HTTP 400)
  • The list does not exist (HTTP 404)
  • The caller does not have manage access to the list (HTTP 403)

Authorizations

x-api-key
string
header
required

Path Parameters

list_id
string
required

ID of the list. String UUIDv4 value.

Body

application/json

Request body for adding records to a list.

A match that finds no record is reported as record_not_found; no record is created. A match that is not valid for the list's object fails the request with HTTP 400.

Records are applied in request order: when two records resolve to the same record (such as an ID and a match for that record), the later one is reported as already_in_list.

records
object[]
required

Records to add, at most 100 per request. Each record must appear only once in the request.

Required array length: 1 - 100 elements

Identifies a record to add to or remove from a list, either by ID or by match criteria. Both forms can be mixed in one request.

Response

Response for an add request. Returned with HTTP 200 whenever the request itself was valid, even if some or all records could not be added; inspect summary and each item's status for per-record outcomes.

Response for an add request. Returned with HTTP 200 whenever the request itself was valid, even if some or all records could not be added; inspect summary and each item's status for per-record outcomes.

status
enum<string>
required
Available options:
success
data
object[]
required

One result per requested record, in request order.

The record was added to the list.

summary
object
required

Counts of add outcomes by status. total equals the number of records in the request and the sum of the other counts.