docGenAPIUserKey API is used to retrieve the session key. The session key is generated for the user credentials stored in the Merge Server API Credentials. Billing administrators can use the session key to call the Merge Service API. 

APISignature
DocGenApiUserKeystatic String DocGenApiUserKey()

This API returns the session key for Doc Gen. This API returns the session key only if the API credentials are configured. You can configure the API credentials from the Billing Console Page by clicking Merge Service API Credentials link under Setup. 

Response

Field

Type

Description

sessionKey

String

Returns the session key for Doc Gen

Code Sample

String sessionKey = docGenAPIUserKey();
CODE