Getting Started
Official documentation for the Secton SDK, a TypeScript/JavaScript library that enables seamless interaction with the Secton API.
Installation
Install the SDK via npm:
npm install secton
To authenticate with the Secton API, you'll need an API key.
You can generate API keys from your organization settings. Tokens are tied to your organization and rate-limited per key.
Quick Start
Here's a basic example to get you started:
import { createClient } from 'secton';
const client = createClient({
apiKey: 'your-api-key'
});
// simple chat
const response = await client.ask('Hello, how are you?');
console.log(response);
🎉 Congratulations! If you followed the instructions above correctly, you should've gotten your first response using the Secton SDK.
For more information and resources, visit the npm package page.
Last updated
Was this helpful?