v1

latestOpenAPI 3.0.3AGPL-3.0-or-later2026-07-17252234.3 KB
key

Create public key, store it on the server and return it to the user

If no public key exists and the request contains a valid certificate from the currently logged in user we will create one

post/ocs/v2.php/apps/end_to_end_encryption/api/v{apiVersion}/public-key

Path parameters

apiVersion'1' | '2' required

Headers

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

csrstring required

request to create a valid public key

shareTokenstring nullable
  • optional share token to create a public key associated with a share

Response

Public key created successfully