Mojo Motivators. AI insights included ONLY for authorised viewers.
GET
/users/{userId}/motivators
const url = 'https://api.gospl.example/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/motivators';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/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/motivators \ --header 'Authorization: Bearer <token>'Motivators summary is returned to any authorised viewer. The aiInsights field MUST be present only when the viewer is the profile owner or holds elevated permission; otherwise it MUST be absent from the response body (FR-10). BLOCKED on Mojo API readiness (OQ-01).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” userId
required
string format: uuid
Responses
Section titled “ Responses ”OK
Media type application/json
object
motivators
required
Array<object>
object
name
string
score
number
lastSyncedAt
required
Stale-data indicator for the Mojo pull.
string format: date-time
aiInsights
Mojo AI-generated insight. MUST be present ONLY when viewer is owner or elevated (FR-09/10/11). Absent otherwise.
string
Example generated
{ "motivators": [ { "name": "example", "score": 1 } ], "lastSyncedAt": "2026-04-15T12:00:00Z", "aiInsights": "example"}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).
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Not found within the caller’s tenant.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Mojo upstream unavailable; serve cached value if present.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}