Objects
List objects in a collection
Changed onReturns a paginated list of objects from the specified collection. Optionally includes preference data for the objects.
get/v1/objects/{collection}
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/objects/{collection}
- Auth: HTTP bearer
Path parameters
collectionstring required
The collection this object belongs to.
Query parameters
afterstring
The cursor to fetch entries after.
beforestring
The cursor to fetch entries before.
page_sizeinteger
The number of items per page (defaults to 50).
includestring[]
Includes preferences of the objects in the response.
Response
OK
Example response
{
"entries": [
{
"__typename": "Object",
"collection": "assets",
"created_at": null,
"id": "specimen_25",
"properties": {
"classification": "Theropod",
"config": {
"biz": "baz",
"foo": "bar"
},
"name": "Velociraptor",
"status": "contained"
},
"updated_at": "2024-05-22T12:00:00Z"
}
],
"page_info": {
"__typename": "PageInfo",
"after": null,
"before": null,
"page_size": 25
}
}Changes
- warning
deleted the
queryrequest parameterinclude[] - info
added the new optional
queryrequest parameterinclude
- warning
- info
added the optional property
//to the response with the status
- info