Coach

Mobile Coach API — the client's questionnaire answers, grouped by section in survey order. Defaults to the onboarding (intake) survey. Each answer is flattened to display strings (`values`, plus `display` joined with ", "). Unanswered questions are omitted. Requires coach_data_consent_at.

Changed on
get/api/coach/clients/{id}/questionnaire

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/coach/clients/{id}/questionnaire
  • Auth
    HTTP bearer

Path parameters

idnumber required

Query parameters

surveystring
Example:intake

Survey key. Defaults to "intake".

Response

unknown required

Example response

{
  "success": true,
  "survey": {
    "key": "intake",
    "name": "Intake"
  },
  "completed": true,
  "completedAt": "2026-09-01T14:20:00.000Z",
  "answeredCount": 2,
  "sections": [
    {
      "section": 1,
      "answers": [
        {
          "questionId": 10,
          "questionKey": "current_weight",
          "question": "What is your current weight?",
          "answerType": "numeric",
          "values": [
            "220"
          ],
          "display": "220",
          "answeredAt": "2026-09-01T14:05:00.000Z"
        },
        {
          "questionId": 14,
          "questionKey": "goals",
          "question": "What are your goals?",
          "answerType": "multi_choice",
          "values": [
            "Lose weight",
            "More energy"
          ],
          "display": "Lose weight, More energy",
          "answeredAt": "2026-09-01T14:07:00.000Z"
        }
      ]
    }
  ]
}

Changes