Get Recipe Serving
Get a single serving by id, optionally pinned to a historical version.
?version_id= (omit ⇒ latest) selects the snapshot. The response
body's top-level version_id mirrors the resolved snapshot —
HEAD when omitted, the supplied version otherwise — and the
ETag: W/"\{version_id\}" response header is derived from that
field. Clients can pass the ETag back as If-Match on the next
mutation for optimistic concurrency.
Returns the serving size (household measure, metric, servings per container), dual-column label status, and flags indicating whether per-serving and per-container nutrition facts have been computed.
Available only on API versions declaring the recipe_versioning
capability. Requests without this capability receive a 404.
Path Parameters
Serving identifier
Query Parameters
Optional version ULID to pin the response to a historical snapshot. Omit to read the live HEAD on the main branch. 26-character Crockford Base32 (no I, L, O, U).
Response Body
application/json
application/json
curl -X GET "https://api.bettermenu.live/studio/recipes/string/servings/string"{
"data": {
"id": "string",
"serving_size_type": "string",
"serving_size": {
"household_measure": "string",
"metric_amount": 0,
"metric_unit": "string",
"servings_per_container": 0
},
"racc_inputs": {
"category_id": "string",
"target_audience": "string",
"unit_type": "string",
"unit_weight_g": "string",
"declared_serving_units": 0
},
"dual_column_status": "string",
"has_per_serving_nutrition_facts": true,
"has_per_container_nutrition_facts": true
},
"meta": {
"version": "string",
"request_id": "string",
"timestamp": "string"
},
"version_id": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}