Skip to main content
GET
Get goals

Authorizations

__Secure-better-auth.session_token
string
cookie
required

Better Auth session. Signing in (Google or email magic link) sets an HttpOnly session cookie that scopes every request to that account. The web app and CLI use this; agents use the OAuth 2.1 flow of the MCP server.

Response

200 - application/json

The caller's targets.

A user's goals. Created with defaults on first read.

id
integer
required

Auto-increment targets-row identifier.

Example:

1

goalWeightKg
number | null
required

Target body weight in kilograms.

Example:

70

startWeightKg
number | null
required

Starting body weight in kilograms.

Example:

78.4

targetDate
integer<int64> | null
required

Goal date as a Unix epoch in milliseconds.

Example:

1790000000000

startDate
integer<int64> | null
required

Plan start date as a Unix epoch in milliseconds.

Example:

1782000000000

dailyKcalTarget
integer | null
required

Daily calorie target.

Example:

2100

proteinTargetG
integer | null
required

Daily protein target in grams.

Example:

170