创建组织
POST
/v2/orgs新建租户组织,创建者自动成为 owner。
Bearer Token orgs:write api.demo.acme-cloud.dev
请求体
application/jsonname 必填 string
组织名称,2–64 字符
slug 可选 string
URL 友好的唯一标识,省略则由名称自动生成
plan 可选 string · 默认 free
套餐档位
可选值
freeteamenterpriseregion 可选 string · 默认 ap-east-1
数据驻留区域
可选值
ap-east-1ap-southeast-1eu-central-1响应
3 种状态201 Created
响应示例
{
"id": "org_31b8",
"name": "Acme 华东区",
"slug": "acme-east",
"plan": "team",
"region": "ap-east-1",
"member_count": 1,
"created_at": "2026-10-16T07:24:41Z"
}代码示例
cURL
curl -i -X POST 'https://api.demo.acme-cloud.dev/v2/orgs' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Acme 华东区",
"plan": "team",
"region": "ap-east-1"
}'