Create Recipe
Create a new recipe in ACTIVE state. Only name is required. Country defaults to US. Demographic defaults to adults_and_children_over_4.
AGENT QUOTA PROTOCOL:
- Call getEntitlementStatus; read quotas.recipes_per_month. If key absent, plan is unlimited — proceed directly.
- If remaining > 0: proceed directly.
- If remaining == 0: cost = overage_per_unit_cents / 100 (from status response). Inform user and ask for confirmation.
- On approval: retry with metered_usage_confirmed: true, same X-Request-ID if retrying the same request (e.g. after timeout).
- On decline: do not retry.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://api.bettermenu.live/studio/recipes" \ -H "Content-Type: application/json" \ -d '{ "name": "Chocolate Chip Cookies" }'{
"data": {
"id": "string",
"name": "string",
"country": "US",
"regulatory_authority": "US_FDA",
"demographic": "adults_and_children_over_4",
"status": "active",
"created_at": "string",
"updated_at": "string",
"summary": {
"ingredient_count": 0,
"has_nutrition": true,
"is_nutrition_current": true,
"serving_count": 0,
"has_nutrition_facts": true
},
"actions": {
"can_modify": true,
"can_archive": true,
"can_delete": true
}
},
"meta": {
"version": "string",
"request_id": "string",
"timestamp": "string"
},
"version_id": "string"
}