Create API Key

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

Body Parameters

namestringRequired

Name for the API key

  • Minimum length: 1
  • Maximum length: 255
1import { Reloop } from "reloop-email";
2
3const reloop = new Reloop({ apiKey: "rl_123456789" });
4
5const { apiKey, apiKeyError } = await reloop.apiKey.create({
6 name: "Production Key",
7});
8
9if (apiKeyError) throw apiKeyError;
10
11console.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}

Was this page helpful?

Edit this page