Rotate API key
1import { Reloop } from "reloop-email";2
3const reloop = new Reloop({ apiKey: "rl_123456789" });4
5const { apiKey, apiKeyError } = await reloop.apiKey.rotate("key_123456789");6
7if (apiKeyError) throw apiKeyError;8
9console.log(apiKey.id, apiKey.key);1{2 "id": "key_123456789",3 "name": "Production API Key",4 "key": "rl_live_abc123def456ghi789",5 "enabled": true,6 "createdAt": "2026-03-29T10:00:00Z",7 "updatedAt": "2026-03-29T10:00:00Z",8 "permissions": "read,write"9}Path Parameters
api_key_idstringRequired
API Key identifier
Was this page helpful?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.