SautiDesk
SautiDesk API
Direct messages, notifications and live events

Upload a direct-message attachment

POST
/v1/desk/dm/threads/{id}/attachments

Uploads a file to a direct-message thread. Send the file here, then pass the returned id in attachment_ids when you send the message.

Requires: desk.write scope.

Authorization

bearerAuth
AuthorizationBearer <token>

A SautiDesk API key. An owner or admin makes it under Settings in SautiDesk for a named person and picks the scopes. The key is shown once. Send it as Authorization: Bearer <key>. It acts as that person and as nobody else.

In: header

Path Parameters

id*string

The thread's id (a UUID).

Request Body

multipart/form-data

Response

Created

Example

{  "attachment": {    "id": "3f2b8c1e-5a4d-4e7b-9c10-2d6a8e4f1b37",    "filename": "invoice-1182.pdf",    "content_type": "application/pdf",    "size": 1  }}
FieldTypeDescription
attachmentrequiredobject
idrequiredstring (uuid)
filenamerequiredstring
content_typerequiredstring
sizerequiredinteger
curl -X POST "https://api.sautidesk.com/v1/desk/dm/threads/string/attachments" \  -F file="string"