Upload v2

Generate a presigned URL for uploading a document securely with check if is a public document with .p7m firm and Antivirus scan in order to prevent malware or other viruses.

POST /api/v2/presigned-url

Body application/json
fileType string · optional

The type of the file for which the presigned URL is being generated (e.g., ‘pdf’).

isDocumentPublic boolean · optional

Indicates whether the document is public or not.

Responses

200 application/json
presignedUrl string · optional

The URL to which the file should be uploaded.

fields object · optional

Additional fields required by the storage service to accompany the upload request.

Other properties any
fileType string · optional

Echoes back the type of the file that was specified in the request.

key string · optional

A unique identifier for the uploaded file in the storage system.

400 Bad request – typically this means the fileType was not provided or is unsupported.
No content
401 Unauthorized – API key missing or invalid.
No content
500 Internal server error – something went wrong on the server side.
No content
POST /api/v2/presigned-url
POST /api/v2/presigned-url HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "fileType": "text",
  "isDocumentPublic": true
}
{
  "presignedUrl": "text",
  "fields": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "fileType": "text",
  "key": "text"
}