1 operation. Every schema and example on this page is generated from the platform contract.
Returns the signed-in customer derived daily nutrition targets (calories + protein / carbs / fat, plus a goal label) for a given store, synced server-side so the target survives a reinstall or a new device. The profile is null when the member has saved none for that store. Body metrics (age / weight / height) are intentionally not stored server-side; only the derived targets live here. The customer is resolved from the session, never a client-supplied id.
Store whose saved nutrition target to read for the signed-in customer.
The saved targets, or null if the member has none for this store.
Daily calorie target (kcal), or null if not set.
Daily protein target (grams), or null if not set.
Daily carbohydrate target (grams), or null if not set.
Daily fat target (grams), or null if not set.
Human label for the goal (e.g. 'Lose weight'), or null.
When the profile was last saved (ISO 8601 timestamp).
curl -G "https://www.membber.com/api/v1/nutrition/profile" \
-H "Authorization: Bearer $MEMBBER_TOKEN" \
--data-urlencode "store_id=6659c139-0000-4000-8000-d0c500000066"import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient({
getAccessToken: () => process.env.MEMBBER_TOKEN,
});
const { data, error } = await membber.raw.GET("/api/v1/nutrition/profile", {
params: { query: { store_id: "6659c139-0000-4000-8000-d0c500000066" } },
});
if (error) {
// Typed error envelope: { error: { code, message, requestId } }
throw new Error(`${error.error.code}: ${error.error.message}`);
}
console.log(data);import MembberSwift
let client = MembberClient(
serverURL: MembberClient.productionServerURL,
tokenProvider: { session.accessToken }
)
let response = try await client.api.getCustomerNutritionProfile(
query: .init(storeId: "6659c139-0000-4000-8000-d0c500000066")
).ok.body.json
print(response){
"profile": {
"calorie_target_kcal": 1,
"protein_target_g": 1,
"carbs_target_g": 1,
"fat_target_g": 1,
"goal_label": "<goal_label>",
"updated_at": "<updated_at>"
}
}