API ReferenceapicommunityPOST /v1/admin/insights/generate

POST /v1/admin/insights/generate

Service: community · operationId: (none)

Aggregate community activity metrics and store insight snapshots

Required scopes

(no scope declared — review service config)

Responses

200 Insights generated

{
  "type": "object",
  "properties": {
    "posts_analyzed": {
      "type": "number"
    },
    "insights_generated": {
      "type": "number"
    }
  },
  "required": [
    "posts_analyzed",
    "insights_generated"
  ]
}

500 Generation failed

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://community.platform.loop.health/v1/admin/insights/generate \
  -H "Authorization: Bearer $ACCESS_TOKEN"