Returns records for the given resource. Results are paginated and can be searched.
Non-admin users only see records they own (based on the resource’s ownerColumn). Admins see all records.
Path parameters
The resource name (e.g. contact, order).
Query parameters
Search term to filter results. Matches against the resource’s searchable columns.
Number of records per page.
Request
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://your-app.com/exo-api/resources/contact?search=jane&per_page=10"
Response
Returns a standard Laravel paginated response. The data array contains the transformed records.
Example response:
{
"data": [
{
"id": 1,
"name": "Jane Smith",
"email": "[email protected]",
"created_at": "2026-03-28T14:30:00+00:00"
}
],
"current_page": 1,
"last_page": 1,
"per_page": 10,
"total": 1,
"next_page_url": null,
"prev_page_url": null
}
Errors
| Status | Description |
|---|
404 | Resource name not found |