The LEADTOOLS Cloud Services API requires an authentication header in order to access its API. To use the service, you must have a valid Application ID and password. Application passwords will be sent via email when an application is created. To sign up and create an application, please click here.
The LEADTOOLS Cloud Services API utilizes Basic Access Authentication for all API calls made to the service. Every request made to the service will require an appropriately formatted Authorization Header. The Authorization header should follow the following standard "Authorization: Basic <AppID:Password>". The Basic HTTP authentication scheme is defined in RFC 7617. More information can be found here: https://developer.mozilla.org/en-US/docs/web/http/authentication.
Adding the appropriate authorization header may differ between programming languages, and language frameworks being used. Check out our Tutorial Samples for different implementations.
Parameter | Description | Accepted Values |
---|---|---|
AppId |
The ID corresponding to your LEAD Technologies application account. | Accepts a variable length string. |
Password |
The password corresponding to your LEAD Technologies application account. | Accepts a variable length string. |
The following parameters are required unless indicated otherwise, and are used by all Conversion and Recognition API calls:
Parameter | Description | Accepted Values |
---|---|---|
fileUrl (Optional) |
The URL to the file to be processed. For more information, refer to the Cloud Services Overview section. | A string or URI containing a valid URL to the file to be uploaded. |
firstPage |
The first page in the file to process. | An integer value between 1 and the total number of pages in the file. |
lastPage |
The last page in the file to process. | Passing a value of -1 or 0 will indicate to the service that all pages between the First Page parameter, and the last page in the file will be processed. Otherwise, an integer value between 1 and the total number of pages in the file must be passed, and the value must be greater than or equal to the value specified in the FirstPage parameter. |
guid (Optional) |
Unique identifier corresponding to an uploaded file. This value will be returned when a file is uploaded using the UploadFile service call. | A valid GUID |
filePassword (Optional) |
The password to unlock a password protected file. | A string containing the password for a secure PDF. |
callbackUrl (Optional) |
Passing a callbackURL to the service will allow us to notify you when your file has finished processing. If the callbackUrl is invalid or malicious, it will be ignored. The LEADTOOLS Cloud Services will send the request’s ID in the body of the message sent to the callbackUrl. | A string or URI containing a valid URL to message. |
{
"FileStatus": ,
"RequestData": [
{
"RecognitionType": "AMMVA",
"data": [
{
"AddressCity": "",
"AddressPostalCode": "",
"AddressRegion": "",
"AddressStateAbbreviation": "",
"AddressStreet1": "",
"AddressStreet2": "",
"DateOfBirth": "",
"ExpirationDate": "",
"Expired": ,
"EyeColor": "",
"FirstName": "",
"HairColor": "",
"IssueDate": "",
"IssuerIdentificationNumber": "",
"Jurisdiction": "",
"JurisdictionVersion": "",
"LastName": "",
"NumberOfEntries": ,
"Over18": ,
"Over19": ,
"Over21": ,
"Sex": "",
"Version": ""
}
],
"ServiceType": "Recognition"
}
]
}