# SDK keys

Each connected store app has one public SDK key. Learn where to find it, who can reveal it and what happens when you revoke it.

## Find your SDK key

Open Apps & API keys to find one stable public SDK key per native store app. A project can contain multiple iOS apps and multiple Android apps, each with its own bundle or package ID and SDK key. Repeating setup for the same store app reuses its existing key. A key is issued after the store connection succeeds; existing connections show Create SDK key until you issue one.

Admins can reveal or copy a key. Revealed values hide after one minute or when the tab is hidden. The server stores a hash for authentication and an encrypted display copy, and records key actions in the audit log.

> **Public, not secret**
> Use the matching store app's key in your native SDK. These client keys are public identifiers, not server secrets. They cannot manage your account or replace signed store purchase verification.

## Test keys and revocation

- Use Test configuration on Apps to create a separate Test Store key. It fetches test offerings and sends SDK events, but cannot process real purchases or grant sandbox entitlements. Never ship a test key in a production build.
- If purchase setup is pending, choose Retry. Configuration and event collection remain available; purchase processing requires a connected store and successful server setup.
- Revoking a key immediately blocks SDK requests and removes its encrypted display copy. Update installed apps before revoking a key they use. Create replacement key issues a new value; the revoked value stays invalid.
- Older project-wide keys keep working until explicitly revoked. New projects do not get a project-level key; only store app and Test Store keys are issued.
- Keep Apple .p8 keys, Google service-account files and server secrets on your backend. Never embed them in a mobile app, source repository, URL or logs.

## What a key is bound to

A store app key is bound to its organization, project and store connection. Purchase requests made with it require the matching connected store. Test Store keys are refused at every purchase and customer endpoint.

- [SDK HTTP API](https://aplyna.com/docs/api#authentication): How the key authenticates a request.
- [Security, consent & privacy](https://aplyna.com/docs/security): Which credential belongs where.
