Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.

zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

chunking non-large requests?

All

NarrowQuokka11 months ago

Hey there,

Quick question: provided I stay on the right side of a 'large request' (<28 days), will all of the user's data come in one single ingest. I appreciate that daily, sleep and body will come as separate events if i request each for the last 27 days, but will I just get 3 payloads sent to me with multiple 'data blocks' or is it possible that the data for the last 27 days of, say, daily, will be broken into different payloads?

Thanks, Josh

terra

Vanessaadmin10 months ago

Hi there,

That's correct. For requests under 28 days, you'll receive separate events for each data type you request (daily, sleep, body, etc.), but each data type will come in a single payload containing multiple data objects in the data array.

When chunking occurs for large requests (>28 days of data), all chunks will contain the same terra-reference header value, allowing you to track when the complete data transfer is finished!


NarrowQuokka10 months ago

Thanks so much!


terra

Vanessaadmin10 months ago

You are very welcome!