# Rotate API key Generate a new API key for the customer account. The old key will be immediately invalidated. Important: Update all applications with the new key immediately. Endpoint: POST /api/customer/rotate-key Version: 1.0.0 Security: BearerAuth ## Response 200 fields (application/json): - `message` (string) Example: "API key rotated successfully. Update your applications with the new key immediately." - `api_key` (string) New API key Example: "ml_live_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" - `customer` (object) - `customer.id` (string) - `customer.name` (string) - `customer.email` (string) ## Response 401 fields (application/json): - `error` (string) Error code or message ## Response 500 fields (application/json): - `error` (string) Error code or message