Skip to navigation

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. See Rate limits.
  • Plan: Every plan includes A/B testing. It requires an active subscription (active, trialing or past_due); without one every A/B test operation, reads included, is refused with 403 BILLING_ERROR (metadata.kind: subscription_required).

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.

ScopeGET / HEADPOST / PUT / PATCH / DELETEAdmin-only routes
readYesNoNo
writeYesYesNo
fullYesYesYes

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.

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