Skip to main content

Get Records for View

GET

https://app.smartsuite.com/api/v1/applications/[tableId]/records-for-report/?report=[reportId]&with_empty_values=false


Gets the records for a specified View.

Example Request

curl -X GET "https://app.smartsuite.com/api/v1/applications/[tableId]/records-for-report/?report=[reportId]&with_empty_values=false" \
-H "Authorization: Token YOUR_API_KEY" \
-H "ACCOUNT-ID: WORKSPACE_ID" \
-H "Content-Type: application/json"

Query Parameters​

ParamTypeDescription
reportstringThe View Id. Required.
with_empty_valuesbooleanOptional. Include fields whose value is empty instead of omitting them. Defaults to false.

Response​

ParamTypeDescription
recordsarray of record objectsAn array containing SmartSuite record objects
related_recordsarray of objectsRecords referenced by linked record fields, each as {id, title, application_id, application_slug}
fieldsarray of stringsAn array containing the field slugs visible in the View
filterfilter objectThe filter applied to the view, if any
unfilteredbooleantrue if the View has no filter applied
sortarray of sort objectsThe sort applied to the View, if any
total_records_countnumberTotal number of records matching the View, before any paging
lazy_fieldsarray of stringsSlugs of fields the View loads on demand rather than up front
Example Response
{
"records": [
{
"first_created": {
"by": "63a1f65723aaf6bcb564b1f1",
"on": "2023-01-06T20:00:15.470000Z"
},
"last_updated": {
"by": "63a1f65723aaf6bcb564b1f1",
"on": "2023-01-06T20:00:15.470000Z"
},
"autonumber": 1,
"title": "Sample record",
"comments_count": 0,
"deleted_date": {
"date": null,
"include_time": false
},
"ranking": {
"default": "aagckvjtea"
},
"assigned_to": [],
"status": {
"value": "backlog",
"updated_on": "2023-01-06T20:00:15.470000Z"
},
"due_date": {
"from_date": {
"date": null,
"include_time": false
},
"to_date": {
"date": null,
"include_time": false
},
"is_overdue": false,
"status_is_completed": false,
"status_updated_on": "2023-01-06T20:00:15.470000Z"
},
"priority": "",
"id": "63b87dcf7acde19eac1fe42a",
"application_slug": "ssb9kaxn",
"application_id": "63b87cad645b3949631b55c1"
},
{
"first_created": {
"by": "63a1f65723aaf6bcb564b1f1",
"on": "2023-06-21T21:14:06.247000Z"
},
"last_updated": {
"by": "63a1f65723aaf6bcb564b1f1",
"on": "2023-06-21T21:14:06.247000Z"
},
"autonumber": 2,
"title": "test",
"comments_count": 0,
"deleted_date": {
"date": null,
"include_time": false
},
"ranking": {
"default": "aagckvkhyq"
},
"assigned_to": [],
"status": {
"value": "backlog",
"updated_on": "2023-06-21T21:14:06.248000Z"
},
"due_date": {
"from_date": {
"date": null,
"include_time": false
},
"to_date": {
"date": null,
"include_time": false
},
"is_overdue": false,
"status_is_completed": false,
"status_updated_on": "2023-06-21T21:14:06.248000Z"
},
"priority": "",
"id": "6493681eba09b400816eb754",
"application_slug": "ssb9kaxn",
"application_id": "63b87cad645b3949631b55c1"
}
],
"related_records": [],
"fields": [
"title",
"due_date",
"comments_count",
"status",
"priority",
"assigned_to"
],
"filter": {},
"unfiltered": true
}