Create NPI List With Attributes

An NPI list with attributes is an NPI list that appends a client's metadata to their list of NPIs. This endpoint allows a user to create an NPI list with attributes.

Endpoint

Method: POST

/v2/npi/npi-list/account/{accountId}/attributes

Path Parameter: the account ID you want to associate with the list you are creating.

Field List

NameData TypeRequiredNotes
attributeValuesArray of Array of StringsNoNeeds to have the same number of fields in each record that correspond to the attribute list
attributesArray of StringsNoNull values or empty strings are accepted
nameStringYes
npiColumnIndexNumericYesFirst attribute = 0. Mark where your NPI is in your list of attributes. This will be used for validation in the call.
applicationsString - ENUMYes[“LIFE”], [“SIGNAL”] or [‘SOCIAL”]
advertisersArray of StringsYesYou can make the list available to multiple advertisers

Sample Request

{
  "attributeValues": [
    ["1639137706", "yes", "NPI Targeted Banners", "PulsePoint Inc.", "123456"]
  ],
  "attributes": ["NPI_ID", "Active", "CampaignName", "CompanyName", "CustomID"],
  "name": "NPI_with_Attr",
  "npiColumnIndex": 0,
  "applications": ["LIFE"],
  "advertisers": ["Demo"]
}

Sample Response

{
    "attributes": [
        "NPI_ID",
        "Active",
        "CampaignName",
        "CompanyName",
        "CustomID"
    ],
    "attributeValues": [
        [
            "1639137706",
            "yes",
            "NPI Targeted Banners",
            "PulsePoint Inc.",
            "123456"
        ]
    ],
    "npiColumnIndex": 0,
    "name": "NPI_with_Attr",
    "npiGroupId": 70448,
    "applications": [
        "LIFE"
    ],
    "advertisers": [
        "Demo"
    ]
}

Validation/Errors


CodeDescription
400Invalid property name for post operation
400Invalid values for field "applications"
400npis is a required field
400Invalid NPI number
400NPI ID cannot exceed 10 characters
400advertisers is a required field
400>1M npis