Command Palette

Search for a command to run...

Log In

Get a Form

get/public/v1/forms/{form}

Returns the form's fields with the IDs and value formats a submission needs.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • formstringrequired

    The form UUID

Response

200application/json

FormResource

  • dataobjectrequired
    ▶Show 10 child attributes
    • idstringrequired
      Example:f1o2r3m4-a5b6-47c8-9d0e-1f2a3b4c5d6e
    • namestringrequired
      Example:Intake Form
    • descriptionstring | nullrequired
      Example:Initial client intake questionnaire
    • statusstringrequired
      Example:published
    • typestringrequired
      Example:internal
    • usagestringrequired
      Example:general
    • hosted_urlstringrequired
      Example:https://app.astalty.com.au/form/f1o2r3m4-a5b6-47c8-9d0e-1f2a3b4c5d6e
    • archived_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
    • fieldsobject[]required
      ▶Show 10 child attributes
      • idstringrequired
        Example:f1e2l3d4-a5b6-47c8-9d0e-1f2a3b4c5d6e
      • labelstring | nullrequired
        Example:Date of birth
      • contentstring | nullrequired
        Example:Section heading or rich text content
      • typestringrequired
        Example:date
      • fillablebooleanrequired
        Example:true
      • requiredbooleanrequired
        Example:false
      • optionsstring[]required
      • repeater_fieldsobject[]required
        ▶Show 2 child attributes
        • keystringrequired
          Example:name
        • labelstringrequired
          Example:Full name
      • conditionsobject[]required
        ▶Show 4 child attributes
        • effectstringrequired
          Example:visibility
        • source_field_idstringrequired
          Example:f1e2l3d4-a5b6-47c8-9d0e-1f2a3b4c5d6e
        • operatorstringrequired
          Example:equals
        • valuestring | nullrequired
          Example:Yes
      • value_formatstring | enum<string> | nullrequired
        Example:One of the strings in options. Not an option ID.
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found