Studio
Get Custom Ingredient Version
Fetch the custom ingredient exactly as it existed at version_id.
Returns the same full-entity envelope as getCustomIngredient,
reconstructed from the immutable content-addressed history instead
of the live HEAD — the entity's "time travel" counterpart to
restoreCustomIngredient. data reflects the historical snapshot;
version_id echoes the requested version.
Returns 404 when the custom ingredient does not exist, or when
version_id does not exist in its history.
Path Parameters
custom_ingredient_id*Custom Ingredient Id
version_id*Version Id
Version ULID to read — 26-character Crockford Base32, globally unique within the custom ingredient's history.
Match
^[0-9A-HJKMNP-TV-Z]{26}$Length
26 <= length <= 26Response Body
application/json
application/json
application/json
curl -X GET "https://api.bettermenu.live/studio/custom-ingredients/string/versions/stringstringstringstringst"{
"data": {
"id": "stringstringstringstringst",
"org_id": "stringstringstringstrings",
"status": "draft",
"name": "string",
"entry_method": "form",
"notes": "string",
"reference_amount": "string",
"reference_unit": "string",
"household_measure": "string",
"reference_quantity_g": "string",
"density_g_per_ml": "string",
"nutrients": [
{
"id": "stringstringstringstringst",
"unit": "string",
"amount": "string",
"market_nutrients": {
"property1": {
"bmid": "string",
"nutrient_id": 0
},
"property2": {
"bmid": "string",
"nutrient_id": 0
}
}
}
],
"approved_markets": [
"US"
],
"brand": "string",
"manufacturer": "string",
"source_url": "string",
"attributes": [
{
"key": "string",
"type": "string",
"value": null,
"searchable": false
}
],
"artifacts": [
{
"key": "string",
"kind": "string",
"uploaded_at": "2019-08-24T14:15:22Z"
}
],
"ingredient_statement": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
},
"meta": {
"version": "string",
"request_id": "string",
"timestamp": "string"
},
"version_id": "string"
}{
"type": "https://api.bettermenu.live/errors/recipe_not_found",
"title": "Recipe Not Found",
"status": 400,
"detail": "Recipe rcpe_abc123 does not exist",
"code": "recipe_not_found",
"retryable": true,
"instance": "/api/v1/recipes/rcpe_abc123",
"trace_id": "req_xyz789",
"errors": [
{}
],
"invalid_ids": [
"f_abc123",
"f_xyz789"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}