Skip to main content

Concept

Request modifiers

A small set of top-level dials shape what comes back from any data-platform endpoint: whether records need a phone, whether DNC is included, which fields are returned, and how many rows per page.

Phone presence and type

Set phones to require or forbid a phone on every returned record. phone_type further narrows the kind of phone that satisfies the requirement.

parametervalueseffect
phones"all" | "none"Require ("all") or exclude ("none") records with a phone. Omit for either.
phone_typelandline | wireless | wireless_priority | landline_priorityRestrict (or prefer) one type. Priority variants return the preferred type if present, falling back to the other.

Business has one phone per record, typed against carrier data. Wireless means the number is in a carrier wireless block or was ported to wireless. Landline means any other valid US number, so it can include VoIP and numbers the carrier tables don't cover.

Wireless phones, prefer mobile
{
  "data_source_id": 4,
  "filters": [{ "field": "state", "values": ["TX"] }],
  "phones": "all",
  "phone_type": "wireless_priority"
}

Email presence

Mirror of the phone modifier. emails: "all" requires an email on every record; "none" excludes records with one. There's no email-type subselector. VIA stores a single best email per record.

DNC handling

dnc is a boolean that defaults to false, meaning DNC-listed records are included by default. Pass true to suppress DNC records from the result. This is the only modifier whose default action is the more permissive one; if you're calling for marketing outreach, set it explicitly.

When phones are required, a record whose phone is on the DNC list is dropped. When they aren't, the record is kept and its DNC numbers come back blank in any phone column you ask for, so counts and records stay in step.

Accounts that enforce the DNC scrub always get it on queries, counts and lists, whatever dnc says.

Contact limits

Audiences can cap how many phones or emails come back per household (consumer data sources) or per business (B2B data sources). Set phone_limit or email_limit on a segment's settings, or at the top level of an audience without segments. A limit only applies while the matching channel is "all".

parametervalueseffect
phone_limitinteger 1 to 999 | nullKeep at most this many phone records per household or business. Phones are kept in phone rank order for the chosen phone_type where the data source ranks phones. Null removes the cap.
email_limitinteger 1 to 999 | nullKeep at most this many email records per household or business, in email level order. Null removes the cap.

Limits apply after the segment's own deduplication, so a limit under a one-per-address dedupe has no effect. When one segment sets both limits, the smaller one applies to that segment's records. Contact limits are not accepted on /data/count, /data/query, or /count_requests.

Two phones per household
{
  "name": "Texas telemarketing",
  "data_source_id": 4,
  "audience_type": "telemarketing",
  "segments": [
    {
      "id": "1",
      "name": "Segment 1",
      "settings": {
        "select_type": "name_address_zip",
        "phones": "all",
        "phone_type": "landline_priority",
        "dnc": true,
        "phone_limit": 2
      }
    }
  ],
  "filters": [{ "field": "state", "values": ["TX"], "segment_id": "1" }]
}

Output fields

On POST /api/v1/data/query, the output_field_keys parameter controls which columns come back. It's a flat array of field key strings, the same keys you'd use in a filter. Omit it (or pass an empty array) to receive a count without the records.

Return name + address + estimated age
{
  "data_source_id": 4,
  "filters": [{ "field": "state", "values": ["TX"] }],
  "output_field_keys": ["first", "last", "address", "est_age"]
}

Nested objects and dotted paths aren't supported. Flatten any related fields by their direct key on the data source. Use GET /api/v1/data_sources/:id to see which keys a source exposes.

Pagination

For /data/query, pagination is offset-based with limit and offset. The default limit is 50; the maximum per call is also 50. For bulk extracts, use POST /api/v1/lists instead. It materialises the full result as a downloadable file.

Page 3 (records 100–149)
{
  "data_source_id": 4,
  "filters": [{ "field": "state", "values": ["TX"] }],
  "output_field_keys": ["first", "last", "email"],
  "limit": 50,
  "offset": 100
}

Used by