Skip to main content

Access Requests page

The Access Requests page lets any user ask for a new virtual key, wider model access, a seat on a team, a bigger budget or higher rate limits, and lets reviewers approve or reject those requests. An approved request is applied right away under the reviewer's account. The page lives at /ui/access-requests and sits under ACCESS CONTROL in the left nav as Access Requests. The nav item has no role list, so every signed-in role sees it, unless a proxy admin has set the enabled_ui_pages_internal_users UI setting for non-admin users and left access-requests out of it.

The page needs the access_requests license feature. Without it the page shows "Access requests needs a Spanway Enterprise license", names the missing feature as "Access requests", and links to a trial license. The gateway enforces the same feature on every /access_request route. If the Admin UI cannot read the license at all, it fails closed and shows "Access requests is hidden until the license can be checked" with a hint to check that GET /health/license answers.

A real-world scenario​

A developer needs access to a new model for an experiment. Instead of asking in chat, they raise an access request with a short reason. The key belongs to their team, so the team admin sees the request in the review queue, approves it, and the gateway adds the model to the developer's key at once. A request about a key that belongs to no team goes to a proxy admin instead.

Steps​

  1. Open Access Requests under Access Control, or go to /ui/access-requests, and click + New Request.

  2. Pick the request type, fill its fields and a justification, and submit. The API call is in access requests.

  3. A reviewer opens the Review Queue tab and approves or rejects the request. To list pending requests:

    curl "http://localhost:4000/access_request/list?status=pending" -H "Authorization: Bearer $SPANWAY_API_KEY"

Expected result​

The request moves to approved on My Requests, and the change it asked for is applied under the reviewer's account.

A line explains that a proxy admin or the team's admin reviews each request and that the approved change is applied for you. + New Request opens the New Access Request dialog and shows for everyone.

TabShown toWhat it holds
My RequestsEveryoneThe requests you raised. Selected by default.
Review QueueProxy admins, Admin Viewers and team adminsPending requests you may review, or for an Admin Viewer, every pending request to look at.

My Requests tab​

The table is paginated and filtered on the server, newest first, 25 rows per page.

ControlTypeWhat it does
Status filterDropdown"All statuses", or one of Pending, Applying, Approved, Rejected, Cancelled and Expired.
Type filterDropdown"All types", or one of Virtual key, Model access, Team membership, Budget increase and Rate limit increase.
RefreshButtonReloads the list.
ColumnsMenuShows or hides columns.
ColumnMeaning
TypeThe request type.
RequestA one line summary, such as "Join team research as user", "Raise key my-key budget to $50" or "Raise key my-key requests per minute to 600 for 7d".
StatusA status badge. Hover it to see who reviewed the request.
CreatedWhen you raised it.
ResolvedWhen it was approved, rejected or cancelled, or "-".
OutcomeFor an approved request, what was applied, such as the new key, the team you joined, the models, the budget or the rate limits. A temporary raise adds "Until" and its end time, and once it ran out "Old limits restored" with the time, plus "Kept as changed" for any limit someone changed after approval. Otherwise the reviewer's note, or "-".
ActionsCancel on pending requests.
BadgeMeaning
PendingWaiting for a reviewer.
ApplyingA reviewer approved it and the change is being applied.
ApprovedThe change was applied.
RejectedA reviewer turned it down. Nothing changed.
CancelledYou withdrew it.
ExpiredA temporary raise ran out and the gateway put the old limits back.

Cancel opens Cancel this request?, which repeats the request summary and says reviewers will no longer see it. Cancel Request withdraws it and shows "Request cancelled". Keep Request closes the dialog. A cancelled request cannot be reopened, so raise a new one if you change your mind. Only the person who raised a request can cancel it, and only while it is pending.

New Access Request dialog​

The dialog explains that a proxy admin or your team admin reviews the request and applies it. Pick a Request Type first, and the fields below change to match. The hint under the type describes it.

Request TypeHintFields
Virtual key (default)A reviewer creates a new key for you with these models and budget.Models (required, "Choose at least one model"), Max Budget (USD) (required, 0 or more), Budget Resets (placeholder "Never", or hourly, daily, weekly, monthly), Team ("No team (personal key)" or one of your teams) and Key Alias (optional).
Model accessWiden the models one of your keys or your team membership may call.Models (required) and Apply to.
Team membershipAsk to be added to a team that is open to join.Team (required, "Choose a team to join") and Role (Member or Admin). The team list holds only teams open to join that you are not in, and says "No teams are open to join" when there are none.
Budget increaseRaise the max budget on one of your keys, or on a team you administer.New Max Budget (USD) (required, greater than 0), Apply to and Lasts For.
Rate limit increaseRaise how many requests or tokens per minute one of your keys, or a team you administer, may use.New Requests per Minute and New Tokens per Minute (fill in at least one, "Enter a new requests or tokens per minute limit", whole numbers above 0), Apply to and Lasts For.

Lasts For decides whether a budget or rate limit raise is temporary. The help under it reads "Pick a time to make the raise temporary, for example for a load test. When it runs out the gateway puts the old limit back by itself, unless someone changed the limit after approval. Keep the raise to make it permanent." The choices are Keep the raise (the default, the raise stays for good), 1 day, 7 days and 30 days, counted from the approval. Pick a time when you only need more for a test or a busy week, so nobody has to remember to lower the limit again. There is no cost. The only side effect is that the old limit comes back on its own, so traffic that still needs the higher limit gets 429 or budget errors again, and you file a new request. Under New Requests per Minute and New Tokens per Minute the help says to leave the field empty to keep that limit as it is.

Apply to is a choice between One of my keys and A team. With a key, pick it from Key ("Choose one of your keys", placeholder "You have no keys" when you own none). With a team, pick it from Team ("Choose a team"). For a budget or rate limit increase the team list holds only teams you administer, and says "No eligible teams" when there are none. The key list holds the keys you own among your first 100 keys.

Justification is optional, with the placeholder "Why do you need this? Reviewers see this note."

Submit Request sends it and reads "Submitting..." while it runs. On success "Request submitted for review" shows and the dialog closes. The gateway checks the request again, for example that the key is yours, that you are a member of the team, that you are not already in a team you ask to join, that a budget increase is higher than the current budget, and that a rate limit increase raises a limit the key or team already has. Its error shows as a toast if a check fails.

Review Queue tab​

The queue shows pending requests, newest first, 25 rows per page, with a Type filter ("All types"), Refresh and Columns.

ColumnMeaning
RequesterThe user ID of the person who asked.
TypeThe request type.
RequestThe request summary.
JustificationThe requester's note, or "-".
SubmittedWhen it was raised.
ActionsReject and Approve, shown only on requests you may review.

A proxy admin may review every request. A team admin sees and reviews requests that target a team they administer, except a budget or rate limit increase on a team itself, which only a proxy admin can approve, and except their own requests. A team admin's queue leaves out the requests they raised and says "Your own requests are not listed here. Another admin of the team or a proxy admin decides them." The gateway applies the same rule and refuses anyone but a proxy admin who tries to approve their own request.

Approve and Reject open a dialog that shows the requester, type, request and justification, with an optional Review note ("Shown to the requester").

DialogWhat happens
Approve this request?"The change is applied immediately under your account. The requester sees your note." Approve applies the change and shows "Request approved and applied". If the change cannot be applied, an alert titled "Could not apply this request" shows the reason and the request stays pending.
Reject this request?"Nothing changes for the requester. They see your note." Reject marks it rejected and shows "Request rejected". If it fails, an alert titled "Could not reject this request" shows the reason.

Both decisions are final and cannot be undone from this page. An approved change, such as a new key or a team seat, has to be reversed on the page that manages that object. When email is set up on the gateway, the requester gets an email about the decision.

Empty, error and disabled states​

SituationWhat you seeWhat to do
You have no requests"No requests yet" and "Ask for a key, model access, a team seat or more budget."Click + New Request.
Filters match nothing"No matching requests"Change the filters.
Queue is empty"Queue is empty" and "No pending requests need your review."Nothing to do.
Loading"Loading requests…" or "Loading queue…"Wait for the list.
Submit, cancel or review failsThe gateway's error in a toast or alertRead the reason, fix the request, or ask a proxy admin.
No license feature"Access requests needs a Spanway Enterprise license"Add the access_requests feature to the license.

Differences by role and license​

Role or settingEffect on this page
Proxy admin (session role Admin)Sees every request in the queue and can approve or reject any of them.
View-only admin (proxy_admin_viewer)Gets session role Admin Viewer and sees the whole queue with the note "You can view the queue, but only a proxy admin can decide." Approve and Reject are hidden, and the gateway refuses the decision for this role.
Team adminSees the Review Queue with the requests for teams they administer, without their own requests, which another team admin or a proxy admin decides. The queue's row count can include rows that are hidden from them, so a page may show fewer rows than the count suggests.
Everyone elseSees only My Requests.
enabled_ui_pages_internal_usersWhen set without access-requests, non-admin users do not see the nav item.
LicenseThe access_requests feature is required for the page and for every request route. If the license information cannot be read, the page stays hidden until GET /health/license answers.

Errors​

What you seeWhat it meansFix
A card that says the page needs a Spanway Enterprise licenseThe license lacks access_requests.Add the feature.
A toast after Submit Request saying the key is not one you ownThe key was deleted or is not yours.Pick another key from the list.
A toast saying the team is not open to joinThe team is not listed under available_teams.Ask a team admin to add you.
A toast saying the budget does not raise the current oneThe amount is not higher than the key's or team's budget.Enter a higher amount.
A toast saying the rate limit does not raise the current one, or that there is no limit to raiseThe number is not higher than today's limit, or the key or team has no such limit.Enter a higher number, or leave that limit empty.
A toast saying you are already a member of the teamYou are already in that team.Nothing to do.
"Could not apply this request" with the gateway's reasonThe change was refused, for example it is over the team's budget or the reviewer may not change that key. The request stays pending.Fix the limit, or ask a proxy admin to review it.
"Could not reject this request"The request was already decided by someone else, or the reviewer may not review it.Refresh the queue.
A toast after Cancel saying the request is not pendingIt was approved or rejected meanwhile.Refresh My Requests.
A toast saying the request is already being reviewedAnother reviewer is approving the same request.Refresh the queue.
"No requests yet"You have not raised a request.Click + New Request.

The full list of messages, with the status each one answers with, is in access requests.

Logs​

This page writes no log lines of its own. The gateway logs a WARNING when the outcome email to the requester fails, when the approver alert fails, and when a temporary raise ran out but the old limits could not be put back, described in access requests.

Approver alerts​

When alerting is set up, a new request sends an access_request_created notice to Slack, Microsoft Teams or the webhook in general_settings.alerting, so reviewers know to open the Review Queue. See approver alerts.