DocumentationAPI Reference
DocumentationAPI Reference

Use the fields parameter to dynamically preset inquiry field values. In addition, fields will also prefill form values.

The fields value should be an object encoded as a string using a library like qs.

All attributes are optional. You only need to include keys for form fields you want prefilled. Individuals can still edit attributes after they're prefilled.

See Inquiry Fields for more information.

https://withpersona.com/verify?template-id=tmpl_JAZjHuAT738Q63BdgCuEJQre&fields[name-first]=Jane&fields[name-last]=Doe&fields[birthdate]=1957-05-29&fields[address-street-1]=132 Second St.&fields[address-city]=San Francisco&fields[address-subdivision]=California&fields[address-postal-code]=93441&fields[address-country-code]=US&fields[phone-number]=415-123-1234&fields[email-address][email protected]

🚧

Encoding passed values

The fields value should be an object encoded as a string using a library like qs.

If manually passing values, please be sure to make values URL-safe, e.g. with encodeURIComponent in JavaScript.

🚧

Phone numbers

Please ensure that phone numbers are properly formatted based on the number's country code. For example, US-based phone numbers should include the prefix +1.