Skip to main content
Glama

venice_delete_api_key

Remove an API key from the Venice AI platform to manage access and security by specifying the key ID.

Instructions

Delete an API key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
key_idYesThe API key ID to delete

Implementation Reference

  • Registers the venice_delete_api_key MCP tool with its schema and inline handler function.
    server.tool( "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}` }] }; } );
  • The handler function executes the DELETE request to the Venice API to delete the specified API key and returns success or error message.
    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}` }] };
  • Zod schema for the tool input parameter 'key_id'.
    { key_id: z.string().describe("The API key ID to delete") },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/georgeglarson/venice-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server