home

General

Adobe Sign ServicesAdvantage Platform AdministrationApprovals for Advantage PlatformApprovals for SalesforceBilling for Advantage PlatformBilling for SalesforceCLM for Advantage PlatformCLM for SalesforceContracts for SalesforceCollaborateComposer for Advantage PlatformComposer for SalesforceContractsConga for Google DocsConga Upgrade ProgramContract Intelligence (Standalone)Conga CopilotCPQ for Advantage PlatformCPQ for SalesforceDeal MaximizerDigital Commerce for Advantage PlatformDigital Commerce for SalesforceDiscovery AI for Advantage PlatformDiscovery AI for SalesforceDocusign ServiceseSignature Integration with Advantage PlatformGridInvoice GenerationMix FormsOrchestrateOrder Management for Advantage PlatformOrder Management for SalesforcePartner Commerce for Advantage PlatformPartner Commerce for SalesforceQuote GenerationSign for Advantage PlatformSign for SalesforceSmart SearchTest AuthorTurboEnginesX-Author for Contracts 1.0 (Classic)X-Author for ContractsX-Author for Contracts Advanced for Advantage PlatformX-Author for Contracts Advanced for SalesforceX-Author for ExcelX-Author for Migration Manager for Advantage PlatformX-Author for Migration ManagerRelease NotesGeneral
search
search
Adobe Sign ServicesAdvantage Platform AdministrationApprovals for Advantage PlatformApprovals for SalesforceBilling for Advantage PlatformBilling for SalesforceCLM for Advantage PlatformCLM for SalesforceContracts for SalesforceCollaborateComposer for Advantage PlatformComposer for SalesforceContractsConga for Google DocsConga Upgrade ProgramContract Intelligence (Standalone)Conga CopilotCPQ for Advantage PlatformCPQ for SalesforceDeal MaximizerDigital Commerce for Advantage PlatformDigital Commerce for SalesforceDiscovery AI for Advantage PlatformDiscovery AI for SalesforceDocusign ServiceseSignature Integration with Advantage PlatformGridInvoice GenerationMix FormsOrchestrateOrder Management for Advantage PlatformOrder Management for SalesforcePartner Commerce for Advantage PlatformPartner Commerce for SalesforceQuote GenerationSign for Advantage PlatformSign for SalesforceSmart SearchTest AuthorTurboEnginesX-Author for Contracts 1.0 (Classic)X-Author for ContractsX-Author for Contracts Advanced for Advantage PlatformX-Author for Contracts Advanced for SalesforceX-Author for ExcelX-Author for Migration Manager for Advantage PlatformX-Author for Migration ManagerRelease NotesGeneral

Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

search

General

chevron_left

General Contents

close
  • Features by Release

  • Conga Upgrade Program

  • chevron_right

    System Requirements and Supported Platforms Matrix

  • Managed Packages Dependency Matrix

  • Conga Applications in Salesforce Lightning

  • Salesforce Multi-Factor Authentication Support for Conga Commerce

  • chevron_right

    Conga Product Glossary

  • chevron_right

    Conga Upgrade Assistant

  • chevron_right

    Product Retirement Schedule

  • expand_more

    Developer Center

    • chevron_right

      Approvals for Salesforce REST APIs

    • chevron_right

      Billing for Salesforce REST APIs

    • chevron_right

      CLM for Salesforce REST APIs

    • chevron_right

      CPQ for Salesforce REST APIs

    • chevron_right

      Digital Commerce for Salesforce REST APIs

    • expand_more

      Discovery AI for Salesforce REST APIs

      • chevron_right

        Admin Config

      • chevron_right

        Conga APIs

      • expand_more

        Documents

        • Upload a document

          post
        • Get import status

          get
        • Update document status

          post
        • Update a document's status

          post
        • Analyze a document for risk.

          post
        • List a tenant's documents

          get
        • Return metadata for a specific document

          get
        • Return a tenant's document statistics

          get
        • Get extracted provisions

          get
        • Store a search pattern

          post
        • Delete a document record

          delete
      • chevron_right

        Tenant Administration

      • chevron_right

        Config Discovery and Management

      • chevron_right

        Document Analysis

      • chevron_right

        Insight Analysis and Management

    • chevron_right

      Orchestrate REST APIs

    • chevron_right

      Partner Commerce for Salesforce REST APIs

    • chevron_right

      TurboEngines REST APIs

  1. General
  2. arrow_right
  3. Developer Center
  4. arrow_right
  5. Discovery AI for Salesforce REST APIs

list_altShow Contents

chevron_left

General

Documents

chevron_right
download

Analyze a document for risk.

post
https://IDD_URL/idd/api/{version}
/{tenantId}/document/analyze

Evaluates the conditions specified in Insights. Results are individually annotated and returned. A description of the condition evaluation result is returned.

After evaluating the conditions, creates a mapping for the object in the IDD Insights extraction table.

Conditions are evaluated as follows:

  • If
    fieldType
    =
    metaData
    , the value of the field in the object record is used.
  • If
    fieldType
    =
    extractedField
    , the value extracted from the document is used.
  • If
    fieldType
    =
    extractedClause
    , the clause extracted from the document is used.
  • If
    field
    =
    keywords
    , the value is used to search the document specified by fieldId.
  • fieldId is used to resolve the values of the extractedField and extractedClause field types. For
    field=keywords
    , the fieldId specifies the document's ID (for example, the ContentVersion ID for an SFDC object). The desc field is used to annotate the result
  • If
    operator
    =
    NLExpression
    , the expression specified in the value field is evaluated. For example,
    value="30 days from now"
    is resolved to a date 30 days into the future

Request

Security: Bearer Auth
Security: API Key

Path Parameters

tenantId
string
required

Tenant name, such as "apttussfdc" or "max"

Examples:
apttussfdc

Query Parameters

documentid
string
required

Document ID

Example:
af02bbb6-c7e6-4766-a044-159ef2ca6fa8
instanceurl
string
required

The URL of the org instance

module
string
required

The source module/application, such as "clm", "cc", or "cfs"

Example:
clm
recordtype
string
required

Record type

Example:
NDA
userid
string
required

User ID/email of the logged-in user

Example:
a56392269d970c
username
string
required

Full name of the logged-in user

Example:
Gilad Turbahn

Body

Request to create an insight extracted with insight analysis

object
string<string>

Object (agreement, quote, etc.)

Example:
Apttus__APTS_Agreement__c
module
string<string>

Module (for example, clm or cpq)

Example:
clm
title
string<string>

Title of document or agreement

Example:
intellimport
format
string<string>

Document format (such as pdf or docx)

Example:
PDF

Responses

200
400
500

OK

Body

summary
object
totalprovisons
string<string>

Total provisions in the insights

Example:
10
totalRiskScore
string<string>

Total risk score for insights of a record type (such as NDA or MSA)

Example:
28
categoryTotals
object
insights
array[object]
insightName
string<string>

Insight display name

Example:
Liquidated Damage Cap > $20 mil
insightRatingIcon
string<string>

Icon for risk

Example:
https://maxstaticcontentsengg.blob.core.windows.net/max-static-content/database/globalContent/Icons/AgreementDetailsIcon.png
insightRating
string<string>

Insights rating

Example:
15
insightRatingLevel
string<string>

Rating level

Example:
Very High
summary
string<string>

Summary of the criteria plan

Example:
Liquidated Damages Cap > 20 Mil AND contains force of god OR start date < 2021-09-02
type
string<string>

Type of insight (risk, warning, etc.)

Example:
Risk
guidance
string<string>

Insight guidance

Example:
Needs VP of Finance approval
result
string<string>

Results of criteria resolved

Example:
true
relatedProvisions
array[object]
alternateClause
array[object]
criteriaPlan
object
Auth
:
Server Variables
:
Parameters
:
:
:
:
:
:
:
Body
1
{
2
"object": "Apttus__APTS_Agreement__c",
3
"module": "clm",
4
"title": "intellimport",
5
"format": "PDF"
6
}
curl --request POST \
--url https://idd_url/idd/api/v2/apttussfdc/document/analyze \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 123' \
--header 'Content-Type: application/json' \
--data '{
"object": "Apttus__APTS_Agreement__c",
"module": "clm",
"title": "intellimport",
"format": "PDF"
}'
Response Example
1
{
2
"tenant": "clmqatesting",
3
"instanceUrl": "https://mandav2131.my.salesforce.com",
4
"recordType": "MSA",
5
"documentId": "ddfd6158-a38c-4e1d-a802-c38bcca9244f",
6
"docId": "ddfd6158-a38c-4e1d-a802-c38bcca9244f",
7
"objectId": null,
8
"isOrgRegistered": true,
9
"recordId": null,
10
"insights": [
11
{
12
"recordId": "9b13ab0e18c94",
13
"name": "TAV",
14
"insightRating": 8,
15
"insightRatingLevel": "Moderate Risk",
16
"insightRatingIcon": "https://maxstaticcontentsengg.blob.core.windows.net/max-static-content/IDD/database/iddContent/icons/triangle.png",
17
"guidance": "",
18
"summary": "( Extracted Data.Total Contract Value Equals 15000 OR Agreement.Account Equals Conga)",
19
"type": "Risk",
20
"result": false,
21
"provisions": [
22
{
23
"fieldName": "",
24
"fieldNumber": "",
25
"provider": "",
26
"fieldType": ""
27
}
28
],
29
"alternateClause": null,
30
"criteriaPlan": [
31
{
32
"field": "Total Contract Value",
33
"fieldType": "extractedField",
34
"fieldId": "cai:4e4a2189-1c70-402b-bc92-d0df018508d5",
35
"fieldLabel": "Total Contract Value",
36
"operator": "Equals",
37
"value": "undefined",
38
"nlResolution": null,
39
"templateDataMap": null,
40
"desc": "Total Contract Value Equals '15000'",
41
"result": false,
42
"display": "Total Contract Value Equals 15000",
43
"resolvedDesc": "Total Contract Value = undefined",
44
"conditionDesc": "Total Contract Value Equals 15000"
45
},
46
{
47
"field": "Apttus__Account__r.Name",
48
"fieldType": "metaData",
49
"fieldLabel": "Account",
50
"operator": "Equals",
51
"value": "undefined",
52
"nlResolution": null,
53
"templateDataMap": null,
54
"desc": "Account Equals 'Conga'",
55
"result": false,
56
"display": "Account Equals Conga",
57
"resolvedDesc": "Account = undefined",
58
"conditionDesc": "Account Equals Conga"
59
}
60
]
61
}
62
]
63
}
chevron_leftchevron_right
chevron_right

Footer Section

Explore


Conga.com
Legal
Feedback
Contact Support

Copyright © 2025 Conga Corporation • All Rights Reserved

Cookie Notice

We use cookies to improve your experience on our site. To find out more, read our cookie policy.