Activities¶
An activity is a recorded session: what the athlete did, with a start, an end and timeseries. This page covers how to read activities, their timeseries and the curves SweatStack computes from them, and how to upload activity files. The entities and their fields are described in the data model.
Response formats¶
Activity timeseries (position, heart rate, power, and the other metrics at sample rate) is delivered as Apache Parquet, both per activity (the activity data endpoint) and across activities (longitudinal data). Activity metadata (sport, distance, duration, and so on) is returned as JSON.
Three properties of the Parquet timeseries matter before you build on it:
- Compression. Files are ZSTD compressed. Any Parquet reader with ZSTD support reads them, and most current readers include it.
- Sample rate. Samples are usually at 1 Hz (one row per second), but SweatStack does not guarantee it: some devices and sports record at a different or variable rate. Read the timestamps instead of assuming a fixed interval.
- Shape. One row per sample, every value in a plain column, nothing stored as an index. The columns are listed under activity data and longitudinal data.
The Python SDK handles all of this for you and returns a pandas DataFrame. If you read the Parquet bytes yourself, see Reading the Parquet outside the Python SDK. If your stack has no good Parquet reader, email us. We want to hear about your use case.
Activity metadata¶
GET /api/v1/activities/ lists activities with their metadata: id, sport, start and end, summary statistics, and so on. The timeseries is not included.
from sweatstack import Client
client = Client()
activities = client.activities.list()
activities.list returns the 100 most recent activities by default (the SDK's own default, not the API's) and takes the same filters as the endpoint. Pass output="pandas" (or "polars") to get a DataFrame instead of a list:
activities = client.activities.list(output="pandas")
In the DataFrame, start and end are one datetime64[ns, UTC] column each, so the usual pandas datetime operations work directly. start_local and end_local are naive columns holding the athlete's wall-clock time with the UTC offset already applied. Use those for display and for grouping by local calendar day.
A common use of the DataFrame is a rolling calculation over activity start times, for example a 7-day rolling sum of distance. Roll on start_local, so each activity counts on the local day the athlete trained:
activities.rolling("7d", on="start_local")["summary.distance"].sum()
curl -X GET "https://app.sweatstack.no/api/v1/activities/" \
-H "Authorization: Bearer {your_access_token}"
The API returns the 50 most recent activities by default. Narrow the list with query parameters:
curl -X GET "https://app.sweatstack.no/api/v1/activities/?limit=100&offset=0&start=2024-01-01&end=2024-12-31&sport=running&sport=cycling" \
-H "Authorization: Bearer {your_access_token}"
Query parameters:
start(optional): first day of the range,YYYY-MM-DD. Included. Matches each activity's own local date. See Date-range filtering.end(optional): last day of the range,YYYY-MM-DD. Included.limit(optional, default50): the maximum number of activities to return. There is no upper bound.offset(optional, default0): the number of activities to skip, for paging.sport(optional): a sport code. Repeat the parameter for more than one sport:?sport=cycling&sport=running.road. Filter on the server with this parameter instead of filtering a larger list in your app.tags(optional): a tag. Repeat the parameter for more than one tag.
Requires the activities:read scope.
Computing your own per-activity values? See custom calculations on activities. Most apps don't need a local database.
Response shape¶
The list response is an array of activity summary objects. One realistic item:
Example response (one activity)
[
{
"id": "act_01HV3KJD9M2P4S7T8WXQR0YZ",
"sport": "running.road",
"start": "2026-05-18T15:32:00Z",
"end": "2026-05-18T16:18:14Z",
"start_local": "2026-05-18T17:32:00",
"end_local": "2026-05-18T18:18:14",
"duration": "PT46M14S",
"metrics": ["power", "speed", "heart_rate", "cadence", "distance"],
"source_id": "src_01HV3KJB7XQ2N1F0G8YH9CDM",
"platform": "garmin_connect",
"attribution": "Garmin",
"tags": ["easy"],
"summary": {
"power": { "mean": 248, "max": 412 },
"speed": { "mean": 3.5, "max": 4.9 },
"heart_rate": { "mean": 152, "min": 92, "max": 174, "start": 110, "end": 158 },
"distance": { "sum": 9712 },
"altitude": { "mean": 142, "gain": 78, "loss": 81, "min": 96, "max": 188 },
"cadence": { "mean": 178, "max": 192 }
},
"laps": null,
"traces": null,
"app_metadata": null
}
]
The fields you'll use most:
| Path | Description |
|---|---|
id |
Stable activity ID. Use it for the /activities/{id}/... endpoints. |
sport |
Normalized SweatStack sport. See sports. |
start, end |
Absolute UTC instant, ISO 8601 with a Z suffix. See Timezones. |
start_local, end_local |
Naive local wall-clock strings, for display and date grouping. |
duration |
ISO 8601 duration, computed as end minus start. |
metrics |
The metric names recorded in the timeseries. Check it before you fetch the timeseries. |
summary.* |
Per-metric aggregates. See summary statistics for the full set of paths. A metric the activity did not record is absent or null. |
laps[] |
Always null on the list. GET /api/v1/activities/{id} and /activities/latest return the laps when the source recording had lap markers, each with the same summary.* fields. See Laps. |
platform, attribution |
Where the data came from: the platform (garmin_connect, strava, ...) and the line to show next to it ("Garmin"), or null for both. See Where the data came from. |
tags |
User-defined activity tags. |
app_metadata |
Your app's own JSON on this activity, or null. See App metadata. |
Full schema: GET /api/v1/activities/ in the API reference, and the ActivitySummary, ActivitySummarySummary and Lap schemas.
Run it live: open the API playground. It uses your signed-in SweatStack session, so you need no token.
Where the data came from¶
Every activity, source, daily, marker and max effort carries platform, the platform its data came from, and attribution, the line to show next to it. Data from no platform, such as a file the athlete uploaded or a value your app computed, has null for both.
| Response | Where the line is | Example |
|---|---|---|
| One record in JSON: an activity in the list or on its own, a daily, a source | the attribution field |
"Garmin" |
One activity in Parquet: /activities/{id}/data, /activities/{id}/mean-max |
the SweatStack-Attribution header |
Garmin |
Many activities in Parquet: /activities/longitudinal-data, /activities/longitudinal-mean-max |
the SweatStack-Attribution header, naming every platform in the requested range, most activities first |
Data from Garmin and Strava |
A response with no data from a platform has no header. Browsers can read the header from JavaScript.
Show the line next to the data it describes, near the title, not in a tooltip or a footnote, and keep it on exports and images. Some platforms make this attribution a condition for using their data, and the terms pass that condition on to your app. A list can carry one line for all of its entries or one per entry. Each activity's devices (on GET /api/v1/activities/{id}) names its device models when you want to show them.
Activity data¶
GET /api/v1/activities/{activity_id}/data returns the timeseries of one activity as Parquet.
AISC downsampling
The segmentation_on parameter below enables the Adaptive Intensity Segmentation Codec (AISC): payloads 20 to 50 times smaller, with the mean-max curve and the intensity distribution preserved within a bounded error. See it in action
data = client.activities.data(activity_id)
activities.data returns a DataFrame. Pass segmentation_on to downsample with AISC, keyed on "power" or "speed" (the SDK argument keeps the codec's earlier name):
data = client.activities.data(activity_id, segmentation_on="power")
The DataFrame has a timezone-aware UTC timestamp column and a timestamp_local column that holds the naive local wall-clock of each sample. This matches the longitudinal shape: merge and sort on timestamp, group by local calendar date on timestamp_local. See Timezones.
curl -X GET "https://app.sweatstack.no/api/v1/activities/{activity_id}/data" \
-H "Authorization: Bearer {your_access_token}"
Choose the metrics and enable AISC:
curl -X GET "https://app.sweatstack.no/api/v1/activities/{activity_id}/data?metrics=duration&metrics=power&metrics=speed&metrics=heart_rate&segmentation_on=power" \
-H "Authorization: Bearer {your_access_token}"
Query parameters:
metrics(optional, defaultduration,power,speedandheart_rate): a metric to include. Repeat the parameter for more than one metric.durationis always included.segmentation_on(optional): downsample with AISC, keyed onpowerorspeed. Omit it for the full timeseries.
Requires the activities:read scope.
Columns¶
One row per sample, ordered by timestamp. Every column is a plain column; the file has no index.
| Column | Contents |
|---|---|
timestamp |
When the sample was recorded, as a UTC timestamp |
timestamp_local |
The same instant as the athlete's wall-clock time, without a timezone. See Timezones |
duration |
How long this sample's values held: the time until the next sample, as a Parquet duration. 1 second at 1 Hz |
lap |
The lap the sample belongs to, counting from 0 |
| One column per requested metric | The value of that metric at this sample |
timestamp, timestamp_local, duration and lap are always present. The metric columns are the ones you ask for in metrics; if the activity did not record one of them, the column is present, with that metric's type, and every value in it is null. power, heart_rate, cadence, temperature and lap are integers; speed, altitude, distance, latitude and longitude are floats.
With segmentation_on, each row is one segment instead of one sample: timestamp is the segment's start, duration its length, each metric its mean over the segment, and there is no lap column. power, heart_rate and cadence are rounded to integers; every other metric, temperature included, is a float.
Reading the Parquet outside the Python SDK¶
The endpoint returns a ZSTD-compressed Parquet body. If you don't use the Python SDK, read it with any Parquet library that supports the ZSTD codec. Every reader sees the same columns.
import pandas as pd
# activity.parquet is the response body from GET /activities/{id}/data
df = pd.read_parquet("activity.parquet") # pyarrow reads ZSTD by default
per_minute = df.set_index("timestamp")["power"].resample("1min").mean()
import { parquetReadObjects } from "hyparquet";
import { compressors } from "hyparquet-compressors"; // adds ZSTD support
const buffer = await fetch(dataUrl, {
headers: { Authorization: `Bearer ${accessToken}` },
}).then((r) => r.arrayBuffer());
const rows = await parquetReadObjects({ file: buffer, compressors });
hyparquet reads Parquet in Node and in the browser. The companion hyparquet-compressors package supplies the ZSTD codec. See the hyparquet docs for the full API.
Downloading the original file¶
Sometimes a field that exists in the source recording is missing from the normalized activity data. For that case, GET /api/v1/activities/{activity_id}/download returns the original file from the provider (for example the FIT file), so you can read the raw field yourself.
Treat it as a fallback for that gap, not as your primary data path. For almost everything, the normalized metadata and timeseries endpoints are what you want.
Longitudinal data¶
GET /api/v1/activities/longitudinal-data returns the timeseries of many activities as one Parquet file.
data = client.activities.longitudinal.data(
sport=["running"],
start=start_date,
)
activities.longitudinal.data returns a DataFrame. Pass segmentation_on to downsample with AISC, keyed on "power" or "speed":
data = client.activities.longitudinal.data(
sport=["cycling"],
start=start_date,
segmentation_on="power",
)
The DataFrame has a timezone-aware UTC timestamp column, so samples from activities in different timezones sort and merge on one absolute axis. A timestamp_local column holds the naive local wall-clock of each sample, derived from that sample's own activity, so grouping by local calendar day stays correct across DST changes and travel. Merge and sort on timestamp; group by local day on timestamp_local. See Timezones.
curl -X GET "https://app.sweatstack.no/api/v1/activities/longitudinal-data?sport=running&start=2024-01-01" \
-H "Authorization: Bearer {your_access_token}"
With every parameter:
curl -X GET "https://app.sweatstack.no/api/v1/activities/longitudinal-data?sport=running&sport=cycling&start=2024-01-01&end=2024-12-31&metrics=power&metrics=heart_rate&segmentation_on=power" \
-H "Authorization: Bearer {your_access_token}"
Query parameters:
sport(optional): a sport code. Repeat the parameter for more than one sport.start(optional): first day of the range,YYYY-MM-DD. Included. Matches each activity's own local date.end(optional): last day of the range,YYYY-MM-DD. Included.metrics(optional, defaultduration,power,speedandheart_rate): a metric to include. Repeat the parameter for more than one metric.durationis always included.segmentation_on(optional): downsample with AISC, keyed onpowerorspeed.
Requires the activities:read scope.
Columns¶
One row per sample of every activity in the range, ordered by timestamp. The file has no index.
| Column | Contents |
|---|---|
timestamp |
When the sample was recorded, as a UTC timestamp. Samples from activities in different timezones share this one axis |
timestamp_local |
The same instant as the athlete's wall-clock time, without a timezone, from that sample's own activity. See Timezones |
duration |
How long this sample's values held: the time until the next sample of the same activity, as a Parquet duration |
activity_id |
The activity the sample belongs to |
sport |
That activity's sport |
| One column per requested metric | The value of that metric at this sample |
Every metric column you ask for in metrics is present. For an activity that did not record a metric, that metric is null on every row of the activity. There is no lap column; fetch an activity's own data for laps. The column types are the same as for one activity.
Mean-max¶
The mean-max curve (also called the power-duration or speed-duration curve) gives, for every duration, the highest average value of a metric sustained over any window of that length. It is the basis of power-duration profiling. SweatStack serves it for a single activity and as the best across many activities.
Both endpoints return the same shape: one row per duration, no index.
| Column | Contents |
|---|---|
duration |
The window length |
power or speed |
The best average over a window of that length (W, or m/s) |
start |
UTC timestamp at which that best effort began |
activity_id, sport |
Longitudinal only: the activity that set this duration's best |
after |
With fatigue states only (see below) |
Durations. By default you get 19: 1, 2, 5, 10, 20, 30 s; 1, 2, 3, 5, 10, 15, 20, 30 min; 1, 2, 3, 4, 6 h. They are the same durations the intensity-duration model uses, so the raw and the fitted curve line up row for row. Pass durations=all for the full grid (1 s steps to 3 min, then 5, 10, 30 and 60 s steps, about 700 points up to 6 h), or your own comma-separated list in seconds, for example durations=5,60,300,1200. Values between stored points are interpolated. A duration no activity lasted has no row, so a 40-minute ride has no 1 h row.
The curve is not always decreasing. Hard efforts separated by rests can make a longer best average higher than a shorter one. That is real, and the API returns the curve as it is. If you fit a model, make the curve monotone first. The intensity-duration model does this for you.
Per-activity mean-max¶
GET /api/v1/activities/{activity_id}/mean-max returns the curve of one activity, cut at the activity's length.
from sweatstack import Client
client = Client()
mean_max = client.activities.mean_max(activity_id, metric="power")
activities.mean_max returns a DataFrame with the 19 default durations. The SDK does not take durations yet; call the API directly for the full grid or your own list.
curl -X GET "https://app.sweatstack.no/api/v1/activities/{activity_id}/mean-max?metric=power" \
-H "Authorization: Bearer {your_access_token}"
Query parameters:
metric(required):powerorspeed.durations(optional, default the 19 durations above):all, or a comma-separated list in seconds.
Requires the activities:read scope.
Longitudinal mean-max¶
GET /api/v1/activities/longitudinal-mean-max takes, for every duration, the best value any activity matching the sport and date range reached, and says which activity it was.
from datetime import date
from sweatstack import Client
client = Client()
mean_max = client.activities.longitudinal.mean_max(
sport="cycling",
metric="power",
start=date(2024, 1, 1),
end=date(2024, 12, 31),
)
activities.longitudinal.mean_max returns a DataFrame and takes after as a number or a list.
curl -X GET "https://app.sweatstack.no/api/v1/activities/longitudinal-mean-max?sport=cycling&metric=power&start=2024-01-01&end=2024-12-31" \
-H "Authorization: Bearer {your_access_token}"
Query parameters:
sport(optional): a sport code. Repeat the parameter for more than one sport.metric(required):powerorspeed.start(optional): first day of the range,YYYY-MM-DD. Included.end(optional, default today): last day of the range,YYYY-MM-DD. Included.durations(optional, default the 19 durations above):all, or a comma-separated list in seconds.after(optional): a fatigue state. Repeat the parameter for up to 5 states. See below.
Requires the activities:read scope.
Fatigue states (after)¶
Each after value computes the curve over only the part of each activity after that much accumulated work (kJ for power; meters for speed, which is in beta), then takes the best across activities. It shows how the athlete's curve holds up under fatigue. Repeat after for more than one state, up to 5. With after, the response gains an after column and the date range is capped at 1 year. A state no activity reaches has no rows.
These curves are computed from each activity's adaptive segments, which are exact from 1 to 20 s and within about 2 % beyond that, so after=0 can differ slightly from the curve without after.
curl -X GET "https://app.sweatstack.no/api/v1/activities/longitudinal-mean-max?sport=cycling&metric=power&start=2024-01-01&end=2024-12-31&after=0&after=50&after=100" \
-H "Authorization: Bearer {your_access_token}"
This is the raw curve. For a fitted model on top of it, or for the thresholds most apps want, see Metabolic profile.
Uploading files¶
POST /api/v1/activities/upload takes up to 10 activity files in one multipart/form-data request. Supported formats: .fit (carries its own sport) and .csv (see CSV format), each plain or gzipped (see Send compressed files).
from sweatstack import Client
client = Client()
sources = client.activities.upload(["ride.fit", "run.csv"])
activities.upload returns one source per file.
curl -X POST "https://app.sweatstack.no/api/v1/activities/upload" \
-H "Authorization: Bearer {access_token}" \
-F "[email protected]" \
-F "[email protected]"
Requires the activities:write scope. Request it during authorization; see Scopes.
Send compressed files¶
A file named .fit.gz or .csv.gz is unpacked on arrival and stored as the plain file, without .gz. FIT files are about a third of their size gzipped, so an import with many files finishes sooner. The 100 MB limit applies to the unpacked file. A browser can compress a file before it sends it:
const gzipped = await new Response(
file.stream().pipeThrough(new CompressionStream("gzip"))
).blob();
form.append("files", gzipped, `${file.name}.gz`);
Read the result per file¶
The API returns 202 with one source per file. It never returns a bare success that hides a failed file:
{
"sources": [
{ "id": "src_abc", "type": "fit", "filename": "ride.fit", "status": "processing", "error": null, "activity_ids": [] },
{ "id": "src_def", "type": "csv", "filename": "run.csv", "status": "failed", "error": { "code": "csv_missing_sport", "message": "CSV must contain a 'sport' column …" }, "activity_ids": [] }
]
}
Each file is independent. A bad file is failed with a named reason; the good files in the same request are processing. If the request itself is wrong (no files, more than 10 files), the API returns an RFC 7807 application/problem+json 4xx instead.
Every source says who wrote it and where the file came from, in three fields it shares with dailies, markers and max efforts: writer is athlete (the person, or SweatStack's own CLI and Python library acting as them), application (your app; application_id names it) or sweatstack (SweatStack's own sync of a platform the athlete connected); platform is the platform the file came from (garmin_connect, strava, ...) or null when it came from none. A source your app uploads has writer: "application" and your app as its application_id; your app can delete it with DELETE /api/v1/sources/{id}. Name the platform a file came from with the platform form field: it is accepted with a token issued to your app or to SweatStack's own clients, and refused with a 422 from a session or an API key.
Get the outcome by polling or by webhook¶
Processing is asynchronous. Learn each source's final outcome in one of two ways:
- Poll
GET /api/v1/sources/{id}untilstatusisprocessed(withactivity_idsfilled in) orfailed(witherror). A source that is stillprocessingafter 30 minutes reads asfailedwith error codeprocessing_timeout. To list and reconcile, callGET /api/v1/sources?status=failed&created_after=…; the total count is in theX-Total-Countheader. - Webhooks.
source_processedandsource_failedfire once per upload, andactivity_createdfires once per resulting activity. Each carries the source id; fetchGET /api/v1/sources/{id}for details.
The source_id on every activity resolves to the same GET /api/v1/sources/{id}, so you can always trace an activity back to its upload.
Error codes¶
| Code | Meaning |
|---|---|
no_files, too_many_files |
The request is wrong. Returned as an RFC 7807 4xx. |
unsupported_file_type |
The file is not .fit, .csv, .fit.gz or .csv.gz. |
invalid_gzip |
The file's name ends in .gz, but it is not gzip. |
empty_file, file_too_large |
The file envelope is wrong. |
csv_missing_sport, invalid_sport, csv_missing_timestamp, csv_invalid_timestamps |
The CSV content is wrong. Caught at upload time. invalid_sport means the sport is not a recognized Open Sport Taxonomy code. |
unreadable_file, no_data |
The file parsed to nothing usable. Reported on the source after processing. |
external_id_requires_application, external_id_count |
A relayed upload is wrong: external_id without an app token, or not one per file. Returned as an RFC 7807 4xx. |
invalid_platform, platform_not_allowed |
platform is not a platform name (lower case: a letter, then letters, digits or underscores, for example garmin_connect), or was sent from a session or an API key. Returned as an RFC 7807 422. |
Relaying files your app received¶
If your app gets activity files from a platform itself (its own Garmin, Coros or Polar connection, or your own device), send each one with your own id for it and the platform's name. That makes the upload safe to repeat, attributes the data to its platform, and lets you delete or correct the file later. For Garmin Connect, read Use Garmin Connect data first.
Send a file like this:
from sweatstack import Client
client = Client()
sources = client.activities.upload("ride.fit", platform="coros", external_id="coros-8837261")
Use the client of a user who signed in through your app: user.client in the FastAPI helper, auth.client in the Streamlit helper. For several files, pass a list of files and a list of ids in the same order.
curl -X POST "https://app.sweatstack.no/api/v1/activities/upload" \
-H "Authorization: Bearer {access_token}" \
-F "[email protected]" -F "external_id=coros-8837261" \
-F "platform=coros"
external_id: one per file, in the same order as the files. It needs a token issued to your app. Send a file again with the sameexternal_idand SweatStack keeps the existing source and its activities if the file is identical, so a webhook you relay twice is still one activity and retrying a lost upload is always safe. If the file changed, for example after the athlete edited the activity upstream, the source is processed again from it under the same id:activity_deletedfor the old activities,activity_createdfor the new. There is no flag; the bytes decide.platform(optional): the platform the file came from, as a canonical name:garmin_connect,strava,coros, ... (garminis accepted and stored asgarmin_connect). Usegarmin_connectonly for a file that came through Garmin's API, andgarmin_devicefor one read directly from a Garmin device or from the athlete's own Garmin data export. Without it the file is attributed to no platform, and after an athlete moves an existing account to your app their earlier files are not recognised.
The source has writer: "application" and echoes external_id and platform. Relayed files are processed after a person's own uploads, so a large history import never holds up someone waiting for their ride.
Deleting a relayed file is your app's choice. If the athlete revokes your app at the platform, their files stay. To delete a file, for example after the platform deleted the activity or the athlete asked you to, use DELETE /api/v1/sources?external_id=coros-8837261 or DELETE /api/v1/sources/{id}. Both remove the source and its activities and fire activity_deleted. For a user that belongs to your app, your app handles their requests to delete data. Your app can delete only the files it uploaded; the athlete, with a token of their own, can delete any of their sources.
Health data, such as sleep and resting heart rate, goes to the dailies endpoint, not here.
A file relayed for a SweatStack account that also has the same platform connected through SweatStack arrives twice: SweatStack does not match activities across sources. For users that belong to your app this cannot happen.
CSV format¶
A CSV must have a sport column (one Open Sport Taxonomy code, for example cycling.road) and a timestamp column with offset-aware ISO 8601 datetimes (ending in +02:00, Z, or another offset), so the file carries its own sport and timezone. SweatStack keeps the recognized metric columns (power, heart_rate, cadence, altitude, distance, speed, and the others in the data model) and drops every other column. Download a working sample CSV.
Backfill status¶
When a user first connects their account, SweatStack backfills their historical activities, newest first. GET /api/v1/activities/backfill-status streams the progress, so your app can tell how far back the history reaches. Use it when your app needs a minimum amount of history before it works, for example 4 weeks.
from datetime import datetime, timedelta
from sweatstack import Client
client = Client()
four_weeks_ago = datetime.now() - timedelta(weeks=4)
# Loop over the status, new update every ~3s
for status in client.activities.watch_backfill_status():
if status.backfill_loaded_until <= four_weeks_ago:
print("Backfilled at least 4 weeks")
break
# Or check once
status = client.activities.backfill_status()
print(f"Backfilled to: {status.backfill_loaded_until}")
activities.watch_backfill_status yields a status for every update and stops when the connection closes after 60 seconds. Pass auto_reconnect=True to keep watching. activities.backfill_status returns the first update and closes.
curl -N -X GET "https://app.sweatstack.no/api/v1/activities/backfill-status" \
-H "Authorization: Bearer {your_access_token}"
-N disables buffering, so you see each update as it arrives.
The API streams newline-delimited JSON (NDJSON):
{"backfill_loaded_until": "2024-03-01T10:00:00Z"}
{"backfill_loaded_until": "2024-02-15T08:30:00Z"}
{"backfill_loaded_until": "2024-01-01T12:00:00Z"}
The stream sends an update about every 3 seconds and the API closes the connection after 60 seconds. Reconnect to keep watching. backfill_loaded_until moves backward in time, because SweatStack backfills from the newest activity to the oldest. If the status request fails, the line carries an error field instead.
Requires the activities:read scope.