REST API Endpoints
🕸️ API info
🔌 Authentication
Your API key for authentication
Provider resource identifier (e.g., 'FITBIT', 'GARMIN', 'OURA'). See "Get detailed list of integrations" for available providers
FITBITyour developer ID
testingTerraReturned when authentication link could be successfully generated
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. resource)
Your API key for authentication
Comma separated list of providers to display on the device selection page. This overrides your selected sources on your dashboard
GARMIN,FITBIT,OURA,WITHINGS,SUUNTODisplay language of the widget
enIdentifier 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/successURL the user is redirected to upon unsuccessful authentication
https://myapp.com/failureReturned when authentication link could be successfully generated
Returned when one or more parameters is malformed - an appropriate error message will be returned
Your API key for authentication
Terra user ID (UUID format) to deauthenticate and remove from Terra system
Returned when user is successfully deauthenticated and data is deleted
Returned when the user_id is not existent
💁♂️ User info
Your API key for authentication
user ID to query for
reference ID to query for
Returned when the provided resources are found
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Zero-based page number. If omitted, results are not paginated.
0Number of results per page (default is 500).
500Returned upon a successful request
Returned when one or more parameters are malformed
Your API key for authentication
List of user IDs to get information for
Returned upon successful request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
⏳ Historical Data retrieval
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Boolean flag specifying whether to include detailed samples in the returned payload (default: false)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Boolean flag specifying whether to include detailed samples in the returned payload (default: false)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Boolean flag specifying whether to include detailed samples in the returned payload (default: false)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Boolean flag specifying whether to include detailed samples in the returned payload (default: false)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Boolean flag specifying whether to include detailed samples in the returned payload (default: false)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Boolean flag specifying whether to include detailed samples in the returned payload (default: false)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Start date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
End date for data query - either ISO8601 date (YYYY-MM-DD) or unix timestamp in seconds (10-digit)
Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
Returned upon successful data request
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
✏️ Writing data
Your API key for authentication
Returned when activity was successfully created on the provider
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Returned when activity was successfully created on the provider
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Returned when activity was successfully created on the provider
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
Returned when activity was successfully created on the provider
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
List of identifiers for nutrition entries to be deleted
Returned when all records were deleted successfully
Returned when multiple status codes were obtained from attempting to delete the requested records
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
List of identifiers for body metrics entries to be deleted
Returned when all records were deleted successfully
Returned when multiple status codes were obtained from attempting to delete the requested records
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when credentials (dev ID and API key) are invalid
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Your API key for authentication
Terra user ID (UUID format) to retrieve data for
List of identifiers for planned workout entries to be deleted
Returned when all records were deleted successfully
Returned when multiple status codes were obtained from attempting to delete the requested records
Returned when one or more parameters is malformed - an appropriate error message will be returned
Returned when authorization with a data provider has failed
Returned when a parameter does not exist on Terra's end (e.g. user_id)
Last updated
Was this helpful?