Skip to main content

Teams page

The Teams page is where you create teams and manage everything a team carries, such as its members, models, budgets, rate limits, guardrails, tool permissions and logging. It lives at /ui/teams and sits under ACCESS CONTROL in the left nav as Teams. The nav item has no role list, so every signed-in role sees it unless a proxy admin has limited internal users to a set of pages with the enabled_ui_pages_internal_users UI setting and left Teams out. What you can do on the page depends on your role, as the role table at the end of this page explains.

Opening a team puts its ID in the URL as /ui/teams?team=<team_id>, so you can bookmark or share a team detail view. The browser back button returns you to the list.

A real-world scenario​

A company gives each product team its own budget and model list. The platform admin creates a search-quality team with a 2,000 dollar monthly budget and three models, adds its lead as team admin, and from then on the lead manages the team's keys and members without asking the platform team.

Steps​

  1. Open Teams under Access Control, or go to /ui/teams, and click Create Team.

  2. Type the Team Name, pick the Models, set Max Budget (USD) to 2000 and Reset Budget to monthly, and click Create Team. The same with the API:

    curl -X POST http://localhost:4000/team/new \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"team_alias": "search-quality", "models": ["gpt-5.5", "claude-sonnet-5-5", "claude-haiku-5-5"], "max_budget": 2000, "budget_duration": "30d"}'
  3. Open the team, select the Members tab, add the lead and give them the admin team role.

    curl -X POST http://localhost:4000/team/member_add \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"team_id": "<team id>", "member": {"role": "admin", "user_email": "lead@example.com"}}'

Expected result​

The team is listed with its budget and models, the lead shows with the crown icon in Members, and keys created on the team can only use its models.

The header shows the title Teams and the description "Manage teams, members, and their access to models and budgets". The header controls hold the Create Team button and the page tabs.

ControlTypeWhat it does
Create TeamButtonOpens the Create Team dialog. Shown only to the session role Admin and to users who are org_admin in at least one organization.
Your TeamsTabThe team list. Selected by default.
Available TeamsTabTeams you can join yourself.
Default Team SettingsTabProxy wide defaults for new teams. Shown only to proxy admins (session role Admin). A view-only admin does not see it.

Your Teams tab​

This tab is a server side paginated table of teams. Proxy admins see every team. Every other role sees only the teams the list endpoint returns for their user ID, which is the set of teams they belong to.

Toolbar​

ControlTypeWhat it does
SearchText boxPlaceholder "Search teams by name or ID…". Matches the team name or the start of the team ID. Typing resets the table to page one.
RefreshButtonReloads the current page of teams.
FiltersButtonOpens the Filters drawer ("Narrow down your teams"). Active filters show as chips in the toolbar.
View optionsButtonShows or hides table columns.
Export CSVButtonDownloads every team that matches the current search, filters and sort as teams_export_<date>.csv. The label reads "Exporting..." while it runs and the button is disabled until it finishes.

The Filters drawer has three fields, and each one narrows the list on the server.

FilterTypeWhat it does
OrganizationSearchable selectPlaceholder "Select an organization…". Shows only teams in that organization.
Team aliasText boxPlaceholder "Enter team alias…". Filters by team name.
Team IDText boxPlaceholder "Enter team ID…". Filters by team ID.

The CSV has these columns, in order. Team Alias, Team ID, Organization ID, Models, Max Budget (USD), Budget Duration, Budget Reset At, Spend (USD), TPM Limit, RPM Limit, Team Member Budget (USD), Team Member Budget Duration, Team Member TPM Limit, Team Member RPM Limit, Members, Keys, Blocked and Created At. The team member columns are filled from each team's member budget. Cells that start with a spreadsheet formula character are escaped so a team name cannot run as a formula when the file is opened.

Columns​

The default sort is Created, newest first. Only Team and Created can be sorted, and sorting happens on the server.

ColumnShown by defaultMeaning
TeamYesThe team name with the team ID under it, or the ID alone if the team has no name. Click it to open the team detail view.
OrganizationYesThe organization name, linked to its detail page, or a dash when the team has no organization.
ResourcesYesThree counters for members, models and keys. Hover a counter for its label.
Spend / BudgetYesSpend so far against the team max budget, as a meter.
CreatedYesCreation date.
MembersNoMember count.
ModelsNoNumber of model entries on the team.
Rate LimitsNoTPM and RPM limits, or "Unlimited".
UpdatedNoLast update date, or "Never".
Row actionsYesThe ... menu described below.

Row actions​

ActionWho sees itWhat it does
Edit teamSession role AdminOpens the team detail view on its Settings tab.
Copy team IDEveryoneCopies the team ID to the clipboard.
Delete teamSession role AdminOpens the Delete Team? confirmation.

Delete Team dialog​

The dialog is titled Delete Team? and asks "Are you sure you want to delete this team, all its keys, and any models created for it? This action cannot be undone." When the team has keys it also shows a warning with the key count. A Team Information block lists the Team ID, Team Name, Keys and Members.

To enable Delete you must type the team name exactly as shown. Cancel closes the dialog without changes. Deleting removes the team, every virtual key that belongs to it and any models created for the team. It cannot be undone from the UI. A record of the deleted team is kept and shows up in the Deleted Teams view described below. On success you see "Team deleted successfully".

Create Team dialog​

The Create Team dialog is a single form. Only Team Name is required for a proxy admin. The collapsible sections are closed when the dialog opens, and fields inside a closed section are not sent, so opening a section and then closing it again discards what you typed there. Closing the dialog clears the whole form.

Main fields​

FieldTypeWhat it does
Team NameTextRequired. Empty shows "Please input a team name".
OrganizationSearchable selectThe organization the team belongs to. Proxy admins can pick any organization or leave it empty, and can clear it. Org admins see only organizations where they are org_admin, the field is required for them (its description reads "required"), and it cannot be cleared. With exactly one such organization it is preselected and locked, with the note "You can only create teams within this organization". With several, an info box says "Please select an organization to create a team for. You can only create teams within organizations where you are an admin." Changing the organization clears the Models field. If an organization stops being pickable while the dialog is open, saving fails with "You can no longer create teams in this organization".
ModelsModel selectModels the team can use. Includes the special options such as all proxy models. When no organization is chosen the list offers every proxy model, otherwise it is limited to the organization's models. Leave it empty to grant no models directly, for example when the team gets its models from access groups.
Max Budget (USD)NumberTeam spend cap, two decimals.
Reset BudgetDropdownHow often the team budget resets. Includes a never resets option. The placeholder shows the default from Default Team Settings when one is set, otherwise "n/a".
Per-Model BudgetsList editorCaps the team's spend on individual models, each with its own reset window. Every key on the team shares the cap unless the key sets its own budget for that model. Use Add Model Budget to add a row. Needs an Enterprise license, otherwise the editor is disabled with "Enterprise feature - Upgrade to set per-model budgets".
Tokens per minute Limit (TPM)NumberTeam TPM limit.
Requests per minute Limit (RPM)NumberTeam RPM limit.
Tokens per day Limit (TPD)NumberDaily token budget for batch submissions on /v1/batches. When set, batch input files count against this 24 hour window instead of the team TPM and RPM limits. Online requests keep using TPM and RPM.
MetadataKey and value rowsFree form metadata. Values are saved as text, so enter JSON for typed values, for example 3, true or {"region": "us"}. When a proxy admin sets general_settings.team_metadata_schema, for example [{key: cost_center, label: Cost center}], those fields appear here as their own rows so every team is created with them. The schema only shapes the form, see the settings reference.

Budgets and rate limits fail closed by default. When the gateway cannot verify a team's spend or its rate limit counters because Redis or the database is unavailable, the team's requests get a 503 instead of passing unchecked. The fail_closed_budget_enforcement and fail_closed_rate_limit_enforcement general settings turn this off, as Redis requirements explains.

Additional Settings section​

FieldTypeWhat it does
Team IDTextA custom team ID. Leave empty to have one generated.
Team Member Budget (USD)NumberDefault budget for each member inside this team.
Default Per-Model BudgetList editorDefault per-model spend cap for each member, each with its own reset window. Needs an Enterprise license.
Team Member Key Duration (eg: 1d, 1mo)TextMaximum lifetime of a team member's key. Format is 30s, 30m, 30h, 30d or 1mo.
Team Member RPM LimitNumberDefault RPM limit for each member.
Team Member TPM LimitNumberDefault TPM limit for each member.
Secret Manager SettingsJSON textSecret manager configuration for the team, for example {"namespace": "admin", "mount": "secret", "path_prefix": "spanway"}. Must be valid JSON. Disabled without an Enterprise license ("Enterprise feature - Upgrade to manage secret manager settings.").
GuardrailsTagsPick existing guardrails or type new names.
Disable Global GuardrailsSwitchProxy admins only. The team bypasses guardrails that run on every request. Disabled without an Enterprise license.
Require Trace IDSwitchProxy admins who are not view-only. Rejects LLM, MCP and agent requests from the team that send no trace ID in the x-spanway-trace-id header. LLM requests can also use traceparent or metadata.trace_id.
PoliciesTagsShown to admin roles that can view policies. Applies guardrail policies to the team.
Access GroupsSelectAccess groups that grant the team models, MCP servers and agents.
Allowed Vector StoresSelectVector stores the team can use. Leave empty for access to all vector stores.
Allowed Pass Through RoutesSelectPass-through routes the team's keys may call. Disabled unless you are a proxy admin with an Enterprise license, and the label tooltip says which of the two is missing.

MCP Settings section​

Allowed MCP Servers picks the MCP servers, MCP access groups and toolsets the team can use. Proxy admins also get an option for all proxy MCP servers. Under it the tool permissions editor lists the tools of each selected server so you can limit the team to some of them. If the server or toolset list cannot load you see "Unable to load MCP servers" or "Unable to load toolsets".

Agent Settings section​

Allowed Agents picks the agents and agent access groups the team can call.

Search Tool Settings section​

Allowed Search Tools restricts which configured search tools keys on the team may call. Leave it empty to allow all search tools.

Skill Settings section​

Allowed Skills grants disabled (private) skills to the team. Enabled skills are visible to every team already.

Server Tool Settings section​

Allowed Server Tools lists gateway-run tools, such as spanway:web_fetch, that keys on the team may use on /chat/completions. A key still needs the same tool granted on the key itself. Only a proxy admin who is not view-only can change it, and everyone else sees "Only a proxy admin can change the server tools granted to a team." The values are only sent when you are such an admin.

Code Graph Settings section​

Code repositories grants Code Graph repositories, connected on the Code Graph page in the team's organization, that keys can read through the spanway_code MCP server. It is an Enterprise feature. Only a proxy admin who is not view-only can change it, and everyone else sees "Only a proxy admin can grant a team code repositories."

Logging Settings section​

Adds per-team logging destinations. Without an Enterprise license the section shows a locked preview and the note "Setting Key/Team logging settings is a Spanway Enterprise feature." with a link to get a trial key.

Stored callback secrets stay tied to the host they were saved with. If you change a destination such as the host of a logging callback, type its secret again in the same save. A save that pairs a stored or masked secret with a new host is refused with a 400 error, so the secret is never sent to the new destination.

Router Settings section​

Per-team router settings with Loadbalancing and Fallbacks tabs, such as routing strategy, retries, allowed failures, cooldown, timeout and fallbacks. Only settings with a value are sent.

Provider Preferences section​

Shown only to proxy admins who are not view-only. Sets default providers, ranking and price caps for the team. Keys and requests can narrow them but never widen them. Invalid preferences stop the save with an error message.

Model Aliases section​

Creates aliases team members can call in API requests in place of a real model name. Use Add New Alias with an alias name and a Target Model, and manage existing ones in the table with Alias Name, Target Model and Actions columns.

Submitting​

Create Team at the bottom sends the form. You see "Creating Team" and then "Team created" on success, and the dialog closes. On failure you see "Error creating the team" with the server's message, and the dialog stays open with your input.

Available Teams tab​

This tab lists teams that are open for self-service joining, sorted by name.

ColumnMeaning
Team NameTeam name. Sortable.
DescriptionTeam description, or "No description available".
MembersMember count, for example "4 members". Sortable.
ModelsModels the team can use.
Row actionsJoin team adds you to the team with the user role.

After you join you see "Successfully joined team" and the row disappears from this tab. If joining fails you see "Failed to join team". When no team is open for joining the table shows "No available teams to join" with a link to the self-serve docs.

Default Team Settings tab​

This tab edits proxy wide defaults stored as default_team_params. Its header reads "These settings will be applied by default when creating new teams." Click Edit Settings to switch the rows to inputs, then Save Changes or Cancel. Cancel throws away your edits. Saving needs STORE_MODEL_IN_DB to be enabled on the gateway, and on success you see "Default team settings updated successfully". Unset values show "Not set".

SettingInputWhat it does
Max BudgetNumber in USD, minimum 0Maximum budget for new automatically created teams.
Budget DurationDropdownHow often the team budget resets.
TPM LimitNumber, minimum 0Tokens per minute across all models.
RPM LimitNumber, minimum 0Requests per minute across all models.
Default OrganizationOrganization dropdownTeams created without an explicit organization are assigned to this organization.
ModelsModel selectThe default model list. The backend applies it only to teams that are created automatically from SSO groups.
Team Member PermissionsMulti selectDefault permissions for members of new teams, picked from key routes such as /key/generate, /key/update, /key/delete, /key/regenerate, /key/block, /key/list and /team/daily/activity. /key/info and /key/health are always included.

Team detail view​

Clicking a team name opens the detail view. The header has Back to Teams, the team name, and the team ID with a copy button. Under it is a row of tabs. Overview, My User and Virtual Keys are always shown. Members, Member Permissions and Settings are shown only when you can edit the team, which means you are a proxy admin, an admin of that team, or the gateway reports that you have edit access to it. Edit team from the list opens straight on Settings, otherwise the view opens on Overview.

Overview tab​

The Overview tab is a grid of read-only cards.

CardWhat it shows
Budget StatusSpend against the max budget ("Unlimited" when none), the reset period, and the team member budget when one is set.
Rate LimitsTPM, RPM and TPD (batch) limits, max parallel requests when set, per-model limits, and the estimated output tokens settings ("Default" when unset).
Request SettingsWhether Require Trace ID is Enabled or Disabled.
ModelsOne badge per model, including models granted through access groups. Hover a badge to see where it comes from. Badges link to the model or access group.
Virtual KeysCounts of user keys, service account keys and the total.
Object permissionsMCP servers, agents and other tools the team may use, including those inherited through access groups.
GuardrailsWhich global guardrails apply, which ones the team opted out of, other guardrails it opted into, and whether the global guardrail kill switch is on.
PoliciesAttached policies and the guardrails each one resolves to, or "No policies configured".
LoggingThe team's logging destinations.

My User tab​

Shows your own membership in this team. The cards show the user and Team Role, Current Cycle Spend (USD) against your member budget with the reset time, Rate Limits for TPM and RPM ("Unlimited" when none), Total Spend (USD) across all budget cycles, and Model Scope, which is either your allowed models or "All Team Models". If you are not a member you see "No membership info available for the current user in this team."

Virtual Keys tab​

A server side paginated table of the team's keys. The search box ("Search by key alias or ID…") matches key alias or ID, and the Filters drawer has User ID and Key ID fields. The default sort is Created At, newest first.

ColumnMeaning
Key IDClick it to open the key detail view inside this tab.
Key AliasKey alias.
Secret KeyThe masked key.
Organization IDThe key's organization, or the team's organization when the key has none.
User Email and User IDThe owning user, linked to the user page.
Created At, Created By, Updated AtCreation and update details.
Last ActiveLast use, or "Unknown".
ExpiresExpiry date, or "Never".
Spend (USD)Spend so far.
Budget (USD)The key's max budget. A user key with no budget of its own shows the team member budget followed by "(team member)". "Unlimited" when there is none.
Budget ResetNext budget reset, or "Never".
ModelsModel badges. An empty list shows All Proxy Models, or No model access when the key is limited to non-model routes. More than three models collapse behind a "+N more models" badge that you can expand.
Rate LimitsTPM and RPM, or "Unlimited".

The key detail view is the same one the Virtual Keys page uses. See Virtual Keys page.

Members tab​

Shows a count such as "3 Members" and a table of members. The search box ("Search by name, email, or user ID") filters client side, and the Filters drawer has a Team Role filter with "All Roles" and each role present.

ColumnMeaning
NameUser alias.
User EmailUser email.
User IDUser ID. The built-in admin shows a "Default Proxy Admin" badge.
Team Roleadmin (crown icon) or user. This role applies only to this team and is independent from the user's proxy-level role.
Model ScopeThe member's allowed models, or "(all team models)".
Current Cycle Spend (USD)Spend in the current budget cycle. This is the value checked against the member budget. It resets to $0 when the window rolls over.
Total Spend (USD)Cumulative spend in this team across cycles. Spend recorded before the gateway tracked member spend is not included.
Team Member Budget (USD)The member budget with a Team default or Custom badge. Team default follows the team member budget. Custom is set on this member only and ignores later team changes. A custom budget shows a Use team default link.
Budget ResetNext budget reset date.
Team Member Rate LimitsRPM and TPM for the member, or "No Limits".
ActionsEdit, reset spend and delete buttons.

Below the table, Add Member opens the Add Team Member dialog.

ActionWhat it does
Edit memberOpens the Edit Member dialog.
Reset spendOpens Reset Team Member Spend, which sets the member's current cycle spend to $0. Total spend and logs are kept. Disabled with "No current cycle spend to reset" when spend is zero, and for a non-proxy-admin acting on their own row with "Ask a proxy admin to reset your own spend". On success you see "Team member spend reset to $0".
Use team defaultOpens Reset Team Member Budget, which removes the member's custom budget and puts them back on the team default. Spend is kept, and later changes to the team member budget apply to them again. On success you see "Team member budget reset to the team default".
Delete memberOpens Delete Team Member, described below. Proxy admins always see it. A team admin does not see it when a proxy admin has turned on disable_team_admin_delete_team_user in the UI settings.

Add Team Member dialog​

An info box says the search only finds users that already exist, so a proxy admin must create a new person's account first. Search for the user by Email or by User ID, then pick a Member Role, either admin ("Can create team keys, add members, and manage settings.") or user ("Can view team info, but not manage it."). The default role is user. Add Member stays disabled until you pick a user. On success you see "Team member added successfully". Making someone a team admin needs an Enterprise license, and without one you see "Assigning admins is an enterprise-only feature. Please upgrade your Spanway plan to enable this."

Edit Member dialog​

FieldWhat it does
Email and User IDIdentify the member. The email must be a valid address.
RoleAdmin or User, with the current role shown next to the label. Required ("Please select a role!").
Team Member Budget (USD)The member's budget in this team, separate from any user-level budget. Saving a value makes the budget Custom.
Budget Reset PeriodHow often the member budget resets. Leave it unset and the budget never resets.
Temporary Budget Increase (USD)Extra budget on top of the member budget until the expiry.
Temporary Budget Expiry (UTC)When the increase stops. You must set both the increase and the expiry, or neither ("Set both a temporary budget increase and its expiry, or neither").
Per-Model BudgetsPer-model spend caps for this member, starting from the team default. Needs an Enterprise license.
Team Member TPM Limit and Team Member RPM LimitThe member's rate limits in this team.
Allowed ModelsModels this member can use in the team. Leave empty to inherit all team models.

Save Changes sends the update and shows "Team member updated successfully".

Delete Team Member dialog​

The dialog warns "Removing team members will also delete any keys created by or created for this member." and asks you to confirm. It lists the User ID, Email and Role. Delete removes the member and those keys and cannot be undone. On success you see "Team member removed successfully".

Member Permissions tab​

Controls what members who are not team admins can do. The table lists each available permission with its Method (GET or POST), Endpoint, Description and an Allow Access checkbox. Examples are generating, updating, deleting, regenerating, blocking and listing the team's keys, assigning access groups to keys, viewing all team usage on /team/daily/activity, and viewing team spend logs on /spend/logs. After you change a checkbox, Reset reloads the saved values and Save Changes stores them ("Permissions updated successfully"). Checkboxes are disabled when you cannot edit the team. When the gateway returns no permissions the tab shows "No permissions available".

Settings tab​

The Settings tab first shows the saved settings read-only, with an Edit Settings button.

The read-only view lists Team Name, Team ID, Created At, Models, Default Member Models, Model Aliases, Rate Limits (including per-model limits and estimated output tokens), Team Budget (max budget, soft budget, reset, per-model budgets with current spend, soft budget alerting emails), Team Member Settings (budget, duration, per-model budgets, key duration, TPM, RPM and budget alert thresholds), Router Settings, Organization ID, Status, object permissions, guardrails, pass-through endpoints, logging and secret manager settings.

Status shows an Active or Blocked badge. Users who can edit the team and are not view-only also get Block team or Unblock team. Blocking asks for confirmation with "Every key in this team is rejected until it is unblocked." Unblocking happens at once. Both can be reversed.

Proxy admins also see Pass-through endpoints this team can call, the custom pass-through endpoints the team's keys reach after the allowed and denied routes are applied. Each one says whether a Spanway key is required. If none are available it explains how to add one under Models + Endpoints on the Pass-Through Endpoints tab.

Logging controls​

At the bottom of the read-only Settings view, a Logging block shows which logging destinations receive this team's request logs on top of the gateway wide ones, and lets you stop them. Use it when a team starts handling sensitive data and its prompts must no longer leave the gateway through a team logging callback.

The block shows Runs on success and Runs on failure, the callbacks that are actually in effect for the team (read from GET /team/{team_id}/callback), or "None". Under them it lists each registered callback by name, or "No callback is registered for this team."

ControlWho sees itWhat it does
Remove followed by the callback name, for example Remove LangfuseUsers who can edit the team and are not view-onlyCalls DELETE /team/{team_id}/callback/{callback_name} and removes that one callback with its stored credentials. The team's other callbacks keep running. Shows "Removed Langfuse from team ml-team".
Disable all loggingSameOpens Disable logging for team ml-team?, which says "Every callback registered for this team stops receiving its requests and the stored callback credentials are removed. Spend tracking keeps working. Re-enabling logging means registering the callbacks again." Disable logging calls POST /team/{team_id}/disable_logging and shows "Logging disabled for team ml-team". Cancel changes nothing.

Steps to stop all team logging:

  1. Open Teams, click the team, then the Settings tab.
  2. Scroll to Logging and click Disable all logging.
  3. Read the confirmation and click Disable logging.

Expected result: the success message appears and Runs on success and Runs on failure read "None". The same from the command line, with an admin key in SPANWAY_API_KEY:

curl -sS -X DELETE "http://localhost:4000/team/ml-team-id/callback/langfuse" \
-H "Authorization: Bearer $SPANWAY_API_KEY"

curl -sS -X POST "http://localhost:4000/team/ml-team-id/disable_logging" \
-H "Authorization: Bearer $SPANWAY_API_KEY"

Team logging needs an Enterprise license with the scoped integrations feature. Without it the block shows a license notice instead of the callbacks. If the effective callbacks cannot be loaded the block says "The effective callbacks could not be loaded." with the reason. A caller who cannot manage the team gets 403 "You do not have access to this team", also when the team id does not exist, so a key cannot probe which teams exist. When audit logs are on (store_audit_logs), each change writes an audit row with the team metadata before and after, with callback secrets redacted.

Full edit form​

Proxy admins, and other users the gateway grants unrestricted edit access, get the full form after Edit Settings.

FieldWhat it does
Team NameRequired.
ModelsThe team's models. Leave empty to grant no models directly, and the team keeps models granted through its access groups.
Model AliasesAlias editor, as in the Create Team dialog.
Max Budget (USD) and Soft Budget (USD)Hard cap and alert threshold.
Soft Budget Alerting EmailsComma separated addresses that get an alert when the soft budget is reached.
Team Member SettingsCollapsible section with defaults for members. Default Model Access (must be a subset of the team's models, empty means every member gets all team models), Default Budget (USD), Default Budget Duration (unset inherits the team reset period), Default Per-Model Budget, Default Key Duration (eg: 1d, 1mo), Default TPM Limit, Default RPM Limit, and Budget Alert Thresholds. Each threshold row takes a whole number percentage from 1 to 100 and optional extra recipients, and duplicates are rejected. The member is always emailed, and email alerting must be configured on the gateway. Fields in this section are sent only while it is open.
Reset BudgetTeam budget reset period. Placeholder "Never resets".
Per-Model BudgetsTeam per-model caps with current usage. Needs an Enterprise license.
Tokens per minute Limit (TPM), Requests per minute Limit (RPM), Tokens per day Limit (TPD)Team rate limits.
MetadataKey and value rows, as in the Create Team dialog.
Model-Specific Rate LimitsRows of model, TPM and RPM. Add Model Limit adds a row. Each row needs a model ("Missing model") and at least one of TPM or RPM ("Set at least one of TPM or RPM"), and a model can appear once ("Duplicate model").
Estimated Output Tokens and Estimated Output Tokens Per ModelOutput tokens reserved for TPM limiting when a request omits max_tokens. The per-model value is JSON such as {"gpt-4": 4096}. Editable only by proxy admins.
Router SettingsPer-team router settings.
GuardrailsGlobal guardrails are checked by default and you uncheck one to opt out. Other guardrails are opt-in.
Disable all global guardrailsProxy admins only. Kill switch that bypasses every global guardrail for the team, including ones added later. Turning it on unchecks and locks the global guardrails in the list.
Require Trace IDProxy admins who are not view-only.
Provider preferencesProxy admins who are not view-only. Defaults for which providers and deployments the team's chat, responses and messages requests may use.
Data policyProxy admins who are not view-only. Require zero data retention, Forbid training on request data, Restrict code traffic to ZDR or self-hosted models, Also scan prompts for code and Allowed regions. Key and organization policies still apply on top.
Allowed IPsProxy admins who are not view-only. Client addresses or CIDR ranges, one per line, allowed to use the team's keys. Key, organization and gateway lists still apply.
PoliciesAdmin roles that can view policies.
Access GroupsAccess groups assigned to the team.
Vector StoresVector stores the team can use.
Allowed Pass Through RoutesProxy admins with an Enterprise license. For anyone else the stored value is kept as is when they save.
MCP Servers / Access Groups and tool permissionsAs in the Create Team dialog. If the MCP inventory cannot load and you set tool permissions, the save is refused with an error. Tool permissions for servers the team no longer has are dropped on save.
Agents / Access GroupsAgents and agent access groups.
Search Tool SettingsCollapsible Allowed Search Tools, sent only while open.
SkillsPrivate skills granted to the team.
Code repositoriesProxy admins who are not view-only.
Server ToolsProxy admins who are not view-only, and only their changes are sent.
OrganizationMoves the team to another organization.
Logging SettingsTeam logging destinations.
Secret Manager SettingsJSON. Disabled without an Enterprise license. Invalid JSON stops the save with "Invalid JSON in secret manager settings".

Cancel leaves the form without saving. Save Changes stores the team and shows "Team settings updated successfully". A failed save shows "Failed to update team settings" with the server's message and keeps the form open.

If you raise or change Default Budget (USD) and some members have a custom budget, a Reset member budgets? dialog asks what to do with them before anything is saved.

ButtonWhat it does
Reset or Reset all to the new amountSaves the team, then moves the custom budgets back to the new default in batches of up to 500 members. If part of it fails you see how many were reset and can use Retry reset.
Keep custom budget or Keep custom budgetsSaves the team and leaves the custom budgets alone.
CancelSaves nothing and returns you to the form.

Team admin edit form​

When a proxy admin lets team admins edit some fields (the Team admin editable fields UI setting), a team admin who opens Edit Settings gets a short form with only those fields. It says "A proxy admin chose which settings team admins can change. Ask a proxy admin to change anything else." The fields can be Tokens per minute Limit (TPM), Requests per minute Limit (RPM) and Max Budget (USD). Unless team admins may also raise the budget, the hint says "You can keep or lower this budget. Ask a proxy admin to raise it." When they may raise it, raises are capped by the organization's budget. Save Changes stays disabled until a value changes.

When team admin editing is turned off on the gateway, Edit Settings shows "Team admins cannot edit team settings on this proxy" with "Ask a proxy admin to enable fields under Settings > UI > Team admin editable fields."

Deleted teams​

Deleted teams are not listed on the Teams page. They appear on the Logs page under the Deleted Teams tab, which admin roles and org admins can see. Without an Enterprise license the tab shows a "Coming soon to Enterprise" notice above the table. The table is read-only and the default sort is Deleted At, newest first.

ColumnMeaning
Team NameName of the deleted team.
Team IDID of the deleted team.
CreatedWhen the team was created. Sortable.
Spend (USD)Spend at deletion time. Sortable.
Budget (USD)Max budget, or "Unlimited".
ModelsThe team's models.
OrganizationOrganization, linked to its page.
Deleted AtWhen it was deleted. Sortable.
Deleted ByWho deleted it, linked to the user page.

A deleted team cannot be restored from the UI. When there are none you see "No deleted teams found" with "Teams deleted from this proxy will show up here."

Empty, error and disabled states​

SituationWhat you seeWhat to do
No team matches the list"No teams found"Clear the search and filters, or create a team.
Opening a team that does not exist or failed to load"Team not found", sometimes with a "Failed to load team information" toastCheck the team ID in the URL, then use Back to Teams.
No teams to join"No available teams to join"A proxy admin must list the team ids under spanway_settings.default_internal_user_params.available_teams in the config file, see self-serve.
Default Team Settings fail to load"No team settings available or you do not have permission to view them."Sign in as a proxy admin and check that the gateway is reachable.
Member permissions fail to load or save"Failed to load permissions" or "Failed to update permissions"Reload and try again.
Pass-through endpoint list fails"The pass-through endpoints could not be loaded."Reload the page.
Your membership is not found"No membership info available for the current user in this team."Join the team or ask a team admin to add you.
Enterprise-only controls without a licenseDisabled controls with "Enterprise feature - Upgrade..." text, a locked logging preview, or the team admin role errorAdd an Enterprise license.
Admin-only controls for other rolesDisabled selectors with "Only a proxy admin can..." textAsk a proxy admin to make the change.

Differences by role and license​

Role or settingEffect on this page
Proxy admin (session role Admin)Sees every team, can create, edit and delete any team, sees Default Team Settings, the global guardrail switches, pass-through routes and endpoints, provider preferences, data policy, allowed IPs, server tools and code repositories.
View-only admin (proxy_admin_viewer)Gets session role Admin Viewer and sees the page under the view-only banner. Create Team, Default Team Settings, the row Edit team and Delete team actions and Block team are hidden, and the team details open without proxy admin edit rights. The gateway blocks writes from this role as well.
Org adminCan open Create Team and must pick one of their organizations. Does not get Edit team or Delete team in the list menu. Can edit a team from its detail view when the gateway grants edit access. Sees deleted teams on the Logs page.
Team adminSees Members, Member Permissions and Settings for teams they administer. Gets the team admin edit form, or a message that editing is off. Cannot delete members when disable_team_admin_delete_team_user is on, because the remove button is hidden and the gateway answers 403 to /team/member_delete and the bulk delete route too, and cannot reset their own spend.
Internal user and internal viewerSee only their own teams, the Available Teams tab, and the Overview, My User and Virtual Keys tabs of a team.
enabled_ui_pages_internal_usersWhen set and Teams is not in the list, non-admin users do not see Teams in the nav.
Enterprise licenseNeeded for per-model budgets, secret manager settings, disabling global guardrails, allowed pass-through routes, team logging settings, assigning the team admin role, code repositories, and the full deleted teams view. The UI reads this from the session, and the gateway enforces the team admin role and other premium fields.

Errors​

What you seeWhat it meansFix
"Please input a team name"The name is empty.Type a name.
team_member_already_in_teamThe user is already a member.Change the member's role instead.
You do not have access to this teamYou are not a proxy admin or an admin of this team.Use the right account.
budget_exceeded on the team's requestsThe team spent its budget.Raise it in the team's Settings tab.
A 503 on the team's requestsThe gateway could not check spend or rate limits because Redis or the database is down, and budgets fail closed.Restore Redis or the database.
404 Team not found, passed team_id=<id>No team has that id. Every team route answers an unknown team this way.Check the id with GET /team/list.
400 Assigning team admins is a premium feature. ...Giving someone the team admin role needs an Enterprise license.Add a license, or add the member with the user role.
403 Removing team members is turned off for team admins on this proxy (disable_team_admin_delete_team_user). Ask a proxy admin to remove the member.A team admin tried to remove a member while the switch is on.Ask a proxy admin, or remove the member in your identity provider.
403 Team admins on this proxy cannot edit team settings. Ask a proxy admin to enable fields under Settings > UI > Team admin editable fields.A team admin saved the team's settings while team admins may edit nothing.Ask a proxy admin to add fields to team_admin_editable_team_fields.
403 Team admins on this proxy do not have permission to update '<field>'. ...A team admin changed a field that is not in team_admin_editable_team_fields.Ask a proxy admin to add that field.
403 Only proxy admin or team admin can modify team models/team/model/add or /team/model/delete came from someone who is neither.Use a proxy admin or team admin account.
400 At least one member is required or Maximum <n> members can be added at onceBulk add got an empty list or too many members.Send between 1 and the maximum, split bigger lists.
400 User not found in teamThe member you tried to remove is not on the team.Refresh the member list.
401 containing Team=<id> is blocked. Update via /team/unblock if you're an admin.A request used a key of a blocked team.Ask a proxy admin to unblock the team.
422 Budget has been exceeded! Team=<id> ...The team spent its budget. The status is 429 when spanway_settings.budget_exceeded_status_code is 429.Raise the team's budget or wait for the reset.

Every team error with its status is also in the error reference.

Remove or change many members over the API​

Two routes change up to 500 members of one team in a single call. They take the same callers as /team/member_delete, proxy admins, the team's admins and admins of the team's organization, and answer errors as RFC 9457 problem documents.

curl -X POST http://localhost:4000/management/v1/teams/team-ds/members/bulk_delete \
-H "Authorization: Bearer $SPANWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"members": [{"user_id": "user-123"}, {"user_email": "ana@example.com"}]}'
{"data": [
{"user_id": "user-123", "user_email": null, "success": true, "error": null},
{"user_id": null, "user_email": "ana@example.com", "success": false, "error": "User not found in team"}
]}

Each row names one member by user_id or user_email. A row that names nobody on the team, or repeats an earlier row, comes back with success: false and an error, and the other rows still apply. Removed members lose the keys they made for the team, and the roster change is written to the audit log. POST /management/v1/teams/{team_id}/members/bulk_update sets per-member budgets in the same way, and the Admin UI uses it to move members onto a new member budget when you change the team's member budget in Settings.

StatusProblem detailFix
403Call not allowed. User not proxy admin OR team admin OR org admin for this team... or the disable_team_admin_delete_team_user messageUse an account that may manage the team.
404Team not found, passed team_id=<id>Check the id.
422An unknown field, an empty list or more than 500 membersFix the body.
503DB not connected. ...Set DATABASE_URL.

Logs​

LevelLineMeaningAction
INFOSuccessfully updated team - <team_id>, infoA team update was saved.None.
WARNINGteam_admin_editable_team_fields must be a list of field names; ignoring <value>The setting is not a list, so team admins can edit nothing.Fix the setting.
WARNINGteam_admin_editable_team_fields ignores unsupported field(s) <names>; supported: <names>Some names in the setting are not supported.Remove them.
INFOSome users are already in team. ...A member add named people who were already on the team, and they were skipped.None.
ERROR/team/member_add: adding user_id=<id> to team failedAdding one member failed with a 500.Check the database, then retry.
WARNINGFailed to write team-callback audit log: <error>A team logging change was saved without its audit row.Check the database.

See the log reference.