List Rows
Retrieve all rows from a table with optional filtering and sorting
GET
/tables/{table_id}/rowsRequires
Bearer authenticationRetrieve a paginated list of rows from a specific table with optional filtering and sorting.
Path Parameters
table_idstringrequiredThe unique identifier of the table.
Query Parameters
pageintegerPage number for pagination.
limitintegerNumber of items per page (max 100).
sortstringField slug to sort by.
orderstringSort order: 'asc' or 'desc'.
filterobjectJSON object with filter conditions.
GET
/tables/{table_id}/rowscurl -X GET "https://api.vastal.agency/v1/tables/tbl_abc123/rows?limit=50&sort=created_at&order=desc" \ -H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch( 'https://api.vastal.agency/v1/tables/tbl_abc123/rows?' + new URLSearchParams({ limit: '50', sort: 'created_at', order: 'desc' }), { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } } );
200Success
{ "success": true, "data": [ { "id": "row_001", "data": { "name": "John Doe", "email": "john@acme.com", "company": "Acme Inc" }, "created_at": "2024-01-15T10:30:00Z" } ], "pagination": { "page": 1, "limit": 50, "total": 150 } }