Newer Version Available
Initiate Text Extraction Action
You can automate the Intelligent Document Reader’s text detection and extraction steps using this invocable action.
Special Access Rules
This action is available in API version 58.0 and later for users with the AWSTextract1000LimitAddOn or IntelligentDocumentReaderAddOn license.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/standard/initiateTextExtraction
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| configurationAPIName |
|
| contentDocumentId |
|
| documentTypeId |
|
| endPageIndex |
|
| ocrService |
Required if the documentTypeId property isn’t specified. The ocrService is retrieved based on the documentTypeId property. |
| startPageIndex |
|
Outputs
| Output | Details |
|---|---|
| ocrDocumentScanResultDetails |
|
Example
Sample Request
1{
2 "inputs": [
3 {
4 "contentDocumentId": "069T10000004FnoIAE",
5 "startPageIndex": 1,
6 "endPageIndex": 20,
7 "ocrService": "AMAZON_TEXTRACT",
8 "documentTypeId": "0deT10000004CCbIAM"
9 }
10 ]
11}Sample Response
1[
2 {
3 "actionName":"initiateTextExtraction",
4 "errors":null,
5 "isSuccess":true,
6 "outputValues":{
7 "ocrDocumentScanResultDetails":{
8 "ocrDocumentScanResults":[
9 {
10 "pageNumber":1,
11 "ocrDocumentScanResultId":"0ixT100000000bv"
12 }
13 ]
14 }
15 },
16 "version":1
17 }
18]