Humanitec · Capability

Humanitec API — ResourceAccount

Humanitec API — ResourceAccount. 6 operations. Lead operation: List Resource Accounts in the organization.. Self-contained Naftiko capability covering one Humanitec business surface.

Run with Naftiko HumanitecResourceAccount

What You Can Do

GET
Listresourceaccounts — List Resource Accounts in the organization.
/v1/orgs/{orgid}/resources/accounts
POST
Createresourceaccount — Create a new Resource Account in the organization.
/v1/orgs/{orgid}/resources/accounts
GET
Getresourceaccount — Get a Resource Account.
/v1/orgs/{orgid}/resources/accounts/{accid}
DELETE
Deleteresourceaccount — Delete an unused Resource Account.
/v1/orgs/{orgid}/resources/accounts/{accid}
PATCH
Patchresourceaccount — Update a Resource Account.
/v1/orgs/{orgid}/resources/accounts/{accid}
POST
Checkresourceaccount — Check the credentials of an existing Resource Account
/v1/orgs/{orgid}/resources/accounts/{accid}/actions/check

MCP Tools

list-resource-accounts-organization

List Resource Accounts in the organization.

read-only idempotent
create-new-resource-account-organization

Create a new Resource Account in the organization.

get-resource-account

Get a Resource Account.

read-only idempotent
delete-unused-resource-account

Delete an unused Resource Account.

idempotent
update-resource-account

Update a Resource Account.

idempotent
check-credentials-existing-resource-account

Check the credentials of an existing Resource Account

read-only

Capability Spec

humanitec-resourceaccount.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Humanitec API — ResourceAccount
  description: 'Humanitec API — ResourceAccount. 6 operations. Lead operation: List Resource Accounts in the organization..
    Self-contained Naftiko capability covering one Humanitec business surface.'
  tags:
  - Humanitec
  - ResourceAccount
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUMANITEC_API_KEY: HUMANITEC_API_KEY
capability:
  consumes:
  - type: http
    namespace: humanitec-resourceaccount
    baseUri: https://api.humanitec.io
    description: Humanitec API — ResourceAccount business capability. Self-contained, no shared references.
    resources:
    - name: orgs-orgId-resources-accounts
      path: /orgs/{orgId}/resources/accounts
      operations:
      - name: listresourceaccounts
        method: GET
        description: List Resource Accounts in the organization.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
      - name: createresourceaccount
        method: POST
        description: Create a new Resource Account in the organization.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: dry_run
          in: query
          type: boolean
          description: Validate the request but do not persist the change.
        - name: check_credential
          in: query
          type: boolean
          description: Validate that the Account credential authenticates successfully.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-orgId-resources-accounts-accId
      path: /orgs/{orgId}/resources/accounts/{accId}
      operations:
      - name: getresourceaccount
        method: GET
        description: Get a Resource Account.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: accId
          in: path
          type: string
          description: The Resource Account ID.
          required: true
      - name: deleteresourceaccount
        method: DELETE
        description: Delete an unused Resource Account.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: accId
          in: path
          type: string
          description: The Resource Account ID.
          required: true
      - name: patchresourceaccount
        method: PATCH
        description: Update a Resource Account.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: accId
          in: path
          type: string
          description: The Resource Account ID.
          required: true
        - name: dry_run
          in: query
          type: boolean
          description: Validate the request but do not persist the change.
        - name: check_credential
          in: query
          type: boolean
          description: Validate that the Account credential authenticates successfully.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-orgId-resources-accounts-accId-actions-check
      path: /orgs/{orgId}/resources/accounts/{accId}/actions/check
      operations:
      - name: checkresourceaccount
        method: POST
        description: Check the credentials of an existing Resource Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: accId
          in: path
          type: string
          description: The Resource Account ID.
          required: true
  exposes:
  - type: rest
    namespace: humanitec-resourceaccount-rest
    port: 8080
    description: REST adapter for Humanitec API — ResourceAccount. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/orgs/{orgid}/resources/accounts
      name: orgs-orgid-resources-accounts
      description: REST surface for orgs-orgId-resources-accounts.
      operations:
      - method: GET
        name: listresourceaccounts
        description: List Resource Accounts in the organization.
        call: humanitec-resourceaccount.listresourceaccounts
        with:
          orgId: rest.orgId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createresourceaccount
        description: Create a new Resource Account in the organization.
        call: humanitec-resourceaccount.createresourceaccount
        with:
          orgId: rest.orgId
          dry_run: rest.dry_run
          check_credential: rest.check_credential
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/resources/accounts/{accid}
      name: orgs-orgid-resources-accounts-accid
      description: REST surface for orgs-orgId-resources-accounts-accId.
      operations:
      - method: GET
        name: getresourceaccount
        description: Get a Resource Account.
        call: humanitec-resourceaccount.getresourceaccount
        with:
          orgId: rest.orgId
          accId: rest.accId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteresourceaccount
        description: Delete an unused Resource Account.
        call: humanitec-resourceaccount.deleteresourceaccount
        with:
          orgId: rest.orgId
          accId: rest.accId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchresourceaccount
        description: Update a Resource Account.
        call: humanitec-resourceaccount.patchresourceaccount
        with:
          orgId: rest.orgId
          accId: rest.accId
          dry_run: rest.dry_run
          check_credential: rest.check_credential
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/resources/accounts/{accid}/actions/check
      name: orgs-orgid-resources-accounts-accid-actions-check
      description: REST surface for orgs-orgId-resources-accounts-accId-actions-check.
      operations:
      - method: POST
        name: checkresourceaccount
        description: Check the credentials of an existing Resource Account
        call: humanitec-resourceaccount.checkresourceaccount
        with:
          orgId: rest.orgId
          accId: rest.accId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: humanitec-resourceaccount-mcp
    port: 9090
    transport: http
    description: MCP adapter for Humanitec API — ResourceAccount. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-resource-accounts-organization
      description: List Resource Accounts in the organization.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-resourceaccount.listresourceaccounts
      with:
        orgId: tools.orgId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-resource-account-organization
      description: Create a new Resource Account in the organization.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: humanitec-resourceaccount.createresourceaccount
      with:
        orgId: tools.orgId
        dry_run: tools.dry_run
        check_credential: tools.check_credential
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-resource-account
      description: Get a Resource Account.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-resourceaccount.getresourceaccount
      with:
        orgId: tools.orgId
        accId: tools.accId
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-unused-resource-account
      description: Delete an unused Resource Account.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: humanitec-resourceaccount.deleteresourceaccount
      with:
        orgId: tools.orgId
        accId: tools.accId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-resource-account
      description: Update a Resource Account.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: humanitec-resourceaccount.patchresourceaccount
      with:
        orgId: tools.orgId
        accId: tools.accId
        dry_run: tools.dry_run
        check_credential: tools.check_credential
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: check-credentials-existing-resource-account
      description: Check the credentials of an existing Resource Account
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: humanitec-resourceaccount.checkresourceaccount
      with:
        orgId: tools.orgId
        accId: tools.accId
      outputParameters:
      - type: object
        mapping: $.