Paginated, filterable goal history (reverse-chronological).
GET
/goals/archive
const url = 'https://api.gospl.example/v1/goals/archive?type=all&page=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://api.gospl.example/v1/goals/archive?type=all&page=1' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” userId
string format: uuid
type
string
month
string
year
integer
page
integer
Responses
Section titled “ Responses ”OK
Media type application/json
object
items
required
Array<object>
object
id
required
string format: uuid
title
required
string
description
string
type
required
string
status
required
string
weekStart
required
Anchors the goal to a week (G2).
string format: date
dateSet
required
string format: date-time
dateCompleted
string format: date-time
page
required
integer
totalPages
required
integer
Example
{ "items": [ { "type": "professional", "status": "active" } ]}Missing/invalid credentials.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Authenticated but not permitted (incl. cross-tenant, out-of-chain).
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}