ptc-thingworx · Capability

PTC ThingWorx REST API — Things

PTC ThingWorx REST API — Things. 2 operations. Lead operation: List things. Self-contained Naftiko capability covering one Ptc Thingworx business surface.

Run with Naftiko Ptc ThingworxThings

What You Can Do

GET
Listthings — List things
/v1/things
GET
Getthing — Get a thing
/v1/things/{thingname}

MCP Tools

list-things

List things

read-only idempotent
get-thing

Get a thing

read-only idempotent

Capability Spec

rest-things.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PTC ThingWorx REST API — Things
  description: 'PTC ThingWorx REST API — Things. 2 operations. Lead operation: List things. Self-contained Naftiko capability
    covering one Ptc Thingworx business surface.'
  tags:
  - Ptc Thingworx
  - Things
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PTC_THINGWORX_API_KEY: PTC_THINGWORX_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-things
    baseUri: https://{host}/Thingworx
    description: PTC ThingWorx REST API — Things business capability. Self-contained, no shared references.
    resources:
    - name: Things
      path: /Things
      operations:
      - name: listthings
        method: GET
        description: List things
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: maxItems
          in: query
          type: integer
          description: Maximum number of things to return
        - name: nameMask
          in: query
          type: string
          description: Name filter using % as wildcard
        - name: tags
          in: query
          type: string
          description: Tag-based filter
    - name: Things-thingName
      path: /Things/{thingName}
      operations:
      - name: getthing
        method: GET
        description: Get a thing
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.PTC_THINGWORX_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-things-rest
    port: 8080
    description: REST adapter for PTC ThingWorx REST API — Things. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/things
      name: things
      description: REST surface for Things.
      operations:
      - method: GET
        name: listthings
        description: List things
        call: rest-things.listthings
        with:
          maxItems: rest.maxItems
          nameMask: rest.nameMask
          tags: rest.tags
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/things/{thingname}
      name: things-thingname
      description: REST surface for Things-thingName.
      operations:
      - method: GET
        name: getthing
        description: Get a thing
        call: rest-things.getthing
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-things-mcp
    port: 9090
    transport: http
    description: MCP adapter for PTC ThingWorx REST API — Things. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-things
      description: List things
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-things.listthings
      with:
        maxItems: tools.maxItems
        nameMask: tools.nameMask
        tags: tools.tags
      outputParameters:
      - type: object
        mapping: $.
    - name: get-thing
      description: Get a thing
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-things.getthing
      outputParameters:
      - type: object
        mapping: $.