Get Started
Install the package using your preferred package manager:
or from a CDN:
Prerequisites
Before proceeding, ensure you have already set up a Scoopika API Endpoint. If you haven’t, refer to this guide. This guide outlines the process for configuring Scoopika on your server to handle communication with the client-side package.
Initialization
To interact with agents and boxes, you’ll need to initialize a Scoopika Client instance. This instance acts as the central hub for all your Scoopika interactions, including managing history retrieval and communication with the server-side API.
- Import the Client class from the package.
- Create a new Scoopika Client instance, providing the URL of your API route that uses Scoopika on the server-side.
Learn more about the server-client setup here.
Usage Example
This example demonstrates how to create a session, run an agent, list user sessions, and retrieve session history using the Scoopika client:
Was this page helpful?