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.
Security
ApiKeyAuth
- US Data Centerhttps://api.mailerlogic.net/api/v1/customer/rotate-key
- EU Data Center (coming soon)https://eu-api.mailerlogic.net/api/v1/customer/rotate-key
curl -i -X POST \
https://api.mailerlogic.net/api/v1/customer/rotate-key \
-H 'X-API-Key: YOUR_API_KEY_HERE'API key rotated successfully
Example:"API key rotated successfully. Update your applications with the new key immediately."
New API key (v2 format with prefix)
Example:"ml_live_8jKp3nXw7rQ9sL2mY4hT6vB1nC5xZ0aE8wD7gF3jH9kM2pN4q"
Response
{ "message": "API key rotated successfully. Update your applications with the new key immediately.", "api_key": "ml_live_8jKp3nXw7rQ9sL2mY4hT6vB1nC5xZ0aE8wD7gF3jH9kM2pN4q", "key_prefix": "ml_live_", "customer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "user@example.com" } }