Create a Customer API Key
Create a customer API key using Admin API. Add IP rules, name, and description for secure integration across systems and platforms.
๐ ๏ธ Create a Customer API Key
๐น HTTP Request
๐ธ URL Segments
Segment
Type
Required
Description
๐ Authorization Header
๐ป PHP Example
$response = $endpoint->createApiKey('ab382plq98zr7', [
'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']
]);
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';๐ฆ Sample JSON Response
Last updated