# 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/v1/customer/rotate-key Version: 1.0.0 Security: ApiKeyAuth ## 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 (v2 format with prefix) Example: "ml_live_8jKp3nXw7rQ9sL2mY4hT6vB1nC5xZ0aE8wD7gF3jH9kM2pN4q" - `key_prefix` (string) First 8 characters of the key for identification Example: "ml_live_" - `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