io.kich.pantry.listItems
List a household's pantry items. Items with status `finished` are never returned — they are history, not stock.
Details · query
| Kind | query |
|---|---|
| Authority | pantry.kich.io |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.householdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.cursorNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "List a household's pantry items. Items with status `finished` are never returned — they are history, not stock.",
"errors": [
{
"description": "No bearer token, or one this endpoint does not accept.",
"name": "AuthRequired"
},
{
"description": "No such household, or the credential is not scoped to it. Deliberately the same error for both: a caller holding the wrong token learns nothing about which households exist.",
"name": "HouseholdNotFound"
},
{
"description": "The cursor was not one this endpoint issued.",
"name": "InvalidCursor"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cursor": {
"description": "Absent when there is no further page.",
"type": "string"
},
"items": {
"items": {
"ref": "io.kich.pantry.defs#pantryItemView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
}
},
"parameters": {
"properties": {
"cursor": {
"type": "string"
},
"expiringWithinDays": {
"description": "Only items that turn within this many days",
"maximum": 365,
"minimum": 1,
"type": "integer"
},
"household": {
"description": "The household whose pantry to read. Must be the household the credential is scoped to.",
"type": "string"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"status": {
"description": "Only items in this state",
"knownValues": [
"in_stock",
"low",
"depleted"
],
"type": "string"
}
},
"required": [
"household"
],
"type": "params"
},
"type": "query"
}
},
"description": "What is in a household's kitchen, soonest to turn first. Read-only.",
"id": "io.kich.pantry.listItems",
"lexicon": 1
}