---
title: "Syncs Questionnaire Responses from Server to Device"
method: GET
path: "/questionnaire_responses/sync"
tags: ["Questionnaire Responses"]
---

# Syncs Questionnaire Responses from Server to Device

`GET /questionnaire_responses/sync`

## Request

- Base URL: `/api/v4` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v4/questionnaire_responses/sync`
- Auth: HTTP bearer and API key in header `X-USER-ID` and API key in header `X-FACILITY-ID`

## Query parameters

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

## Headers

- `HTTP_X_USER_ID` unknown
- `HTTP_X_FACILITY_ID` unknown

## Response `200`

questionnaire responses synced to user device

- object
  - `questionnaire_responses` QuestionnaireResponse[], nullable, required
    - `id` string, uuid, required
    - `questionnaire_id` string, uuid, required
    - `questionnaire_type` 'monthly_screening_reports' | 'monthly_supplies_reports' | 'drug_stock_reports', required
    - `facility_id` string, uuid, required
    - `last_updated_by_user_id` string, uuid, nullable, required
    - `content` object, required
    - `created_at` string, date-time, required: Timestamp with millisecond precision.
    - `updated_at` string, date-time, required: Timestamp with millisecond precision.
    - `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

- **2022-12-16** (v4) `5dc3c7654abe`: 1 info
  - endpoint added
- **2020-04-20** (v4) `44261500935e`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/simpledotorg/apis/simple-api/changes/questionnaire_responses/sync/get.md)

---

[API](https://skmtc.dev/simpledotorg/apis/simple-api.md) - [All operations](https://skmtc.dev/simpledotorg/apis/simple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/simpledotorg/apis/simple-api/revisions/31ffa1d07978?raw)
