---
title: "food.recipe-suggest-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/food.recipe-suggest-request"
updated: null
---

# food.recipe-suggest-request@1 · OpenVibe.Services

HTML: [food.recipe-suggest-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/food.recipe-suggest-request)

# FoodRecipeSuggestRequest `food.recipe-suggest-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: food
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/food/recipe-suggest-request.v1.json`](/docs/contracts/food.recipe-suggest-request.json)

food.recipe-suggest-request@1: POST /api/v1/recipes/suggest. Asks OpenVibe.AI's food.suggest\_recipes workflow for up to three recipes from the caller's saved pantry (an empty pantry is 422 food.pantry\_empty). 10 a person a day (429 food.recipes\_daily\_limit); with Food's AI connection off, 503 food.ai\_off.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `ask` | string |  |  | - `maxLength 500` |
| `people` | integer |  |  | - `minimum 1`<br>- `maximum 12` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: ask

~~~~
{
  "ask": "something quick and filling",
  "people": 2
}
~~~~

Valid: empty

~~~~
{}
~~~~

Rejected: too-many-people

~~~~
{
  "people": 40
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('food.recipe-suggest-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
