Fetching a customer profile

After a customer signs in, you can query the customer profile using the following endpoint.

GET: https://customers.prepr.io/customers/me

Customer object

To expand the customer object when querying a customer profile, add the following field names to the fields parameter.

Fields

field nametypedescription
idString-
first_nameStringLists the first name of the customer.
last_nameStringLists the last name of the customer.
genderStringLists the gender of the customer. Options: male, female, other.
date_of_birthStringLists the date of birth of the customer. Format: Y-m-d.
sourceStringCustom parameter to add a register source.
emailsArrayLists email addresses of the customer.
custom ArrayLists the custom properties of the customer.
reference_id StringLists the reference_id of the customer.
company StringLists the company of the customer.
job_title StringLists the job title of the customer.
tags ArrayLists tags of the customer.
terms ArrayLists the accepted terms by the customer.
segments ArrayLists the segment the customer is in.
profile_photo ArrayProfile photo if the customer has added one.
GET: https://customers.prepr.io/customers/me?fields=custom,emails,tags,terms
{
    "id" : "234h-432847-x23498-763x4-324x234",
    "first_name": "Jhon",
    "last_name": "Doe",
    "date_of_birth": "2000-12-01",
    "company": "Prepr.io",
    "job_title": "Developer",
    "gender": "male",
    "source" : "ios app",
    "custom" : {
        "paid" : true
    },
    "emails": {
        "items": [
            {
                "email": "jhon.doe@gmail.com"
            }
        ]
    },
    "tags": {
        "items": [
            {
                "body": "Amsterdam"
            }
        ]
    },
    "terms": {
        "items": [
            {
                "id": "789asd-sad7asd8-asd8as7d8-2331"
            }
        ]
    }
}