Get Reports
Retrieve all Power BI reports accessible to the authenticated user.Authentication
Valid session or Sanctum token
Permissions
Requires one of the following:super-adminrolereport.createpermissionreport.editpermissionreport.destroypermission
Response Behavior
For Super Admins
For Super Admins
Returns all reports in the system with relationships:
- Report creator (user)
- Associated filters
For Regular Users
For Regular Users
Returns only reports assigned to the authenticated user
Response Fields
Report database ID
Report display name
Power BI workspace/group ID
Power BI report ID
Power BI dataset ID
Access level (typically “View”)
Cached Power BI embed token
Token expiration timestamp
ID of user who created the report
JSON-encoded array of Power BI filters
Report creation timestamp
Last update timestamp
User object who created the report
Array of filter objects associated with this report
Example Request
Example Response
Filter Array Structure
Thefilter_array field contains Power BI filter definitions:
Supported Filter Operators
In- Match any value in arrayNotIn- Exclude values in arrayEquals- Exact match (string)Contains- Substring matchGreaterThan- Numeric comparisonLessThan- Numeric comparison
Error Responses
403 Forbidden
User lacks required permissions:401 Unauthorized
Missing or invalid authentication:Implementation Notes
Source:app/Http/Controllers/ReportController.php:38
- Super admins see all reports via
Report::all() - Regular users see only their assigned reports via
auth()->user()->reports - Reports are eager-loaded with
user,created_by, andfiltersrelationships for admins - The route uses middleware:
auth:sanctum,verified, androle_or_permission