Skip to main content
GET
Get the encryption public key

Authorizations

x-api-key
string
header
required

Your secret API key from the dashboard. Keys starting sk_sandbox_ work in test mode and keys starting sk_live_ in live mode, on the same base URL. Don't send an Authorization header with it.

Headers

x-correlation-id
string<uuid>

Unique identifier for request tracing. Generated by the client or server if not provided.

Example:

"550e8400-e29b-41d4-a716-446655440000"

x-business-account-id
string<uuid>

The business account to act on, for platform use cases. When sent, that account is the merchant for the request: resources are created under it, reads and 404 checks are scoped to it, and per-merchant uniqueness (such as merchant_reference_id) applies within it. The API key's own account is recorded as the account acting on its behalf. Omit it to act on the API key's own account.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Public key returned.

The account's public key. On the account's first call, lite creates the key; if it isn't ready within a few seconds, the response is an empty object {} with the same status. Call again after a few seconds until public_key_pem is present.

public_key_pem
string

RSA public key in PEM (SPKI) format. Use it to encrypt card data into a JWE with alg RSA-OAEP-256 and enc A256GCM. Absent while lite is still creating the key.

Example:

"-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA...\n-----END PUBLIC KEY-----"