Skip to content
Last updated

Get aggregated member counts grouped by status.

GET/v1/organizations/{organization_id}/users/status-summary

organization_id string required

Organization ID

Returns

Returns status counts for the organization.

Notes

  • Excludes soft-deleted members
  • Useful for dashboard statistics

Authorization

Requires Admin or Owner role.

Bash
curl https://api.aitronos.com/v1/organizations/org_abc123/users/status-summary \
  -H "X-API-Key: $FREDDY_API_KEY"

Response:

{
  "status_counts": [
    {
      "status_id": "status_abc123",
      "status_name": "Active",
      "count": 42
    },
    {
      "status_id": "status_def456",
      "status_name": "Inactive",
      "count": 3
    }
  ]
}