Polytomic · Capability

API Reference — subpackage_modelSync.subpackage_modelSync/executions

API Reference — subpackage_modelSync.subpackage_modelSync/executions. 6 operations. Lead operation: List Executions. Self-contained Naftiko capability covering one Polytomic business surface.

Run with Naftiko Polytomicsubpackage_modelSync.subpackage_modelSync/executions

What You Can Do

GET
List — List Executions
/v1/api/syncs/{sync-id}/executions
GET
Get — Get Execution
/v1/api/syncs/{sync-id}/executions/{id}
POST
Cancel — Cancel Sync Execution
/v1/api/syncs/{sync-id}/executions/{id}/cancel
GET
Getconsolelogs — Get Execution Console Logs
/v1/api/syncs/{sync-id}/executions/{id}/consolelog
GET
Getlogurls — Get Execution Log Urls
/v1/api/syncs/{sync-id}/executions/{id}/{type}
GET
Getlogs — Get Execution Log
/v1/api/syncs/{sync-id}/executions/{id}/{type}/{filename}

MCP Tools

list-executions

List Executions

read-only idempotent
get-execution

Get Execution

read-only idempotent
cancel-sync-execution

Cancel Sync Execution

get-execution-console-logs

Get Execution Console Logs

read-only idempotent
get-execution-log-urls

Get Execution Log Urls

read-only idempotent
get-execution-log

Get Execution Log

read-only idempotent

Capability Spec

polytomic-subpackage-modelsync-subpackage-modelsync-executions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_modelSync.subpackage_modelSync/executions
  description: 'API Reference — subpackage_modelSync.subpackage_modelSync/executions. 6 operations. Lead operation: List Executions.
    Self-contained Naftiko capability covering one Polytomic business surface.'
  tags:
  - Polytomic
  - subpackage_modelSync.subpackage_modelSync/executions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POLYTOMIC_API_KEY: POLYTOMIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: polytomic-subpackage-modelsync-subpackage-modelsync-executions
    baseUri: https://app.polytomic.com
    description: API Reference — subpackage_modelSync.subpackage_modelSync/executions business capability. Self-contained,
      no shared references.
    resources:
    - name: api-syncs-sync_id-executions
      path: /api/syncs/{sync_id}/executions
      operations:
      - name: list
        method: GET
        description: List Executions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sync_id
          in: path
          type: string
          required: true
        - name: page_token
          in: query
          type: string
        - name: only_completed
          in: query
          type: boolean
        - name: ascending
          in: query
          type: boolean
        - name: Authorization
          in: header
          type: string
          description: Bearer user API key
          required: true
        - name: X-Polytomic-Version
          in: header
          type: string
    - name: api-syncs-sync_id-executions-id
      path: /api/syncs/{sync_id}/executions/{id}
      operations:
      - name: get
        method: GET
        description: Get Execution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sync_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Bearer user API key
          required: true
        - name: X-Polytomic-Version
          in: header
          type: string
    - name: api-syncs-sync_id-executions-id-cancel
      path: /api/syncs/{sync_id}/executions/{id}/cancel
      operations:
      - name: cancel
        method: POST
        description: Cancel Sync Execution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sync_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The ID of the execution to cancel.
          required: true
        - name: Authorization
          in: header
          type: string
          description: Bearer user API key
          required: true
        - name: X-Polytomic-Version
          in: header
          type: string
    - name: api-syncs-sync_id-executions-id-consolelog
      path: /api/syncs/{sync_id}/executions/{id}/consolelog
      operations:
      - name: getconsolelogs
        method: GET
        description: Get Execution Console Logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sync_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
        - name: limit
          in: query
          type: integer
          description: Maximum number of entries to return. Values above the logger retention limit are capped to 50.
        - name: after
          in: query
          type: string
          description: Return only entries newer than this cursor.
        - name: Authorization
          in: header
          type: string
          description: Bearer user API key
          required: true
        - name: X-Polytomic-Version
          in: header
          type: string
    - name: api-syncs-sync_id-executions-id-type
      path: /api/syncs/{sync_id}/executions/{id}/{type}
      operations:
      - name: getlogurls
        method: GET
        description: Get Execution Log Urls
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sync_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
        - name: type
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Bearer user API key
          required: true
        - name: X-Polytomic-Version
          in: header
          type: string
    - name: api-syncs-sync_id-executions-id-type-filename
      path: /api/syncs/{sync_id}/executions/{id}/{type}/{filename}
      operations:
      - name: getlogs
        method: GET
        description: Get Execution Log
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sync_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
        - name: type
          in: path
          type: string
          required: true
        - name: filename
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Bearer user API key
          required: true
        - name: X-Polytomic-Version
          in: header
          type: string
    authentication:
      type: bearer
      token: '{{env.POLYTOMIC_API_KEY}}'
  exposes:
  - type: rest
    namespace: polytomic-subpackage-modelsync-subpackage-modelsync-executions-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_modelSync.subpackage_modelSync/executions. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/syncs/{sync-id}/executions
      name: api-syncs-sync-id-executions
      description: REST surface for api-syncs-sync_id-executions.
      operations:
      - method: GET
        name: list
        description: List Executions
        call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.list
        with:
          sync_id: rest.sync_id
          page_token: rest.page_token
          only_completed: rest.only_completed
          ascending: rest.ascending
          Authorization: rest.Authorization
          X-Polytomic-Version: rest.X-Polytomic-Version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/syncs/{sync-id}/executions/{id}
      name: api-syncs-sync-id-executions-id
      description: REST surface for api-syncs-sync_id-executions-id.
      operations:
      - method: GET
        name: get
        description: Get Execution
        call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.get
        with:
          sync_id: rest.sync_id
          id: rest.id
          Authorization: rest.Authorization
          X-Polytomic-Version: rest.X-Polytomic-Version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/syncs/{sync-id}/executions/{id}/cancel
      name: api-syncs-sync-id-executions-id-cancel
      description: REST surface for api-syncs-sync_id-executions-id-cancel.
      operations:
      - method: POST
        name: cancel
        description: Cancel Sync Execution
        call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.cancel
        with:
          sync_id: rest.sync_id
          id: rest.id
          Authorization: rest.Authorization
          X-Polytomic-Version: rest.X-Polytomic-Version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/syncs/{sync-id}/executions/{id}/consolelog
      name: api-syncs-sync-id-executions-id-consolelog
      description: REST surface for api-syncs-sync_id-executions-id-consolelog.
      operations:
      - method: GET
        name: getconsolelogs
        description: Get Execution Console Logs
        call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.getconsolelogs
        with:
          sync_id: rest.sync_id
          id: rest.id
          limit: rest.limit
          after: rest.after
          Authorization: rest.Authorization
          X-Polytomic-Version: rest.X-Polytomic-Version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/syncs/{sync-id}/executions/{id}/{type}
      name: api-syncs-sync-id-executions-id-type
      description: REST surface for api-syncs-sync_id-executions-id-type.
      operations:
      - method: GET
        name: getlogurls
        description: Get Execution Log Urls
        call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.getlogurls
        with:
          sync_id: rest.sync_id
          id: rest.id
          type: rest.type
          Authorization: rest.Authorization
          X-Polytomic-Version: rest.X-Polytomic-Version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/syncs/{sync-id}/executions/{id}/{type}/{filename}
      name: api-syncs-sync-id-executions-id-type-filename
      description: REST surface for api-syncs-sync_id-executions-id-type-filename.
      operations:
      - method: GET
        name: getlogs
        description: Get Execution Log
        call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.getlogs
        with:
          sync_id: rest.sync_id
          id: rest.id
          type: rest.type
          filename: rest.filename
          Authorization: rest.Authorization
          X-Polytomic-Version: rest.X-Polytomic-Version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: polytomic-subpackage-modelsync-subpackage-modelsync-executions-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_modelSync.subpackage_modelSync/executions. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: list-executions
      description: List Executions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.list
      with:
        sync_id: tools.sync_id
        page_token: tools.page_token
        only_completed: tools.only_completed
        ascending: tools.ascending
        Authorization: tools.Authorization
        X-Polytomic-Version: tools.X-Polytomic-Version
      outputParameters:
      - type: object
        mapping: $.
    - name: get-execution
      description: Get Execution
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.get
      with:
        sync_id: tools.sync_id
        id: tools.id
        Authorization: tools.Authorization
        X-Polytomic-Version: tools.X-Polytomic-Version
      outputParameters:
      - type: object
        mapping: $.
    - name: cancel-sync-execution
      description: Cancel Sync Execution
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.cancel
      with:
        sync_id: tools.sync_id
        id: tools.id
        Authorization: tools.Authorization
        X-Polytomic-Version: tools.X-Polytomic-Version
      outputParameters:
      - type: object
        mapping: $.
    - name: get-execution-console-logs
      description: Get Execution Console Logs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.getconsolelogs
      with:
        sync_id: tools.sync_id
        id: tools.id
        limit: tools.limit
        after: tools.after
        Authorization: tools.Authorization
        X-Polytomic-Version: tools.X-Polytomic-Version
      outputParameters:
      - type: object
        mapping: $.
    - name: get-execution-log-urls
      description: Get Execution Log Urls
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.getlogurls
      with:
        sync_id: tools.sync_id
        id: tools.id
        type: tools.type
        Authorization: tools.Authorization
        X-Polytomic-Version: tools.X-Polytomic-Version
      outputParameters:
      - type: object
        mapping: $.
    - name: get-execution-log
      description: Get Execution Log
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polytomic-subpackage-modelsync-subpackage-modelsync-executions.getlogs
      with:
        sync_id: tools.sync_id
        id: tools.id
        type: tools.type
        filename: tools.filename
        Authorization: tools.Authorization
        X-Polytomic-Version: tools.X-Polytomic-Version
      outputParameters:
      - type: object
        mapping: $.