Get a Customer API Key

Retrieve a customer’s active API keys securely via Admin API. Useful for integration, validation, or access control tasks.

📥 Get Customer API Key(s)

Fetch all active API keys associated with a specific customer account using your Admin-level access.

🔹 HTTP Request

GET ADMIN-API-URL/customers/CUSTOMER-UID/api-keys

🔸 URL Segments

Segment
Type
Required
Description

CUSTOMER-UID

string

Yes

Unique identifier of the customer

💻 PHP Example

$response = $endpoint->getApiKeys('ab382plq98zr7');

echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';

📦 Sample JSON Response

{
  "status": "success",
  "api_keys": [
    {
      "key_id": "46",
      "key": "96228972e37f2b08f281d2a4db88a54fb3885350",
      "name": "My site",
      "description": "This key is used on my site",
      "ip_whitelist": ["123.123.123.123", "111.111.111.111"],
      "ip_blacklist": ["231.231.231.231", "222.222.222.222"],
      "created_at": "2025-04-19 10:32:00"
    },
    {
      "key_id": "47",
      "key": "67bb0a3627efd012458c3206db8cef86c95c0d47",
      "name": "Backend integration",
      "description": "API key for backend connection",
      "ip_whitelist": [],
      "ip_blacklist": [],
      "created_at": "2025-04-15 16:20:44"
    }
  ]
}

Last updated