WunderGraph · Capability

WunderGraph Cosmo Platform API — API Keys

WunderGraph Cosmo Platform API — API Keys. 3 operations. Lead operation: WunderGraph List API keys. Self-contained Naftiko capability covering one Wundergraph business surface.

Run with Naftiko WundergraphAPI Keys

What You Can Do

GET
Listapikeys — WunderGraph List API keys
/v1/v1/api-keys
POST
Createapikey — WunderGraph Create an API key
/v1/v1/api-keys
DELETE
Deleteapikey — WunderGraph Delete an API key
/v1/v1/api-keys/{name}

MCP Tools

wundergraph-list-api-keys

WunderGraph List API keys

read-only idempotent
wundergraph-create-api-key

WunderGraph Create an API key

wundergraph-delete-api-key

WunderGraph Delete an API key

idempotent

Capability Spec

cosmo-platform-api-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WunderGraph Cosmo Platform API — API Keys
  description: 'WunderGraph Cosmo Platform API — API Keys. 3 operations. Lead operation: WunderGraph List API keys. Self-contained
    Naftiko capability covering one Wundergraph business surface.'
  tags:
  - Wundergraph
  - API Keys
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WUNDERGRAPH_API_KEY: WUNDERGRAPH_API_KEY
capability:
  consumes:
  - type: http
    namespace: cosmo-platform-api-keys
    baseUri: https://cosmo-cp.wundergraph.com
    description: WunderGraph Cosmo Platform API — API Keys business capability. Self-contained, no shared references.
    resources:
    - name: v1-api-keys
      path: /v1/api-keys
      operations:
      - name: listapikeys
        method: GET
        description: WunderGraph List API keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createapikey
        method: POST
        description: WunderGraph Create an API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-api-keys-name
      path: /v1/api-keys/{name}
      operations:
      - name: deleteapikey
        method: DELETE
        description: WunderGraph Delete an API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: The name of the API key to delete.
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.WUNDERGRAPH_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cosmo-platform-api-keys-rest
    port: 8080
    description: REST adapter for WunderGraph Cosmo Platform API — API Keys. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/api-keys
      name: v1-api-keys
      description: REST surface for v1-api-keys.
      operations:
      - method: GET
        name: listapikeys
        description: WunderGraph List API keys
        call: cosmo-platform-api-keys.listapikeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapikey
        description: WunderGraph Create an API key
        call: cosmo-platform-api-keys.createapikey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/api-keys/{name}
      name: v1-api-keys-name
      description: REST surface for v1-api-keys-name.
      operations:
      - method: DELETE
        name: deleteapikey
        description: WunderGraph Delete an API key
        call: cosmo-platform-api-keys.deleteapikey
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cosmo-platform-api-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for WunderGraph Cosmo Platform API — API Keys. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: wundergraph-list-api-keys
      description: WunderGraph List API keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cosmo-platform-api-keys.listapikeys
      outputParameters:
      - type: object
        mapping: $.
    - name: wundergraph-create-api-key
      description: WunderGraph Create an API key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cosmo-platform-api-keys.createapikey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: wundergraph-delete-api-key
      description: WunderGraph Delete an API key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cosmo-platform-api-keys.deleteapikey
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.