cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Document Information Extraction : API : Template Automatic Detection

ketan_pradhan_cx
Explorer
0 Likes
1,246

Hello Expert,

We are trying with Document Information Extraction: API from postman. There is a custom schema and custom Template we have created in UI and have linked the Documents in the Template. While testing from UI , there is option available to select Template automatically. So do we have same option available in API GET method ?

Thanks in advance,

Ketan

View Entire Topic
juliana_morais
Product and Topic Expert
Product and Topic Expert

Hi Ketan,

Here's a payload example on how to use the POST /document/jobs endpoint with template automatic detection (use "templateId":"detect" and optionally add candidateTemplateIds):

{
"clientId":"c_00",
"documentType":"invoice",
"receivedDate":"2020-02-17",
"schemaId":"10c10bd2-082b-47c8-851d-e58827828637",
"templateId":"detect",
"candidateTemplateIds":[
"0ebcd5c4-7843-4e6e-867a-1e5c997e4e4c",
"98ee6ff3-30bf-4e22-8579-0f0bde462c53",
"d6f62ef3-551a-454d-bfa4-fc334af30bf2"
],
"enrichment":{

}
}

Please also refer to the service's help portal documentation: Upload Document.

To find out how to see the IDs for schemas and also templates in the UI application to reuse them on API level, take a look at In Document Information Extraction API, how to get schema ID.

Best regards,

Juliana