Humanitec · Capability

Humanitec API — PublicKeys

Humanitec API — PublicKeys. 4 operations. Lead operation: Associate a new RSA public key to an organization.. Self-contained Naftiko capability covering one Humanitec business surface.

Run with Naftiko HumanitecPublicKeys

What You Can Do

POST
Createpublickey — Associate a new RSA public key to an organization.
/v1/orgs/{orgid}/keys
GET
Listpublickeys — List all public keys associated to an organization.
/v1/orgs/{orgid}/keys
DELETE
Deletepublickey — Delete a public key associated to an organization.
/v1/orgs/{orgid}/keys/{keyid}
GET
Getpublickey — Retrieve a single public key associated to an organization.
/v1/orgs/{orgid}/keys/{keyid}

MCP Tools

associate-new-rsa-public-key

Associate a new RSA public key to an organization.

list-all-public-keys-associated

List all public keys associated to an organization.

read-only idempotent
delete-public-key-associated-organization

Delete a public key associated to an organization.

idempotent
retrieve-single-public-key-associated

Retrieve a single public key associated to an organization.

read-only idempotent

Capability Spec

humanitec-publickeys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Humanitec API — PublicKeys
  description: 'Humanitec API — PublicKeys. 4 operations. Lead operation: Associate a new RSA public key to an organization..
    Self-contained Naftiko capability covering one Humanitec business surface.'
  tags:
  - Humanitec
  - PublicKeys
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUMANITEC_API_KEY: HUMANITEC_API_KEY
capability:
  consumes:
  - type: http
    namespace: humanitec-publickeys
    baseUri: https://api.humanitec.io
    description: Humanitec API — PublicKeys business capability. Self-contained, no shared references.
    resources:
    - name: orgs-orgId-keys
      path: /orgs/{orgId}/keys
      operations:
      - name: createpublickey
        method: POST
        description: Associate a new RSA public key to an organization.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The organization ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listpublickeys
        method: GET
        description: List all public keys associated to an organization.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The organization ID.
          required: true
        - name: fingerprint
          in: query
          type: string
          description: The fingerprint (the hexadecimal representation of the sha256 hash of the DER representation of the
            key) of the requested key. If a value is provided, the resul
    - name: orgs-orgId-keys-keyId
      path: /orgs/{orgId}/keys/{keyId}
      operations:
      - name: deletepublickey
        method: DELETE
        description: Delete a public key associated to an organization.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The organization ID.
          required: true
        - name: keyId
          in: path
          type: string
          description: The public key ID.
          required: true
      - name: getpublickey
        method: GET
        description: Retrieve a single public key associated to an organization.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The organization ID.
          required: true
        - name: keyId
          in: path
          type: string
          description: The public key ID.
          required: true
  exposes:
  - type: rest
    namespace: humanitec-publickeys-rest
    port: 8080
    description: REST adapter for Humanitec API — PublicKeys. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{orgid}/keys
      name: orgs-orgid-keys
      description: REST surface for orgs-orgId-keys.
      operations:
      - method: POST
        name: createpublickey
        description: Associate a new RSA public key to an organization.
        call: humanitec-publickeys.createpublickey
        with:
          orgId: rest.orgId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listpublickeys
        description: List all public keys associated to an organization.
        call: humanitec-publickeys.listpublickeys
        with:
          orgId: rest.orgId
          fingerprint: rest.fingerprint
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/keys/{keyid}
      name: orgs-orgid-keys-keyid
      description: REST surface for orgs-orgId-keys-keyId.
      operations:
      - method: DELETE
        name: deletepublickey
        description: Delete a public key associated to an organization.
        call: humanitec-publickeys.deletepublickey
        with:
          orgId: rest.orgId
          keyId: rest.keyId
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getpublickey
        description: Retrieve a single public key associated to an organization.
        call: humanitec-publickeys.getpublickey
        with:
          orgId: rest.orgId
          keyId: rest.keyId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: humanitec-publickeys-mcp
    port: 9090
    transport: http
    description: MCP adapter for Humanitec API — PublicKeys. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: associate-new-rsa-public-key
      description: Associate a new RSA public key to an organization.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: humanitec-publickeys.createpublickey
      with:
        orgId: tools.orgId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-public-keys-associated
      description: List all public keys associated to an organization.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-publickeys.listpublickeys
      with:
        orgId: tools.orgId
        fingerprint: tools.fingerprint
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-public-key-associated-organization
      description: Delete a public key associated to an organization.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: humanitec-publickeys.deletepublickey
      with:
        orgId: tools.orgId
        keyId: tools.keyId
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-public-key-associated
      description: Retrieve a single public key associated to an organization.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-publickeys.getpublickey
      with:
        orgId: tools.orgId
        keyId: tools.keyId
      outputParameters:
      - type: object
        mapping: $.