Naming the end user
A namespace’s name is your own id for the end user: 1 to 128 ASCII letters, digits,-, _, ., : and @.
Prefer an opaque id (user_2fQ81) to an email: names appear in webhooks, the dashboard and logs. A namespace is
created at its first use.
Two ways to reach a namespace
- Your backend holds an API key, which reaches every namespace. It names the end user of each request: in the SDK,
rewind.namespace(user.id), which sends the headerRewind-Namespace. A key must name a namespace to start a run; on a read, naming one narrows the answer to it. - The agent acting for one end user holds a token of their namespace. With it the agent, and every script its
model writes, reaches that namespace only: another user’s run answers 404. Your backend mints opaque tokens
(
rewind_nt_…, 1 hour by default, 30 days at most), or signs JWTs itself with a key it registered.
Quotas
Quotas protect your platform, and your bill, from an end user who abuses your product.
You set default limits for every end user, and exceptions for one: more for a paying user,
activeRuns: 0
to block someone. Everything stays under your organization’s ceiling. A refused start answers quota-exceeded
with which quota, its limit, the use and when it frees, in words the model can relay. Crossing 80 % and 100 % of a
limit sends the webhook quota.alert.