Get Public Key

This API retrieves the public key from an asymmetric encryption algorithm.

Get Public Key API

Prerequisites:
Obtain a valid OAuth2 access token with the required scopes before invoking this endpoint.

Web API

GET https://api.aspose.cloud/v4.0/cells/publickey

Request Parameters:

Parameter Name Type Location Description
Authorization string Header Bearer token for OAuth2 authentication (required).
Accept string Header Desired response format, e.g., application/json (optional, defaults to JSON).

Response

{
  "Code": 200,
  "Status": "OK",
  "CellsCloudPublicKey": {
    "PublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr...",
    "Algorithm": "RSA",
    "KeySize": 2048
  }
}

Status Codes

Code Description
200 OK – public key returned successfully.
401 Unauthorized – missing or invalid OAuth2 token.
403 Forbidden – insufficient permissions to access the key.
500 Internal Server Error – unexpected server error.

How to Use the Get public key API with SDKs

OpenAPI Specification

The OpenAPI Specification defines a publicly accessible programming interface, enabling you to perform REST interactions directly from your web browser.

Use Aspose.Cells Cloud SDKs

Using the SDK is the best way to accelerate development. The SDK handles the underlying details, allowing you to simply implement get public key for cells with minimal code.
Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples illustrate how to interact with Aspose.Cells web services using various SDKs: