For the complete documentation index, see llms-docs.txt or the site index llms.txt. Full docs corpus: llms-full-docs.txt. Prefer the markdown version of this page at /docs/api/api-key/patch-api-api-key-v1by-api_key_id.md. Product capabilities: skill.md. Docs MCP: /docs/mcp. Site MCP: /mcp.

Update API key

PATCH
/api/api-key/v1/:api_key_id
1import { Reloop } from "reloop-email";
2
3const reloop = new Reloop({ apiKey: "rl_123456789" });
4
5const { apiKey, apiKeyError } = await reloop.apiKey.update("key_123456789", {
6 name: "Updated Key Name",
7});
8
9if (apiKeyError) throw apiKeyError;
10
11console.log(apiKey.id, apiKey.name);
1{
2 "id": "key_123456789",
3 "name": "Production API Key",
4 "start": "rl_live",
5 "prefix": "rl",
6 "enabled": true,
7 "requestCount": 150,
8 "createdAt": "2026-03-29T10:00:00Z",
9 "updatedAt": "2026-03-29T10:00:00Z",
10 "permissions": "read,write",
11 "createdBy": {
12 "id": "user_123",
13 "name": "John Doe",
14 "email": "john@example.com"
15 }
16}

Path Parameters

api_key_idstringRequired

API Key identifier

Body Parameters

namestringRequired

Name for the API key

  • Minimum length: 1
  • Maximum length: 255

Was this page helpful?