Skip to main content

get goal

get goal. Requires a Bearer session valid Bearer session.
1 min read
get/goals/profiles/{studioId}/{goalId}
Request example
Response
get/goals/profiles/{studioId}/{goalId}

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.
goalIdstringrequired#
Identifier or key goalId.

Query parameters

todayDateKeystring#
Filter todayDateKey.

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
idstringrequired#
studioIdstringrequired#
userIdstringrequired#
titlestringrequired#
descriptionstring#
statusstringrequired#
progressModestringrequired#
manualProgressPercentinteger#
startDateKeystring#
targetDateKeystring#
visibilityenum<string>#

Default: "members"

Options:memberssubscribersfollowerspublic
progressPercentintegerrequired#
completedMilestonesintegerrequired#
totalMilestonesintegerrequired#
linkedCompletedintegerrequired#
linkedTotalintegerrequired#
isAtRiskbooleanrequired#
primaryImageobject#
Show child attributes
idstringrequired#
imageUrlstringrequired#
milestonesobject[]#
Show child attributes
idstringrequired#
goalIdstringrequired#
studioIdstringrequired#
titlestringrequired#
completedbooleanrequired#
completedAtstring#
positionintegerrequired#
createdAtstringrequired#
updatedAtstringrequired#
createdAtstringrequired#
updatedAtstringrequired#
request_idstring#