Rotate API key

POST
https://reloop.sh/api/api-key/v1/rotate/:api_key_id

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?

Edit this page