Skip to content

Configuration

DropNow reads one JSON file, dropnow.config.json in the current folder by default. dropnow init creates a starter one. Use -c to point at another file:

Terminal window
dropnow -c /etc/dropnow/config.json status

Secrets come from the environment, never from the config file.

Variable What it is
DROPNOW_API_KEY Your DROP API key. Sandbox and production keys are different.
DROPNOW_PG_URL Postgres connection string, if you use the Postgres store and do not set connectionString.
Field Required What it is
dataBrokerId Yes Your 4-digit DROP Data Broker ID. Used in upload file names.
environment Yes "sandbox" or "production".
stateDir No Folder for downloads, results and the audit log. Default .dropnow.
store Yes Where your consumer records live. See below.
apiBaseUrl No For testing only. Sends DROP requests, including your API key, to another address, such as a mock DROP server. Leave it out for real use; DropNow prints a note whenever it is set.

Keep stateDir somewhere durable and backed up. It holds the audit log and the record of what has been reported.

You tell DropNow how to read your records and how to act on one consumer, in SQL. It never guesses at your schema.

{
"dataBrokerId": "4821",
"environment": "sandbox",
"store": {
"type": "postgres",
"selectSql": "SELECT p.id AS key, p.first_name, p.last_name, p.birth_date AS dob, p.postal_code AS zip, e.email, ph.phone FROM people p LEFT JOIN emails e ON e.person_id = p.id LEFT JOIN phones ph ON ph.person_id = p.id",
"deleteSql": "DELETE FROM people WHERE id = $1",
"optOutSql": "UPDATE people SET do_not_sell = true WHERE id = $1",
"exemptSql": "SELECT fcra_covered AS exempt FROM people WHERE id = $1"
}
}
Field Required What it is
selectSql Yes A SELECT that returns your consumers. Column names matter; see the table below.
deleteSql Yes Run once per consumer to delete, with $1 set to the consumer’s key. Should remove all non-exempt personal information.
optOutSql Yes Run once per consumer to opt out of sale and sharing, with $1 set to the key.
exemptSql No Returns one row with a boolean column exempt. If true, the consumer is reported as Exempted and left alone.
batchSize No Rows fetched per round trip. Default 5000.
connectionString No Postgres connection string. If set, it is used instead of DROPNOW_PG_URL. Prefer the environment variable, so the password stays out of the file.

Alias your own columns to these names. Leave out the ones you do not hold.

Column Used for
key Required. Your stable id for the consumer. Passed back as $1.
first_name, last_name Name + date of birth + ZIP list, and name + VIN list
dob Date of birth. A DATE or text column, not a timestamp.
zip ZIP or postal code
email Email list
phone Phone list
maid Mobile advertising ID list
vin Vehicle identification number
ctvid Connected TV identifier list

A consumer with several emails or phone numbers can appear in several rows with the same key. DropNow treats those rows as one consumer.

The read happens in a read-only transaction. Give the database user used for match only SELECT rights if you want to be certain.

For a CSV export. A CSV file is not your system of record, so DropNow does not change it. It writes the deletions and opt-outs to an actions file for you to apply upstream.

{
"dataBrokerId": "4821",
"environment": "sandbox",
"store": {
"type": "csv",
"path": "exports/consumers.csv",
"keyColumn": "customer_id",
"columns": { "email": "Email Address", "phone": "Phone", "firstName": "First", "lastName": "Last", "dob": "DOB", "zip": "Zip" },
"actionsOut": "exports/drop-actions.csv"
}
}
Field Required What it is
path Yes The CSV file, with a header row.
keyColumn No Column holding the consumer’s id. Defaults to the row number.
columns Yes Maps firstName, lastName, dob, zip, email, phone, maid, vin, ctvid to your column names.
actionsOut Yes File that receives one key,delete or key,opt_out line per consumer. Lines are added to the end; the file is never cleared.

The CSV store has no exemption check, so a match with exactly one consumer is always reported as Deleted. Use the Postgres store if some of your consumers are exempt.

You do not need to clean your data first. DropNow standardizes each value the way DROP does before hashing. See Hashing and formatting rules.

Dates of birth can be a Postgres DATE, or text as YYYY-MM-DD, YYYY/MM/DD, YYYYMMDD or MM/DD/YYYY. A date in any other form, such as July 4, 1985, is treated as missing, so that consumer cannot match the NDZ list. The same goes for a value that fails DROP’s rules, such as a MAID that is not 32 hexadecimal characters.