GenerousPeacock2 days ago
⏺ Description of the issue: Hi Terra, terra doesn't seem to be retrieving any sleep or daily data for some of our customers. We are not getting any data in the payload so our webhook is not getting any data. I have some examples below
⏺ Terra user ID (user_id): 579f2524-2565-4dca-b239-37dd3b104b4d ⏺ Provider (i.e GARMIN, APPLE, FITBIT, etc.): Apple ⏺ SDK name and version: ⏺ Additional: requests made, log files, data type and etc:
```py
def main():
print("Hello World!")
{ "data": [], "user": { "scopes": "HEART_RATE,RESPIRATORY_RATE,HEART_RATE_VARIABILITY,ACTIVE_DURATIONS,STEPS,ACTIVITY_SUMMARY,SLEEP_ANALYSIS", "active": true, "user_id": "579f2524-2565-4dca-b239-37dd3b104b4d", "last_webhook_update": "2025-05-29T14:22:34.956726+00:00", "provider": "APPLE", "created_at": null, "reference_id": "67dc2b1d962538108a396d01|Meo" }, "type": "sleep", "version": "2022-03-16" }
——
{ "user": { "created_at": null, "user_id": "579f2524-2565-4dca-b239-37dd3b104b4d", "scopes": "HEART_RATE,RESPIRATORY_RATE,HEART_RATE_VARIABILITY,ACTIVE_DURATIONS,STEPS,ACTIVITY_SUMMARY,SLEEP_ANALYSIS", "last_webhook_update": "2025-05-29T14:18:36.344377+00:00", "reference_id": "67dc2b1d962538108a396d01|Meo", "provider": "APPLE", "active": true }, "type": "daily", "data": [], "version": "2022-03-16" }
GenerousPeacock2 days ago
{
"data": [],
"user": {
"scopes": "HEART_RATE,RESPIRATORY_RATE,HEART_RATE_VARIABILITY,ACTIVE_DURATIONS,STEPS,ACTIVITY_SUMMARY,SLEEP_ANALYSIS",
"active": true,
"user_id": "579f2524-2565-4dca-b239-37dd3b104b4d",
"last_webhook_update": "2025-05-29T14:22:34.956726+00:00",
"provider": "APPLE",
"created_at": null,
"reference_id": "67dc2b1d962538108a396d01|Meo"
},
"type": "sleep",
"version": "2022-03-16"
}
GenerousPeacock2 days ago
{
"user": {
"created_at": null,
"user_id": "579f2524-2565-4dca-b239-37dd3b104b4d",
"scopes": "HEART_RATE,RESPIRATORY_RATE,HEART_RATE_VARIABILITY,ACTIVE_DURATIONS,STEPS,ACTIVITY_SUMMARY,SLEEP_ANALYSIS",
"last_webhook_update": "2025-05-29T14:18:36.344377+00:00",
"reference_id": "67dc2b1d962538108a396d01|Meo",
"provider": "APPLE",
"active": true
},
"type": "daily",
"data": [],
"version": "2022-03-16"
}
Vanessaadmin1 day ago
Hi there!
In order to understand what is causing this, please follow the steps below:
Please also note the following:
The toWebhook parameter is only used when you're manually requesting historical data using the data retrieval functions like getDaily(), getSleep(), or getActivity(). In that case, ensure toWebhook is set = true.
For automatic data delivery on iOS: Set schedulerOn = true when calling initConnection() to enable background delivery.
The iOS background delivery has specific limitations: data will only be triggered when the phone is unlocked, had network connection, and is not on battery saving mode. Only enabled data types from the Terra Dashboard will be triggered.
If you continue to have issues, please let us know and we'll go through it step by step! :)
Cookie Preferences