API Reference
Search…
Create a document
post
https://api.complycube.com
/v1/documents
Create a document

Example request

cURL
Node.js
Python
PHP
.NET
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'
}
cc_api = complycube.addresses.create('CLIENT_ID', **new_document)
use ComplyCube\ComplyCubeClient;
$ccapi = new ComplyCubeClient('<YOUR_API_KEY>');
$doc = $ccapi->documents()->create('CLIENT_ID', ['type' => 'passport']);
using ComplyCube.Net;
using ComplyCube.Net.Resources.Documents;
var docApi = new DocumentApi(new ComplyCubeClient("<YOUR_API_KEY>"));
var docRequest = new DocumentRequest {
clientId = "CLIENT_ID",
type = "passport",
classification = "proof_of_identity",
issuingCountry = "GB"
};
var document = await docApi.CreateAsync(docRequest);