CustomGPT
  1. 来源
CustomGPT
  • 快速入门
  • 错误处理
  • 术语
  • 项目
    • 列出所有项目
      GET
    • 创建一个新项目
      POST
    • 展示某个项目
      GET
    • 更新某个项目
      GET
    • 删除某个项目
      DELETE
    • 获取某个项目的统计数据
      GET
  • 页数
    • 列出属于某个项目的所有页面
      GET
    • 删除属于某个项目的某个页面
      DELETE
    • 重新索引属于某个项目的某个页面
      POST
    • 预览引文中的文件
      GET
  • 页面元数据
    • 获取特定页面的元数据
      GET
    • 更新特定页面的元数据
      PUT
  • 项目设置
    • 获取项目设置
      GET
    • 更新项目设置
      POST
  • 项目插件
    • 显示某个项目插件
      GET
    • 创建一个插件
      POST
    • 更新一个插件
      PUT
  • 对话
    • 列出项目的所有对话
    • 创建一个新对话
    • 更新一个对话
    • 删除对话
    • 检索对话中已发送的消息
    • 向对话发送消息
  • 引文
    • 获取 Open Graph 数据以供引用
  • 来源
    • 列出某个项目的来源
      GET
    • 创建一个新的项目源
      POST
    • 更新项目源设置
      PUT
    • 删除项目源
      DELETE
  • 用户
    • 显示用户的个人资料
    • 更新用户的个人资料
  1. 来源

列出某个项目的来源

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
api/v1/projects/{projectId}/sources
检索与给定项目关联的所有源的列表。此端点提供链接到特定项目的源的集合。来源作为项目的参考或上下文。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.comapi/v1/projects//sources' \
--header 'authorization;'
响应示例响应示例
200 - 成功示例
{
  "status": "success",
  "data": {
    "sitemaps": [
      {
        "id": 1,
        "created_at": "2021-01-01 00:00:00",
        "updated_at": "2021-01-01 00:00:00",
        "type": "sitemap",
        "settings": {
          "executive_js": true,
          "data_refresh_frequency": "never",
          "create_new_pages": true,
          "remove_unexist_pages": false,
          "refresh_existing_pages": "never",
          "sitemap_path": "https://example.com/sitemap.xml"
        },
        "pages": [
          {
            "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"
          }
        ]
      }
    ],
    "uploads": {
      "id": 1,
      "created_at": "2021-01-01 00:00:00",
      "updated_at": "2021-01-01 00:00:00",
      "type": "sitemap",
      "settings": {
        "executive_js": true,
        "data_refresh_frequency": "never",
        "create_new_pages": true,
        "remove_unexist_pages": false,
        "refresh_existing_pages": "never",
        "sitemap_path": "https://example.com/sitemap.xml"
      },
      "pages": [
        {
          "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"
        }
      ]
    }
  }
}

请求参数

Path 参数
projectId
string 
必需
项目的唯一标识符。
Header 参数
authorization
string 
必需
Bearer Your_API_KEY

返回响应

🟢200成功
application/json
Body
status
string 
必需
data
object 
必需
sitemaps
array [object {6}] 
必需
uploads
object 
必需
🟠401没有权限
🔴500服务器错误
修改于 2024-02-22 05:55:10
上一页
获取 Open Graph 数据以供引用
下一页
创建一个新的项目源
Built with