cURL
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.
Authorization header: Bearer {jwt or Secretkey}
"Bearer {jwt or Secretkey}"
Description of the document
URLs to the document files
Show child attributes
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