Skip to main content
Glama

api-key-create

Generate a new API key for the LLM Conveyors platform with specific permissions. The key value appears only once—save it immediately for secure access.

Instructions

Create a new platform API key. The key value is shown ONLY in this response — save it immediately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesHuman-readable label for the API key
scopesYesPermission scopes for the key

Implementation Reference

  • The implementation and registration of the 'api-key-create' tool within the settings toolset.
    server.tool(
      "api-key-create",
      "Create a new platform API key. The key value is shown ONLY in this response — save it immediately.",
      {
        label: z.string().describe("Human-readable label for the API key"),
        scopes: z.array(z.enum([
          "jobs:write", "jobs:read", "sales:write", "sales:read",
          "sessions:read", "sessions:write", "settings:read", "settings:write",
          "upload:write", "resume:read", "resume:write", "ats:write",
          "webhook:read", "webhook:write",
        ])).describe("Permission scopes for the key"),
      },
      async (params) => {
        try {
          const result = await client.settings.createApiKey({
            label: params.label,
            scopes: params.scopes,
          } as any);
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return { content: [{ type: "text", text: `Error: ${message}` }], isError: true };
        }
      },
    );

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