跳到主要内容

ONLYOFFICE DocSpace API keys

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.

Api keys​

MethodHTTP requestDescription
createApiKeyPOST /api/2.0/keysCreate a user API key
deleteApiKeyDELETE /api/2.0/keys/{keyId}Delete an API key
getAllPermissionsGET /api/2.0/keys/permissionsGet API key permissions
getApiKeyGET /api/2.0/keys/@selfGet the current API key
getApiKeysGET /api/2.0/keysGet the API keys
updateApiKeyPUT /api/2.0/keys/{keyId}Update an API key

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: