Profiles / Profile API |
Use GET to return a JSON representation of a customer's profile. Profile attributes are found under the attributes key in the response.
Localytics also automatically collects and stores profile information about your customers. This information is available under the localytics key in the response.
If the profile does not exist, GET returns 404 Not Found.
GET /v1/profiles/:customer_id
GET https://profile.localytics.com/v1/profiles/Isa Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
GET /v1/apps/:app_id/profiles/:customer_id
GET https://profile.localytics.com/v1/apps/my_app/profiles/Isa Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
200 OK { "attributes": { "name": "Isa", "cats": ["Ofelia", "Mittens", "Spot", "Schrödinger"], "age": 30, "lucky numbers": [1, 48, -100, 13], "birthday": "1983-01-01" }, "localytics": { "attributes": { "country": "us", "city_name": "Boston", "last_session_date": "2015-01-15" } } }