curl --request POST \
--url https://api.nuvion.tech/documents \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Business registration certificate",
"urls": {
"main": "https://storage.example.com/documents/reg-cert-123.pdf"
},
"meta": {
"file_size": 2048576,
"file_type": "application/pdf",
"document_category": "business_registration",
"verification_notes": "Original certificate issued by state authorities",
"expiry_date": "2030-12-31"
},
"link_to_identity": {
"person_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F5",
"identity_type": "international_passport",
"auto_update_verification": true
}
}
'{
"message": "Document submitted successfully",
"status": 201,
"data": {
"document": {
"id": "01HJ5G6R7MXW5ZK2QD6YA8N9F3",
"entity_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F4",
"description": "Business registration certificate",
"urls": {
"main": "https://storage.example.com/documents/reg-cert-123.pdf"
},
"meta": {
"file_size": 2048576,
"file_type": "application/pdf",
"document_category": "business_registration",
"verification_notes": "Original certificate issued by state authorities",
"expiry_date": "2030-12-31",
"verification_status": "pending",
"uploaded_at": 1694520000000
},
"created": 1694520000000,
"updated": 1694520000000
},
"entity_verification_impact": {
"entity_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F4",
"auto_verification_triggered": true,
"verification_status_changed": false,
"current_verification_status": "pending",
"previous_verification_status": "pending",
"pending_verification_requirements": [
"proof_of_address",
"director_id"
]
},
"identity_link_result": {
"person_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F5",
"verification_updated": false,
"previous_document_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F6",
"identity_type": "international_passport",
"verification_impact": "pending_review"
}
}
}Creates a new document for the authenticated user or entity.
curl --request POST \
--url https://api.nuvion.tech/documents \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Business registration certificate",
"urls": {
"main": "https://storage.example.com/documents/reg-cert-123.pdf"
},
"meta": {
"file_size": 2048576,
"file_type": "application/pdf",
"document_category": "business_registration",
"verification_notes": "Original certificate issued by state authorities",
"expiry_date": "2030-12-31"
},
"link_to_identity": {
"person_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F5",
"identity_type": "international_passport",
"auto_update_verification": true
}
}
'{
"message": "Document submitted successfully",
"status": 201,
"data": {
"document": {
"id": "01HJ5G6R7MXW5ZK2QD6YA8N9F3",
"entity_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F4",
"description": "Business registration certificate",
"urls": {
"main": "https://storage.example.com/documents/reg-cert-123.pdf"
},
"meta": {
"file_size": 2048576,
"file_type": "application/pdf",
"document_category": "business_registration",
"verification_notes": "Original certificate issued by state authorities",
"expiry_date": "2030-12-31",
"verification_status": "pending",
"uploaded_at": 1694520000000
},
"created": 1694520000000,
"updated": 1694520000000
},
"entity_verification_impact": {
"entity_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F4",
"auto_verification_triggered": true,
"verification_status_changed": false,
"current_verification_status": "pending",
"previous_verification_status": "pending",
"pending_verification_requirements": [
"proof_of_address",
"director_id"
]
},
"identity_link_result": {
"person_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F5",
"verification_updated": false,
"previous_document_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F6",
"identity_type": "international_passport",
"verification_impact": "pending_review"
}
}
}Authorization header: Bearer {jwt or Secretkey}
Description of the document
Additional metadata about the document
Link this document to a person's identification
The ID of the entity to associate the document with
Created successfully
A descriptive message indicating the result of the operation
The status of the API operation (successful, error, failed, pending)
Container for the created document data and related information
Show child attributes
Information about the submitted document
Show child attributes
Unique identifier for the document
ID of the entity this document belongs to
Description of the document
Additional metadata for the document
Show child attributes
Size of the file in bytes
MIME type of the file
Category of the document
Current verification status of the document
Timestamp when the document was uploaded
Notes about document verification
Date when the document expires
Timestamp when the document record was created
Timestamp when the document record was last updated
Information about how this document affects entity verification
Show child attributes
ID of the entity affected by this document
Indicates if automatic verification was triggered
Indicates if the verification status changed
Current verification status of the entity
Previous verification status of the entity
List of pending verification requirements
Information about how this document affects identity verification
Show child attributes
ID of the person linked to this document
Indicates if the verification was updated
Type of identity document
Impact of this document on verification
ID of the previous document if any