Perform autofill
Extracts data and images from an identity document.
URL
POST https://api.complycube.com/v1/autofill
Headers
Name
Type
Description
Authorization*
string
The API live or test key.
Content-Type*
string
The content-type must always be set to application/json.
Body
Name
Type
Description
data*
string
The BASE64 encoded data.
The response will include the following constituents:
Example request
curl -X POST https://api.complycube.com/v1/autofill \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"data": "<BASE64_DATA_CONTENT>"
}'const { ComplyCube } = require("@complycube/api");
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
const supportedDocuments = await complycube.autofill.performAutofill({
data: "BASE64_DATA_CONTENT"
});Example responses
Last updated
Was this helpful?