API Reference
Search…
API Reference
v1.7.3
Introduction
Integration
Sandbox and Live
Authentication
Rate Limits
Service Quota
Errors
Pagination
Filtering
Versioning
Core resources
Clients
Addresses
Documents
Create a document
Get a document
Update a document
Upload image attachment
Download image attachment
Delete image attachment
Delete a document
List documents
Filtering documents
Live Photos
Live Videos
Checks
Risk Profile
Check types
AML Screening Check
Document Check
Identity Check
Enhanced Identity Check
Proof of Address Check
Multi-Bureau Check
Face Authentication Check
Lookups
Company Search
Address Search
Tools
Custom Lists
Static Data
Screening Lists
Supported Documents
Other Resources
Flow (Hosted Solution)
Webhooks
SDK Tokens
Autofill
Reports
Team Members
Audit Logs
Account Info
Powered By
GitBook
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
);
Previous
Documents
Next
Get a document
Last modified
8mo ago
Copy link
Outline
post
Create a document
Example request