Create a user’s API authentication key.


Create a user’s API authentication key, allowing that user access to query the SoftLayer API. addApiAuthenticationKey() returns the user’s new API key. Each portal user is allowed only one API key.


Name Type Description

Required Headers

  • authenticate
  • SoftLayer_User_Customer_OpenIdConnectInitParameters

Return Values

  • string

Associated Methods

Error Handling

  • SoftLayer_Exception_Public

Throws the exception “Generating an API key for a user in PENDING status is disallowed.” if the given user is in PENDING status.

  • SoftLayer_Exception_Public

Throws the exception “Each user can only have a single API key.” if the given user already has an API key defined.