RubyGems.org Registry API — API Keys

API Keys surface — API Keys. 1 operation. Lead operation: Get An API Key. Self-contained Naftiko capability covering one RubyGems business surface.

RubyGems.org Registry API — API Keys is a Naftiko capability published by Ruby Programming Language and Popular API Gems, one of 9 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the GET method rooted at /v1/api-key.

The capability includes 1 read-only operation. Lead operation: Get an API key. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include RubyGems, Registry, and API Keys.

Run with Naftiko RubyGemsRegistryAPI Keys

What You Can Do

GET
Getapikey — Get an API key.
/v1/api-key

MCP Tools

get-api-key

Get an API key.

read-only idempotent

Capability Spec

rubygems-registry-api-keys.yaml Raw ↑
naftiko: "1.0.0-alpha2"

info:
  label: "RubyGems.org Registry API — API Keys"
  description: >-
    API Keys surface — API Keys. 1 operation. Lead operation: Get An API Key.
    Self-contained Naftiko capability covering one RubyGems business surface.
  tags:
    - RubyGems
    - Registry
    - API Keys
  created: "2026-05-23"
  modified: "2026-05-23"

binds:
  - namespace: env
    keys:
      RUBYGEMS_USERNAME: RUBYGEMS_USERNAME
      RUBYGEMS_PASSWORD: RUBYGEMS_PASSWORD

capability:

  consumes:
    - type: http
      namespace: "rubygems-registry-api-keys"
      baseUri: "https://rubygems.org"
      description: "RubyGems.org Registry — API Keys surface. Self-contained, no shared references."
      authentication:
        type: basic
        username: "{{env.RUBYGEMS_USERNAME}}"
        password: "{{env.RUBYGEMS_PASSWORD}}"
      resources:
        - name: "api-key"
          path: "/api/v1/api_key.json"
          operations:
            - name: "getApiKey"
              method: GET
              description: "Get an API key."
              inputParameters: []
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: "$."

  exposes:
    - type: rest
      namespace: "rubygems-registry-api-keys-rest"
      port: 8080
      description: "REST adapter for RubyGems.org Registry — API Keys."
      resources:
        - path: "/v1/api-key"
          name: "api-key"
          description: "REST surface to fetch the authenticated user's API key."
          operations:
            - method: GET
              name: "getApiKey"
              description: "Get an API key."
              call: "rubygems-registry-api-keys.getApiKey"
              with: {}
              outputParameters:
                - type: object
                  mapping: "$."

    - type: mcp
      namespace: "rubygems-registry-api-keys-mcp"
      port: 9090
      transport: http
      description: "MCP adapter for RubyGems.org Registry — API Keys."
      tools:
        - name: "get-api-key"
          description: "Get an API key."
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: "rubygems-registry-api-keys.getApiKey"
          with: {}
          outputParameters:
            - type: object
              mapping: "$."