skip to content

charts api

openapi specification

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://charts.dorianmarie.com/api/identity
methodpathpurpose
get/apipublic application metadata
get/api/identityauthenticated identity
get/api/entrieslist the signed-in account’s daily entries; never cached
post/api/entriessave or replace {day: YYYY-MM-DD, value: number} for the signed-in account; same-origin required; value from 0 to 1000000000

open application