Skip to Content
Mutation APIFetching a customer profile

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.
date_of_birthStringLists the date of birth of the customer. Format: Y-m-d.
emailStringEmail addresses of the customer.
phoneStringPhone number of the customer.
reference_id StringLists the reference_id of the customer.
tags ArrayLists tags of the customer.
segments ArrayLists the segment the customer is in.
GET: https://customers.prepr.io/me?fields=custom,emails,tags
{ "id" : "234h-432847-x23498-763x4-324x234", "first_name": "Jhon", "last_name": "Doe", "date_of_birth": "2000-12-01", "email": "jhon.doe@gmail.com", "phone": "31612345678", "tags": { "items": [ { "body": "Amsterdam" } ] } }
Last updated on