Skip to main content
POST
Create document

Authorizations

Authorization
string
header
required

Personal API key (sl_api_…) or OAuth access token (sl_oat_…)

Headers

Idempotency-Key
string

Optional. Safe retries for create/send: same key + route + workspace returns the cached success body for 24h. API/OAuth only.

Maximum string length: 256

Body

application/json
name
string
required
Maximum string length: 255
type
enum<string>
required
Available options:
file,
contract
companyId
string<uuid>
required
workspaceId
string<uuid>
required
attachmentId
string<uuid>
required
originalFileName
string
required
Maximum string length: 255
fileType
string
required
fileSize
integer
required
Required range: x >= 0
description
string
Maximum string length: 1000
folderId
string<uuid> | null
contractType
string | null
originalContractName
string | null
contractStatus
enum<string> | null
Available options:
draft,
signed_by_us,
signed_by_them,
fully_signed,
expired,
superseded
expirationDate
string<date-time> | null
index
string
permission
enum<string> | null
Available options:
read,
readWrite,
admin

Response

Success

data
object