Get Started
Portal api methods
Help

POST api/2.0/mail/accounts/oauth This function requires authentication

Description

Creates Mail account with OAuth authentication. Only Google OAuth supported.

Parameters
Name Description Type Example
code
sent in body
Oauth code string some text
type
sent in body
Type of OAuth service. 0- Unknown, 1 - Google. System.Byte
Example
POST api/2.0/mail/accounts/oauth
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "code": "some text",
  "type": 0
}
Returns

Created account