Cookbook

Analyze menu photo for personalized ordering guidance

post/api/cookbook/photo-to-order

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/cookbook/photo-to-order
  • Auth
    HTTP bearer

Headers

x-timezonestring required

Request body multipart/form-data

sourcestring

Set to "lucille" when the call originates in the Lucille chat. The result is then persisted as a chat turn and returned as a card.

sessionIdstring

Current Lucille chat session id, if the client tracks one.

clientTurnIdstring

Client-generated id for the optimistic chat bubble. Echoed back inside card so the app can reconcile it.

userMessagestring

What the user typed alongside the photo.

Example request

{
  "source": "lucille"
}

Response

unknown required

Example response

{
  "success": true,
  "recommendation": "Order the grilled salmon (no sauce) with steamed vegetables instead of fries. Ask for dressing on the side. This hits your protein target and stays Rewrite-compliant."
}

Changes

No recorded changes to this operation across all 34 revisions of this API.