> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drssed.app/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /users/me/clothing/sync — Incremental clothing sync

> Incrementally sync clothing changes since a given timestamp. Returns updated items and deleted IDs along with a server_time for the next sync.

Call `GET /users/me/clothing/sync` to efficiently fetch only the clothing changes that occurred since your last sync. The response includes items that were created or modified, IDs of items that were deleted, and a `server_time` value to use as the cursor on your next call. Passing no `updated_since` returns the full set of clothing items from the beginning of time.

## Endpoint

| Field         | Value                     |
| ------------- | ------------------------- |
| Method        | `GET`                     |
| Path          | `/users/me/clothing/sync` |
| Auth required | Yes — Bearer token        |
| Rate limit    | 5 per minute              |

## Query parameters

<ParamField query="updated_since" type="string">
  ISO 8601 datetime. Only clothing items updated or deleted after this time are returned. If omitted, all items are returned from the beginning.
</ParamField>

## Response fields

**Status: 200 OK**

<ResponseField name="updated" type="array" required>
  Clothing items that were created or modified since `updated_since`. Each object has the same shape as a clothing item returned by `GET /users/me/clothing`.
</ResponseField>

<ResponseField name="deleted" type="array" required>
  IDs of clothing items that were deleted since `updated_since`.
</ResponseField>

<ResponseField name="server_time" type="string" required>
  Current server time in ISO 8601 format. Use this value as `updated_since` on your next sync call.
</ResponseField>

## Example

```bash cURL theme={null}
curl --request GET \
  --url "https://api.drssed.com/users/me/clothing/sync?updated_since=2024-06-01T12:00:00Z" \
  --header "Authorization: Bearer <token>"
```

```json Response theme={null}
{
  "updated": [
    {
      "clothing_id": "clth_a1b2c3d4e5f6",
      "name": "White Linen Shirt",
      "category": "TOP",
      "color": "White",
      "is_public": false,
      "user_id": "usr_9z8y7x6w",
      "image_id": "img_f1e2d3c4",
      "created_at": "2024-06-02T09:00:00+00:00",
      "seasons": ["Spring", "Summer"],
      "tags": ["Casual"],
      "description": null
    }
  ],
  "deleted": ["clth_z9y8x7w6v5u4"],
  "server_time": "2024-06-10T14:32:11.048523+00:00"
}
```

<Tip>
  Always use the `server_time` from the response as your next `updated_since` value. Never use a client-generated timestamp — clock skew between your device and the server can cause you to miss changes.
</Tip>
