Skip to main content
POST
Create attachment

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
workspaceId
string<uuid>
required
attachmentId
string<uuid>
required
parentType
string
required
fileType
string
required
size
integer
required
originalName
string
required
parentId
string<uuid>
metadata
object

Response

Public mutation payload

success
enum<boolean>
required
Available options:
true
data
any
required

Presented entity

mutationId
string
lastSyncId
number
contentLastSyncId
number
syncAckSource
enum<string>
Available options:
commit,
non_commit