Skip to main content
Glama
overview.mdx2.09 kB
--- title: "Overview" description: "Quick start with the superglue SDK" --- The superglue SDK lets you build, execute, and manage tools programmatically. Anything you can do in the UI, you can do with code. <Note> In some places in the SDK and documentation we may still be referring to **workflows**, which is the now **deprecated** legacy naming for tools. For all intents and purposes, the two phrases **refer to the same** concept. </Note> ## Installation ```bash npm install @superglue/client ``` ## Quick start ```typescript import { SuperglueClient } from "@superglue/client"; const superglue = new SuperglueClient({ apiKey: process.env.SUPERGLUE_API_KEY }); // Build a tool with natural language const workflow = await superglue.buildWorkflow({ integrationIds: ["stripe"], instruction: "Fetch all active customers from Stripe" }); // Execute it const result = await superglue.executeWorkflow({ workflow, payload: {} }); console.log(result.data); // Your Stripe customers ``` ## Authentication Authentication depends on your deployment: <Tabs> <Tab title="Cloud Platform"> Get your API key from the superglue dashboard under Settings → API Keys. ```typescript const superglue = new SuperglueClient({ apiKey: process.env.SUPERGLUE_API_KEY }); ``` </Tab> <Tab title="Self-Hosted"> Use the `AUTH_TOKEN` environment variable from your `.env` file. ```typescript const superglue = new SuperglueClient({ apiKey: process.env.AUTH_TOKEN, endpoint: "https://your-self-hosted-instance.com/graphql" }); ``` </Tab> </Tabs> The client handles authentication automatically for all requests. ## TypeScript The SDK is fully typed with TypeScript. All types are exported from `@superglue/client`. ## Next steps <CardGroup cols={1}> <Card title="Methods Reference" icon="code" href="/sdk/methods"> Complete API reference for all SDK methods </Card> <Card title="Types Reference" icon="brackets-curly" href="/sdk/types"> TypeScript type definitions for all SDK types </Card> </CardGroup>

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/superglue-ai/superglue'

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