Developer Manual
Quickstart
Install the SDK, give it an API key, and run an agent in three lines. The eClips Workforce API is JSON over HTTPS with one bearer key. The key carries your organization and its scopes, so there is no org header to send.
Install the SDK
The client is @eclips/sdk. It is fully typed and has no runtime dependencies. It works in Node.js 18+ and any runtime that has fetch.
npm install @eclips/sdkhttps://api.eclips.tech. You never pass an organization id. The server works it out from your API key.Get an API key
API keys begin with eck_live_. Create one in the dashboard under Settings → API Keys and choose the scopes it needs. The key is shown once. Copy it and store it as a secret, for example in ECLIPS_API_KEY.
- API access is included on the Growth and Enterprise plans. See Rate limits & plans.
- Scopes and key handling are covered in Authentication.
Run an agent in three lines
runAndWait() starts an agent run and polls until it ends as completed, failed or pending_triage.
import { EClipsClient } from "@eclips/sdk";
const client = new EClipsClient({ apiKey: process.env.ECLIPS_API_KEY! });
const result = await client.runAndWait("rfq_generator", "Draft an RFQ for 500 laptops");The same call, expanded with logging:
import { EClipsClient } from "@eclips/sdk";
// Your organization comes from the API key, so you never pass an org id.
const client = new EClipsClient({ apiKey: process.env.ECLIPS_API_KEY! });
// runAndWait starts the run and polls until it finishes.
const result = await client.runAndWait(
"rfq_generator",
"Draft an RFQ for 500 laptops, delivery to Amman within 30 days",
);
console.log(result.status); // "completed", or "pending_triage" if a person must look
console.log(result.result); // the agent's structured outputPrefer raw HTTP? The same request returns a run_id straight away, and the run carries on in the background.
curl https://api.eclips.tech/v1/run \
-H "Authorization: Bearer $ECLIPS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "agent_type": "rfq_generator", "task": "Draft an RFQ for 500 laptops" }'End to end
Example · From install to result
- •
Create a key
Dashboard → Settings → API Keys → create a key with theagents:runandagents:readscopes. Copy theeck_live_…value. - •
Install and configure
npm install @eclips/sdk, then export your key:export ECLIPS_API_KEY=eck_live_…. - •
Run
CallrunAndWait(agentType, task). It resolves with the final{ status, result, confidence_score }. - •
Go deeper
Stream live status, register webhooks, or run up to 500 rows at once with batches.