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: Pantry Butler Capture 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: Capture
paths:
/api/v1/capture:
post:
summary: Read a recipe out of a link
description: 'POST { url }. Runs the AI extraction and returns { draft, confidence }. The draft is NOT saved — POST it to /api/v1/recipes to keep it. Counts against the account''s AI fair-use allowance, and a link somebody already captured is served from cache and costs nothing. A low confidence means the page gave too little to work from: the draft comes back mostly empty with `__note` explaining why and `__paste` suggesting where the recipe probably is — social posts often keep the ingredients in the first comment, and some sites answer a server with a sign-in wall rather than the post.'
operationId: postcapture
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:
- Capture
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A token beginning `pb_live_`. Scopes: read, write. `write` implies `read`.'