WHMCS · Capability

WHMCS API — Domains

WHMCS API — Domains. 2 operations. Lead operation: Domain Register. Self-contained Naftiko capability covering one Whmcs business surface.

Run with Naftiko WhmcsDomains

What You Can Do

POST
Domainregister — Domain Register
/v1/action-domainregister
POST
Domainwhois — Domain WHOIS
/v1/action-domainwhois

MCP Tools

domain-register

Domain Register

domain-whois

Domain WHOIS

Capability Spec

whmcs-domains.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WHMCS API — Domains
  description: 'WHMCS API — Domains. 2 operations. Lead operation: Domain Register. Self-contained Naftiko capability covering
    one Whmcs business surface.'
  tags:
  - Whmcs
  - Domains
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WHMCS_API_KEY: WHMCS_API_KEY
capability:
  consumes:
  - type: http
    namespace: whmcs-domains
    baseUri: https://{your-domain}/includes/api.php
    description: WHMCS API — Domains business capability. Self-contained, no shared references.
    resources:
    - name: ?action=DomainRegister
      path: /?action=DomainRegister
      operations:
      - name: domainregister
        method: POST
        description: Domain Register
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?action=DomainWhois
      path: /?action=DomainWhois
      operations:
      - name: domainwhois
        method: POST
        description: Domain WHOIS
        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-domains-rest
    port: 8080
    description: REST adapter for WHMCS API — Domains. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/action-domainregister
      name: action-domainregister
      description: REST surface for ?action=DomainRegister.
      operations:
      - method: POST
        name: domainregister
        description: Domain Register
        call: whmcs-domains.domainregister
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-domainwhois
      name: action-domainwhois
      description: REST surface for ?action=DomainWhois.
      operations:
      - method: POST
        name: domainwhois
        description: Domain WHOIS
        call: whmcs-domains.domainwhois
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: whmcs-domains-mcp
    port: 9090
    transport: http
    description: MCP adapter for WHMCS API — Domains. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: domain-register
      description: Domain Register
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: whmcs-domains.domainregister
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: domain-whois
      description: Domain WHOIS
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: whmcs-domains.domainwhois
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.