Talos API v1.0.0

The free Talos API. Everything you can do with your own account in the app, from your own scripts and dashboards. Create a key in the app under Settings > Developer.

Getting started

The Talos API is free for every Talos user. It covers your own workouts, routines, exercises, body measurements and profile, 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. Give it a name and choose Read only or Read and write. The key is shown once. Copy it somewhere safe, such as your password manager or a server-side environment variable. Talos stores only a hash of it and cannot show it again.

2. Make a request

curl "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me" \
  -H "Authorization: Bearer $TALOS_API_KEY"

The base URL is https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api. HTTPS only. Bodies are JSON, sent with Content-Type: application/json. All weights are in kilograms and all 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. The API sends no CORS headers for this reason.
  • 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 10 wrong attempts at its secret in an hour, or after 100 rate-limited requests in an hour. A suspended key cannot be restored: revoke it and create a new one.

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.

Profile

GET /v1/me

Get your profile

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/me" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "username": "graham",
  "display_name": "Graham",
  "bio": "Pushing and pulling.",
  "avatar_path": "string",
  "is_private": false,
  "weight_unit": "kg",
  "distance_unit": "km",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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"

Example

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": "graham",
  "display_name": "Graham",
  "bio": "Pushing and pulling.",
  "is_private": false,
  "weight_unit": "kg",
  "distance_unit": "km"
}'

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "username": "graham",
  "display_name": "Graham",
  "bio": "Pushing and pulling.",
  "avatar_path": "string",
  "is_private": false,
  "weight_unit": "kg",
  "distance_unit": "km",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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"

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "is_custom": false,
      "name": "Bench press",
      "tracking_type": "weight_reps",
      "category": "strength",
      "equipment": "barbell",
      "primary_muscles": [
        "abdominals"
      ],
      "secondary_muscles": [
        "abdominals"
      ],
      "instructions": [
        "string"
      ],
      "is_archived": false,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T18:30: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

Example

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",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "abdominals"
  ],
  "secondary_muscles": [
    "abdominals"
  ],
  "instructions": [
    "string"
  ]
}'

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "is_custom": false,
  "name": "Bench press",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "abdominals"
  ],
  "secondary_muscles": [
    "abdominals"
  ],
  "instructions": [
    "string"
  ],
  "is_archived": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "is_custom": false,
  "name": "Bench press",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "abdominals"
  ],
  "secondary_muscles": [
    "abdominals"
  ],
  "instructions": [
    "string"
  ],
  "is_archived": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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

Example

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",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "abdominals"
  ],
  "secondary_muscles": [
    "abdominals"
  ],
  "instructions": [
    "string"
  ],
  "is_archived": false
}'

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "is_custom": false,
  "name": "Bench press",
  "tracking_type": "weight_reps",
  "category": "strength",
  "equipment": "barbell",
  "primary_muscles": [
    "abdominals"
  ],
  "secondary_muscles": [
    "abdominals"
  ],
  "instructions": [
    "string"
  ],
  "is_archived": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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

Example

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/exercises/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

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

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "name": "Bench press",
      "position": 1,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T18:30: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

Example

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": "Bench press",
  "position": 1
}'

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "position": 1,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "position": 1,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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

Example

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": "Bench press",
  "position": 1
}'

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "position": 1,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30: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

Example

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routine-folders/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

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)

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "folder_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "name": "Bench press",
      "notes": null,
      "position": 1,
      "is_premade": false,
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T18:30:00Z",
      "exercise_count": 1
    }
  ],
  "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 []

Example

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": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "position": 1,
  "exercises": [
    {
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1
        }
      ]
    }
  ]
}'

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "folder_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "position": 1,
  "is_premade": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1
        }
      ]
    }
  ]
}

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

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "folder_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "position": 1,
  "is_premade": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1
        }
      ]
    }
  ]
}

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 []

Example

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": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "position": 1,
  "exercises": [
    {
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1
        }
      ]
    }
  ]
}'

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "folder_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "position": 1,
  "is_premade": false,
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1
        }
      ]
    }
  ]
}

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

Example

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/routines/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

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)

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "routine_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "name": "Bench press",
      "notes": null,
      "started_at": "2026-11-10T18:30:00Z",
      "ended_at": "2026-11-10T18:30:00Z",
      "import_source": "hevy",
      "created_at": "2026-11-10T18:30:00Z",
      "updated_at": "2026-11-10T18:30:00Z",
      "exercise_count": 1,
      "set_count": 1
    }
  ],
  "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 []

Example

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": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1,
          "rpe": 8,
          "completed_at": "2026-11-10T18:30:00Z"
        }
      ]
    }
  ]
}'

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "routine_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T18:30:00Z",
  "import_source": "hevy",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1,
          "rpe": 8,
          "completed_at": "2026-11-10T18:30: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

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "routine_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T18:30:00Z",
  "import_source": "hevy",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1,
          "rpe": 8,
          "completed_at": "2026-11-10T18:30: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 []

Example

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": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1,
          "rpe": 8,
          "completed_at": "2026-11-10T18:30:00Z"
        }
      ]
    }
  ]
}'

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "routine_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "name": "Bench press",
  "notes": null,
  "started_at": "2026-11-10T18:30:00Z",
  "ended_at": "2026-11-10T18:30:00Z",
  "import_source": "hevy",
  "created_at": "2026-11-10T18:30:00Z",
  "updated_at": "2026-11-10T18:30:00Z",
  "exercises": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "exercise_id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "superset_group": 1,
      "rest_seconds": 120,
      "notes": null,
      "sets": [
        {
          "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
          "set_type": "normal",
          "weight_kg": 80,
          "reps": 8,
          "duration_seconds": 1,
          "distance_m": 1,
          "rpe": 8,
          "completed_at": "2026-11-10T18:30: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

Example

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/workouts/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

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)

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "data": [
    {
      "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
      "measured_at": "2026-11-10T18:30:00Z",
      "weight_kg": 80,
      "body_fat_percent": 1,
      "neck_cm": 1,
      "shoulders_cm": 1,
      "chest_cm": 1,
      "waist_cm": 1,
      "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-10T18:30: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

Example

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-10T18:30:00Z",
  "weight_kg": 80,
  "body_fat_percent": 1,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 1,
  "waist_cm": 1,
  "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
}'

Response 201

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "measured_at": "2026-11-10T18:30:00Z",
  "weight_kg": 80,
  "body_fat_percent": 1,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 1,
  "waist_cm": 1,
  "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-10T18:30: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

Example

curl -X GET "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "measured_at": "2026-11-10T18:30:00Z",
  "weight_kg": 80,
  "body_fat_percent": 1,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 1,
  "waist_cm": 1,
  "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-10T18:30: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

Example

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-10T18:30:00Z",
  "weight_kg": 80,
  "body_fat_percent": 1,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 1,
  "waist_cm": 1,
  "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
}'

Response 200

{
  "id": "6f1c2a5e-8b3d-4c7a-9e21-3d5f7a9b1c42",
  "measured_at": "2026-11-10T18:30:00Z",
  "weight_kg": 80,
  "body_fat_percent": 1,
  "neck_cm": 1,
  "shoulders_cm": 1,
  "chest_cm": 1,
  "waist_cm": 1,
  "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-10T18:30: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

Example

curl -X DELETE "https://ndqszleoovjogqkmxlsa.supabase.co/functions/v1/api/v1/measurements/<id>" \
  -H "Authorization: Bearer $TALOS_API_KEY"

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.