Skip to content

k8s.php

Kubernetes management module for cluster operations and token generation

API Methods

Method Action Description
get_new_token get new token Generates a new authentication token based on the user's email and billing location.

k8s/get_new_token

Generates a new authentication token based on the user's email and billing location.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: get_new_token
email ✅ string User email address used for token generation.
whmcs_location ✅ string The billing location of the client.
token ✅ string Authorization token.

Request example

curl -s "https://invapi.hostkey.com/k8s.php" -X POST \
--data "action=get_new_token" \
--data "email=VALUE" \
--data "whmcs_location=VALUE" \
--data "token=HOSTKEY_TOKEN"
Success response example
{
"result": "OK",
"token": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6a7b8c9d0e1f"
}
Error examples
{
"code": -1,
"message": "Error generating token"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×