---
title: "Syncs Questionnaires from Server to Device"
method: GET
path: "/questionnaires/sync"
tags: ["Questionnaires"]
---

# Syncs Questionnaires from Server to Device

`GET /questionnaires/sync`

## Query parameters

- `dsl_version` string, required
- `process_token` string, byte
- `limit` integer

## Headers

- `HTTP_X_USER_ID` unknown
- `HTTP_X_FACILITY_ID` unknown
- `Accept-Language` string

## Response `200`

Questionnaires Synced to user device

- object
  - `questionnaires` Questionnaire[], nullable, required
    - `id` string, uuid, required
    - `questionnaire_type` 'monthly_screening_reports' | 'monthly_supplies_reports' | 'drug_stock_reports', required
    - `layout` union, required
      - QuestionnaireViewGroupDsl12
        - `type` 'group', required
        - `id` string, uuid, required
        - `view_type` 'view_group', required
        - `item` union[], required
          - union
            - QuestionnaireDisplayDsl11
              - …
            - QuestionnaireUnorderedListViewGroupDsl11
              - …
            - QuestionnaireLineBreakDsl1
              - …
            - QuestionnaireInputViewGroupDsl12
              - …
            - QuestionnaireRadioViewGroupDsl11
              - …
      - QuestionnaireViewGroupDsl11
        - `type` 'group', required
        - `id` string, uuid, required
        - `view_type` 'view_group', required
        - `item` union[], required
          - union
            - QuestionnaireDisplayDsl11
              - …
            - QuestionnaireUnorderedListViewGroupDsl11
              - …
            - QuestionnaireLineBreakDsl1
              - …
            - QuestionnaireInputViewGroupDsl11
              - …
            - QuestionnaireRadioViewGroupDsl11
              - …
      - QuestionnaireViewGroupDsl1
        - `type` 'group', required
        - `id` string, uuid, required
        - `view_type` 'view_group', required
        - `item` union[], required
          - union
            - QuestionnaireInputViewGroupDsl1
              - …
            - QuestionnaireDisplayDsl1
              - …
            - QuestionnaireLineBreakDsl1
              - …
    - `deleted_at` string, date-time, nullable — Timestamp with millisecond precision.
  - `process_token` string, byte, required — Token containing all the information needed to process batch requests from the user

## Other responses

- `403` — user is not allowed to sync

## Changes

- **2023-01-04** (v4) `71d382d82997` — 1 breaking, 2 warning, 1 info
  - added the new required `query` request parameter `dsl_version`
  - deleted the `header` request parameter `HTTP_ACCEPT_LANGUAGE`
  - deleted the `query` request parameter `questionnaire_dsl_version`
  - added the new optional `header` request parameter `Accept-Language`
- **2022-12-16** (v4) `5dc3c7654abe` — 1 info
  - endpoint added
- **2020-04-17** (v4) `44261500935e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/simpledotorg/apis/untitled-api/changes/questionnaires/sync/get.md)

---

[API](https://skmtc.dev/simpledotorg/apis/untitled-api.md) · [All operations](https://skmtc.dev/simpledotorg/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/simpledotorg/untitled-api/revisions/31ffa1d07978/schema)
