WHMCS · Capability

WHMCS API — Authentication

WHMCS API — Authentication. 2 operations. Lead operation: Create SSO Token. Self-contained Naftiko capability covering one Whmcs business surface.

Run with Naftiko WhmcsAuthentication

What You Can Do

POST
Createssotoken — Create SSO Token
/v1/action-createssotoken
POST
Validatelogin — Validate Login
/v1/action-validatelogin

MCP Tools

create-sso-token

Create SSO Token

validate-login

Validate Login

read-only

Capability Spec

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