Skip to main content

getApiKeyDetails

This method returns details about the API key used.

Parameters

No input parameters are required.

Return value

This method returns an Object containing the details of the API key:

  • enabledApis - an Array containing the list of enabled APIs

  • createdAt - a String representing the UTC date and time when the API key was generated

Example

Request:

  {
       "params": {},
       "jsonrpc": "2.0",
       "method": "getApiKeyDetails",
       "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f"
  }  

Response:

  {
      "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f",
      "jsonrpc":"2.0",
      "result": {
           "enabledApis": [
                "packages",
                "network",
                "policies",
                "reports"
            ],
           "createdAt": "2019-04-11T12:00:54"
     }
  }