Delete a Customer API Key

Safely remove a customer API key via Admin API and revoke access tied to the deleted key. Supports fine-grained access control.

πŸ—‘οΈ Delete a Customer API Key

Remove a specific customer API key using the Admin API key. This revokes access associated with the deleted key.

πŸ”Ή HTTP Request

DELETE ADMIN-API-URL/customers/CUSTOMER-UID/api-keys/KEY-ID

πŸ”Έ URL Segments

Segment
Type
Required
Description

CUSTOMER-UID

string

Yes

Unique identifier of the customer

KEY-ID

string

Yes

ID of the API key to be deleted

πŸ” Authorization Header

X-ADMIN-API-KEY: your-admin-api-key-here

πŸ”„ Fields Available for Update

Field
Type
Required
Description

name

string

No

A label or title for the API key

description

string

No

Short description for internal use

ip_whitelist

string[]

No

List of IPs allowed to use this key

ip_blacklist

string[]

No

List of IPs blocked from using this key

βœ… JSON Request Payload Example

{
  "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"]
}

πŸ’» PHP Example

πŸ“¦ Sample JSON Response

Last updated