For the complete documentation index, see llms.txt. This page is also available as Markdown.

Why does the GET API return 200 with no data array?

By default, data GET requests use to_webhook=true, so data is delivered asynchronously to your configured webhook and the immediate response contains only user…

By default, data GET requests use to_webhook=true, so data is delivered asynchronously to your configured webhook and the immediate response contains only user metadata, with no data array.

To get data inline in the HTTP response, set to_webhook=false.

A couple of related points:

  • There is no /v2/userdata endpoint. Fetch per type via /v2/sleep, /v2/daily, /v2/body, /v2/activity, /v2/nutrition or /v2/menstruation.

  • Each delete-and-readd mints a new terra_user_id, and the old one stops returning data, so always use the latest id. Check user validity with GET /v2/userInfo or /v2/subscriptions.

Last updated

Was this helpful?