Market
Market Integration

Validate login token

This function validates a login token to a cPanel Market provider and returns an access token.

get/Market/validate_login_token

Request

  • Base URL
    https://cpanel-server.tld:2083/execute
  • Auth
    HTTP basic

Query parameters

login_tokenstring required
Example:8675309

The login token for the cPanel Market provider.

providerstring required
Example:cPStore

The name of the cPanel Market provider.

url_after_loginstring url required
Example:http://hostname.example.com/redirectionlocation.cgi?state

The url_after_login value that you sent to UAPI's Market::get_login_url function.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "validate_login_token",
  "module": "Market",
  "result": {
    "data": {
      "access_token": "8675309"
    },
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.