Portkey · Capability

Portkey API — Analytics > Groups

Portkey API — Analytics > Groups. 3 operations. Lead operation: Get ai model grouped data.. Self-contained Naftiko capability covering one Portkey business surface.

Run with Naftiko PortkeyAnalytics > Groups

What You Can Do

GET
Get — Get ai model grouped data.
/v1/analytics/groups/ai-models
GET
Get — Get metadata key based grouped data.
/v1/analytics/groups/metadata/{metadatakey}
GET
Get — Get metadata users grouped data.
/v1/analytics/groups/users

MCP Tools

get-ai-model-grouped-data

Get ai model grouped data.

read-only idempotent
get-metadata-key-based-grouped

Get metadata key based grouped data.

read-only idempotent
get-metadata-users-grouped-data

Get metadata users grouped data.

read-only idempotent

Capability Spec

portkey-analytics-groups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Portkey API — Analytics > Groups
  description: 'Portkey API — Analytics > Groups. 3 operations. Lead operation: Get ai model grouped data.. Self-contained
    Naftiko capability covering one Portkey business surface.'
  tags:
  - Portkey
  - Analytics > Groups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTKEY_API_KEY: PORTKEY_API_KEY
capability:
  consumes:
  - type: http
    namespace: portkey-analytics-groups
    baseUri: https://api.portkey.ai/v1
    description: Portkey API — Analytics > Groups business capability. Self-contained, no shared references.
    resources:
    - name: analytics-groups-ai-models
      path: /analytics/groups/ai-models
      operations:
      - name: get
        method: GET
        description: Get ai model grouped data.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: analytics-groups-metadata-metadataKey
      path: /analytics/groups/metadata/{metadataKey}
      operations:
      - name: get
        method: GET
        description: Get metadata key based grouped data.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: metadataKey
          in: path
          type: string
          required: true
    - name: analytics-groups-users
      path: /analytics/groups/users
      operations:
      - name: get
        method: GET
        description: Get metadata users grouped data.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.PORTKEY_API_KEY}}'
  exposes:
  - type: rest
    namespace: portkey-analytics-groups-rest
    port: 8080
    description: REST adapter for Portkey API — Analytics > Groups. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/analytics/groups/ai-models
      name: analytics-groups-ai-models
      description: REST surface for analytics-groups-ai-models.
      operations:
      - method: GET
        name: get
        description: Get ai model grouped data.
        call: portkey-analytics-groups.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/analytics/groups/metadata/{metadatakey}
      name: analytics-groups-metadata-metadatakey
      description: REST surface for analytics-groups-metadata-metadataKey.
      operations:
      - method: GET
        name: get
        description: Get metadata key based grouped data.
        call: portkey-analytics-groups.get
        with:
          metadataKey: rest.metadataKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/analytics/groups/users
      name: analytics-groups-users
      description: REST surface for analytics-groups-users.
      operations:
      - method: GET
        name: get
        description: Get metadata users grouped data.
        call: portkey-analytics-groups.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portkey-analytics-groups-mcp
    port: 9090
    transport: http
    description: MCP adapter for Portkey API — Analytics > Groups. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-ai-model-grouped-data
      description: Get ai model grouped data.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-analytics-groups.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-metadata-key-based-grouped
      description: Get metadata key based grouped data.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-analytics-groups.get
      with:
        metadataKey: tools.metadataKey
      outputParameters:
      - type: object
        mapping: $.
    - name: get-metadata-users-grouped-data
      description: Get metadata users grouped data.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-analytics-groups.get
      outputParameters:
      - type: object
        mapping: $.