Skip to main content
POST
/
documents
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"
    }
  }
}

Headers

Authorization
string
required

Authorization header: Bearer {jwt or Secretkey}

Body

application/json
description
string
required

Description of the document

urls
object
required

URLs to the document files

meta
object

Additional metadata about the document

Link this document to a person's identification

entity_id
string

The ID of the entity to associate the document with

Response

Created successfully

message
string
required

A descriptive message indicating the result of the operation

status
string
required

The status of the API operation (successful, error, failed, pending)

data
object
required

Container for the created document data and related information