Ask Luna

Ask Luna (Luna Plus)

A question answered from this family's own log, in Luna's non-clinical lane. Requires Luna Plus (402 payment_required otherwise) and is subject to daily/monthly limits (429 usage_limit_reached). Prefix the question with remember: to save a note instead. A read token may ask; saving a remember: note needs the write scope (403 insufficient_scope otherwise).

post/api/ask

Request

  • Base URL: https://getmyluna.app
  • URL: https://getmyluna.app/api/ask
  • Auth: one of:
    • HTTP bearer
    • API key in cookie luna_session

Request body

questionstring required

Prefix with remember: to save a note instead of asking.

Example request

{
  "question": "How did feeding go this week?"
}

Response

Success

answerstring required
replystring nullable

Same as answer (legacy key).

modelstring nullable

null when a guardrail answered without the model.

context_usedboolean nullable
guardrailstring nullable
usage_limitobject nullable
saved_notesobject[] nullable

Example response

{
  "guardrail": "clinical_escalation"
}

Changes

No recorded changes to this operation across all 1 revision of this API.