---
updatedAt: 2026-06-17T21:00:20.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Generate a public API access key or PAKMS key

[block:html]
{
  "html": "<!--2025-April-7 [Aneesha] DS-7664 updated based on disucssions with Yehor; updated overview and before you begin -->\n\n<!--2024-Sep-07 DS-7081 to resolve customer feedback on the topic not being helpful and redirecting. Now, this topic is a complete tutorial without linking to the endpoint topic. SME approver: Kevin Rosales. -->"
}
[/block]

<GDPEnvNARegiongroup />

# Overview

The Ecommerce public API access key is required to create a token using the Clover tokenization service. This key is provided by the Public Access Key Management Service (PAKMS) and is also known as the `apiAccessKey`. Each PAKMS key is unique to a merchant and does not expire.

> 🚧 IMPORTANT
>
> Clover reserves the right to disable keys suspected of misuse and violation of our terms. If needed, you can send an email to: <a href="mailto:developer-relations@devrel.clover.com" target="_blank"><developer-relations@devrel.clover.com></a>to request the deactivation of the Ecommerce `apiAccessKey`.

# Before you begin

Decide whether you are building a single merchant solution, for example, a simple Clover iframe integration to accept online payments or an app integration for multiple merchants or businesses, such as an ecommerce store, to take and manage orders.

* If you are using the tokenization services for a single merchant or to run test scenarios, you only need to generate Ecommerce API tokens (public and private keys).
* If you are using tokenization services to build an app for multiple businesses, you need to generate an OAuth `access_token` and `refresh_token` pair to initiate the OAuth flow. This expiring `access_token` is used to complete the steps to generate a PAKMS key. You need to send a request to the PAKMS endpoint only once for each merchant. The returned Ecommerce API key is used in each of that merchant’s subsequent card tokenization requests. See <a href="https://docs.clover.com/dev/reference/getapikey" target="_blank">Ecommerce - PAKMS API reference</a> for more information.

# Generate a PAKMS key for a single merchant solution

1. <a href="https://docs.clover.com/dev/docs/create-ecommerce-api-tokens" target="_blank">Generate Ecommerce API tokens (public and private keys)</a>
2. Use the keys as follows:
   1. **Public key**—Use as the Ecommerce public API key or `apiAccessKey` for a card, gift card, or ACH tokenization without the need to generate a separate PAKMS key. In this case, you **do not need to** follow the steps in this document.
   2. **Private key**—Set as the Bearer token in the Authorization header to use Ecommerce APIs.

***

# Generate a PAKMS key for app-based integrations

Use the following steps to generate a PAKMS key if you are building app-based integrations for multiple merchants that require the expiring `access_token`.

1. <a href="https://docs.clover.com/dev/docs/generate-oauth-expiring-access-and-refresh-token" target="_blank">Generate OAuth expiring (access and refresh) token</a>
2. Send a GET request to the ` https://scl-sandbox.dev.clover.com/pakms/apikey` endpoint.
3. Set the `authorization: Bearer` as your OAuth-generated `access_token` from step 1.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/1936510-BearerToken-AccessToken.png",
        "",
        "Authorization header: Bearer token"
      ],
      "align": "center",
      "sizing": "60% ",
      "border": true,
      "caption": "Authorization header: Bearer token"
    }
  ]
}
[/block]

In response, the Clover server returns an `apiAccessKey`, which is the public Ecommerce API key or PAKMS key.

# Next step

Use the `apiAccessKey` as the `apikey` header when you tokenize a card. For more information, see [Ecommerce tokenization](https://docs.clover.com/dev/docs/ecommerce-tokenization-overview).

# Request and Response example—Ecommerce API or PAKMS `apiAccessKey`

```curl Request
curl --request GET \
--url 'https://scl-sandbox.dev.clover.com/pakms/apikey' \
--header 'Authorization: Bearer {access_token}'
```
```curl Response
{
  "active": true,
  "apiAccessKey": "af4exxxxxxxxxxxxxxxxxxxxxxxxd145",
  "createdTime": 1722230745532,
  "developerAppUuid": "RKxxxxxxxxx9C",
  "merchantUuid": "6Xxxxxxxxxx91",
  "modifiedTime": 1722230745532
}
```

***

# Related topics

* [Ecommerce PAKMS API: Retrieve an Ecommerce API key](https://docs.clover.com/dev/reference/keys) endpoint.
* [Card tokenization service API: Create a card token](https://docs.clover.com/dev/reference/create-card-token) endpoint.
* [Ecommerce API Reference](https://docs.clover.com/reference/createcharge) for additional steps to work with charges, customers, orders, refunds, and more.
* <a href="https://medium.com/clover-platform-blog/understanding-clover-auth-tokens-and-ecommerce-keys-4e048827afa2" target="_blank">Blog: Fiddling Through Digital Keys: Clover Auth Tokens and Ecommerce Keys</a>