{
  "ok": true,
  "template": {
    "name": "MonoSpend Capture",
    "version": "shortcut-install-v1",
    "containsSecrets": false,
    "installUrl": "https://www.icloud.com/shortcuts/0da3fc3fc4034977bcfe078768d514a8",
    "installUrlStatus": "ready",
    "setupUrl": "https://monospend.app/shortcut",
    "endpoints": {
      "pairUrl": "https://monospend.app/api/pair",
      "captureUrl": "https://monospend.app/api/capture",
      "audioCaptureUrl": "https://monospend.app/api/audio-capture"
    },
    "localStorage": {
      "deviceTokenFile": "monospend-device-token.txt",
      "captureUrlFile": "monospend-capture-url.txt"
    },
    "firstRunPairing": {
      "prompt": "输入 MonoSpend 网页生成的配对码",
      "request": {
        "method": "POST",
        "url": "https://monospend.app/api/pair",
        "headers": {
          "Content-Type": "application/json"
        },
        "body": {
          "pairingCode": "<PAIRING_CODE_FROM_WEB>",
          "deviceName": "iPhone Shortcut"
        }
      },
      "saveResponseFields": {
        "token": "monospend-device-token.txt",
        "captureUrl": "monospend-capture-url.txt"
      }
    },
    "dailyCapture": {
      "input": "Dictate Text or Ask for Input",
      "request": {
        "method": "POST",
        "url": "<CAPTURE_URL_FROM_PAIRING_OR_DEFAULT>",
        "headers": {
          "Content-Type": "application/json",
          "Authorization": "Bearer <DEVICE_TOKEN_FROM_PAIRING>"
        },
        "body": {
          "source": "shortcut",
          "transcript": "<DICTATED_OR_TYPED_TEXT>",
          "clientRequestId": "shortcut-<CURRENT_TIMESTAMP>",
          "syncTargets": [
            "feishu",
            "notion",
            "google_sheets"
          ]
        }
      },
      "showResponseFields": [
        "confirmation"
      ],
      "optionalResponseFields": [
        "correctionUrl",
        "lines",
        "syncJobs"
      ]
    },
    "nativeVoiceCapture": {
      "input": "Native client records a short audio file, then uploads it to the backend.",
      "request": {
        "method": "POST",
        "url": "https://monospend.app/api/audio-capture",
        "contentType": "multipart/form-data",
        "headers": {
          "Authorization": "Bearer <DEVICE_TOKEN_FROM_PAIRING>"
        },
        "fields": {
          "file": "<AUDIO_FILE>",
          "source": "voice",
          "clientRequestId": "native-<CURRENT_TIMESTAMP>",
          "syncTargets": [
            "feishu",
            "notion",
            "google_sheets"
          ]
        }
      },
      "privacy": {
        "rawAudioPersisted": false,
        "rawTranscriptPersisted": false
      },
      "showResponseFields": [
        "confirmation"
      ],
      "optionalResponseFields": [
        "correctionUrl",
        "lines",
        "syncJobs"
      ]
    },
    "actionChecklist": [
      "Install the MonoSpend Shortcut package; it must not contain a real token.",
      "Log in at /app and create a 10-minute iPhone pairing code.",
      "Run the Shortcut once and enter the pairing code when prompted.",
      "The Shortcut exchanges the code at /api/pair and saves its device token locally.",
      "Future runs dictate or type one sentence and POST it to /api/capture.",
      "Show the confirmation and optionally open correctionUrl for edits."
    ],
    "testPhrase": "午饭 58，咖啡 22，打车 31"
  }
}