Fetch Active OCR Templates Action
Fetch Extracted Text Action
Initiate Text Extraction Action
IndustriesSettings
Industries Object Access by Community License
Access Industries Features Deployed Using Managed Packages
Previous Versions
Extract text from an uploaded document by using the Amazon Textract API.
You can automate the Intelligent Form Reader’s text detection and extraction steps using this invocable action.
This action is available in API version 58.0 and later for users with the AWSTextract1000LimitAddOn or IntelligentDocumentReaderAddOn license.
URI: /services/data/vXX.X/actions/standard/initiateTextExtraction
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
| Input | Type | Description |
|---|---|---|
configurationAPIName | string | For internal use only. |
contentDocumentId | string | Required. The unique content document ID of the uploaded document to initiate text extraction. You can specify up to 20 content Document IDs. |
documentTypeId | string | Optional. The ID of the document type that contains the queries. These queries are used to retrieve the OCR Service. Available in API version 60.0 and later. |
endPageIndex | integer | Optional. The page number up to which the text must be extracted. The default value is the last page number in the specified document. |
ocrService | picklist | Optional. The name of the OCR service that extracts text from the document. Valid values are:
|
startPageIndex | integer | Optional. The page number to start text extraction. By default, the starting page number is 1. You can extract text from up to 20 pages in a specified document. |
| Output | Type | Description |
|---|---|---|
ocrDocumentScanResultDetails | string | A comma-separated list containing an OcrDocumentScanResult ID and a page number for each extracted page of the specified document. |
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]