Skip to navigation

Get Goal & History

Get the current user’s active goal, its progress highlights, and goal history. Goals are part of the user profile, so this reads GET /users/:id/edit and uses the goal fields from the response.

Authentication: Required — Bearer token (member).

Goal fields on the user object:

  • goal — Current goal text (null when no active goal)
  • goal_updated_at — ISO 8601 UTC timestamp when the current goal was set
  • goal_author — Who set the goal (id, name, first_name, avatar_url); an admin when set from the admin portal
  • goal_highlights — Key highlights extracted in the background after the goal is set
  • goal_history — Archived goals (see below)

Goal history: goal_history is newest first, capped at the 20 most recent entries. Each entry has goal, highlights, author, started_at, ended_at, and status (completed, or replaced when a goal is overwritten or cleared via Set Goal). History is server-managed and read-only — it cannot be written directly.

Response: Full user profile (see Get Current User Profile); the goal fields above are the relevant part.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired
User ID path segment. The action always returns the authenticated user regardless of the value supplied.

Response

OK