Skip to main content
POST
Create document

Authorizations

x-api-key
string
header
required

Organization API key from Settings → API keys.

Body

application/json
organizationId
string
required
name
string
required
fileUrl
string<uri>
required
fileKey
string
required

Must start with documents/{organizationId}/

contentType
enum<string>
required
Available options:
application/pdf,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
text/plain,
image/jpeg,
image/png,
image/webp,
image/gif
sizeBytes
integer
required
Required range: 1 <= x <= 26214400
description
string | null
tags
enum<string>[]
Available options:
playbook,
contract,
management,
content,
legal,
other
teamId
string | null

Response

Created document

id
string
organizationId
string
teamId
string | null
name
string
description
string | null
fileUrl
string
fileKey
string
contentType
string
sizeBytes
integer
uploadedBy
string | null
createdAt
string<date-time>
updatedAt
string<date-time>
tags
enum<string>[]
Available options:
playbook,
contract,
management,
content,
legal,
other
team
object | null
uploadedByUser
object | null