# RecipeBee public API

The RecipeBee public REST API lets agents search and read public recipes, categories, tags, cookbooks, and blog posts. Public GET requests do not require an API key.

## API resources

- API catalog: https://recipebee.app/api
- OpenAPI JSON: https://recipebee.app/openapi.json
- OpenAPI YAML: https://recipebee.app/api/openapi.yaml
- API resource index: https://recipebee.app/api/llms.txt
- Markdown API resource index: https://recipebee.app/api/llms.txt.md
- Markdown OpenAPI YAML: https://recipebee.app/api/openapi.yaml.md
- Developer guide: https://recipebee.app/developers.md
- Authentication guide: https://recipebee.app/auth.md
- Versioning and deprecation policy: https://recipebee.app/deprecation.md
- Remote MCP server: https://recipebee.app/mcp

## Public recipe search

Search recipes with `GET https://recipebee.app/api/v1/public/recipes`. The `q` query parameter matches recipe titles and slugs. Use `per_page` to set page size and `cursor` to continue through results. Read a public recipe with `GET https://recipebee.app/api/v1/public/recipes/{slug}`.

## Authentication and writes

Public REST reads are anonymous. Private recipes and other account data require authentication. The remote MCP server supports anonymous preview tools; saving recipes and importing meal plans require OAuth and explicit user consent. See the authentication guide for details.

## Image-generation batches

Authenticated REST clients can create a review batch without using credits. Starting it requires an explicit `confirm: true`, an eligible paid plan, and available credits. A successful start returns `202 Accepted` with a `Location` header for polling batch status. These endpoints require a Laravel Sanctum bearer token. MCP clients should use the MCP tools and keep image-generation confirmation inside RecipeBee.

The operations and request/response schemas are defined in the [OpenAPI JSON specification](https://recipebee.app/openapi.json):

- `POST /api/v1/image-generation-batches` creates a review batch from `recipe_ids`.
- `GET /api/v1/image-generation-batches/{batch}` reads batch progress.
- `POST /api/v1/image-generation-batches/{batch}/start` confirms and queues selected images.
- `POST /api/v1/image-generation-batches/{batch}/retry` returns failed images to review.
- `POST /api/v1/image-generation-batches/{batch}/cancel` cancels queued work.

## API stability

The public API uses URL path versioning. RecipeBee announces deprecated versions with `Deprecation` and `Sunset` response headers and keeps a deprecated version available for at least 12 months. See the versioning and deprecation policy before integrating.
