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
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Human-readable label for the API key | |
| scopes | Yes | Permission scopes for the key |
Implementation Reference
- src/tools/settings.ts:91-115 (handler)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 }; } }, );