REST API Endpoints
Was this helpful?
Was this helpful?
Retrieve a detailed list of supported integrations, optionally filtered by the developer's enabled integrations and the requirement for SDK usage.
/integrations/detailed
If true
, allows SDK integrations to be included in the response.
Developer ID to filter the integrations list based on the developer's enabled integrations.
Creates a login link that allows end users to connect their fitness tracking account
/auth/authenticateUser
resource to authenticate user with
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Generates a link to redirect an end user to for them to select an integration and log in with their fitness data provider
/auth/generateWidgetSession
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Comma separated list of providers to display on the device selection page. This overrides your selected sources on your dashboard
GARMIN,FITBIT,OURA,WITHINGS,SUUNTO
Display language of the widget
en
Identifier of the end user on your system, such as a user ID or email associated with them
[email protected]
URL the user is redirected to upon successful authentication
https://myapp.com/success
URL the user is redirected to upon unsuccessful authentication
https://myapp.com/failure
Deletes all records of the user on Terra's end, revoking Terra's access to their data
/auth/deauthenticateUser
user_id to deauthenticate for
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Used to query for information on one Terra user ID, or to query for all registered Terra User objects under one reference ID
/userInfo
user ID to query for
reference ID to query for
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Used to query for information for multiple Terra User IDs
/bulkUserInfo
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches relevant profile info such as first & last name, birth date etc. for a given user ID
/athlete
user ID to query data for
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches completed workout sessions, with a defined start and end time and activity type (e.g. running, cycling, etc.)
/activity
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
boolean flag specifying whether to include detailed samples in the returned payload
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches body metrics such as weight, height, body fat percentage etc. for a given user ID
/body
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
boolean flag specifying whether to include detailed samples in the returned payload
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches daily summaries of activity metrics such as steps, distance, calories burned etc. for a given user ID
/daily
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
boolean flag specifying whether to include detailed samples in the returned payload
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches menstruation data such as cycle length, period length, ovulation date etc. for a given user ID
/menstruation
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
boolean flag specifying whether to include detailed samples in the returned payload
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches nutrition log data such as meal type, calories, macronutrients etc. for a given user ID
/nutrition
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
boolean flag specifying whether to include detailed samples in the returned payload
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Fetches sleep data such as sleep duration, sleep stages, sleep quality etc. for a given user ID, for sleep sessions with a defined start and end time
/sleep
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
boolean flag specifying whether to include detailed samples in the returned payload
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Used to get workout plans the user has registered on their account. This can be stregnth workouts (sets, reps, weight lifted) or cardio workouts (warmup, intervals of different intensities, cooldown etc)
/plannedWorkout
user ID to query data for
start date of data to query for - either ISO8601 date or unix timestamp
end date of data to query for - either ISO8601 date or unix timestamp
boolean flag specifying whether to send the data retrieved to the webhook, or in the response
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Used to post activity data to a provider. Available for Wahoo
/activity
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
List of user-tracked workouts to post to data provider
Used to post nutrition logs to a provider. Available for Fitbit
/nutrition
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Nutrition entry to post to data provider
Used to post body data to a provider. Available for Google Fit
/body
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Body measurement metrics to post to data provider
Used to post workout plans users can follow on their wearable. This can be stregnth workouts (sets, reps, weight lifted) or cardio workouts (warmup, intervals of different intensities, cooldown etc)
/plannedWorkout
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
PlannedWorkout entry to post to data provider
Used to delete nutrition logs the user has registered on their account
/nutrition
user ID to query data for
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
List of identifiers for nutrition entries to be deleted
Used to delete Body metrics the user has registered on their account
/body
user ID to query data for
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
List of identifiers for body metrics entries to be deleted
Used to delete workout plans the user has registered on their account. This can be stregnth workouts (sets, reps, weight lifted) or cardio workouts (warmup, intervals of different intensities, cooldown etc)
/plannedWorkout
user ID to query data for
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
List of identifiers for planned workout entries to be deleted