Experiment Assign

Return the sticky variant assignment for a subject. Creates one on first call (deterministic hash → variant index), reads the existing row on subsequent calls so the listener never flickers between variants.

Subject hashing:

  • listener_token (when present) → primary key
  • request IP hash (otherwise) → anonymous fallback

Variants are caller-supplied so the same endpoint serves any experiment without server-side config — keeps the framework homegrown and dead-simple.

post/v1/experiments/assign

Request

  • Base URL: https://api.storyflo.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.storyflo.com/v1/experiments/assign
  • Auth: none declared

Request body

experiment_keystring required
variantsstring[] required
listener_tokenstring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.