---
title: "Offline-ready Events"
method: POST
path: "/sync"
tags: ["Synchronization"]
---

# Offline-ready Events

`POST /sync`

## Request

- Base URL: `https://api.getparla.com/v4`
- URL: `https://api.getparla.com/v4/sync`
- Auth: none declared

## Headers

- `X-Token` string
- `X-Vendor-Id` string
- `User-Agent` string
- `X-Forwarded-For` string

## Request body

- ActionsRequest
  - `actions` Action[]
    - `action` string
    - `local_id` string
    - `payload` string
    - `timestamp` string, date-time
    - `trigger` string
    - `xp` integer
  - `device` Device
    - `idfa` string
    - `model` string
    - `os_version` string
    - `push_token` string
    - `resolution` string
    - `uuid` string
  - `last_sync` string, date-time

## Response `200`

Success envelope. `result` shape depends on the endpoint.

- GenericResponse: Wrapper for all API success responses
  - `error` object, nullable
  - `result` object: Endpoint-specific payload
  - `version` integer

## Other responses

- `default`: Error envelope.

---

[API](https://skmtc.dev/getparla/apis/parla-api-v4.md) - [All operations](https://skmtc.dev/getparla/apis/parla-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/getparla/apis/parla-api-v4/revisions/e9645e2b9005?raw)
