Get Started
Portal api methods
Help

POST api/2.0/mail/messages/{id}/document This function requires authentication

Description

Attaches Teamlab document to the specified message

Parameters
Name Description Type Example
id
sent in url
Message id for adding attachment number 1234
fileId
sent in body
Teamlab document id. string some text
version
sent in body
Teamlab document version string some text
Example
POST api/2.0/mail/messages/1234/document
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "fileId": "some text",
  "version": "some text"
}
Returns

Attached document as MailAttachment object