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
enum<string>
required
Available options:
message,
ticket,
comment,
note,
broadcast,
invoice,
company,
contact,
file,
avatar,
oauth_app,
csv_import
fileType
string
required
size
integer
required
Required range: x >= 1
originalName
string
required
Maximum string length: 255
parentId
string<uuid>
metadata
object

Response

Success

data
object