Skip to main content
Conga Support

How to Call Conga Composer from Apex

 Due to the complicated nature of supporting programmers and programming languages, the integration of Conga with Visualforce, Apex, Javascript (or other programming languages), and custom code is not supported.

Calling Conga Composer from Apex: 

  1. Create a Remote Site setting record for “”
  2. In your code, make an HTTP GET call with a long timeout (~60 seconds)
  3. Your code should call
  4. Include the typical querystring parameters in the request
  5. Include an APIMode parameter in the Conga Composer endpoint URL:

APIMode Value

Action in Conga Composer


Attaches the document to the master object




Delivers the document via Conga Sign




Attaches the document to the Documents Tab (requires &DocFolderId)


Attaches the document to Salesforce Content (requires &ContentWorkspaceId)


Emails the document according to the Email parameters


Delivers the document via Adobe eSign

17 DocuSign

When successful, the API Mode parameter results in a Salesforce Record ID, or an error message.

 Calling Conga Composer in a programmatic loop, whether from Apex or any other programming language, constitutes a violation of the Master Services Agreement and is subject to immediate suspension of your account.  This includes the use of script, code, program or alike to mimic the functionality of Conga products or services.