# Upload Document Uploads a document to the system. Subsequent uploads to the same id will overwrite previous documents.ß Endpoint: POST /v1/documents/{document_id} Version: 1.1.2 Security: OAuth2Flow ## Path parameters: - `id` (string, required) Document ID ## Header parameters: - `Authorization` (string) OAuth bearer token (see authentication flows) - `x-l2f-request-id` (string) Optional Unique ID per request, useful for fault resolution/diagnosis and audit. - `x-l2f-idempotency-id` (string) Unique ID used to safely retry an operation. See idempotency section for more details. ## Request fields (multipart/form-data): - `file` (string, required) Supported extensions: PDF, JPEG/JPG, PNG. Max Size: 30MB. File name: No special characters. The file MUST have an extension. ## Response 200 fields (application/json): - `data` (object, required) - `data.id` (string, required) Unique ID of the document Example: "905666e7-2d5b-4ac4-bd96-e02675fc678f" ## Response 400 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 401 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 404 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 500 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description