跳到主要内容

产品 API

通过 API 以编程方式管理产品。


产品列表

GET /api/v2/products

响应

{
"data": [
{
"id": 1,
"name": "Acme Pro Dashboard",
"slug": "acme-pro-dashboard",
"description": "Enterprise analytics dashboard",
"type": "web_app",
"category": "Analytics",
"is_active": true,
"created_at": "2024-01-15T00:00:00Z"
}
]
}

创建产品

POST /api/v2/products

请求体

{
"name": "Acme Mobile App",
"description": "Our iOS and Android mobile application",
"type": "mobile_app",
"category": "Mobile",
"is_active": true
}

后续步骤