Skip to content

AI trend flags — individual + department score shifts.

GET
/summaries/insights/trends
curl --request GET \
--url 'https://api.gospl.example/v1/summaries/insights/trends?scope=individual' \
--header 'Authorization: Bearer <token>'

Statistically notable changes (FR-29), surfaced to managers (FR-30) and at department level (FR-31); dashboard data for senior leadership/People Team (FR-32). Threshold is configurable (Q3). Numeric stats — no embeddings. Scoped to the caller’s visibility.

scope
string
Allowed values: individual department

OK

Media type application/json
Array<object>
object
scope
required
string
Allowed values: individual department
subject
One of:
object
id
required
string format: uuid
name
required
string
team
string
dimension
required
string
Allowed values: quality_of_work personal_wellbeing professional_wellbeing
direction
required
string
Allowed values: up down
detail
string
Example
[
{
"scope": "individual",
"dimension": "quality_of_work",
"direction": "up"
}
]

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. out-of-chain, cross-tenant).

Media type application/json
object
code
required
string
message
required
string
Example generated
{
"code": "example",
"message": "example"
}