跳转到主要内容
POST
/
interface
/
group-create
创建组
curl --request POST \
  --url https://powertokens.ai/api/interface/group-create \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form email=hua20128@gmail.com \
  --form login_style=google
{
  "code": 200,
  "data": {
    "assets": [
      {
        "id": 170,
        "file_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260604100607/f4412571fac9b4f33d8de3ef315d5be9.jpg",
        "name": "5308ce78897416214ab5bdc640716fb7.jpg",
        "ext": ".jpg",
        "file_size": 657139,
        "duration": 0
      }
    ],
    "group_id": "group-20260604100609-xbxss",
    "group_name": "5308ce78897416214ab5bdc640716fb7.jpg_group"
  },
  "msg": ""
}

请求头

Internal-Asset-Key
string

请求体

multipart/form-data
file
file
必填

文件

email
string
必填

邮箱

示例:

"hua20128@gmail.com"

login_style
string
必填

登录方式 google与github

示例:

"google"

响应

200 - application/json
code
integer
必填
data
object
必填
msg
string
必填