跳转到内容

创建 Agent Business

POST
/api/app/
curl --request POST \
--url https://example.com/api/app/ \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "type": "prompt", "status": "draft", "visibility": "private", "price_cents": 1, "tags": "example" }'

创建由 Prompt 或 Workflow 支持的 Agent Business。

统一的应用序列化器 - 支持创建和详情查看

object
id
必填
string format: uuid
name
必填
string
<= 100 characters
slug
必填
string
/^[-a-zA-Z0-9_]+$/
description
string
type
必填
  • prompt - 提示词应用
  • workflow - 工作流应用
string
允许的值: prompt workflow
type_display
必填
string
status
  • draft - 草稿
  • live - 已上线
  • archived - 已归档
string
允许的值: draft live archived
status_display
必填
string
visibility
  • private - 私有
  • public - 公开
  • embed - 嵌入
string
允许的值: private public embed
visibility_display
必填
string
price_cents
integer
>= -2147483648 <= 2147483647
tags
creator
必填
object
id
必填
string format: uuid
email
必填
string format: email
<= 254 characters
display_name
必填
string
<= 100 characters
plan
  • free - 免费版
  • pro - 专业版
  • enterprise - 企业版
string
允许的值: free pro enterprise
credits
integer
>= -2147483648 <= 2147483647
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
媒体类型application/json

统一的应用序列化器 - 支持创建和详情查看

object
id
必填
string format: uuid
name
必填
string
<= 100 characters
slug
必填
string
/^[-a-zA-Z0-9_]+$/
description
string
type
必填
  • prompt - 提示词应用
  • workflow - 工作流应用
string
允许的值: prompt workflow
type_display
必填
string
status
  • draft - 草稿
  • live - 已上线
  • archived - 已归档
string
允许的值: draft live archived
status_display
必填
string
visibility
  • private - 私有
  • public - 公开
  • embed - 嵌入
string
允许的值: private public embed
visibility_display
必填
string
price_cents
integer
>= -2147483648 <= 2147483647
tags
creator
必填
object
id
必填
string format: uuid
email
必填
string format: email
<= 254 characters
display_name
必填
string
<= 100 characters
plan
  • free - 免费版
  • pro - 专业版
  • enterprise - 企业版
string
允许的值: free pro enterprise
credits
integer
>= -2147483648 <= 2147483647
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
示例
{
"type": "prompt",
"status": "draft",
"visibility": "private",
"creator": {
"plan": "free"
}
}