Document Template Match

Automatically identifies the Document AI Automation template for a specified document.

Resource

/connect/document-ai-automation/actions/match-template

Available Version

67.0

HTTP Methods

POST

Properties

Property Name Type Description Required or Optional
sourceType String The source type of the document. Valid values are ContentDocument, AmazonS3, or ContentHub. Required
contentDocumentId String The native Salesforce ContentDocument ID. Required when sourceType is set to ContentDocument.
documentUrl String The pre-signed Amazon S3 URL pointing to the document location. Required when sourceType is set to AmazonS3.
contentHubRepositoryId String The Content Hub repository ID for the external connection. Required when sourceType is set to ContentHub.
externalId String The external object key within the Content Hub repository. Required when sourceType is set to ContentHub.
templates List<String> A list of template IDs or developer names to match against. If omitted, the top 20 newest active templates are considered. Optional

Response Body for POST

Template Match Output