API Reference
The eClips API is JSON over HTTPS. Every request is authenticated with a bearer API key and scoped to your organization. The base URL is https://api.eclips.tech.
Authentication
Pass your API key as a bearer token and your organization id in the X-Eclips-Org header. Generate keys from your dashboard . Keys are secret — never expose them in client-side code.
curl https://api.eclips.tech/v1/runs \
-H "Authorization: Bearer $ECLIPS_API_KEY" \
-H "X-Eclips-Org: $ECLIPS_ORG_ID" \
-H "Content-Type: application/json" \
-d '{
"agent_type": "procurement_specialist",
"task": "Get 3 vendor quotes for 500 laptops"
}'Endpoints
Runs
/v1/runsTrigger an agent run. Returns a run_id immediately.
/v1/runs/:idFetch status and result for a single run.
/v1/runsPaginated run history for your organization.
Triage
/v1/triageList pending human-in-the-loop items.
/v1/triage/:id/approveApprove an item and continue the blocked run.
/v1/triage/:id/rejectReject an item and cancel the blocked run.
Webhooks
/v1/webhooksRegister a webhook endpoint and subscribe to events.
/v1/webhooksList all registered webhooks.
/v1/webhooks/:idRemove a webhook subscription.
Batches
/v1/batchesSubmit many tasks as a single parallel job.
/v1/batches/:idPoll a batch job and read per-row results.
/v1/batchesHistory of batch jobs.
/v1/batches/:id/cancelCancel rows that have not yet started.
Workflows
/v1/workflows/:id/triggerRun a saved multi-step workflow.
/v1/workflowsList all saved workflows.
Example response
A POST /v1/runs returns the new run:
{
"run_id": "run_a1b2c3d4",
"status": "running",
"agent_type": "procurement_specialist",
"created_at": "2026-05-30T09:00:00Z"
}Errors
Errors use standard HTTP status codes and a typed error field. The official SDK maps each to a catchable error class.
| Status | Error | Meaning |
|---|---|---|
| 400 | validation_error | Request body failed validation. |
| 401 | authentication_error | Missing or invalid API key. |
| 404 | not_found | Run, triage item, or webhook does not exist. |
| 429 | rate_limited | Too many requests. Respect the Retry-After header. |
| 5xx | server_error | Something went wrong on our side. Safe to retry with backoff. |