列出属于某个项目的所有页面
开发环境
开发环境
GET
api/v1/projects/{projectId}/pages
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.comapi/v1/projects//pages?page=1&duration=90&order=desc' \
--header 'authorization;'
响应示例响应示例
200 - 成功示例
{
"status": "success",
"data": {
"project": {
"id": 1,
"project_name": "My Project",
"sitemap_path": "https://www.example.com/sitemap.xml",
"is_chat_active": true,
"user_id": 1,
"team_id": 1,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00",
"type": "SITEMAP",
"is_shared": true,
"shareable_slug": "1234567890abcdef1234567890abcdef",
"shareable_link": "string",
"embed_code": "string",
"live_chat_code": "string"
},
"pages": {
"current_page": 1,
"data": [
{
"id": 1,
"page_url": "https://example.com",
"page_url_hash": "d41d8cd98f00b204e9800998ecf8427e",
"project_id": 1,
"s3_path": "project-1/page-1/file.pdf",
"crawl_status": "queued",
"index_status": "queued",
"is_file": true,
"is_file_kept": true,
"filename": "file.pdf",
"filesize": 100,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00"
}
],
"first_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"next_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"path": "https://app.customgpt.ai/api/v1/users?page=1",
"per_page": 10,
"prev_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"to": 1,
"total": 1
}
}
}
请求参数
Path 参数
projectId
string
必需
Query 参数
page
string
返回的页码
示例值:
1
duration
string
可选
示例值:
90
order
string
可选
示例值:
desc
Header 参数
authorization
string
必需
返回响应
修改于 2024-02-22 03:40:18