{"openapi":"3.1.0","info":{"title":"offmenu personal kitchen API","version":"1.0.0"},"servers":[{"url":"https://offmenu.aldous.info"}],"components":{"securitySchemes":{"personalToken":{"type":"http","scheme":"bearer"}}},"security":[{"personalToken":[]}],"paths":{"/api/v1/inventory":{"get":{"summary":"Read your inventory","description":"Requires inventory:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[],"responses":{"200":{"description":"Versioned personal records","content":{"application/json":{"schema":{"type":"object","required":["version","revision","updatedAt","data"],"properties":{"version":{"type":"integer","const":1},"revision":{"type":"integer"},"updatedAt":{"type":["string","null"]},"data":{"type":"array","items":{}}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/plans":{"get":{"summary":"Read your plans","description":"Requires plans:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[{"name":"from","in":"query","description":"Inclusive date boundary. Send YYYY-MM-DD; the REST implementation compares strings without calendar validation.","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","description":"Inclusive date boundary. Send YYYY-MM-DD; the REST implementation compares strings without calendar validation.","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Versioned personal records","content":{"application/json":{"schema":{"type":"object","required":["version","revision","updatedAt","data"],"properties":{"version":{"type":"integer","const":1},"revision":{"type":"integer"},"updatedAt":{"type":["string","null"]},"data":{"type":"array","items":{}}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/history":{"get":{"summary":"Read your history","description":"Requires history:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[{"name":"from","in":"query","description":"Inclusive date boundary. Send YYYY-MM-DD; the REST implementation compares strings without calendar validation.","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","description":"Inclusive date boundary. Send YYYY-MM-DD; the REST implementation compares strings without calendar validation.","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Versioned personal records","content":{"application/json":{"schema":{"type":"object","required":["version","revision","updatedAt","data"],"properties":{"version":{"type":"integer","const":1},"revision":{"type":"integer"},"updatedAt":{"type":["string","null"]},"data":{"type":"object","required":["food","cleanup"],"properties":{"food":{"type":"array","items":{}},"cleanup":{"type":"array","items":{}}}}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/directory":{"get":{"summary":"Read your directory","description":"Requires directory:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[],"responses":{"200":{"description":"Versioned personal records","content":{"application/json":{"schema":{"type":"object","required":["version","revision","updatedAt","data"],"properties":{"version":{"type":"integer","const":1},"revision":{"type":"integer"},"updatedAt":{"type":["string","null"]},"data":{"type":"object","required":["locations","recipes"],"properties":{"locations":{"type":"array","items":{}},"recipes":{"type":"array","items":{}}}}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/data":{"get":{"summary":"Read your data","description":"Requires data:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[{"name":"cursor","in":"query","description":"Opaque cursor returned by the preceding page. Omit for the first page.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Requested scanned page size. Omitted, non-numeric and zero values default to 100; other numeric values are clamped to 1–1000. Send an integer.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"kind","in":"query","description":"Exact normalized record-kind filter.","schema":{"type":"string"}},{"name":"source","in":"query","description":"Exact provenance source ID filter.","schema":{"type":"string"}},{"name":"country","in":"query","description":"Country/market used for export rights and record-country filtering. Filtering may leave an empty page with a non-null cursor.","schema":{"type":"string"}}],"responses":{"200":{"description":"Rights-filtered normalized records from the scanned page","content":{"application/json":{"schema":{"type":"object","required":["schemaVersion","records","nextCursor","withheld","scope"],"properties":{"schemaVersion":{"type":"string","const":"1.0"},"records":{"type":"array","items":{}},"nextCursor":{"type":["string","null"],"description":"Opaque last scanned ID, or null when no later page remains. Continue even when a rights-filtered page contains no records."},"withheld":{"type":"integer","minimum":0,"description":"Rows withheld from this scanned page by export rights or country filtering."},"scope":{"type":"string","const":"private account"}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/health":{"get":{"summary":"Read your health","description":"Requires health:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[{"name":"cursor","in":"query","description":"Opaque cursor returned by the preceding page. Omit for the first page.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Requested scanned page size. Omitted, non-numeric and zero values default to 100; other numeric values are clamped to 1–1000. Send an integer.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}}],"responses":{"200":{"description":"Owner-scoped document page","content":{"application/json":{"schema":{"type":"object","required":["documents","nextCursor","scope"],"properties":{"documents":{"type":"array","items":{"type":"object","required":["id","revision","updatedAt","data"],"properties":{"id":{"type":"string"},"revision":{"type":"integer"},"updatedAt":{"type":"string"},"data":{}}}},"nextCursor":{"type":["string","null"],"description":"Opaque last scanned ID, or null when no later page remains. Continue even when a rights-filtered page contains no records."},"scope":{"type":"string","const":"private account"}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/baskets":{"get":{"summary":"Read your baskets","description":"Requires baskets:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[{"name":"cursor","in":"query","description":"Opaque cursor returned by the preceding page. Omit for the first page.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Requested scanned page size. Omitted, non-numeric and zero values default to 100; other numeric values are clamped to 1–1000. Send an integer.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}}],"responses":{"200":{"description":"Owner-scoped document page","content":{"application/json":{"schema":{"type":"object","required":["documents","nextCursor","scope"],"properties":{"documents":{"type":"array","items":{"type":"object","required":["id","revision","updatedAt","data"],"properties":{"id":{"type":"string"},"revision":{"type":"integer"},"updatedAt":{"type":"string"},"data":{}}}},"nextCursor":{"type":["string","null"],"description":"Opaque last scanned ID, or null when no later page remains. Continue even when a rights-filtered page contains no records."},"scope":{"type":"string","const":"private account"}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}},"/api/v1/evidence":{"get":{"summary":"Read your evidence","description":"Requires evidence:read. Token audience must be /api/v1. Responses contain saved account data, not unsaved browser edits. Record content and nested document data remain source-specific; missing values are not zero.","parameters":[{"name":"cursor","in":"query","description":"Opaque cursor returned by the preceding page. Omit for the first page.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Requested scanned page size. Omitted, non-numeric and zero values default to 100; other numeric values are clamped to 1–1000. Send an integer.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}}],"responses":{"200":{"description":"Owner-scoped document page","content":{"application/json":{"schema":{"type":"object","required":["documents","nextCursor","scope"],"properties":{"documents":{"type":"array","items":{"type":"object","required":["id","revision","updatedAt","data"],"properties":{"id":{"type":"string"},"revision":{"type":"integer"},"updatedAt":{"type":"string"},"data":{}}}},"nextCursor":{"type":["string","null"],"description":"Opaque last scanned ID, or null when no later page remains. Continue even when a rights-filtered page contains no records."},"scope":{"type":"string","const":"private account"}}}}}},"401":{"description":"Invalid, expired, revoked or wrong-audience token"},"403":{"description":"Required scope missing"},"405":{"description":"Only GET is supported for personal API resources"},"503":{"description":"Integration storage unavailable"}}}}}}