NGP VAN

App · 25 actions

Find, create and update people, apply activist codes, record survey responses and notes, and manage event signups in NGP VAN (EveryAction).

Actions

ActionWhat it does
Add a note to a personAdd a free-text note to a person.
Apply an activist codeApply an activist code to a person.
Delete a signupDelete a signup.
Find a personLook for one person by name and email, phone, date of birth or address.
Find or create a personFind a person, updating them with what you give, or create them if no one matches.
Get a personGet a person with their emails, phones and addresses.
Get a survey questionGet a survey question and its possible answers.
Get an eventGet an event with its shifts, roles and locations.
Get the API key's detailsGet the database, committee and user the API key works in.
List a person's notesList the notes on a person.
List activist codesList the activist codes available in this database.
List codesList the codes (tags and sources) available in this database.
List contact typesList the ways a person can be reached, such as Phone or Walk.
List eventsList events, optionally by type or start date.
List note categoriesList the categories notes can have.
List result codesList the results a contact attempt can have, such as Not Home.
List signup statusesList the statuses a signup for an event can have.
List signupsList the signups for an event, or a person's signups across events.
List survey questionsList the survey questions available in this database.
Record a contact attemptRecord a contact attempt that didn't reach the person, such as Not Home or Wrong Number.
Record a survey responseRecord a person's answer to a survey question.
Remove an activist codeTake an activist code off a person.
Sign a person up for an eventSign a person up for an event shift and role, or change their existing signup's status.
Suppress a personSuppress a person's record, in databases where records can be suppressed.
Update a personAdd or change details on a person.

Add a note to a person

Add a free-text note to a person.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
NotetexttextRequired
The note's text.
Restrictedis_view_restrictedtrue/false
Whether only some users in this database can see the note. Visible to everyone if left empty.
Categorynote_category_idnumber
The note's category.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Apply an activist code

Apply an activist code to a person.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
Activist codeactivist_code_idnumberRequired
The activist code to apply.
Skip contact historyskip_contact_historytrue/false
Whether to apply the code without recording a contact attempt.Default: true.
Contact typecontact_type_idnumber
How the person was reached, such as phone or walk.
Datedate_canvasseddate
The day of the contact. Today if left empty.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Delete a signup

Delete a signup. This can't be undone and isn't shown in VAN's history; changing its status is usually better.

Inputs

Signup IDevent_signup_idnumberRequired
The ID of the signup to delete.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Find a person

Look for one person by name and email, phone, date of birth or address. Nothing is created or changed.

Inputs

First namefirst_nametext
The person's first name.
Last namelast_nametext
The person's last name.
Emailemailtext
The person's email address.
Phonephonetext
The person's phone number.
Date of birthdate_of_birthdate
The person's date of birth.
Street addressaddress_line1text
The first line of the person's street address.
Citycitytext
The city of the person's address.
Statestatetext
The two or three letter state or province code, such as MN.
ZIP codeziptext
The ZIP or postal code.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "status": "example",
    "vanId": 1
  }
}

Find or create a person

Find a person, updating them with what you give, or create them if no one matches.

Inputs

First namefirst_nametext
The person's first name.
Last namelast_nametext
The person's last name.
Emailemailtext
The person's email address.
Phonephonetext
The person's phone number.
Date of birthdate_of_birthdate
The person's date of birth.
Street addressaddress_line1text
The first line of the person's street address.
Citycitytext
The city of the person's address.
Statestatetext
The two or three letter state or province code, such as MN.
ZIP codeziptext
The ZIP or postal code.
Middle namemiddle_nametext
The person's middle name.
Email typeemail_typetext
P for personal, W for work or O for other. Personal if left empty.One of: P, W, O.
Email subscriptionemail_subscriptiontext
S for subscribed, N for neutral or U for unsubscribed, for targeted email.One of: S, N, U.
Phone typephone_typetext
H for home, W for work, C for cell, M for main or F for fax.One of: H, W, C, M, F.
Phone opt-inphone_opt_intext
I for opted in, U for unknown or O for opted out of texts.One of: I, U, O.
Address typeaddress_typetext
The kind of address.One of: Mailing, Home, Voting, Work.
Employeremployertext
Where the person works.
Occupationoccupationtext
What the person does, such as teacher.
Sexsextext
M or F.One of: M, F.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "status": "example",
    "vanId": 1
  }
}

Get a person

Get a person with their emails, phones and addresses.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "addresses": [],
    "contactMode": "example",
    "dateOfBirth": "example",
    "emails": [],
    "employer": "example",
    "firstName": "example",
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "nickname": "example",
    "occupation": "example",
    "party": "example",
    "phones": [],
    "sex": "example",
    "suffix": "example",
    "title": "example",
    "vanId": 1
  }
}

Get a survey question

Get a survey question and its possible answers.

Inputs

Survey questionsurvey_question_idnumberRequired
The survey question.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "cycle": 1,
    "mediumName": "example",
    "name": "example",
    "responses": [],
    "scriptQuestion": "example",
    "shortName": "example",
    "status": "example",
    "surveyQuestionId": 1,
    "type": "example"
  }
}

Get an event

Get an event with its shifts, roles and locations.

Inputs

Eventevent_idnumberRequired
The event.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "codes": [],
    "createdDate": "example",
    "description": "example",
    "districtFieldValue": "example",
    "endDate": "example",
    "eventId": 1,
    "eventType": {
      "eventTypeId": 1,
      "name": "example"
    },
    "isOnlyEditableByCreatingUser": false,
    "isPubliclyViewable": "example",
    "locations": [],
    "name": "example",
    "notes": "example",
    "roles": [],
    "shifts": [],
    "shortName": "example",
    "startDate": "example",
    "voterRegistrationBatches": "example"
  }
}

Get the API key's details

Get the database, committee and user the API key works in.

Inputs

None.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

List a person's notes

List the notes on a person.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
Limittopnumber
How many notes to return, at most 50.From 1 to 50.
Skipskipnumber
How many notes to skip, for paging. Starts at 0.At least 0.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

List activist codes

List the activist codes available in this database.

Inputs

Statusesstatuseslist
Only codes with these statuses. Active if left empty.One or more of: Active, Archived, Inactive.
Name starts withnametext
Only codes whose name starts with this.
Typetypetext
Only codes of this type, such as Volunteer.
Limittopnumber
How many activist codes to return, at most 200.From 1 to 200.
Skipskipnumber
How many activist codes to skip, for paging. Starts at 0.At least 0.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

List codes

List the codes (tags and sources) available in this database.

Inputs

Name containsnametext
Only codes whose name contains this.
Code typecode_typetext
Only codes of this type, such as Tag.
Limittopnumber
How many codes to return, at most 200.From 1 to 200.
Skipskipnumber
How many codes to skip, for paging. Starts at 0.At least 0.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

List contact types

List the ways a person can be reached, such as Phone or Walk.

Inputs

None.

Outputs

datalist
The response from NGP VAN.
Example output
{
  "data": []
}

List events

List events, optionally by type or start date.

Inputs

Starting afterstarting_afterdate
Only events starting after this date.
Starting beforestarting_beforedate
Only events starting before this date.
Event type IDsevent_type_idslist
Only events of these types.
Limittopnumber
How many events to return, at most 50.From 1 to 50.
Skipskipnumber
How many events to skip, for paging. Starts at 0.At least 0.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

List note categories

List the categories notes can have.

Inputs

None.

Outputs

datalist
The response from NGP VAN.
Example output
{
  "data": []
}

List result codes

List the results a contact attempt can have, such as Not Home.

Inputs

None.

Outputs

datalist
The response from NGP VAN.
Example output
{
  "data": []
}

List signup statuses

List the statuses a signup for an event can have.

Inputs

Eventevent_idnumberRequired
The event.

Outputs

datalist
The response from NGP VAN.
Example output
{
  "data": []
}

List signups

List the signups for an event, or a person's signups across events.

Inputs

Eventevent_idnumber
The event whose signups to list.
VAN IDvan_idnumber
The person whose signups to list.
Limittopnumber
How many signups to return, at most 200.From 1 to 200.
Skipskipnumber
How many signups to skip, for paging. Starts at 0.At least 0.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

List survey questions

List the survey questions available in this database.

Inputs

Statusesstatuseslist
Only questions with these statuses. Active if left empty.One or more of: Active, Archived, Inactive.
Name starts withnametext
Only questions whose name starts with this.
Cyclecyclenumber
Only questions for this election year, such as 2026.At least 1900.
Limittopnumber
How many survey questions to return, at most 200.From 1 to 200.
Skipskipnumber
How many survey questions to skip, for paging. Starts at 0.At least 0.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "count": 1,
    "items": [],
    "nextPageLink": "example"
  }
}

Record a contact attempt

Record a contact attempt that didn't reach the person, such as Not Home or Wrong Number.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
Resultresult_code_idnumberRequired
What happened, such as Not Home.
Contact typecontact_type_idnumber
How the person was reached, such as phone or walk.
Datedate_canvasseddate
The day of the contact. Today if left empty.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Record a survey response

Record a person's answer to a survey question.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
Survey questionsurvey_question_idnumberRequired
The survey question.
Answersurvey_response_idnumberRequired
The person's answer.
Contact typecontact_type_idnumber
How the person was reached, such as phone or walk.
Datedate_canvasseddate
The day of the contact. Today if left empty.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Remove an activist code

Take an activist code off a person.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
Activist codeactivist_code_idnumberRequired
The activist code to remove.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Sign a person up for an event

Sign a person up for an event shift and role, or change their existing signup's status.

Inputs

VAN IDvan_idnumberRequired
The person's VAN ID.
Eventevent_idnumberRequired
The event.
Shift IDevent_shift_idnumberRequired
The ID of the event's shift, from Get an event.
Role IDrole_idnumberRequired
The ID of the person's role at the event, such as host, from Get an event.
Statusstatus_idnumberRequired
The signup's status, such as Scheduled.
Location IDlocation_idnumber
The ID of the event location, from Get an event, if the event has several.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "eventSignupId": 1
  }
}

Suppress a person

Suppress a person's record, in databases where records can be suppressed.

Inputs

VAN IDvan_idnumberRequired
The VAN ID of the person to suppress.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {}
}

Update a person

Add or change details on a person. Emails, phones and addresses you give are added to theirs.

Inputs

VAN IDvan_idnumberRequired
The VAN ID of the person to update.
First namefirst_nametext
The person's first name.
Last namelast_nametext
The person's last name.
Emailemailtext
The person's email address.
Phonephonetext
The person's phone number.
Date of birthdate_of_birthdate
The person's date of birth.
Street addressaddress_line1text
The first line of the person's street address.
Citycitytext
The city of the person's address.
Statestatetext
The two or three letter state or province code, such as MN.
ZIP codeziptext
The ZIP or postal code.
Middle namemiddle_nametext
The person's middle name.
Email typeemail_typetext
P for personal, W for work or O for other. Personal if left empty.One of: P, W, O.
Email subscriptionemail_subscriptiontext
S for subscribed, N for neutral or U for unsubscribed, for targeted email.One of: S, N, U.
Phone typephone_typetext
H for home, W for work, C for cell, M for main or F for fax.One of: H, W, C, M, F.
Phone opt-inphone_opt_intext
I for opted in, U for unknown or O for opted out of texts.One of: I, U, O.
Address typeaddress_typetext
The kind of address.One of: Mailing, Home, Voting, Work.
Employeremployertext
Where the person works.
Occupationoccupationtext
What the person does, such as teacher.
Sexsextext
M or F.One of: M, F.

Outputs

dataobject
The response from NGP VAN.
Example output
{
  "data": {
    "status": "example",
    "vanId": 1
  }
}

On this page