Commute surveys

Draft a survey form from a plain-language description (default workspace only)

Changed on

The AI gateway drafts a commute-survey-form/v1 form; Core drops extra questions that ask for personal data and re-validates the form with the survey validator, falling back to the Standard template (fallback true) when it fails. Nothing is persisted. Requires report.share_external. Billed as AI usage under feature area commute_survey (operation commute_survey_draft); a fallback is recorded but not charged. Send requestId to be able to stop it with POST /commute-surveys/drafts/{requestId}/cancel.

post/commute-surveys/drafts

Request

  • Base URL: https://api.greentally.ai/v1
  • URL: https://api.greentally.ai/v1/commute-surveys/drafts
  • Auth: HTTP bearer

Request body

descriptionstring required

Staff's description of the survey, in their own words (characters, not bytes).

requestIdstring

The caller's own id for this request (a UUID), which its Stop names.

Response

The checked draft

Changes