Skip to main content
Glama

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
NameRequiredDescriptionDefault
key_idYesThe API key ID to delete

Implementation Reference

  • 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}` }] }; }
  • Input schema defining the required 'key_id' parameter as a string.
    async ({ key_id }) => {
  • 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}` }] }; } );

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