跳转到主要内容
POST
/
v1
/
public
/
accounts
/
{account_id}
/
forwarding
创建转发
curl --request POST \
  --url https://api.hybridbox.io/v1/public/accounts/{account_id}/forwarding \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target_email": "jsmith@example.com",
  "domain": "<string>",
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "active": true,
  "created_at": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "scope_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "target_email": "<string>",
  "updated_at": "<string>",
  "verification_required": true,
  "verification_expires_at": "<string>",
  "verification_sent_at": "<string>",
  "verification_verified_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Public API bearer credential sent as Authorization: Bearer <token>. Use either an OAuth access token or a Hybridbox Service account token.

路径参数

account_id
string<uuid>
必填

请求体

application/json

在账户路径范围下创建转发规则的请求。

target_email
string<email>
必填

转发目标电子邮件地址

domain
string | null

转发规则作用域的域 UUID 或域名

workspace_id
string<uuid> | null

转发规则的工作空间 UUID 范围

响应

active
boolean
必填

转发是否活跃

created_at
string
必填

转发规则创建时间戳

id
string<uuid>
必填

转发规则 UUID

scope_id
string<uuid>
必填

转发范围的资源 UUID

scope_type
enum<string>
必填

转发规则的资源范围类型

可用选项:
account,
workspace,
domain
target_email
string
必填

转发目标电子邮件地址

updated_at
string
必填

转发规则最后更新时间戳

verification_required
boolean
必填

是否需要收件人验证

verification_state
enum<string>
必填

收件人验证状态

可用选项:
internal,
pending,
verified,
expired
verification_expires_at
string | null

验证到期时间戳

verification_sent_at
string | null

验证邮件发送时间戳

verification_verified_at
string | null

验证完成时间戳