dambel

دمبل

shevron
ورود | ثبت نام

API Docs / reports / index



GET /api/v1/reports

Retrieves a list of reports, with support for filtering by type, reportable ID, user, search, signed-off status, and order. Useful for both admin management and fetching your own reports.


Permissions

PermissionDescription
reports.viewView your own reports
reports.view_allView all reports as an admin

Query Parameters

NameTypeRequiredDescriptionExample
typestringNoProfile type (e.g., App\Models\Gym, App\Models\User). Comma-separated for multiple types"App\Models\Gym,App\Models\User"
item_idintNoReportable ID(s) to filter by (comma-separated for multiple)"1,2,3"
user_idintNoUser ID(s) to filter by (comma-separated for multiple)"5,6"
searchstringNoSearch term for report description"broken"
signed_offboolNoFilter by signed-off statustrue
ai_marked_spamboolNoFilter by ai-marked-spam statustrue
orderstringNoOrder of results: ASC or DESC (default: DESC)"DESC"

Response

200 OK

Returns a paginated list of report resources.

Schema

{
  "data": [
    { /* Report Resource */ }
  ],
  "links": { /* Pagination Data */ },
  "meta": { /* Pagination Data */ }
}

For a full schema, see Report Resource and Pagination Data.


Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube