Profile Search
The searchProfile
query can be used by partners to search its set of users by a given email address. In addition, get the information of the meal plan generated for that specific user.
Required Argument
Argument
Type
Description
email
string
User's profile email
Available fields
The following fields will be returned in the response
Field name
Type
Description
id
string
Profile ID
programName
string
Name of the program
userId
string
Id of the user who is related to the profile
basalMetabolicRate
Int
Basal Metabolic Rate calculated with the Harris–Benedict equation.
caloricDifference
Int
Caloric Difference between the daily caloric intake goal and the totally daily energy expenditure
dailyCaloricIntakeGoal
Int
The recommended daily calorie intake
{
searchProfile(email: "user@company.com") {
id
userId
programName
basalMetabolicRate
caloricDifference
dailyCaloricIntakeGoal
mealPlan {
id
day
date
meals {
recipe {
id
name
}
meal
calories
}
}
}
}
{
"data": {
"searchProfile": {
"id": "f9ac8d47-c573-4dd4-9c13-365eb1feacff",
"userId": "6b64c7c1-c612-4253-9560-b42e3b317fbe",
"programName": "Balanced Diet",
"basalMetabolicRate": 1466,
"caloricDifference": 0,
"dailyCaloricIntakeGoal": 2199,
"mealPlan": [
{
"id": "TWVhbFBsYW5EYXk6YjY2YWExNmItYTJmMi00OTM0LTkxZGItNTdmMjk1MjJkYzVj",
"day": 7,
"date": "2022-04-28 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOmNmZTk4YjQ3LWFjY2UtNDZlNi1hNWQ3LTFiOTk5ZDIxNzUwNw==",
"name": "Mexican-Spiced Tofu Scramble"
},
"meal": "breakfast",
"calories": 582.850409456654
},
{
"recipe": {
"id": "UmVjaXBlOjc1NTc3MWZjLWQyYzItNDU1Ny1iZGFkLWNlNTc0YTk4ZGQ0Nw==",
"name": "Arugula Cannellini Beans Salad Recipes"
},
"meal": "lunch",
"calories": 830.597746296156
},
{
"recipe": {
"id": "UmVjaXBlOmI5NmMxMmExLWU1Y2EtNDI2MS1hZjUzLWY0MGMxY2ZhNDBiMg==",
"name": "Frozen Coconut Mango Pineapple"
},
"meal": "snack",
"calories": 274.758160347729
},
{
"recipe": {
"id": "UmVjaXBlOmNjNjkwYTU1LTZjOTgtNDRhMy1hYTdlLTM5ZmIxYTY3OGVlMQ==",
"name": "Braised Tofu"
},
"meal": "dinner",
"calories": 683.00996442
}
]
},
{
"id": "TWVhbFBsYW5EYXk6ZDI5MzkyMjgtZjA2Yy00YzJmLWI4MDItMDE4ZTgyNDRiZDE1",
"day": 6,
"date": "2022-04-27 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjEyZWZlYzIzLWM2NTItNDdhMy05OTFhLTQyM2FkODMxMzQzMQ==",
"name": "Poached Eggs With Avocado"
},
"meal": "breakfast",
"calories": 585.8494
},
{
"recipe": {
"id": "UmVjaXBlOmU4ODM4ZDcwLTQ0NmMtNGNkZS1hY2E3LWVmMjk5NzcxZWM3Yw==",
"name": "Zucchini Ribbon Pesto Salad"
},
"meal": "lunch",
"calories": 540.885
},
{
"recipe": {
"id": "UmVjaXBlOjNkZDQxYWFhLWVhZmYtNDIwZS1iOGYxLTE3MWViNTY5ZmZiOA==",
"name": "Refreshing Red Berry Smoothie"
},
"meal": "snack",
"calories": 223.376733333333
},
{
"recipe": {
"id": "UmVjaXBlOjcwMDA3MjgyLTAwODgtNGQwZS1iNzc0LTc3YzFlOTYwODZjNQ==",
"name": "Easy Lentil Burgers Recipes"
},
"meal": "dinner",
"calories": 842.635124998741
}
]
},
{
"id": "TWVhbFBsYW5EYXk6YzU0ZmNlZTgtYWRhMi00NTZkLTg1NzQtMDg1YzJiODJkMzM0",
"day": 5,
"date": "2022-04-26 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjA4NTVmNDQ0LTMzZWEtNDkxMC05MGYxLTEzZmZlZTcxZDRkOQ==",
"name": "Basic Scrambled Tempeh"
},
"meal": "breakfast",
"calories": 684.95914232305
},
{
"recipe": {
"id": "UmVjaXBlOmM3NDNlZTE4LTg4ZTAtNDNkMy1iYjAyLTExY2EzYTM4MTQ0NQ==",
"name": "White Bean Salad"
},
"meal": "lunch",
"calories": 838.58636154855
},
{
"recipe": {
"id": "UmVjaXBlOmIzZjYyMGViLTgxMGQtNGQzMy1hNTNiLWIzOTA1Y2RkMWJjNQ==",
"name": "Smoothie With Orange And Spinach"
},
"meal": "snack",
"calories": 185.91875
},
{
"recipe": {
"id": "UmVjaXBlOjdlMzE4YTFhLWUwNDItNGNlYS04OWI0LTE2NGFkZTkzNDE1Yw==",
"name": "Tofu Eggplant Grape Tomato Roast Recipe"
},
"meal": "dinner",
"calories": 527.69436
}
]
},
{
"id": "TWVhbFBsYW5EYXk6ZDc2MWQ1ZTItNTQwNy00ZjU2LWI5MmMtYzNkZDg1OGFkNzMx",
"day": 4,
"date": "2022-04-25 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjI3MWZiMjU5LWE2ZjItNDUzNC05MTg1LWY1ZjVjOGI5NmY5ZA==",
"name": "Tofu Scramble"
},
"meal": "breakfast",
"calories": 605.728899731301
},
{
"recipe": {
"id": "UmVjaXBlOjI2ODVkNjM4LWYzZWYtNDEyMS04Yzk2LTc5ZmI5YjAzOWQ2Mw==",
"name": "Vegetarian Lettuce Wraps - Total Time 30 Minutes Recipes"
},
"meal": "lunch",
"calories": 619.257
},
{
"recipe": {
"id": "UmVjaXBlOjVlYTUzMjY1LTQ2MzUtNDExYi1hMTUwLTZmMGQ5NjY3MjRiYg==",
"name": "Cucumber-Dill Smoothie"
},
"meal": "snack",
"calories": 175.619583929875
},
{
"recipe": {
"id": "UmVjaXBlOmIyNmVlZTAzLWU2MmItNDIwNS1iMmU5LTkwOTdjN2JjNWExNQ==",
"name": "Chipotle Beans Recipes"
},
"meal": "dinner",
"calories": 833.545650838889
}
]
},
{
"id": "TWVhbFBsYW5EYXk6NGNhZjYwMWEtMTYwNS00ZTM3LTk1MjUtMjQwNjQ1YWFkZTdj",
"day": 3,
"date": "2022-04-24 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjY2ZDRkMGFjLThmYmItNDAzNS1hNzYyLTc0ODNkZmZjYjJjNw==",
"name": "Super Fluffy Lemon Paleo Pancakes "
},
"meal": "breakfast",
"calories": 716.793766666667
},
{
"recipe": {
"id": "UmVjaXBlOjBlNmFiYmViLTA3NDUtNDQ3OS04YjAyLTg3M2RjNGM4ZDYwNQ==",
"name": "Quick And Easy 5 Vegetable Dhal Recipes"
},
"meal": "lunch",
"calories": 644.253888888889
},
{
"recipe": {
"id": "UmVjaXBlOjkzYmZiMjFhLTkwNjktNGM2NC1iNDQ3LTQ3OTkyODZmYjUyOQ==",
"name": "Minted Carrots With Pumpkin Seeds"
},
"meal": "snack",
"calories": 238.9886875
},
{
"recipe": {
"id": "UmVjaXBlOjJlMjM2MDFmLWZlYmMtNDQ1Yy05MjQzLTIyYWI3ODA4MDdjMA==",
"name": "Basic Veggie Burgers"
},
"meal": "dinner",
"calories": 494.021549664756
}
]
},
{
"id": "TWVhbFBsYW5EYXk6YzA0ZjQ4NTgtNDYzMS00MWViLWI1MjYtNWQ1YzUzMTg3ZWZj",
"day": 2,
"date": "2022-04-23 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjMyMWQ1ZDQyLWViNDgtNDQ2NS1hODY1LTlkODg1ODdjMTBhYg==",
"name": "Banana Nut"
},
"meal": "breakfast",
"calories": 587.4239775
},
{
"recipe": {
"id": "UmVjaXBlOjVkNmQ2NTI4LThiOGQtNGJiMi04ODAxLWUzZWVmMDg1ZWM1YQ==",
"name": "Low Fat Bean Salad"
},
"meal": "lunch",
"calories": 718.088868812798
},
{
"recipe": {
"id": "UmVjaXBlOmQ1Y2UzMWFkLTkwMjQtNDYyNS1hZDIyLTE4ZWIxYzc2ZTA0NQ==",
"name": "Easy Fruit Salad"
},
"meal": "snack",
"calories": 220.5499
},
{
"recipe": {
"id": "UmVjaXBlOjc5YTRmNjA5LTZiNjctNGM3Ny1iOWVjLTQwNmM5NzMzNTZlYQ==",
"name": "Asian Crispy Tofu Salad"
},
"meal": "dinner",
"calories": 670.274479290408
}
]
},
{
"id": "TWVhbFBsYW5EYXk6MjY3MDFmYTYtYmE3MS00ZDJlLTkxYzgtODE4YmRkNmE1NDIw",
"day": 1,
"date": "2022-04-22 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOmJlNTFlYTUxLTY5ODMtNDU1Zi05MDcxLWEwZDEyYzQ2MTYzNA==",
"name": "Diy Muesli"
},
"meal": "breakfast",
"calories": 669.1739475
},
{
"recipe": {
"id": "UmVjaXBlOjgyZjE3MzJhLTY3MzMtNGM2ZC1hMGQwLTRjNmRjNzdkODg0NA==",
"name": "Vegan Halloumi Cheese Recipes"
},
"meal": "lunch",
"calories": 674.254
},
{
"recipe": {
"id": "UmVjaXBlOjY1ZDQwMzMyLTlkZjctNDllMy04MzBhLTA5ZWMxMDkxZjhmMg==",
"name": "Ginger-Beet Juice"
},
"meal": "snack",
"calories": 209.332776126687
},
{
"recipe": {
"id": "UmVjaXBlOjBiMzU3NDc3LWE4MmQtNGZmZS1iZDc2LTkzYjFiYWQ2ZGVlMw==",
"name": "Green Curry With Spinach And Lentils"
},
"meal": "dinner",
"calories": 673.06784
}
]
},
{
"id": "TWVhbFBsYW5EYXk6OTM2YmJlMmUtN2MwOS00NTNmLTgyZjQtODUwMjdjMWRlZjBj",
"day": 1,
"date": "2022-04-21 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjYzNzQ1MDJjLWNjYTItNDNmZi1iMzZjLTNhOTU3MjQ4YjdlMA==",
"name": "Plum And Green Tea Smoothie"
},
"meal": "breakfast",
"calories": 319.90552
},
{
"recipe": {
"id": "UmVjaXBlOmVlZmM0OTE3LTI3MmQtNDBhNS05MTBlLTgwNTQ3ZTgzN2YyZQ==",
"name": "Spaghetti Marinara"
},
"meal": "lunch",
"calories": 303.717933655172
},
{
"recipe": {
"id": "UmVjaXBlOjJiNWI3MjNjLTZjODctNGM4My1hNTBhLTU0OTA4NzJkYTM3MQ==",
"name": "Roasted Chickpeas"
},
"meal": "snack",
"calories": 388.04
},
{
"recipe": {
"id": "UmVjaXBlOjk4YjI1ZDQ1LTU5N2EtNDRkMC05ZmE1LWZiOTA3MGVhNjUwZA==",
"name": "Kale Pasta"
},
"meal": "dinner",
"calories": 730.71853084625
}
]
},
{
"id": "TWVhbFBsYW5EYXk6MTIyMDVjOTktZThmYy00M2M2LTgyYTEtOGIyOWEzMzQ4M2Vk",
"day": 7,
"date": "2022-04-18 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOmNmZTk4YjQ3LWFjY2UtNDZlNi1hNWQ3LTFiOTk5ZDIxNzUwNw==",
"name": "Mexican-Spiced Tofu Scramble"
},
"meal": "breakfast",
"calories": 582.850409456654
},
{
"recipe": {
"id": "UmVjaXBlOmMxNmM4YjViLWNiMDctNGI4Ni1hMTQ2LWQyNjAxNTU0NjZlMQ==",
"name": "Kale Smoothie With Orange And Pear"
},
"meal": "snack",
"calories": 154.027677840875
},
{
"recipe": {
"id": "UmVjaXBlOjc1NTc3MWZjLWQyYzItNDU1Ny1iZGFkLWNlNTc0YTk4ZGQ0Nw==",
"name": "Arugula Cannellini Beans Salad Recipes"
},
"meal": "lunch",
"calories": 830.597746296156
},
{
"recipe": {
"id": "UmVjaXBlOmNjNjkwYTU1LTZjOTgtNDRhMy1hYTdlLTM5ZmIxYTY3OGVlMQ==",
"name": "Braised Tofu"
},
"meal": "dinner",
"calories": 683.00996442
}
]
},
{
"id": "TWVhbFBsYW5EYXk6MzljZjhjODktMDczMy00OGFhLTgxNDItZmJkMjJjMTdkYjQz",
"day": 6,
"date": "2022-04-17 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjEyZWZlYzIzLWM2NTItNDdhMy05OTFhLTQyM2FkODMxMzQzMQ==",
"name": "Poached Eggs With Avocado"
},
"meal": "breakfast",
"calories": 585.8494
},
{
"recipe": {
"id": "UmVjaXBlOjNkZDQxYWFhLWVhZmYtNDIwZS1iOGYxLTE3MWViNTY5ZmZiOA==",
"name": "Refreshing Red Berry Smoothie"
},
"meal": "snack",
"calories": 223.376733333333
},
{
"recipe": {
"id": "UmVjaXBlOmU4ODM4ZDcwLTQ0NmMtNGNkZS1hY2E3LWVmMjk5NzcxZWM3Yw==",
"name": "Zucchini Ribbon Pesto Salad"
},
"meal": "lunch",
"calories": 540.885
},
{
"recipe": {
"id": "UmVjaXBlOjcwMDA3MjgyLTAwODgtNGQwZS1iNzc0LTc3YzFlOTYwODZjNQ==",
"name": "Easy Lentil Burgers Recipes"
},
"meal": "dinner",
"calories": 842.635124998741
}
]
},
{
"id": "TWVhbFBsYW5EYXk6N2M0ZTNmMjEtMWQ1MS00OGRmLTk0YmUtYWNhNmFiZGZmZjFk",
"day": 5,
"date": "2022-04-16 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjA4NTVmNDQ0LTMzZWEtNDkxMC05MGYxLTEzZmZlZTcxZDRkOQ==",
"name": "Basic Scrambled Tempeh"
},
"meal": "breakfast",
"calories": 684.95914232305
},
{
"recipe": {
"id": "UmVjaXBlOmIzZjYyMGViLTgxMGQtNGQzMy1hNTNiLWIzOTA1Y2RkMWJjNQ==",
"name": "Smoothie With Orange And Spinach"
},
"meal": "snack",
"calories": 185.91875
},
{
"recipe": {
"id": "UmVjaXBlOmM3NDNlZTE4LTg4ZTAtNDNkMy1iYjAyLTExY2EzYTM4MTQ0NQ==",
"name": "White Bean Salad"
},
"meal": "lunch",
"calories": 838.58636154855
},
{
"recipe": {
"id": "UmVjaXBlOjdlMzE4YTFhLWUwNDItNGNlYS04OWI0LTE2NGFkZTkzNDE1Yw==",
"name": "Tofu Eggplant Grape Tomato Roast Recipe"
},
"meal": "dinner",
"calories": 527.69436
}
]
},
{
"id": "TWVhbFBsYW5EYXk6OTcyZTA3YTktOTU4Ny00MDAyLWE2ZGItMWJkODY5N2Q1MDM3",
"day": 4,
"date": "2022-04-15 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjI3MWZiMjU5LWE2ZjItNDUzNC05MTg1LWY1ZjVjOGI5NmY5ZA==",
"name": "Tofu Scramble"
},
"meal": "breakfast",
"calories": 605.728899731301
},
{
"recipe": {
"id": "UmVjaXBlOjVlYTUzMjY1LTQ2MzUtNDExYi1hMTUwLTZmMGQ5NjY3MjRiYg==",
"name": "Cucumber-Dill Smoothie"
},
"meal": "snack",
"calories": 175.619583929875
},
{
"recipe": {
"id": "UmVjaXBlOjI2ODVkNjM4LWYzZWYtNDEyMS04Yzk2LTc5ZmI5YjAzOWQ2Mw==",
"name": "Vegetarian Lettuce Wraps - Total Time 30 Minutes Recipes"
},
"meal": "lunch",
"calories": 619.257
},
{
"recipe": {
"id": "UmVjaXBlOmIyNmVlZTAzLWU2MmItNDIwNS1iMmU5LTkwOTdjN2JjNWExNQ==",
"name": "Chipotle Beans Recipes"
},
"meal": "dinner",
"calories": 833.545650838889
}
]
},
{
"id": "TWVhbFBsYW5EYXk6MGE1ZTg5Y2ItMDg4OC00YzRhLTljNzMtZjY0M2NlMmE5ZmYy",
"day": 3,
"date": "2022-04-14 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjY2ZDRkMGFjLThmYmItNDAzNS1hNzYyLTc0ODNkZmZjYjJjNw==",
"name": "Super Fluffy Lemon Paleo Pancakes "
},
"meal": "breakfast",
"calories": 716.793766666667
},
{
"recipe": {
"id": "UmVjaXBlOjkzYmZiMjFhLTkwNjktNGM2NC1iNDQ3LTQ3OTkyODZmYjUyOQ==",
"name": "Minted Carrots With Pumpkin Seeds"
},
"meal": "snack",
"calories": 238.9886875
},
{
"recipe": {
"id": "UmVjaXBlOjBlNmFiYmViLTA3NDUtNDQ3OS04YjAyLTg3M2RjNGM4ZDYwNQ==",
"name": "Quick And Easy 5 Vegetable Dhal Recipes"
},
"meal": "lunch",
"calories": 644.253888888889
},
{
"recipe": {
"id": "UmVjaXBlOjJlMjM2MDFmLWZlYmMtNDQ1Yy05MjQzLTIyYWI3ODA4MDdjMA==",
"name": "Basic Veggie Burgers"
},
"meal": "dinner",
"calories": 494.021549664756
}
]
},
{
"id": "TWVhbFBsYW5EYXk6ZTE1OGFiYWMtZTVmMS00YWZjLThmZDEtNDhjMjliZTllM2Zl",
"day": 2,
"date": "2022-04-13 02:00:00+00:00",
"meals": [
{
"recipe": {
"id": "UmVjaXBlOjMyMWQ1ZDQyLWViNDgtNDQ2NS1hODY1LTlkODg1ODdjMTBhYg==",
"name": "Banana Nut"
},
"meal": "breakfast",
"calories": 587.4239775
},
{
"recipe": {
"id": "UmVjaXBlOmQ1Y2UzMWFkLTkwMjQtNDYyNS1hZDIyLTE4ZWIxYzc2ZTA0NQ==",
"name": "Easy Fruit Salad"
},
"meal": "snack",
"calories": 220.5499
},
{
"recipe": {
"id": "UmVjaXBlOjVkNmQ2NTI4LThiOGQtNGJiMi04ODAxLWUzZWVmMDg1ZWM1YQ==",
"name": "Low Fat Bean Salad"
},
"meal": "lunch",
"calories": 718.088868812798
},
{
"recipe": {
"id": "UmVjaXBlOjc5YTRmNjA5LTZiNjctNGM3Ny1iOWVjLTQwNmM5NzMzNTZlYQ==",
"name": "Asian Crispy Tofu Salad"
},
"meal": "dinner",
"calories": 670.274479290408
}
]
}
]
}
}
}
Last updated