Accounts Tutorials

Account creation

Accounts can also be created without an Inquiry, either manually in your Persona dashboard or via the API.

Reference IDs are unique across accounts in Persona as they should map back to your users. We recommend using your internal user ID as the reference ID.

curl
1API_KEY=YOUR_API_KEY_HERE
2curl -X POST -H 'Content-Type: application/json' -H "Authorization: Bearer $API_KEY" -d'{
3 "data": {
4 "type": "account",
5 "attributes": {
6 "reference-id": REFERENCE_ID
7 }
8 }
9}' https://api.withpersona.com/api/v1/accounts

Creating an Account via Inquiry creation

To create a new inquiry. associated with an account you can use either that account ID or the reference ID associated with that account combined with the template you’d like to use.

curl
1API_KEY=YOUR_API_KEY_HERE
2curl -X POST -H 'Content-Type: application/json' -H "Authorization: Bearer $API_KEY" -d'{
3 "data": {
4 "type": "inquiry",
5 "attributes": {
6 "inquiry-template-id": YOUR_TEMPLATE_ID,
7 "account-id": ACCOUNT_ID
8 }
9 }
10}' https://api.withpersona.com/api/v1/inquiries

Importing Accounts

If you would like to import many accounts at once into Persona, you can upload a CSV of your account data. Note: this type of upload does not support images at this time.

The information we support during bulk import are:

  • reference_id
  • name_first
  • name_middle
  • name_last
  • birthdate
  • social_security_number
  • tags
curl
1API_KEY=YOUR_API_KEY_HERE
2FILE_PATH=CSV_FILE_PATH
3curl -X POST -H 'Content-Type: application/json' -H "Authorization: Bearer $API_KEY" -d'{
4 "data": {
5 "type": "importer",
6 "attributes": {
7 "file": { "data": "'"$(base64 $FILE_PATH)"'", "filename": "$FILE_PATH" }
8 }
9 }
10}' https://api.withpersona.com/api/v1/importer/accounts