---
updatedAt: 2026-04-24T20:44:43.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Retrieve an Ecommerce API key or PAKMS key

**Prerequisite: **[Generate an OAuth API token or access_token](https://docs.clover.com/dev/docs/generate-an-oauth-api-token-or-access_token). 

**Description: **Retrieves the public Ecommerce API key associated with a specific merchant and developer app. The <<glossary:merchantId>> and App ID are available in the OAuth API token or `access_token`. 

**Tutorial: **[Generate an Ecommerce API key (PAKMS key)](https://docs.clover.com/dev/docs/generate-ecommerce-api-key-or-pakms-key).

**Next step: **Use the Ecommerce API key for tokenization. See [Ecommerce tokenization overview](https://docs.clover.com/dev/docs/ecommerce-tokenization-overview).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PAKMS Service API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "description": "Sandbox PAKMS server",
      "url": "https://scl-sandbox.dev.clover.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://sandbox.dev.clover.com/oauth/authorize",
            "tokenUrl": "https://sandbox.dev.clover.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    }
  ],
  "paths": {
    "/pakms/apikey": {
      "get": {
        "tags": [
          "KEYS"
        ],
        "operationId": "getApiKey",
        "summary": "Retrieve an Ecommerce API key or PAKMS key",
        "x-clover-handler": "com.clover.pakms.handlers.api.GetApiKeyHandler",
        "description": "**Prerequisite: **[Generate an OAuth API token or access_token](https://docs.clover.com/dev/docs/generate-an-oauth-api-token-or-access_token). \n\n**Description: **Retrieves the public Ecommerce API key associated with a specific merchant and developer app. The <<glossary:merchantId>> and App ID are available in the OAuth API token or `access_token`. \n\n**Tutorial: **[Generate an Ecommerce API key (PAKMS key)](https://docs.clover.com/dev/docs/generate-ecommerce-api-key-or-pakms-key).\n\n**Next step: **Use the Ecommerce API key for tokenization. See [Ecommerce tokenization overview](https://docs.clover.com/dev/docs/ecommerce-tokenization-overview).",
        "parameters": [
          {
            "name": "tokenAssociationGroupUuid",
            "description": "Universally unique identifier (UUID) of the token association group for this API key (reserved). See [Clover Ecommerce basics](https://docs.clover.com/docs/clover-development-basics-ecommerce#step-1-tokenize-a-customer-card).",
            "in": "query",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "User-Agent",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: `<application>/<version>`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response. API key is displayed.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "API Access Key.",
                  "properties": {
                    "active": {
                      "type": "boolean",
                      "description": "Indicates whether the API key is active.\n Values:\n True\n False"
                    },
                    "apiAccessKey": {
                      "type": "string",
                      "description": "API key associated with the merchant and developer application."
                    },
                    "createdTime": {
                      "type": "integer",
                      "format": "int64",
                      "nullable": true,
                      "description": "Time when the API key was created."
                    },
                    "developerAppUuid": {
                      "type": "string",
                      "description": "Unique universal identifier (UUID) of the developer app."
                    },
                    "merchantUuid": {
                      "type": "string",
                      "description": "Unique universal identifier (UUID) of the merchant. Also known as merchant ID (mId)."
                    },
                    "tokenAssociationGroupUuid": {
                      "type": "string",
                      "description": "Unique universal identifier (UUID) of the token association group."
                    },
                    "modifiedTime": {
                      "type": "integer",
                      "format": "int64",
                      "nullable": true,
                      "description": "Time when the API key was modified."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```