Rotate API key
Path Parameters
api_key_idstringRequired
API Key identifier
import { Reloop } from "reloop-email";
const reloop = new Reloop({ apiKey: "rl_123456789" });
const { response, error } = await reloop.apiKey.rotate("key_123456789");
if (error) throw error;{
"id": "key_123456789",
"name": "Production API Key",
"key": "rl_live_abc123def456ghi789",
"enabled": true,
"createdAt": "2026-03-29T10:00:00Z",
"updatedAt": "2026-03-29T10:00:00Z",
"permissions": "read,write"
}Was this page helpful?