WHMCS · Capability

WHMCS API — System

WHMCS API — System. 2 operations. Lead operation: Get Stats. Self-contained Naftiko capability covering one Whmcs business surface.

Run with Naftiko WhmcsSystem

What You Can Do

POST
Getstats — Get Stats
/v1/action-getstats
POST
Whmcsdetails — Get WHMCS Details
/v1/action-whmcsdetails

MCP Tools

get-stats

Get Stats

read-only
get-whmcs-details

Get WHMCS Details

read-only

Capability Spec

whmcs-system.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WHMCS API — System
  description: 'WHMCS API — System. 2 operations. Lead operation: Get Stats. Self-contained Naftiko capability covering one
    Whmcs business surface.'
  tags:
  - Whmcs
  - System
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WHMCS_API_KEY: WHMCS_API_KEY
capability:
  consumes:
  - type: http
    namespace: whmcs-system
    baseUri: https://{your-domain}/includes/api.php
    description: WHMCS API — System business capability. Self-contained, no shared references.
    resources:
    - name: ?action=GetStats
      path: /?action=GetStats
      operations:
      - name: getstats
        method: POST
        description: Get Stats
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?action=WhmcsDetails
      path: /?action=WhmcsDetails
      operations:
      - name: whmcsdetails
        method: POST
        description: Get WHMCS Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: identifier
      value: '{{env.WHMCS_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: whmcs-system-rest
    port: 8080
    description: REST adapter for WHMCS API — System. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/action-getstats
      name: action-getstats
      description: REST surface for ?action=GetStats.
      operations:
      - method: POST
        name: getstats
        description: Get Stats
        call: whmcs-system.getstats
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-whmcsdetails
      name: action-whmcsdetails
      description: REST surface for ?action=WhmcsDetails.
      operations:
      - method: POST
        name: whmcsdetails
        description: Get WHMCS Details
        call: whmcs-system.whmcsdetails
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: whmcs-system-mcp
    port: 9090
    transport: http
    description: MCP adapter for WHMCS API — System. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-stats
      description: Get Stats
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: whmcs-system.getstats
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-whmcs-details
      description: Get WHMCS Details
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: whmcs-system.whmcsdetails
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.