List A/B variants

View as Markdown
Lists the agent's live prompt variants, oldest first, with their raw counters. Deleted variants are not returned. For conversion rates and confidence intervals use `GET /api/agents/{agentId}/ab-tests/results`. Returns an empty list — not `404` — when the agent does not exist in the workspace. **Consistency.** Cached for up to 120 seconds; variant writes through this API clear it immediately, but counters updated by finished calls can take up to 120 seconds to show. **Access** - **Required scope:** `read`. - **Rate limit:** General API — 120 (Starter), 200 (Growth), 300 (Business) or 600 (Enterprise) requests/min per workspace; requests under this path are counted twice against it because two overlapping mounts apply the limiter. See [Rate limits](/rate-limits). - **Plan:** A/B testing is gated by plan feature; every plan includes it today.

Authentication

AuthorizationBearer
Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

Path parameters

agentIdstringRequiredformat: "uuid"

UUID of the agent. An unknown id or one from another workspace returns an empty list; a value that is not a UUID answers 400.

Response

Variants, oldest first.
datalist of objects
Live variants of the agent. Empty when none exist or the agent is unknown.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error