转发
管理转发规则和转发地址。 示例使用 A2A 代码模式。MCP 通过execute 工具公开相同的代码模式。
函数
forwarding.activate
forwarding.activate.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | PATCH /v1/public/accounts/{account_id}/forwarding/{forwarding_id}/active |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
forwarding_id | str | 是 |
active | bool | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
active | bool | 是 |
created_at | str | 是 |
id | str | 是 |
scope_id | str | 是 |
scope_type | "account" | "workspace" | "domain" | 是 |
target_email | str | 是 |
updated_at | str | 是 |
verification_required | bool | 是 |
verification_state | "internal" | "pending" | "verified" | "expired" | 是 |
verification_expires_at | str | null | 否 |
verification_sent_at | str | null | 否 |
verification_verified_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
forwarding.add
forwarding.add.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | POST /v1/public/accounts/{account_id}/forwarding |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
target_email | str | 是 |
domain | str | null | 否 |
workspace_id | str | null | 否 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
active | bool | 是 |
created_at | str | 是 |
id | str | 是 |
scope_id | str | 是 |
scope_type | "account" | "workspace" | "domain" | 是 |
target_email | str | 是 |
updated_at | str | 是 |
verification_required | bool | 是 |
verification_state | "internal" | "pending" | "verified" | "expired" | 是 |
verification_expires_at | str | null | 否 |
verification_sent_at | str | null | 否 |
verification_verified_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
forwarding.delete
forwarding.delete.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | DELETE /v1/public/accounts/{account_id}/forwarding/{forwarding_id} |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
forwarding_id | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
result | {} | 是 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
forwarding.list
forwarding.list.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.view | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.view |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | GET /v1/public/accounts/{account_id}/forwarding |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
page | int | 否 |
page_size | int | 否 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
items | [{"active": bool, "created_at": str, "id": str, "scope_id": str, "scope_type": "account" | "workspace" | "domain", "target_email": str, "updated_at": str, "verification_required": bool, "verification_state": "internal" | "pending" | "verified" | "expired", "verification_expires_at"?: str | null, "verification_sent_at"?: str | null, "verification_verified_at"?: str | null}] | 是 |
page | int | 是 |
page_size | int | 是 |
total | int | 是 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
forwarding.update
forwarding.update.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | PATCH /v1/public/accounts/{account_id}/forwarding/{forwarding_id} |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
forwarding_id | str | 是 |
target_email | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
active | bool | 是 |
created_at | str | 是 |
id | str | 是 |
scope_id | str | 是 |
scope_type | "account" | "workspace" | "domain" | 是 |
target_email | str | 是 |
updated_at | str | 是 |
verification_required | bool | 是 |
verification_state | "internal" | "pending" | "verified" | "expired" | 是 |
verification_expires_at | str | null | 否 |
verification_sent_at | str | null | 否 |
verification_verified_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
forwarding.verification.confirm
forwarding.verification.confirm.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | POST /v1/public/accounts/{account_id}/forwarding/{forwarding_id}/verification/confirm |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
forwarding_id | str | 是 |
code | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
verified | bool | 是 |
forwarding_id | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
forwarding.verification.send
forwarding.verification.send.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | forwarding.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | forwarding.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | POST /v1/public/accounts/{account_id}/forwarding/{forwarding_id}/verification/send |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
forwarding_id | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
cooldown_seconds | int | 是 |
sent | bool | 是 |
expires_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应: