Get all forms

GET /api/v1/form

Query parameters

  • Filter by a comma separated list of UUIDs.

  • Get forms that have or have not been published.

  • Get forms of this visibility value, Available types are 'hidden', 'public' and 'private' ,Example 'hidden'

  • Get forms with a title that match this filter. Example 'Annual review'

  • Date to filter when the record was created after. Example 2022-04-05

  • Date to filter when the record was created before. Example 2022-05-31

  • sort string

    Field to sort by. Valid fields are [created_at, updated_at, title]. Negative sign to denote DESC. Defaults to '-created_at'.

  • per_page integer

    Number of results to return with pagination (Default 15. Max 500).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • data array[object]

      Additional properties are allowed.

GET /api/v1/form
curl \
 -X GET https://api.plannrcrm.com/api/v1/form \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
  "data": [
    {
      "live": true,
      "uuid": "f3070d2b-9b08-40d1-a6de-6995f7ef06ed",
      "title": "Annual Catchup 2022",
      "sections": {
        "key": "what_is_your_name",
        "type": "string",
        "uuid": "d7a743f4-06a7-41e8-b167-cc8ee2b0038b",
        "title": "What is your name?",
        "caption": "Your full legal name",
        "section": "App\\Http\\Resources\\FormSectionResource",
        "position": 1,
        "required": true,
        "help_text": "Gareth",
        "created_at": "2024-11-20T13:24:01+00:00",
        "updated_at": "2024-11-20T13:24:01+00:00",
        "target_field": "name",
        "linked_primary": true,
        "linked_question": "App\\Http\\Resources\\FormBuilder\\LinkedFormQuestionResource",
        "selection_options": [
          "option 1",
          "option 2"
        ]
      },
      "created_at": "2024-11-20T13:24:01+00:00",
      "updated_at": "2024-11-20T13:24:01+00:00",
      "visibility": "public",
      "client_type": "client",
      "description": "This is the annual catchup form for 2022",
      "allowed_hosts": [
        "domain.com",
        "subdomain.domain.com"
      ],
      "create_client": true,
      "draft_submissions_count": 5,
      "submitted_submissions_count": 5
    }
  ]
}