Skip to main content
POST
Create Company Document
The request body should be sent as application/json with the file content as a binary string. All four fields (name, file, type, file_name) are required.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Company Document Body

file
string<byte>
required

Base64-encoded file content

name
string

Document name (optional, defaults to 'document.{extension}')

Response

Created

id
integer

Unique document identifier

name
string

Display name of the document

file_name
string

Original file name

location
string

URL to the stored document file

date_added
string

Date the document was uploaded

type
string

MIME type of the document (e.g. application/pdf, image/png)

deleted
integer

Soft-delete flag (0 = active, 1 = deleted)

date_deleted
string<date-time> | null

Timestamp when the document was soft-deleted, or null if active