Skip to main content

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.

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

FieldValue
MethodGET
Path/users/me/clothing/sync
Auth requiredYes — Bearer token
Rate limit5 per minute

Query parameters

updated_since
string
ISO 8601 datetime. Only clothing items updated or deleted after this time are returned. If omitted, all items are returned from the beginning.

Response fields

Status: 200 OK
updated
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.
deleted
array
required
IDs of clothing items that were deleted since updated_since.
server_time
string
required
Current server time in ISO 8601 format. Use this value as updated_since on your next sync call.

Example

cURL
curl --request GET \
  --url "https://api.drssed.com/users/me/clothing/sync?updated_since=2024-06-01T12:00:00Z" \
  --header "Authorization: Bearer <token>"
Response
{
  "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"
}
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.