Get Summary Card
GET
/users/{user_id}/summary-card
const url = 'https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/summary-card';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/summary-cardThe user’s “Today so far” card config — chosen metrics (ordered) + available candidates, each with its personal normal range. Seeds the default six on first read. RLS-scoped.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”user_id
required
User Id
string format: uuid
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SummaryCardConfigRead
The card configuration: the ordered chosen metrics + the remaining candidates.
object
available
required
Available
Array<object>
SummaryMetricReadOne metric as the “Today so far” card needs it — everything but the live value, which the
frontend already has from the /today fetch (read from value_field, or metrics[slug] when
that’s null).
object
baseline_ready
required
Baseline Ready
boolean
label
required
Label
string
mode
required
Mode
string
promote
required
Promote
boolean
sample_days
required
Sample Days
integer
slug
required
Slug
string
source
required
Source
string
unit
required
Unit
string
max_metrics
Max Metrics
integer
metrics
required
Metrics
Array<object>
SummaryMetricReadOne metric as the “Today so far” card needs it — everything but the live value, which the
frontend already has from the /today fetch (read from value_field, or metrics[slug] when
that’s null).
object
baseline_ready
required
Baseline Ready
boolean
label
required
Label
string
mode
required
Mode
string
promote
required
Promote
boolean
sample_days
required
Sample Days
integer
slug
required
Slug
string
source
required
Source
string
unit
required
Unit
string
Example
{ "max_metrics": 6}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}