Customer.io · Capability

Customer.io App API — Collections

Customer.io App API — Collections. 5 operations. Lead operation: List collections. Self-contained Naftiko capability covering one Customer Io business surface.

Run with Naftiko Customer IoCollections

What You Can Do

GET
Listcollections — List collections
/v1/api/collections
POST
Createcollection — Create a collection
/v1/api/collections
GET
Getcollection — Get a collection
/v1/api/collections/{collection-id}
PUT
Updatecollection — Update a collection
/v1/api/collections/{collection-id}
DELETE
Deletecollection — Delete a collection
/v1/api/collections/{collection-id}

MCP Tools

list-collections

List collections

read-only idempotent
create-collection

Create a collection

get-collection

Get a collection

read-only idempotent
update-collection

Update a collection

idempotent
delete-collection

Delete a collection

idempotent

Capability Spec

app-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Customer.io App API — Collections
  description: 'Customer.io App API — Collections. 5 operations. Lead operation: List collections. Self-contained Naftiko
    capability covering one Customer Io business surface.'
  tags:
  - Customer Io
  - Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CUSTOMER_IO_API_KEY: CUSTOMER_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: app-collections
    baseUri: https://api.customer.io/v1
    description: Customer.io App API — Collections business capability. Self-contained, no shared references.
    resources:
    - name: api-collections
      path: /api/collections
      operations:
      - name: listcollections
        method: GET
        description: List collections
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcollection
        method: POST
        description: Create a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-collections-collection_id
      path: /api/collections/{collection_id}
      operations:
      - name: getcollection
        method: GET
        description: Get a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecollection
        method: PUT
        description: Update a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecollection
        method: DELETE
        description: Delete a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CUSTOMER_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: app-collections-rest
    port: 8080
    description: REST adapter for Customer.io App API — Collections. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/collections
      name: api-collections
      description: REST surface for api-collections.
      operations:
      - method: GET
        name: listcollections
        description: List collections
        call: app-collections.listcollections
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcollection
        description: Create a collection
        call: app-collections.createcollection
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/collections/{collection-id}
      name: api-collections-collection-id
      description: REST surface for api-collections-collection_id.
      operations:
      - method: GET
        name: getcollection
        description: Get a collection
        call: app-collections.getcollection
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecollection
        description: Update a collection
        call: app-collections.updatecollection
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecollection
        description: Delete a collection
        call: app-collections.deletecollection
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: app-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Customer.io App API — Collections. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-collections
      description: List collections
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: app-collections.listcollections
      outputParameters:
      - type: object
        mapping: $.
    - name: create-collection
      description: Create a collection
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: app-collections.createcollection
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-collection
      description: Get a collection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: app-collections.getcollection
      outputParameters:
      - type: object
        mapping: $.
    - name: update-collection
      description: Update a collection
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: app-collections.updatecollection
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-collection
      description: Delete a collection
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: app-collections.deletecollection
      outputParameters:
      - type: object
        mapping: $.