weights api
create api keys at account. send Authorization: Bearer YOUR_KEY. browser requests use secure session cookies. mutations require an origin header matching the application origin; command-line clients must include it too. data belongs to the authenticated account. invalid credentials return 401; account outages return 503.
curl -H 'Authorization: Bearer YOUR_KEY' https://weights.dorianmarie.com/api/identity
| method | path | purpose |
|---|---|---|
| get | /api | public application metadata |
| get | /api/identity | authenticated identity |
| post | /api/sync | merge {owner: account_user_id, records:[{key,value,stamp}]} and retrieve records. date keys use YYYY-MM-DD, weights and goal in kg; stamp is milliseconds:UUID; null deletes. the expected owner is required; account switches return 409 before writing. |