Skip to main content
Version: Next

Retrieve User

You can retrieve a user details using our API.

Endpoint Url

EnvironmentUrl
Sandboxhttps://partners-sandbox.ftmtapi.com/users/retrieve
Prodhttps://partners.ftmtapi.com/users/retrieve

Request fields

FieldTypeDescription
emailstringThe email address of the user (unique ID).

Response

Response definitions of the user object (Key values only)

FieldTypeDescription
bodyProfile > energyLevelnumber1 for Low
2 for Medium
3 for High
bodyProfile > selfFeelingnumberranked from 1 to 5, the highest the best the feeling is
goals > daysarrayList of days of the week the goal is assigned to
1 = Monday

Days as numeric follow this pattern:

  • 1: Monday
  • 2: Tuesday
  • 3: Wednesday
  • 4: Thursday
  • 5: Friday
  • 6: Saturday
  • 7: Sunday

Available categories and subcategories for Goals

CategorySubcategory
CoreNutrition
CoreActivity
CoreGeneral
AdditionalNutrition
AdditionalActivity
AdditionalGeneral
ObstacleNutrition
ObstacleActivity
ObstacleGeneral

Response is always in JSON format.

{
"email": "string",
"firstname": "string",
"lastname": "string",
"phonenumber": "string",
"dateOfBirth": "string",
"gender": "string",
"height": "string",
"weight": "number",
"pregnant": "boolean",
"bodyProfile": [
{
"waist": "number",
"measurmentDate": "string",
"energyLevel": "number",
"heartRate": "number",
"selfFeeling": "number",
"weight": "number"
}
],
"goals": [
{
"goalId": "string",
"assignementTime": "string",
"category": "string",
"subCategory": "string",
"days": [
"number"
],
"dayPerWeek": "number",
"description": "string",
"goal": "string",
"status": "string",
"title": "string",
"tracking": [
{
"date": "string",
"progress": "string"
}
]
}
],
"metadata": {
"key": "value"
}
}

Full example of a call made with axios

const axios = require('axios');

const res = axios({
url: 'https://partners.ftmtapi.com/users/retrieve',
method: 'post',
data: {
email: 'jane@doe.com',
},
headers: {
Authorization: 'Bearer <YOUR_API_KEY>',
'Fitmate-Version': '2023-08-01'
}
})