Model Sync

Lists model syncs in the caller's organization.

Results are ordered by updated_at descending, with id used as a tiebreaker. If more results are available, the response includes pagination.next_page_token. Pass that token back unchanged to continue from the last item you received.

The token is opaque. Do not construct or edit it yourself.

The limit is capped at 50. Values above that cap are reduced to 50, and non-positive values fall back to the same default.

This endpoint returns syncs visible to the current caller's organization scope. To inspect a specific sync in more detail, follow up with GET /api/syncs/{id}.

get/api/syncs

Request

  • Base URL
    https://app.polytomic.com
  • Auth
    • HTTP bearer
    • or HTTP basic

Query parameters

activeboolean nullable

Filter to only active or only paused syncs.

Example:true
mode'create' | 'update' | 'updateOrCreate' | 'replace' | 'append' | 'remove' | 'snapshot'

Filter by sync target mode (e.g. create, updateOrCreate, enrich).

target_connection_idstring uuid

Filter to syncs that write to the specified target connection.

Example:0b155265-c537-44c9-9359-a3ceb468a4da
page_tokenstring

Pagination cursor returned in the previous response. Omit on the first request.

Example:AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==
limitinteger

Maximum number of syncs to return. Default and maximum is 50.

Example:50

Headers

X-Polytomic-Versionstring

Response

OK

Example response

{
  "data": [
    {
      "active": true,
      "created_by": {
        "id": "12345678-1234-1234-1234-123456789012",
        "name": "John Doe",
        "type": "user"
      },
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "mode": "create",
      "model_ids": [
        "12345678-1234-1234-1234-123456789012",
        "98765432-1234-1234-1234-123456789012"
      ],
      "name": "Users Sync",
      "organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "schedule": {
        "connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "day_of_month": "1",
        "day_of_week": "1",
        "hour": "12",
        "minute": "30",
        "month": "1",
        "run_after": {
          "bulk_sync_ids": [
            "248df4b7-aa70-47b8-a036-33ac447e668d"
          ],
          "sync_ids": [
            "248df4b7-aa70-47b8-a036-33ac447e668d"
          ]
        }
      },
      "target_connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "target_object": "Users",
      "updated_by": {
        "id": "12345678-1234-1234-1234-123456789012",
        "name": "John Doe",
        "type": "user"
      }
    }
  ],
  "pagination": {
    "next_page_token": "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K=="
  }
}

Changes

    • breaking

      removed the enum value append from the query request parameter mode

    • breaking

      removed the enum value create from the query request parameter mode

    • breaking

      removed the enum value remove from the query request parameter mode

    • breaking

      removed the enum value replace from the query request parameter mode

    • breaking

      removed the enum value snapshot from the query request parameter mode

    • breaking

      removed the enum value update from the query request parameter mode

    • breaking

      removed the enum value updateOrCreate from the query request parameter mode

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      for the query request parameter mode, the type was generalized from string to no type

    • info

      added to the // response property allOf list for the response status

    • info

      added to the // response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      added to the // response property allOf list for the response status