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

# Získat změny

> Načtení produktů změněných od daného časového razítka pro inkrementální synchronizaci

## Vzor inkrementální synchronizace

1. Začněte časovým razítkem poslední úspěšné synchronizace v `since`.
2. Při procházení všech stránek přes `next_cursor` ponechte `since` beze změny.
3. Produkty aplikujte ve vráceném pořadí od nejstaršího.
4. Po úspěšném dokončení poslední stránky uložte `sync_timestamp` z první stránky jako hodnotu `since` pro další cyklus.

Tato hranice zabraňuje vynechání změn, které vzniknou během stránkování.


## OpenAPI

````yaml openapi.yaml GET /catalog/changes
openapi: 3.1.0
info:
  title: Lasso API
  description: AI-powered product data extraction and enhancement API
  version: 1.0.0
  contact:
    name: Lasso Support
    url: https://lasso.ai
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://app.productlasso.com/api/v1
    description: Production
security:
  - BearerAuth: []
paths:
  /catalog/changes:
    get:
      tags:
        - Catalog
      summary: List Catalog products changed after a timestamp
      description: >-
        Returns products oldest-first for incremental synchronization. Keep the
        first page's `sync_timestamp` for the next synchronization cycle.
      operationId: listCatalogChanges
      parameters:
        - name: since
          in: query
          required: true
          description: >-
            Valid ISO 8601 timestamp. Only products updated after this instant
            are returned.
          schema:
            type: string
            format: date-time
        - name: page_size
          in: query
          schema:
            type: integer
            default: 100
            minimum: 1
            maximum: 200
        - name: cursor
          in: query
          schema:
            type: string
        - name: schema_id
          in: query
          schema:
            type: string
            format: uuid
        - name: status
          in: query
          schema:
            type: string
            enum:
              - draft
              - active
              - archived
      responses:
        '200':
          description: Keyset-paginated changed products.
          content:
            application/json:
              schema:
                type: object
                required:
                  - products
                  - next_cursor
                  - has_more
                  - sync_timestamp
                properties:
                  products:
                    type: array
                    items:
                      $ref: '#/components/schemas/CatalogProduct'
                  next_cursor:
                    type:
                      - string
                      - 'null'
                  has_more:
                    type: boolean
                  sync_timestamp:
                    type: string
                    format: date-time
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    CatalogProduct:
      type: object
      additionalProperties: false
      required:
        - id
        - company_id
        - schema_id
        - source
        - external_id
        - status
        - attributes
        - attribute_extensions
        - created_at
        - updated_at
        - deleted_at
      properties:
        id:
          type: string
          format: uuid
        company_id:
          type: string
          format: uuid
        schema_id:
          type: string
          format: uuid
        source:
          type: string
          enum:
            - manual
            - product_extraction
            - shopify
        external_id:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - draft
            - active
            - archived
        attributes:
          type: object
          additionalProperties: true
          description: >-
            Values backed by active Shared Attributes from the base schema or
            attribute_extensions.
        attribute_extensions:
          type: array
          maxItems: 2000
          items:
            $ref: '#/components/schemas/CatalogAttributeExtension'
        relations:
          type: object
          additionalProperties: true
          description: >-
            Hydrated relation values. Present on the single-product GET
            response.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        deleted_at:
          type:
            - string
            - 'null'
          format: date-time
      examples:
        - id: 13adf145-d9a0-4c28-9235-3f7e17af4cf1
          company_id: 81e2b625-e6e8-4dd5-a50f-22803806cc10
          schema_id: 9e1c77dd-8f10-41ca-bfe8-e672b89692d1
          source: manual
          external_id: null
          status: draft
          attributes:
            sku: A-100
            product_name: Alpine bottle
            price: 24.9
          attribute_extensions:
            - attribute_id: e683267d-2450-4ea8-a977-462d46a8f610
              key: supplier_note
          created_at: '2026-08-31T09:30:00.000Z'
          updated_at: '2026-08-31T09:30:00.000Z'
          deleted_at: null
    CatalogAttributeExtension:
      type: object
      additionalProperties: false
      required:
        - attribute_id
        - key
      description: >-
        An active Shared Attribute attached only to this Catalog product,
        without changing its Product Schema.
      properties:
        attribute_id:
          type: string
          format: uuid
        key:
          type: string
          description: Current canonical Attribute key.
    Error:
      type: object
      required:
        - status_code
        - error_type
        - message
        - request_id
      properties:
        status_code:
          type: integer
        error_type:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - forbidden
            - not_found
            - conflict
            - validation_error
            - rate_limited
            - service_unavailable
            - internal_error
        message:
          type: string
        request_id:
          type: string
        code:
          type: string
          description: >-
            Stable machine-readable detail code for validation, conflict, and
            retryable availability errors.
        retryable:
          type: boolean
          description: Whether the request can be retried without changing its payload.
        attribute_id:
          type: string
          format: uuid
          description: Stable Attribute identity when the error is scoped to one Attribute.
        attribute_key:
          type: string
          description: Attribute key when the error is scoped to one Attribute.
        details:
          type: object
          additionalProperties: true
        current_updated_at:
          type: string
          format: date-time
          description: >-
            Current resource revision supplied for client-directed refetch after
            a stale write.
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.