Upload a document
Requires the DOCUMENT.CREATE permission.
Authentication
X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
version
version
Headers
x-platform-id
Platform ID.
Request
This endpoint expects an object.
name
The name of the document.
content_type
Content type of the file (e.g. application/pdf).
content
The file content, BASE64 encoded. Max 10MB.
description
An optional description of the document.
Response
Created
name
The name of the document.
content_type
Content type of the file (e.g. application/pdf).
object_type
id
created_at
description
An optional description of the document.
file_size
The file size in bytes.
downloaded_at
Timestamp of the most recent download.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error