> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usetapp.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Aggregator Public Key

> Fetch the RSA public key used to encrypt the recipient blob carried on-chain.

Returns the PEM-encoded RSA public key the settlement aggregator uses to
encrypt the `messageHash` (recipient details) argument of `createOrder`.

For non-custodial EVM/Starknet orders you normally do **not** need this — Rails
builds the encrypted `messageHash` for you and returns it in the create-order
response. This endpoint is provided for clients that encrypt the recipient
themselves.

### Response

<ResponseField name="status" type="string">Response state (`success`).</ResponseField>
<ResponseField name="data" type="string">PEM-encoded RSA public key.</ResponseField>

<ResponseExample>
  ```json Response (200 OK) theme={null}
  {
    "status": "success",
    "message": "OK",
    "data": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQ...\n-----END PUBLIC KEY-----"
  }
  ```
</ResponseExample>
