SmartExtract JSON API
The SmartExtract JSON API can be used to extract data from financial documents in JSON format.
Extract single data set from a document
POST
https://api.clik.ai/smart-extract-api/api/account/v1/extraction/document
This API endpoint allows you to extract a single data set from a document. The endpoint uses basic authentication with api key and secret key as credentials. You can create an API key from the SmartExtract dashboard.
The authorization token used must be for an API Key with Data Extraction
role applied to it.
Headers
Authorization*
String
Basic <base64 encoded credentials>
Request Body
assetType*
String
documentType*
String
periodFrom
String
Date in YYYY-MM-DD fromat representing the start period for an operating statement. Required if documentType
is a type of operating statement.
sheet
Number
Sheet number to extract data from ()valid for XLSX files). Sheet index starts from 1. Defaults to first sheet.
to
Number
Page number to which data should be extracted (valid for PADF files). Defaults to last page.
from
Number
Page number to start data extraction from (valid for PDF files). Page index starts from 1. Defaults to first page.
file*
String
fileName*
String
Name of the file
periodTo
String
Date in YYYY-MM-DD fromat representing the end period for an operating statement. Required if documentType
is a type of operating statement.
Extract multiple data sets from a document
POST
https://api.clik.ai/smart-extract-api/api/account/v1/extraction/document/multiple
This API endpoint allows you to extract a multiple data sets from a single document. The endpoint uses basic authentication with api key and secret key as credentials. You can create an API key from the SmartExtract dashboard.
The authorization token used must be for an API Key with Data Extraction
role applied to it.
Request Body
file*
String
taggingData*
TaggingData[]
An array of tagging data objects representing each data set to extract
fileName*
String
Name of the file
taggingData[0]*
Object
Tagging data object representing a data set to extract
taggingData[0].periodTo
String
Date in YYYY-MM-DD fromat representing the end period for an operating statement. Required if documentType
is a type of operating statement.
taggingData[0].periodFrom
String
Date in YYYY-MM-DD fromat representing the start period for an operating statement. Required if documentType
is a type of operating statement.
taggingData[0].sheet
Number
Sheet number to extract data from ()valid for XLSX files). Sheet index starts from 1. Defaults to first sheet.
taggingData[0].to
Number
Page number to which data should be extracted (valid for PADF files). Defaults to last page.
taggingData[0].from
Number
Page number to start data extraction from (valid for PDF files). Page index starts from 1. Defaults to first page.
taggingData[0].documentType*
String
taggingData[0].assetType*
String
Last updated