跳到主要内容

ONLYOFFICE DocSpace Authentication API

The browsable version of this reference, with a request builder and code samples, is published at https://api.onlyoffice.com/docspace/api-backend/usage-api/.

All URIs are relative to https://yourportal.onlyoffice.com, where the host is the address of your DocSpace instance.

Authentication​

MethodHTTP requestDescription
authenticateMePOST /api/2.0/authenticationAuthenticate a user
authenticateMeFromBodyWithCodePOST /api/2.0/authentication/{code}Authenticate a user by code
checkConfirmPOST /api/2.0/authentication/confirmCheck a confirmation link
getIsAuthentificatedGET /api/2.0/authenticationCheck authentication
logoutPOST /api/2.0/authentication/logoutLog out
saveMobilePhonePOST /api/2.0/authentication/setphoneSet a mobile phone
sendSmsCodePOST /api/2.0/authentication/sendsmsSend SMS code

Authorization​

cookieAuth​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

bearerAuth​

  • Type: HTTP Bearer Token authentication

asc_auth_key​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

Basic​

  • Type: HTTP basic authentication

Bearer​

  • Type: HTTP Bearer Token authentication (JWT)

ApiKeyBearer​

  • Type: API key
  • API key parameter name: ApiKeyBearer
  • Location: HTTP header

OAuth2​

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL:
  • Scopes:
    • read: Read access to protected resources
    • write: Write access to protected resources

OpenId​

x-signature​

  • Type: API key
  • API key parameter name: x-signature
  • Location: