Skip to main content
Glama

api-key-revoke

Revoke platform API keys by hash to manage access control and security in the LLM Conveyors AI agent platform.

Instructions

Revoke (delete) a platform API key by its hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashYesAPI key hash to revoke

Implementation Reference

  • The handler implementation for the api-key-revoke tool, which calls client.settings.revokeApiKey.
    async (params) => {
      try {
        await client.settings.revokeApiKey(params.hash);
        return { content: [{ type: "text", text: JSON.stringify({ revoked: true, hash: params.hash }) }] };
      } catch (err) {
        const message = err instanceof Error ? err.message : String(err);
        return { content: [{ type: "text", text: `Error: ${message}` }], isError: true };
      }
    },
  • Input schema for the api-key-revoke tool defining the hash parameter.
    {
      hash: z.string().describe("API key hash to revoke"),
    },
  • Registration of the api-key-revoke tool.
    server.tool(
      "api-key-revoke",
      "Revoke (delete) a platform API key by its hash.",

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/ebenezer-isaac/llmconveyors-mcp'

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