# API

## Main method to synchronize data

<mark style="color:green;">`POST`</mark> `/sync/`

Use this method to synchronize your local data (the data passed into the body) with data on the server.

#### Request Body

| Name                                   | Type | Description |
| -------------------------------------- | ---- | ----------- |
| data<mark style="color:red;">\*</mark> | JSON | Client data |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}

{% tab title="400: Bad Request Malformed JSON" %}

{% endtab %}

{% tab title="409: Conflict Unique key already exists" %}

{% endtab %}
{% endtabs %}
