Core API Documentation
Account People
GET /api/v2/account/people
Returns all the person objects for the Pike13 account specified by the current access token. This is very useful if you are building an app that self-discovers which Pike13 businesses a user is tied to. You can authenticate them against pike13.com and then request the People for their account, presumably to then have the user select a business and perform some action within your app.
This endpoint is only accessible without a business subdomain (that is, the host must be pike13.com) and requires an access token granted to pike13.com.
REQUEST
$ curl https://pike13.com/api/v2/account/people \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"people": [
{
"id": 1,
"name": "John Staff",
"first_name": "John",
"middle_name": null,
"last_name": "Staff",
"email": "johnstaff@example.com",
"address": "400 Broad St, Seattle, WA 98109",
"secondary_info_field": "Unlimited Membership",
"birthdate": "1980-01-01",
"profile_photo": {
"x50": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x50.jpg",
"x100": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x100.jpg",
"x200": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x200.jpg",
"x400": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x400.jpg"
},
"custom_fields": [
{
"id": 1,
"custom_field_id": 5,
"name": "Favorite Color",
"value": "blue"
}
],
"business_id": 1,
"location_id": 2,
"business_name": "MyBiz",
"subdomain": "apisub",
"role": "manager",
"is_client": true
}
]
}