API Reference
Primary worker endpoints used by Instalytics frontend.
/auth/login PublicAuthenticate user and create session.
Request body
{ email: string, password: string } Response
200 { ok: true, user }/auth/logout Cookie sessionRevoke current session.
Response
200 { ok: true }/auth/session Cookie sessionSession envelope for client auth guard.
Response
200/401/500 normalized envelope
/ai/query Cookie sessionStreams AI answer + artifacts for a dashboard question or Videocontrol planning request.
Request body
{ message(max 32000 chars), mode, llm_model?, session_id?, history?, product_facts? } Response
NDJSON/SSE-style stream with status, token, tool_call, tool_result, artifact, source, done. Videocontrol can emit timeline, shotlist, or storyboard artifacts.
/dashboard Cookie sessionList dashboards with pagination.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| page | number | no | Page index |
| limit | number | no | Page size |
| offset | number | no | Absolute offset override |
Response
Paginated list envelope
