> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 账户上下文

> 使用顶部栏中的上下文标签设置环境，以及每个 dashboard 页面所反映的账户

**上下文标签**位于 dashboard 顶部栏中，同时包含两项内容：您查看的是 **Live** 还是 **Test** 数据，以及下方页面所涉及的是**您的哪些账户**。每个板块都会读取它，因此您只需设置一次上下文，而无需在每个页面重新筛选。

> [!NOTE]
>
> **账户切换已移至此处**
>
> 账户列表过去位于您的头像后面的菜单中，而环境有其单独的 **Test mode** 开关。现在两者都整合到了上下文标签中。

## 上下文标签显示的内容

上下文标签始终显示环境以及当前范围的摘要，例如 `Whole organization · 24 accounts`、`Latam · 6 accounts` 或 `1 account · Acme Brazil`。

打开它即可更改其中任意一项。

## 选择环境

**Environment** 行用于在 **Live** 和 **Test** 之间切换。一套凭证同时适用于两者，因此切换不会让您退出登录。请参阅[环境](https://docs.y.uno/zh-hans/docs/using-yuno/environments.md)，了解每个环境的用途。

## 选择范围

在上下文标签中，您可以选择：

* **Organization**：您有权访问的所有内容。选择它会清除任何更窄的选择。
* **Groups**：一个或多个[账户组](https://docs.y.uno/zh-hans/docs/using-yuno/organization/account-groups.md)。选择一个组会选中其中的账户，包括之后添加到该组的账户。
* **Accounts**：单个账户，您可以自由组合。

使用 **Search** 按名称查找组或账户，使用 **Recent** 返回您之前使用过的范围。您在选择时，所选内容会暂存，并在您选择 **Apply** 时应用。

如果您总是重复构建相同的选择，**Save current selection as group** 会将其变成一个真正的账户组，下次只需点击一次即可。这会为整个组织创建一个组，而不是私人快捷方式，请参阅[账户组](https://docs.y.uno/zh-hans/docs/using-yuno/organization/account-groups.md)。

## 各板块如何响应

并非每个板块都能同时显示多个账户，因此上下文标签有两种行为方式：

* **对比账户的板块**（例如 Payments）会采用完整的选择。这些账户会以复选框的形式出现在该板块自己的筛选器中，您可以在那里调整它们。
* **一次显示一个账户的板块**（例如 Connections 的部分内容）会在其筛选栏中以标签形式显示该账户。您可以更改是哪个账户，但无法将其移除，因为该页面必须恰好针对一个账户。

无论上下文标签显示什么，某些设置都适用于整个组织。这些页面会显示提示 **Settings apply to your whole organization**，并且上下文标签会变灰，而不是假装缩小这些设置的范围。

> [!NOTE]
>
> **如果您的组织只有一个账户**
>
> 上下文标签仍会显示，但只包含 **Live** 和 **Test**。没有范围选项，因为没有可供选择的内容。

## 相关文档

* [环境](https://docs.y.uno/zh-hans/docs/using-yuno/environments.md)：Live Mode 和 Test Mode 是什么，以及如何获取 Live 访问权限。
* [账户组](https://docs.y.uno/zh-hans/docs/using-yuno/organization/account-groups.md)：组是如何构建的，以及谁可以看到它们。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.