Asking
The queue’s key is the key of the feature’s flag, in the same environment. A queue with no flag behind it answers404 unknown_waitlist — deliberately:
the flag is what grants the feature (see Actually turning the feature
on), so a queue without one would be a list
nobody could act on. It is also what keeps the key from being free text written
by anybody holding a contact session.
Create the flag switched off before you open the requests: that is exactly what
it is born as.
cancel() takes the request back — and is refused with 409 already_admitted
once access was granted, because taking access away is your act, in the panel,
and not this endpoint’s.
The queue shows up in the panel from the first request, under Waitlist, in
the queue selector — the panel lists the queues that have people in them, not
the flags that exist.
Letting people in
label is the feature’s
name in the announcement email; without it the message falls back to the
queue’s key. "notify": false turns the announcement off, for when your own
product announces the access.
Actually turning the feature on
Admitting switches nothing on by itself — your flag does, pointed at a segment of the people who were let in:1
A segment
Under Segments, one condition: admitted to
beta-checkout.2
A flag pointing at it
Under Feature flags, the
beta-checkout flag with that segment as its
audience.3
Your code reads the flag
useFlag("beta-checkout") — like any other. Each admitted person joins the
audience within seconds, because admission publishes a fact per person.Somebody who never asked is not waiting. Both segment conditions — admitted
to and waiting in — are positive, and a person with no request matches
neither. “Everybody except the admitted” is already what the flag is when it is
off.