venice_delete_api_key
Delete an API key from Venice AI by specifying its ID to remove access and manage security.
Instructions
Delete an API key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | The API key ID to delete |
Implementation Reference
- src/tools/admin/index.ts:74-80 (handler)Handler function that sends a DELETE request to `/api_keys/${key_id}` using veniceAPI and returns success or error message.const response = await veniceAPI(`/api_keys/${key_id}`, { method: "DELETE" }); if (!response.ok) { const data = await response.json() as { error?: { message?: string } }; return { content: [{ type: "text" as const, text: `Error: ${data.error?.message || response.statusText}` }] }; } return { content: [{ type: "text" as const, text: `✓ Deleted API key: ${key_id}` }] }; }
- src/tools/admin/index.ts:73-73 (schema)Input schema defining the required 'key_id' parameter as a string.async ({ key_id }) => {
- src/tools/admin/index.ts:70-81 (registration)Registration of the 'venice_delete_api_key' tool via server.tool, including name, description, schema, and inline handler."venice_delete_api_key", "Delete an API key", { key_id: z.string().describe("The API key ID to delete") }, async ({ key_id }) => { const response = await veniceAPI(`/api_keys/${key_id}`, { method: "DELETE" }); if (!response.ok) { const data = await response.json() as { error?: { message?: string } }; return { content: [{ type: "text" as const, text: `Error: ${data.error?.message || response.statusText}` }] }; } return { content: [{ type: "text" as const, text: `✓ Deleted API key: ${key_id}` }] }; } );