Create a document
URL
Headers
Name
Type
Description
Body
Name
Type
Description
Example request
curl -X POST https://api.complycube.com/v1/documents \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"clientId":"5eb1276d96be4a0008713af5",
"type": "driving_license",
"classification": "proof_of_identity",
"issuingCountry": "GB"
}'const { ComplyCube } = require("@complycube/api");
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
const document = await complycube.document.create("CLIENT_ID", {
type: "driving_license",
classification: "proof_of_identity",
issuingCountry: "GB"
});from complycube import ComplyCubeClient
cc_api = ComplyCubeClient(api_key='<YOUR_API_KEY>')
new_document = {
'type': 'driving_license',
'classification': 'proof_of_identity',
'issuingCountry': 'GB'
}
doc = cc_api.documents.create('CLIENT_ID', **new_document)
