Skip to main content

How To Use The Throne API

Read your own Throne data from your own scripts and tools: your sessions, scores, insights, and the measurements behind them. You set it up by creating a token in the Throne app.


What The Personal API Is

The Personal API is a way to take your Throne data out of the app and into whatever you like to work in, whether that's a spreadsheet, a notebook, or a script of your own.

  • It's read-only. The API reads your data. It can't change or delete anything in your account.

  • It returns only your data. A token you create reads your account and no one else's.

  • It's optional. You don't need the API to use Throne; it's there for members who want to run their own analysis.

You'll be most comfortable if you've used a terminal or written a little Python before, but the first request below is a copy and paste.

For the complete reference, see the Throne Personal API developer docs.


What You Can Pull

The API has three things to ask for: your profile, your list of sessions, and the full detail of any one session.

What you ask for

What comes back

Your profile

Your user ID, first name, last name, and the date your account was created

Your sessions

Every completed session, newest first: start and end time, how it was captured, whether it included a bowel movement or urination, and four scores (Gut Health, Hydration, Bathroom Habits, and Bristol Stool Scale type)

One full session

Everything in the sessions list, plus what the session was found to contain, bathroom habits timing, the written insights from the app, and the measurements behind your Session Details

A few things are true of everything the API returns:

  • All times are in UTC, in RFC 3339 format (for example, 2026-09-08T12:01:10Z). Convert them to your own time zone before comparing them with the app.

  • Only completed sessions are included. Deleted sessions are not returned.

  • A score that wasn't produced for a session comes back as null, not 0. Leave those out of your averages so they don't count as zeros.

  • Session type tells you how the session was captured: THRONE_DEVICE (by a Throne device), APP_IMAGE (from a photo in the app), or MANUAL (logged in the app).


Before You Start

You'll need three things:

  • The Throne app, signed in to your account

  • A password manager, or another safe place to keep your token

  • A way to send web requests, such as curl, Postman, or Python. Each request below is shown as an address and a header, so it works in any of them.


How To Create Your API Token

Your token is the key that lets your scripts read your data. You create it in the Throne app.

  1. Open the Throne app.

  2. Tap your profile icon and open Settings.

  3. Select API access.

  4. Create a token.

  5. Copy the token right away and save it in your password manager. The full token is shown once, right after you create it.

Your token starts with thr_pat_live_.

Important To Know About Your Token

  • You have one token at a time.

  • A token lasts one year. After that, create a new one the same way.

  • If you lose your token, you can't view it again. Revoke it in the app and create a new one.

  • Revoking a token stops it working immediately.

  • Treat it like a password. Anyone who has your token can read your Throne data.


How To Make Your First Request

Every request goes to the same base address and carries your token in an Authorization header.

https://api.thronescience.com/personal/v1

To check that your token works, ask for your profile. Send this request, with your own token in place of thr_pat_live_...:

GET https://api.thronescience.com/personal/v1/me
Authorization: Bearer thr_pat_live_...

You should get your profile back, with your own details:

{
"id": "your-user-id",
"firstName": "Ada",
"lastName": "Lovelace",
"created": "2026-04-23T14:13:38Z"
}

If you see your name, you're connected!

If you get a 401 instead, the token is missing, revoked, or expired. Check that you copied the whole token.

Prefer the command line? The developer docs include a ready-to-run curl example.


How To Pull Your Sessions

GET /personal/v1/me/sessions returns your completed sessions, newest first.

GET https://api.thronescience.com/personal/v1/me/sessions
Authorization: Bearer thr_pat_live_...

You can narrow or page the list with these optional parameters:

Parameter

What it does

startAfter

Only sessions that started after this time. Use RFC 3339 with a Z, like 2026-09-01T00:00:00Z. The time itself is not included.

startBefore

Only sessions that started before this time. The time itself is not included.

pageSize

Sessions per page. The default is 50 and the maximum is 200.

pageToken

The nextPageToken from the previous page. Leave it out for the first page.

For example, this asks for sessions that started in September 2026 (UTC):

GET https://api.thronescience.com/personal/v1/me/sessions?startAfter=2026-09-01T00:00:00Z&startBefore=2026-10-01T00:00:00Z
Authorization: Bearer thr_pat_live_...

The response looks like this, with one entry per session:

{
"sessions": [
{
"id": "SE-1f2e3d4c-5b6a-4789-8c0d-1e2f3a4b5c6d",
"userId": "your-user-id",
"type": "THRONE_DEVICE",
"status": "DONE",
"startTime": "2026-09-08T12:01:10Z",
"endTime": "2026-09-08T12:07:42Z",
"hasStool": true,
"hasUrination": true,
"scores": {
"gutHealthScore": 72.5,
"hydrationScore": 61,
"bathroomHabitsScore": 3,
"bristolStoolScale": 4
},
"created": "2026-09-08T12:01:11Z",
"updated": "2026-09-08T12:09:30Z"
}
],
"nextPageToken": "..."
}

The four scores read like this:

Score

What it holds

gutHealthScore

Gut Health Score, from 0 to 100

hydrationScore

Hydration Score. Higher is better hydrated.

bathroomHabitsScore

Bathroom Habits Score: 1 poor, 2 fair, 3 good, 4 excellent

bristolStoolScale

Bristol Stool Scale type, from 1 to 7. Your own entry in the app takes precedence over the device's estimate.

A session's updated time changes when the session is revised, for example when its scores are recomputed.

Getting More Than One Page

A response holds one page of sessions and a nextPageToken. Pass that token back as pageToken to get the next page. An empty token means you've reached the last page. If a token is rejected with a 400, start again from the first page.

Ask for one page at a time, not several at once; the API allows about 10 requests per minute.

Pulling Your Full History With Python

This script pages through all of your sessions and saves them to a file called throne_sessions.json. It uses the requests library (pip install requests) and reads your token from an environment variable named THRONE_TOKEN. In Terminal on Mac or Linux, set it like this before you run the script:

export THRONE_TOKEN="thr_pat_live_..."

Here is the script:

import json
import os
import time

import requests

BASE = "https://api.thronescience.com/personal/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['THRONE_TOKEN']}"}
PAUSE_SECONDS = 6 # stay under about 10 requests per minute

sessions = []
page_token = None

while True:
params = {"pageSize": 200}
if page_token:
params["pageToken"] = page_token

response = requests.get(f"{BASE}/me/sessions", headers=HEADERS, params=params)

if response.status_code == 429:
# Too many requests: wait as long as the API asks, then try again
time.sleep(float(response.headers.get("Retry-After", 10)))
continue

response.raise_for_status()
data = response.json()
sessions.extend(data.get("sessions", []))

page_token = data.get("nextPageToken")
if not page_token:
break

time.sleep(PAUSE_SECONDS)

with open("throne_sessions.json", "w") as f:
json.dump(sessions, f, indent=2)

print(f"Saved {len(sessions)} sessions")

How To Get The Full Detail Of One Session

GET /personal/v1/me/sessions/{sessionId} returns one full session. Use the id of a session from your sessions list:

GET https://api.thronescience.com/personal/v1/me/sessions/SE-...
Authorization: Bearer thr_pat_live_...

You get everything from the sessions list, plus four more fields:

Field

What it holds

tags

What the session was found to contain, for example poo and pee

bathroomHabits

Timing for the visit, measured by your Throne device: total visit time, time to the first bowel movement, number of bowel movements, time from the first to the last, wrap-up time, toilet paper uses, and a score from 1 to 4

insights

The written insights shown in the app, keyed by section: title, subtitle, gut_health, bathroom_habits, hydration, flow_rate. Sections that weren't written are left out.

metrics

The measurements behind the app's Session Details. Each one has a series (the measurement's name), a value, and a timestamp.

A full session looks like this:

{
"id": "SE-1f2e3d4c-5b6a-4789-8c0d-1e2f3a4b5c6d",
"userId": "your-user-id",
"type": "THRONE_DEVICE",
"status": "DONE",
"startTime": "2026-09-08T12:01:10Z",
"endTime": "2026-09-08T12:07:42Z",
"hasStool": true,
"hasUrination": true,
"scores": {
"gutHealthScore": 72.5,
"hydrationScore": 61,
"bathroomHabitsScore": 3,
"bristolStoolScale": 4
},
"tags": ["poo", "pee"],
"bathroomHabits": {
"score": 3,
"totalSessionTimeS": 392,
"timeToFirstEvacuationS": 95,
"numberOfEvacuations": "2",
"activeEvacuationTimeS": 140,
"wrapUpTimeS": 120,
"totalTpWads": "3"
},
"insights": {
"title": "A steady, healthy visit",
"gut_health": "Your stool looked well formed and in the healthy range.",
"hydration": "You look well hydrated today."
},
"metrics": [
{ "series": "urine.volume", "timestamp": "2026-09-08T12:02:30Z", "value": "245" }
],
"created": "2026-09-08T12:01:11Z",
"updated": "2026-09-08T12:09:30Z",
"deletedAt": null
}

A few things to know:

  • A metric's value is always a string. Numbers arrive as decimal strings, so convert them before you do any math.

  • Two bathroom habits counts are strings too. numberOfEvacuations and totalTpWads are whole numbers sent as strings.

  • A 404 means the session isn't yours, isn't complete, or was deleted.

  • Each session's detail is its own request. At about 10 requests per minute, the detail for 600 sessions takes about an hour. Start with the sessions list and fetch detail only for the sessions you need.

What The Metrics List Holds

Each entry in metrics is one measurement, named by its series. The measurements fall into five groups:

Group

Examples of series

Scores

gut-health.score, hydration, bss (Bristol type, estimated)

Stool

poo.buoyancy, poo.diameter, poo.volume, poo.time-to-first-evacuation

Urine

urine.volume (mL), urine.flow.avg and urine.flow.max (mL/s), urine.color.avg

Your entries in the app

user-input.bss, user-input.poo-size, user-input.stool-features, user-input.symptoms

Time on the toilet

active-time.pee, active-time.poo, bathroom-habits.total-session-time-s

Units differ by series: active times are in microseconds, and bathroom habits times are in seconds. The full list of measurements is in the appendix of the Throne Personal API developer docs.


What You Can Do With Your Data

Once your sessions are in a file, you can ask your own questions of them. The four examples below come from one member's analysis of six months of their Throne sessions, lined up with their WHOOP and Strava data. Personal details have been removed.

Build Your Own Baseline

Start with simple counts: how often you go, what's typical for you, and your average scores. This member's baseline covers urinations and bowel movements per day, the share of stools at Bristol type 3 or 4, and their mean Hydration Score.

Compare Your Training Days

Line your sessions up with your training load. Here, days are split into thirds by WHOOP strain, and the lowest-strain third is compared with the highest.

Look Before And After A Workout

Match your session start times against your workouts. This table compares Hydration Scores in the four hours before and after each run logged in Strava.

Zoom In On A Single Night

Go session by session around one event. This chart puts each session's Hydration Score next to WHOOP sleep and recovery across three days.

Tips For Your Own Analysis

  • Start with the sessions list. Counts and scores come from it; volume and flow come from each session's metrics.

  • Convert times from UTC to your own time zone first. It matters for anything about time of day or sleep.

  • Match your sessions to other data by time. WHOOP, Strava, and many other apps offer their own APIs or exports.

  • Skip null scores so they don't count as zeros.

  • Read what you find as a pattern in your own data, not as a medical finding.


Errors And Rate Limits

When a request fails, the API returns a JSON body with a code and a message:

{ "error": { "code": "NOT_FOUND", "message": "session not found" } }

Use the code in your scripts; the wording of the message can change.

HTTP status

Code

What it means

400

INVALID_ARGUMENT

A bad parameter or page token.

401

UNAUTHENTICATED

The token is missing, revoked, or expired.

404

NOT_FOUND

An unknown route, or a session that isn't yours.

429

RESOURCE_EXHAUSTED

Too many requests. Wait the number of seconds in the Retry-After header, then try again.

500

INTERNAL

Something went wrong on our side. Wait and try again, leaving more time between each try.

The API allows about 10 requests per minute. Short bursts above that may be allowed. Over the limit, requests get a 429 with a Retry-After header that gives the number of seconds to wait. Page through your history at a steady pace, one request at a time.


Keeping Your Token Safe

  • Store your token in a password manager.

  • Don't paste it into shared documents, screenshots, public code, or messages. If you share a script, take the token out first.

  • If you think someone else has your token, revoke it in the app. It stops working immediately, and you can create a new one.

  • If you contact Throne Support about the API, leave your token out of your message.


Frequently Asked Questions

Can the API change or delete my data?

No. The Personal API is read-only.

Can I use it to see another member's sessions?

No. The API returns only your own data.

I lost my token. Can I see it again?

No. The full token is shown once, right after you create it. Revoke the old token in Settings → API access and create a new one.

My token stopped working. What happened?

A 401 means the token is missing, revoked, or expired. Tokens last one year, so an older token may have expired. Create a new one in Settings → API access.

Why is a session missing from my results?

The API returns only completed sessions, and deleted sessions aren't included.

Why don't the times match what I see in the app?

All API times are in UTC. Convert them to your own time zone.


Full Reference

The Throne Personal API developer docs are the complete reference for everything in this article: every request, field, and measurement, plus an OpenAPI specification you can download.


Need Help?

If something isn't working the way this article describes, contact Throne Support by emailing [email protected] or reaching out via the app.


Related Articles

Throne is a general wellness product. It is not intended to diagnose, screen for, predict, monitor, prevent, treat, cure, or mitigate any disease or medical condition, and it does not provide medical advice. Always consult a qualified healthcare provider for medical questions or concerns.

Did this answer your question?