Portkey · Capability

Portkey API — Integrations > Workspaces

Portkey API — Integrations > Workspaces. 2 operations. Lead operation: List integration workspace access. Self-contained Naftiko capability covering one Portkey business surface.

Run with Naftiko PortkeyIntegrations > Workspaces

What You Can Do

GET
Get — List integration workspace access
/v1/integrations/{slug}/workspaces
PUT
Put — Bulk update workspace access
/v1/integrations/{slug}/workspaces

MCP Tools

list-integration-workspace-access

List integration workspace access

read-only idempotent
bulk-update-workspace-access

Bulk update workspace access

idempotent

Capability Spec

portkey-integrations-workspaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Portkey API — Integrations > Workspaces
  description: 'Portkey API — Integrations > Workspaces. 2 operations. Lead operation: List integration workspace access.
    Self-contained Naftiko capability covering one Portkey business surface.'
  tags:
  - Portkey
  - Integrations > Workspaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTKEY_API_KEY: PORTKEY_API_KEY
capability:
  consumes:
  - type: http
    namespace: portkey-integrations-workspaces
    baseUri: https://api.portkey.ai/v1
    description: Portkey API — Integrations > Workspaces business capability. Self-contained, no shared references.
    resources:
    - name: integrations-slug-workspaces
      path: /integrations/{slug}/workspaces
      operations:
      - name: get
        method: GET
        description: List integration workspace access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
      - name: put
        method: PUT
        description: Bulk update workspace access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.PORTKEY_API_KEY}}'
  exposes:
  - type: rest
    namespace: portkey-integrations-workspaces-rest
    port: 8080
    description: REST adapter for Portkey API — Integrations > Workspaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/integrations/{slug}/workspaces
      name: integrations-slug-workspaces
      description: REST surface for integrations-slug-workspaces.
      operations:
      - method: GET
        name: get
        description: List integration workspace access
        call: portkey-integrations-workspaces.get
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Bulk update workspace access
        call: portkey-integrations-workspaces.put
        with:
          slug: rest.slug
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portkey-integrations-workspaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Portkey API — Integrations > Workspaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-integration-workspace-access
      description: List integration workspace access
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-integrations-workspaces.get
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.
    - name: bulk-update-workspace-access
      description: Bulk update workspace access
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: portkey-integrations-workspaces.put
      with:
        slug: tools.slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.