- Docs
- SDKs
- JavaScript
JavaScript SDK
Official Node.js client for the Startuped REST API.
Package: @startuped-ai/sdk · Source: GitHub
Install
bash
npm install @startuped-ai/sdkPublished from the public startuped-sdk repository (packages/node).
Quick start
ts
import { Startuped } from '@startuped-ai/sdk'
const client = new Startuped({
apiKey: process.env.STARTUPED_API_KEY!, // sk_… from https://www.startuped.ai/api-keys
// baseUrl: 'https://www.startuped.ai', // default for this tenant
// tenantId: 'startuped', // optional
})
await client.auth.validate()
await client.leads.create({ firstName: 'Ada', email: 'ada@example.com' })
await client.leads.search({ search: 'ada', limit: 10 })
await client.deals.create({ name: 'Acme deal', company: 'Acme', amount: 5000 })
await client.credits.status()
await client.agents.list()Modules
| Resource | Methods |
|---|---|
| auth | validate() |
| leads | create, get, update, search, list |
| deals | create, get, update, search, list |
| accounts | get, search, list |
| contacts | create, search, list |
| tasks | create, list, update |
| credits | status |
| agents | list, status |
Errors throw StartupedError with status and body.