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
| Name | Required | Description | Default |
|---|---|---|---|
| application_id | Yes | The application id to create the api key for. | |
| frontend_args | No | ||
| name | Yes | The name of the api key. Must be between 3 and 32 characters long, with only lowercase letters, numbers, dashes and underscores. | |
| organization_id | Yes | The organization id to create the api key for. | |
| project_id | Yes | The project id to create the api key for. |
Implementation Reference
- src/tools/geomi/apiKey.ts:13-43 (handler)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, };