Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Butler Pantry API
version: 1.0.0
description: 'A kitchen that knows what it holds. Read what is in someone''s pantry, add to it, and ask the one question a recipe search cannot answer: what can they actually cook tonight, with what they already have.
Tokens are created by the account holder at https://thepantrybutler.com/account and carry either `read` or `write` scope. A token reaches only these endpoints — never billing, account settings or deletion.'
contact:
name: The Pantry Butler
url: https://thepantrybutler.com/api-docs
x-mcp-server: https://thepantrybutler.com/mcp
servers:
- url: https://thepantrybutler.com
security:
- bearerAuth: []
tags:
- name: Pantry
paths:
/api/v1/pantry:
get:
summary: What is in the kitchen
description: Items with their location (pantry, fridge, freezer) and expiry where known.
operationId: getpantry
security:
- bearerAuth: []
x-required-scope: read
responses:
'200':
description: OK
'202':
description: Accepted, not yet imported — see the endpoint description
'401':
description: Missing or invalid bearer token
'403':
description: The token lacks the required scope
'429':
description: Rate limited — 120 requests a minute per token
tags:
- Pantry
post:
summary: Add items to the kitchen
description: Send plain language — "2 lemons", "half a bag of spinach". Up to 50 at a time. Optional `location` of pantry, fridge or freezer.
operationId: postpantry
security:
- bearerAuth: []
x-required-scope: write
responses:
'200':
description: OK
'202':
description: Accepted, not yet imported — see the endpoint description
'401':
description: Missing or invalid bearer token
'403':
description: The token lacks the required scope
'429':
description: Rate limited — 120 requests a minute per token
requestBody:
required: true
content:
application/json:
schema:
type: object
tags:
- Pantry
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A token beginning `pb_live_`. Scopes: read, write. `write` implies `read`.'