Talos

Talos API v1.0.0

Read and log your own Talos workouts, routines, exercises and body measurements over HTTPS, with a personal key from the app. Free for every Talos account.

Base URL https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api

Quickstart

The API covers your own profile, workouts, routines, exercises and body measurements, with the same rules as the app: anything you can do in the app you can do here, and nothing more.

1. Create a key

In the Talos app, open Profile > Settings > Developer and tap Create key. Name it and choose Read only or Read and write. The key is shown once, so copy it into your password manager or a server-side environment variable. Talos stores only a hash of it.

2. Make your first request

Set the key as TALOS_API_KEY, then fetch your profile:

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Requests use HTTPS and JSON bodies with Content-Type: application/json. Weights are always in kilograms and lengths in centimetres or metres, whatever units you picked in the app.

Keeping your key safe

  • Use keys from servers, scripts and dashboards, never from a web page. Anyone can read a key in browser code, so the API sends no CORS headers.
  • Prefer a read-only key unless your tool needs to make changes.
  • If a key leaks, revoke it in the app. It stops working on the next request.
  • Talos suspends a key automatically after 100 rate-limited requests in an hour. A suspended key cannot be restored. Revoke it and create a new one. Wrong attempts at a key's secret never suspend it; they count against the caller's address instead.
  • If a Talos account is suspended for breaking the community rules, its keys stop working too.

Rate limits

Limit Allowance
Requests per key 60 a minute and 5000 a day
Writes per key 20 a minute
Requests per IP address 120 a minute
Failed key attempts per IP address 20 an hour, then the address is blocked for 60 minutes
Active keys per account 10
Request body 256 KiB
Page size Up to 100 items

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds until the minute window resets). Over the limit you get 429 with a Retry-After header in seconds. Wait that long before retrying, because repeated limited requests suspend the key.

Errors

Errors are JSON with a stable code you can switch on.

{
  "error": {
    "code": "validation_failed",
    "message": "The body is not valid.",
    "details": { "issues": [{ "path": "name", "message": "Too small" }] }
  }
}
Status Codes
400 invalid_json, bad_request
401 unauthorized, key_revoked
403 key_suspended, forbidden_scope, https_required
404 not_found. It does not exist, or it is not yours.
409 conflict. A duplicate id or username, or a reference to something that is missing or still in use.
413, 415, 422 payload_too_large, unsupported_media_type, validation_failed
429 rate_limited

Pagination

Lists return {"data": [...], "next_cursor": "..."}. Pass next_cursor back as ?cursor= to get the next page, until it is null. Set the page size with ?limit=.

Workouts and routines

A workout or routine is written as one document with its exercises and sets. Their order is the order of the arrays. PUT replaces the whole document, so send everything you want to keep. Exercise ids come from GET /v1/exercises. Library exercises are shared and read-only, and you can add your own.

Versioning

This is version 1. Additions such as new fields or endpoints can arrive at any time, so ignore fields you do not know. Breaking changes only ever ship as a new version, and the old version keeps working for a published period. The machine-readable spec is at openapi.json.

All endpoints

MethodPathWhat it does
GET/v1/meGet your profile
PATCH/v1/meUpdate your profile
GET/v1/exercisesList library and custom exercises
POST/v1/exercisesCreate a custom exercise
GET/v1/exercises/{id}Get an exercise
PATCH/v1/exercises/{id}Update a custom exercise
DELETE/v1/exercises/{id}Delete a custom exercise (archive it instead if workouts use it)
GET/v1/routine-foldersList your routine folders
POST/v1/routine-foldersCreate a routine folder
GET/v1/routine-folders/{id}Get a routine folder
PATCH/v1/routine-folders/{id}Rename or move a routine folder
DELETE/v1/routine-folders/{id}Delete a routine folder (its routines move to the top level)
GET/v1/routinesList your routines, or the pre-made ones
POST/v1/routinesCreate a routine
GET/v1/routines/{id}Get a routine with its exercises and sets
PUT/v1/routines/{id}Replace a routine, including its exercises and sets
DELETE/v1/routines/{id}Delete a routine
GET/v1/workoutsList your workouts, newest first
POST/v1/workoutsLog a workout
GET/v1/workouts/{id}Get a workout with its exercises and sets
PUT/v1/workouts/{id}Replace a workout, including its exercises and sets
DELETE/v1/workouts/{id}Delete a workout
GET/v1/measurementsList your body measurements, newest first
POST/v1/measurementsRecord a body measurement
GET/v1/measurements/{id}Get a body measurement
PATCH/v1/measurements/{id}Update a body measurement
DELETE/v1/measurements/{id}Delete a body measurement

Profile

GET /v1/me

Get your profile.

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "username": "sam_lifts",
  "display_name": "Sam",
  "bio": "Powerlifting three days a week.",
  "avatar_path": null,
  "is_private": false,
  "weight_unit": "kg",
  "distance_unit": "km",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 429 Rate limit reached. See the Retry-After header.

PATCH /v1/me

Update your profile. Needs a read and write key.

Body

FieldTypeNotes
username string
display_name string or null
bio string or null
is_private boolean
weight_unit "kg" | "lb"
distance_unit "km" | "mi"

Request

curl -X PATCH "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "username": "sam_lifts",
  "display_name": "Sam",
  "bio": "Powerlifting three days a week.",
  "is_private": false,
  "weight_unit": "kg",
  "distance_unit": "km"
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "username": "sam_lifts",
    "display_name": "Sam",
    "bio": "Powerlifting three days a week.",
    "is_private": false,
    "weight_unit": "kg",
    "distance_unit": "km"
  }),
});
console.log(await response.json());
import os

import requests

response = requests.patch(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "username": "sam_lifts",
        "display_name": "Sam",
        "bio": "Powerlifting three days a week.",
        "is_private": False,
        "weight_unit": "kg",
        "distance_unit": "km",
    },
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "username": "sam_lifts",
  "display_name": "Sam",
  "bio": "Powerlifting three days a week.",
  "avatar_path": null,
  "is_private": false,
  "weight_unit": "kg",
  "distance_unit": "km",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

Exercises

GET /v1/exercises

List library and custom exercises.

Query parameters

FieldTypeNotes
limit integer min 1, max 100, default 25
cursor string up to 200 characters
source "all" | "library" | "custom" default "all"
q string 1 to 100 characters
muscle "abdominals" | "abductors" | "adductors" | "biceps" | "calves" | "chest" | "forearms" | "glutes" | "hamstrings" | "lats" | "lower_back" | "middle_back" | "neck" | "quadriceps" | "shoulders" | "traps" | "triceps" | "cardio" | "full_body" | "other"
equipment "barbell" | "dumbbell" | "kettlebell" | "machine" | "cable" | "bodyweight" | "band" | "ez_bar" | "medicine_ball" | "exercise_ball" | "foam_roller" | "plate" | "other" | "none"
include_archived "true" | "false" default "false"

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "is_custom": false,
      "name": "Bench press (barbell)",
      "tracking_type": "weight_reps",
      "category": "strength",
      "equipment": "barbell",
      "primary_muscles": [
        "chest"
      ],
      "secondary_muscles": [
        "triceps",
        "shoulders"
      ],
      "instructions": [
        "Lie on the bench with your eyes under the bar.",
        "Lower the bar to the middle of your chest.",
        "Press until your arms are straight."
      ],
      "is_archived": false,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T19:32:00Z"
    }
  ],
  "next_cursor": null
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

POST /v1/exercises

Create a custom exercise. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
name required string 1 to 100 characters
tracking_type "weight_reps" | "bodyweight_reps" | "weighted_bodyweight" | "assisted_bodyweight" | "duration" | "weight_duration" | "distance_duration" | "weight_distance"
category "strength" | "stretching" | "plyometrics" | "powerlifting" | "olympic_weightlifting" | "strongman" | "cardio"
equipment "barbell" | "dumbbell" | "kettlebell" | "machine" | "cable" | "bodyweight" | "band" | "ez_bar" | "medicine_ball" | "exercise_ball" | "foam_roller" | "plate" | "other" | "none"
primary_muscles array of "abdominals" | "abductors" | "adductors" | "biceps" | "calves" | "chest" | "forearms" | "glutes" | "hamstrings" | "lats" | "lower_back" | "middle_back" | "neck" | "quadriceps" | "shoulders" | "traps" | "triceps" | "cardio" | "full_body" | "other" up to 10 items
secondary_muscles array of "abdominals" | "abductors" | "adductors" | "biceps" | "calves" | "chest" | "forearms" | "glutes" | "hamstrings" | "lats" | "lower_back" | "middle_back" | "neck" | "quadriceps" | "shoulders" | "traps" | "triceps" | "cardio" | "full_body" | "other" up to 10 items
instructions array of string up to 30 items

Request

curl -X POST "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Bench press (barbell)",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "chest"
  ],
  "secondary_muscles": [
    "triceps",
    "shoulders"
  ],
  "instructions": [
    "Lie on the bench with your eyes under the bar.",
    "Lower the bar to the middle of your chest.",
    "Press until your arms are straight."
  ]
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Bench press (barbell)",
    "tracking_type": "weight_reps",
    "category": "strength",
    "equipment": "barbell",
    "primary_muscles": [
      "chest"
    ],
    "secondary_muscles": [
      "triceps",
      "shoulders"
    ],
    "instructions": [
      "Lie on the bench with your eyes under the bar.",
      "Lower the bar to the middle of your chest.",
      "Press until your arms are straight."
    ]
  }),
});
console.log(await response.json());
import os

import requests

response = requests.post(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "name": "Bench press (barbell)",
        "tracking_type": "weight_reps",
        "category": "strength",
        "equipment": "barbell",
        "primary_muscles": [
            "chest",
        ],
        "secondary_muscles": [
            "triceps",
            "shoulders",
        ],
        "instructions": [
            "Lie on the bench with your eyes under the bar.",
            "Lower the bar to the middle of your chest.",
            "Press until your arms are straight.",
        ],
    },
)
print(response.json())

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "is_custom": false,
  "name": "Bench press (barbell)",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "chest"
  ],
  "secondary_muscles": [
    "triceps",
    "shoulders"
  ],
  "instructions": [
    "Lie on the bench with your eyes under the bar.",
    "Lower the bar to the middle of your chest.",
    "Press until your arms are straight."
  ],
  "is_archived": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

GET /v1/exercises/{id}

Get an exercise.

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "is_custom": false,
  "name": "Bench press (barbell)",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "chest"
  ],
  "secondary_muscles": [
    "triceps",
    "shoulders"
  ],
  "instructions": [
    "Lie on the bench with your eyes under the bar.",
    "Lower the bar to the middle of your chest.",
    "Press until your arms are straight."
  ],
  "is_archived": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

PATCH /v1/exercises/{id}

Update a custom exercise. Needs a read and write key.

Body

FieldTypeNotes
name string 1 to 100 characters
tracking_type "weight_reps" | "bodyweight_reps" | "weighted_bodyweight" | "assisted_bodyweight" | "duration" | "weight_duration" | "distance_duration" | "weight_distance"
category "strength" | "stretching" | "plyometrics" | "powerlifting" | "olympic_weightlifting" | "strongman" | "cardio"
equipment "barbell" | "dumbbell" | "kettlebell" | "machine" | "cable" | "bodyweight" | "band" | "ez_bar" | "medicine_ball" | "exercise_ball" | "foam_roller" | "plate" | "other" | "none"
primary_muscles array of "abdominals" | "abductors" | "adductors" | "biceps" | "calves" | "chest" | "forearms" | "glutes" | "hamstrings" | "lats" | "lower_back" | "middle_back" | "neck" | "quadriceps" | "shoulders" | "traps" | "triceps" | "cardio" | "full_body" | "other" up to 10 items
secondary_muscles array of "abdominals" | "abductors" | "adductors" | "biceps" | "calves" | "chest" | "forearms" | "glutes" | "hamstrings" | "lats" | "lower_back" | "middle_back" | "neck" | "quadriceps" | "shoulders" | "traps" | "triceps" | "cardio" | "full_body" | "other" up to 10 items
instructions array of string up to 30 items
is_archived boolean

Request

curl -X PATCH "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Bench press (barbell)",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "chest"
  ],
  "secondary_muscles": [
    "triceps",
    "shoulders"
  ],
  "instructions": [
    "Lie on the bench with your eyes under the bar.",
    "Lower the bar to the middle of your chest.",
    "Press until your arms are straight."
  ],
  "is_archived": false
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Bench press (barbell)",
    "tracking_type": "weight_reps",
    "category": "strength",
    "equipment": "barbell",
    "primary_muscles": [
      "chest"
    ],
    "secondary_muscles": [
      "triceps",
      "shoulders"
    ],
    "instructions": [
      "Lie on the bench with your eyes under the bar.",
      "Lower the bar to the middle of your chest.",
      "Press until your arms are straight."
    ],
    "is_archived": false
  }),
});
console.log(await response.json());
import os

import requests

response = requests.patch(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "name": "Bench press (barbell)",
        "tracking_type": "weight_reps",
        "category": "strength",
        "equipment": "barbell",
        "primary_muscles": [
            "chest",
        ],
        "secondary_muscles": [
            "triceps",
            "shoulders",
        ],
        "instructions": [
            "Lie on the bench with your eyes under the bar.",
            "Lower the bar to the middle of your chest.",
            "Press until your arms are straight.",
        ],
        "is_archived": False,
    },
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "is_custom": false,
  "name": "Bench press (barbell)",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "chest"
  ],
  "secondary_muscles": [
    "triceps",
    "shoulders"
  ],
  "instructions": [
    "Lie on the bench with your eyes under the bar.",
    "Lower the bar to the middle of your chest.",
    "Press until your arms are straight."
  ],
  "is_archived": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

DELETE /v1/exercises/{id}

Delete a custom exercise (archive it instead if workouts use it). Needs a read and write key.

Request

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(response.status);
import os

import requests

response = requests.delete(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.status_code)

Response 204

No body.

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

Routine folders

GET /v1/routine-folders

List your routine folders.

Query parameters

FieldTypeNotes
limit integer min 1, max 100, default 25
cursor string up to 200 characters

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "name": "Push Pull Legs",
      "position": 0,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T19:32:00Z"
    }
  ],
  "next_cursor": null
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

POST /v1/routine-folders

Create a routine folder. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
name required string 1 to 60 characters
position integer min 0, max 10000

Request

curl -X POST "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Push Pull Legs",
  "position": 0
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Push Pull Legs",
    "position": 0
  }),
});
console.log(await response.json());
import os

import requests

response = requests.post(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "name": "Push Pull Legs",
        "position": 0,
    },
)
print(response.json())

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Push Pull Legs",
  "position": 0,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

GET /v1/routine-folders/{id}

Get a routine folder.

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Push Pull Legs",
  "position": 0,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

PATCH /v1/routine-folders/{id}

Rename or move a routine folder. Needs a read and write key.

Body

FieldTypeNotes
name string 1 to 60 characters
position integer min 0, max 10000

Request

curl -X PATCH "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Push Pull Legs",
  "position": 0
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Push Pull Legs",
    "position": 0
  }),
});
console.log(await response.json());
import os

import requests

response = requests.patch(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "name": "Push Pull Legs",
        "position": 0,
    },
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Push Pull Legs",
  "position": 0,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

DELETE /v1/routine-folders/{id}

Delete a routine folder (its routines move to the top level). Needs a read and write key.

Request

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(response.status);
import os

import requests

response = requests.delete(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.status_code)

Response 204

No body.

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

Routines

GET /v1/routines

List your routines, or the pre-made ones.

Query parameters

FieldTypeNotes
limit integer min 1, max 100, default 25
cursor string up to 200 characters
source "mine" | "premade" default "mine"
folder_id string (uuid)

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "folder_id": null,
      "name": "Push A",
      "notes": null,
      "position": 0,
      "is_premade": false,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T19:32:00Z",
      "exercise_count": 5
    }
  ],
  "next_cursor": null
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

POST /v1/routines

Create a routine. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
folder_id string (uuid) or null
name required string 1 to 100 characters
notes string or null
position integer min 0, max 10000
exercises array of object up to 50 items, default []

Request

curl -X POST "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "folder_id": null,
  "name": "Push A",
  "notes": null,
  "position": 0,
  "exercises": [
    {
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null
        }
      ]
    }
  ]
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "folder_id": null,
    "name": "Push A",
    "notes": null,
    "position": 0,
    "exercises": [
      {
        "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
        "superset_group": null,
        "rest_seconds": 120,
        "notes": null,
        "sets": [
          {
            "set_type": "normal",
            "weight_kg": 80,
            "reps": 8,
            "duration_seconds": null,
            "distance_m": null
          }
        ]
      }
    ]
  }),
});
console.log(await response.json());
import os

import requests

response = requests.post(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "folder_id": None,
        "name": "Push A",
        "notes": None,
        "position": 0,
        "exercises": [
            {
                "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
                "superset_group": None,
                "rest_seconds": 120,
                "notes": None,
                "sets": [
                    {
                        "set_type": "normal",
                        "weight_kg": 80,
                        "reps": 8,
                        "duration_seconds": None,
                        "distance_m": None,
                    },
                ],
            },
        ],
    },
)
print(response.json())

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "folder_id": null,
  "name": "Push A",
  "notes": null,
  "position": 0,
  "is_premade": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null
        }
      ]
    }
  ]
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

GET /v1/routines/{id}

Get a routine with its exercises and sets.

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "folder_id": null,
  "name": "Push A",
  "notes": null,
  "position": 0,
  "is_premade": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null
        }
      ]
    }
  ]
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

PUT /v1/routines/{id}

Replace a routine, including its exercises and sets. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
folder_id string (uuid) or null
name required string 1 to 100 characters
notes string or null
position integer min 0, max 10000
exercises array of object up to 50 items, default []

Request

curl -X PUT "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "folder_id": null,
  "name": "Push A",
  "notes": null,
  "position": 0,
  "exercises": [
    {
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null
        }
      ]
    }
  ]
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "folder_id": null,
    "name": "Push A",
    "notes": null,
    "position": 0,
    "exercises": [
      {
        "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
        "superset_group": null,
        "rest_seconds": 120,
        "notes": null,
        "sets": [
          {
            "set_type": "normal",
            "weight_kg": 80,
            "reps": 8,
            "duration_seconds": null,
            "distance_m": null
          }
        ]
      }
    ]
  }),
});
console.log(await response.json());
import os

import requests

response = requests.put(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "folder_id": None,
        "name": "Push A",
        "notes": None,
        "position": 0,
        "exercises": [
            {
                "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
                "superset_group": None,
                "rest_seconds": 120,
                "notes": None,
                "sets": [
                    {
                        "set_type": "normal",
                        "weight_kg": 80,
                        "reps": 8,
                        "duration_seconds": None,
                        "distance_m": None,
                    },
                ],
            },
        ],
    },
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "folder_id": null,
  "name": "Push A",
  "notes": null,
  "position": 0,
  "is_premade": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null
        }
      ]
    }
  ]
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

DELETE /v1/routines/{id}

Delete a routine. Needs a read and write key.

Request

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(response.status);
import os

import requests

response = requests.delete(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.status_code)

Response 204

No body.

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

Workouts

GET /v1/workouts

List your workouts, newest first.

Query parameters

FieldTypeNotes
limit integer min 1, max 100, default 25
cursor string up to 200 characters
since string (date-time)
until string (date-time)

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "routine_id": null,
      "name": "Push day",
      "notes": null,
      "started_at": "2026-11-10T18:30:00Z",
      "ended_at": "2026-11-10T19:32:00Z",
      "import_source": null,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T19:32:00Z",
      "exercise_count": 5,
      "set_count": 18
    }
  ],
  "next_cursor": null
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

POST /v1/workouts

Log a workout. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
routine_id string (uuid) or null
name required string 1 to 100 characters
notes string or null
started_at required string (date-time)
ended_at string (date-time) or null
exercises array of object up to 50 items, default []

Request

curl -X POST "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "routine_id": null,
  "name": "Push day",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null,
          "rpe": 8,
          "completed_at": "2026-11-10T18:41:00Z"
        }
      ]
    }
  ]
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "routine_id": null,
    "name": "Push day",
    "notes": null,
    "started_at": "2026-11-10T18:30:00Z",
    "ended_at": "2026-11-10T19:32:00Z",
    "exercises": [
      {
        "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
        "superset_group": null,
        "rest_seconds": 120,
        "notes": null,
        "sets": [
          {
            "set_type": "normal",
            "weight_kg": 80,
            "reps": 8,
            "duration_seconds": null,
            "distance_m": null,
            "rpe": 8,
            "completed_at": "2026-11-10T18:41:00Z"
          }
        ]
      }
    ]
  }),
});
console.log(await response.json());
import os

import requests

response = requests.post(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "routine_id": None,
        "name": "Push day",
        "notes": None,
        "started_at": "2026-11-10T18:30:00Z",
        "ended_at": "2026-11-10T19:32:00Z",
        "exercises": [
            {
                "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
                "superset_group": None,
                "rest_seconds": 120,
                "notes": None,
                "sets": [
                    {
                        "set_type": "normal",
                        "weight_kg": 80,
                        "reps": 8,
                        "duration_seconds": None,
                        "distance_m": None,
                        "rpe": 8,
                        "completed_at": "2026-11-10T18:41:00Z",
                    },
                ],
            },
        ],
    },
)
print(response.json())

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "routine_id": null,
  "name": "Push day",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T19:32:00Z",
  "import_source": null,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null,
          "rpe": 8,
          "completed_at": "2026-11-10T18:41:00Z"
        }
      ]
    }
  ]
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

GET /v1/workouts/{id}

Get a workout with its exercises and sets.

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "routine_id": null,
  "name": "Push day",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T19:32:00Z",
  "import_source": null,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null,
          "rpe": 8,
          "completed_at": "2026-11-10T18:41:00Z"
        }
      ]
    }
  ]
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

PUT /v1/workouts/{id}

Replace a workout, including its exercises and sets. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
routine_id string (uuid) or null
name required string 1 to 100 characters
notes string or null
started_at required string (date-time)
ended_at string (date-time) or null
exercises array of object up to 50 items, default []

Request

curl -X PUT "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "routine_id": null,
  "name": "Push day",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null,
          "rpe": 8,
          "completed_at": "2026-11-10T18:41:00Z"
        }
      ]
    }
  ]
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "routine_id": null,
    "name": "Push day",
    "notes": null,
    "started_at": "2026-11-10T18:30:00Z",
    "ended_at": "2026-11-10T19:32:00Z",
    "exercises": [
      {
        "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
        "superset_group": null,
        "rest_seconds": 120,
        "notes": null,
        "sets": [
          {
            "set_type": "normal",
            "weight_kg": 80,
            "reps": 8,
            "duration_seconds": null,
            "distance_m": null,
            "rpe": 8,
            "completed_at": "2026-11-10T18:41:00Z"
          }
        ]
      }
    ]
  }),
});
console.log(await response.json());
import os

import requests

response = requests.put(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "routine_id": None,
        "name": "Push day",
        "notes": None,
        "started_at": "2026-11-10T18:30:00Z",
        "ended_at": "2026-11-10T19:32:00Z",
        "exercises": [
            {
                "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
                "superset_group": None,
                "rest_seconds": 120,
                "notes": None,
                "sets": [
                    {
                        "set_type": "normal",
                        "weight_kg": 80,
                        "reps": 8,
                        "duration_seconds": None,
                        "distance_m": None,
                        "rpe": 8,
                        "completed_at": "2026-11-10T18:41:00Z",
                    },
                ],
            },
        ],
    },
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "routine_id": null,
  "name": "Push day",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T19:32:00Z",
  "import_source": null,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "0b7e4d2c-5a19-4f63-8d2e-71c9a4e3b580",
      "superset_group": null,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": null,
          "distance_m": null,
          "rpe": 8,
          "completed_at": "2026-11-10T18:41:00Z"
        }
      ]
    }
  ]
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

DELETE /v1/workouts/{id}

Delete a workout. Needs a read and write key.

Request

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(response.status);
import os

import requests

response = requests.delete(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.status_code)

Response 204

No body.

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

Measurements

GET /v1/measurements

List your body measurements, newest first.

Query parameters

FieldTypeNotes
limit integer min 1, max 100, default 25
cursor string up to 200 characters
since string (date-time)
until string (date-time)

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "measured_at": "2026-11-10T07:15:00Z",
      "weight_kg": 80,
      "body_fat_percent": 18.5,
      "neck_cm": 1,
      "shoulders_cm": 1,
      "chest_cm": 102,
      "waist_cm": 84,
      "hips_cm": 1,
      "left_bicep_cm": 1,
      "right_bicep_cm": 1,
      "left_forearm_cm": 1,
      "right_forearm_cm": 1,
      "left_thigh_cm": 1,
      "right_thigh_cm": 1,
      "left_calf_cm": 1,
      "right_calf_cm": 1,
      "notes": null,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T19:32:00Z"
    }
  ],
  "next_cursor": null
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

POST /v1/measurements

Record a body measurement. Needs a read and write key.

Body

FieldTypeNotes
id string (uuid)
measured_at string (date-time)
weight_kg number or null
body_fat_percent number or null
neck_cm number or null
shoulders_cm number or null
chest_cm number or null
waist_cm number or null
hips_cm number or null
left_bicep_cm number or null
right_bicep_cm number or null
left_forearm_cm number or null
right_forearm_cm number or null
left_thigh_cm number or null
right_thigh_cm number or null
left_calf_cm number or null
right_calf_cm number or null
notes string or null

Request

curl -X POST "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "measured_at": "2026-11-10T07:15:00Z",
  "weight_kg": 80,
  "body_fat_percent": 18.5,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 102,
  "waist_cm": 84,
  "hips_cm": 1,
  "left_bicep_cm": 1,
  "right_bicep_cm": 1,
  "left_forearm_cm": 1,
  "right_forearm_cm": 1,
  "left_thigh_cm": 1,
  "right_thigh_cm": 1,
  "left_calf_cm": 1,
  "right_calf_cm": 1,
  "notes": null
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "measured_at": "2026-11-10T07:15:00Z",
    "weight_kg": 80,
    "body_fat_percent": 18.5,
    "neck_cm": 1,
    "shoulders_cm": 1,
    "chest_cm": 102,
    "waist_cm": 84,
    "hips_cm": 1,
    "left_bicep_cm": 1,
    "right_bicep_cm": 1,
    "left_forearm_cm": 1,
    "right_forearm_cm": 1,
    "left_thigh_cm": 1,
    "right_thigh_cm": 1,
    "left_calf_cm": 1,
    "right_calf_cm": 1,
    "notes": null
  }),
});
console.log(await response.json());
import os

import requests

response = requests.post(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "measured_at": "2026-11-10T07:15:00Z",
        "weight_kg": 80,
        "body_fat_percent": 18.5,
        "neck_cm": 1,
        "shoulders_cm": 1,
        "chest_cm": 102,
        "waist_cm": 84,
        "hips_cm": 1,
        "left_bicep_cm": 1,
        "right_bicep_cm": 1,
        "left_forearm_cm": 1,
        "right_forearm_cm": 1,
        "left_thigh_cm": 1,
        "right_thigh_cm": 1,
        "left_calf_cm": 1,
        "right_calf_cm": 1,
        "notes": None,
    },
)
print(response.json())

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "measured_at": "2026-11-10T07:15:00Z",
  "weight_kg": 80,
  "body_fat_percent": 18.5,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 102,
  "waist_cm": 84,
  "hips_cm": 1,
  "left_bicep_cm": 1,
  "right_bicep_cm": 1,
  "left_forearm_cm": 1,
  "right_forearm_cm": 1,
  "left_thigh_cm": 1,
  "right_thigh_cm": 1,
  "left_calf_cm": 1,
  "right_calf_cm": 1,
  "notes": null,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

GET /v1/measurements/{id}

Get a body measurement.

Request

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(await response.json());
import os

import requests

response = requests.get(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "measured_at": "2026-11-10T07:15:00Z",
  "weight_kg": 80,
  "body_fat_percent": 18.5,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 102,
  "waist_cm": 84,
  "hips_cm": 1,
  "left_bicep_cm": 1,
  "right_bicep_cm": 1,
  "left_forearm_cm": 1,
  "right_forearm_cm": 1,
  "left_thigh_cm": 1,
  "right_thigh_cm": 1,
  "left_calf_cm": 1,
  "right_calf_cm": 1,
  "notes": null,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.

PATCH /v1/measurements/{id}

Update a body measurement. Needs a read and write key.

Body

FieldTypeNotes
measured_at string (date-time)
weight_kg number or null
body_fat_percent number or null
neck_cm number or null
shoulders_cm number or null
chest_cm number or null
waist_cm number or null
hips_cm number or null
left_bicep_cm number or null
right_bicep_cm number or null
left_forearm_cm number or null
right_forearm_cm number or null
left_thigh_cm number or null
right_thigh_cm number or null
left_calf_cm number or null
right_calf_cm number or null
notes string or null

Request

curl -X PATCH "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "measured_at": "2026-11-10T07:15:00Z",
  "weight_kg": 80,
  "body_fat_percent": 18.5,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 102,
  "waist_cm": 84,
  "hips_cm": 1,
  "left_bicep_cm": 1,
  "right_bicep_cm": 1,
  "left_forearm_cm": 1,
  "right_forearm_cm": 1,
  "left_thigh_cm": 1,
  "right_thigh_cm": 1,
  "left_calf_cm": 1,
  "right_calf_cm": 1,
  "notes": null
}'
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "measured_at": "2026-11-10T07:15:00Z",
    "weight_kg": 80,
    "body_fat_percent": 18.5,
    "neck_cm": 1,
    "shoulders_cm": 1,
    "chest_cm": 102,
    "waist_cm": 84,
    "hips_cm": 1,
    "left_bicep_cm": 1,
    "right_bicep_cm": 1,
    "left_forearm_cm": 1,
    "right_forearm_cm": 1,
    "left_thigh_cm": 1,
    "right_thigh_cm": 1,
    "left_calf_cm": 1,
    "right_calf_cm": 1,
    "notes": null
  }),
});
console.log(await response.json());
import os

import requests

response = requests.patch(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
    json={
        "measured_at": "2026-11-10T07:15:00Z",
        "weight_kg": 80,
        "body_fat_percent": 18.5,
        "neck_cm": 1,
        "shoulders_cm": 1,
        "chest_cm": 102,
        "waist_cm": 84,
        "hips_cm": 1,
        "left_bicep_cm": 1,
        "right_bicep_cm": 1,
        "left_forearm_cm": 1,
        "right_forearm_cm": 1,
        "left_thigh_cm": 1,
        "right_thigh_cm": 1,
        "left_calf_cm": 1,
        "right_calf_cm": 1,
        "notes": None,
    },
)
print(response.json())

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "measured_at": "2026-11-10T07:15:00Z",
  "weight_kg": 80,
  "body_fat_percent": 18.5,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 102,
  "waist_cm": 84,
  "hips_cm": 1,
  "left_bicep_cm": 1,
  "right_bicep_cm": 1,
  "left_forearm_cm": 1,
  "right_forearm_cm": 1,
  "left_thigh_cm": 1,
  "right_thigh_cm": 1,
  "left_calf_cm": 1,
  "right_calf_cm": 1,
  "notes": null,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T19:32:00Z"
}

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 409 Conflicts with existing data
  • 413 Body larger than 256 KiB
  • 422 The query or body failed validation
  • 429 Rate limit reached. See the Retry-After header.

DELETE /v1/measurements/{id}

Delete a body measurement. Needs a read and write key.

Request

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"
const response = await fetch("https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.TALOS_API_KEY}`,
  },
});
console.log(response.status);
import os

import requests

response = requests.delete(
    "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>",
    headers={"Authorization": f"Bearer {os.environ['TALOS_API_KEY']}"},
)
print(response.status_code)

Response 204

No body.

Errors

  • 401 Missing, invalid or revoked API key
  • 403 Key suspended, or a read-only key tried to write
  • 404 Not found, or not yours
  • 429 Rate limit reached. See the Retry-After header.