Skip to content

Upload file

POST
/api/public/v1/documents/file
curl --request POST \
--url https://app.kontera.ch/api/public/v1/documents/file \
--header 'Content-Type: application/json' \
--data '{ "fileName": "document.pdf", "contentType": "application/pdf" }'

Generate a signed URL to upload a document to.

Media typeapplication/json
object
fileName
required

Filename of your document, including its extension.

string
Example
document.pdf
contentType

ContentType of uploaded document. If none is provided, Kontera will auto-detect it using the provided filename.

string
Allowed values: application/pdf image/jpg image/jpeg image/png
Example
application/pdf
Media typeapplication/json
object
signedContentType
required

Detected or provided content type

string
signedFileName
required

The name of the file being uploaded

string
signedUrl
required

The signed url where the file should be uploaded to using multi-part form upload.

string
Examplegenerated
{
"signedContentType": "example",
"signedFileName": "example",
"signedUrl": "example"
}