Account

Give or withdraw a consent

{kind: health|ai, agree: true|false}. Agreeing records the current wording version and time; false withdraws it (for ai, Ask Luna stops sending anything to the AI provider).

post/api/consent

Request

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

Request body

kind'health' | 'ai' required
agreeboolean required

true gives consent (current wording version); false withdraws it.

Response

Success

privacy_urlstring

Example response

{
  "health": {
    "version": "health-v1-2026-10"
  },
  "ai": {
    "version": "health-v1-2026-10"
  }
}

Changes

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