Terapi · Capability

Terapi API — Integrations

Terapi API — Integrations. 4 operations. Lead operation: List Integrations. Self-contained Naftiko capability covering one Terapi business surface.

Run with Naftiko TerapiIntegrations

What You Can Do

GET
Listintegrations — List Integrations
/v1/integration
POST
Createintegration — Create Integration
/v1/integration
GET
Getintegration — Get Integration
/v1/integration/{provider-config-key}
DELETE
Deleteintegration — Delete Integration
/v1/integration/{provider-config-key}

MCP Tools

list-integrations

List Integrations

read-only idempotent
create-integration

Create Integration

get-integration

Get Integration

read-only idempotent
delete-integration

Delete Integration

idempotent

Capability Spec

terapi-integrations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Terapi API — Integrations
  description: 'Terapi API — Integrations. 4 operations. Lead operation: List Integrations. Self-contained Naftiko capability
    covering one Terapi business surface.'
  tags:
  - Terapi
  - Integrations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TERAPI_API_KEY: TERAPI_API_KEY
capability:
  consumes:
  - type: http
    namespace: terapi-integrations
    baseUri: https://api.terapi.dev
    description: Terapi API — Integrations business capability. Self-contained, no shared references.
    resources:
    - name: integration
      path: /integration
      operations:
      - name: listintegrations
        method: GET
        description: List Integrations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createintegration
        method: POST
        description: Create Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: integration-provider_config_key
      path: /integration/{provider_config_key}
      operations:
      - name: getintegration
        method: GET
        description: Get Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: provider_config_key
          in: path
          type: string
          description: The unique key for this integration configuration
          required: true
      - name: deleteintegration
        method: DELETE
        description: Delete Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: provider_config_key
          in: path
          type: string
          description: The unique key for this integration configuration
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.TERAPI_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: terapi-integrations-rest
    port: 8080
    description: REST adapter for Terapi API — Integrations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/integration
      name: integration
      description: REST surface for integration.
      operations:
      - method: GET
        name: listintegrations
        description: List Integrations
        call: terapi-integrations.listintegrations
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createintegration
        description: Create Integration
        call: terapi-integrations.createintegration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/integration/{provider-config-key}
      name: integration-provider-config-key
      description: REST surface for integration-provider_config_key.
      operations:
      - method: GET
        name: getintegration
        description: Get Integration
        call: terapi-integrations.getintegration
        with:
          provider_config_key: rest.provider_config_key
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteintegration
        description: Delete Integration
        call: terapi-integrations.deleteintegration
        with:
          provider_config_key: rest.provider_config_key
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: terapi-integrations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Terapi API — Integrations. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-integrations
      description: List Integrations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: terapi-integrations.listintegrations
      outputParameters:
      - type: object
        mapping: $.
    - name: create-integration
      description: Create Integration
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: terapi-integrations.createintegration
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-integration
      description: Get Integration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: terapi-integrations.getintegration
      with:
        provider_config_key: tools.provider_config_key
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-integration
      description: Delete Integration
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: terapi-integrations.deleteintegration
      with:
        provider_config_key: tools.provider_config_key
      outputParameters:
      - type: object
        mapping: $.