Skip to main content
Glama

create_geomi_api_key

Generate API keys for Aptos blockchain applications to interact with Geomi toolkit resources securely.

Instructions

Create a new API Key for your Geomi Organization. Geomi is the essential toolkit for Aptos developers. Api Keys are secret keys so it is important to keep them safe and secure. This tool can be used to create an Api Key (aka full node api key) for an Api resource application to interact with the Aptos blockchain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
application_idYesThe application id to create the api key for.
frontend_argsNo
nameYesThe name of the api key. Must be between 3 and 32 characters long, with only lowercase letters, numbers, dashes and underscores.
organization_idYesThe organization id to create the api key for.
project_idYesThe project id to create the api key for.

Implementation Reference

  • The handler implementation for the create_geomi_api_key tool.
    export const createApiKeyTool = {
      description: `Create a new API Key for your Geomi Organization. Geomi is the essential toolkit for Aptos developers. Api Keys are secret keys so it is important to keep them safe and secure. 
        This tool can be used to create an Api Key (aka full node api key) for an Api resource application to interact with the Aptos blockchain.`,
      execute: async (
        args: {
          application_id: string;
          frontend_args?: Parameters<typeof toApiFrontendArgs>[0];
          name: string;
          organization_id: string;
          project_id: string;
        },
        context: any
      ) => {
        try {
          await recordTelemetry({ action: "create_api_key" }, context);
          const geomi = new Geomi(context);
          const apiKey = await geomi.createApiKey({
            application_id: args.application_id,
            frontend_args: toApiFrontendArgs(args.frontend_args),
            name: args.name,
            organization_id: args.organization_id,
            project_id: args.project_id,
          });
          return JSON.stringify(apiKey);
        } catch (error) {
          return `❌ Failed to create api key: ${error}`;
        }
      },
      name: "create_geomi_api_key",
      parameters: CreateApiKeyToolScheme,
    };

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/aptos-labs/aptos-npm-mcp'

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