跳到主要内容
开发者文档API 参考项目

列出项目

您组织的项目(即应用中的装载方案),按创建时间倒序分页返回。

GEThttps://runner.cargoduo.com/v1/projects

免费,不扣积分。

认证

Bearer API 密钥 · 所需权限范围resources:read了解更多

查询参数

名称类型必填说明
limitinteger
integer
否

每页条数。

默认值 201–100
cursorstring
string
否

上一页返回的 next_cursor。

qstring
string
否

仅返回名称包含此文本的项目。

created_bystring
string
否

仅返回该成员创建的记录:me(密钥的创建者)或成员 ID(usr_…)。

请求示例

curl -X GET "https://runner.cargoduo.com/v1/projects?limit=2&created_by=me" \
  -H "Authorization: Bearer $CARGODUO_API_KEY"

响应示例

200 OK · ProjectList
{
  "data": [
    {
      "id": "prj_3051",
      "object": "project",
      "name": "Order 1042",
      "status": "calculated",
      "item_count": 58,
      "vehicle_count": 1,
      "app_url": "https://app.cargoduo.com/projects/3051",
      "created_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "updated_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "created_at": "2026-10-19T09:10:03Z",
      "updated_at": "2026-10-19T09:12:07Z"
    },
    {
      "id": "prj_3048",
      "object": "project",
      "name": "Order 1039",
      "status": "draft",
      "item_count": 24,
      "vehicle_count": 1,
      "app_url": "https://app.cargoduo.com/projects/3048",
      "created_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "updated_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "created_at": "2026-10-17T07:12:03Z",
      "updated_at": "2026-10-17T07:12:03Z"
    }
  ],
  "next_cursor": "prj_3048"
}

响应

  • 200OK一页项目。
    名称类型必填说明
    dataProjectSummary[]
    ProjectSummary[]
    否

    按创建时间倒序。

    next_cursorstring
    string
    否

    作为 ?cursor= 传入以获取下一页;最后一页为空。

  • 401Unauthorizedunauthorizedkey_revokedkey_expired
    • unauthorizedAPI 密钥缺失、格式错误或无法识别。
    • key_revoked密钥已被撤销。
    • key_expired密钥已过期。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 403Forbiddenip_not_allowedsubscription_inactiveaccount_inactivescope_missing
    • ip_not_allowed调用方 IP 不在该密钥的 IP 白名单中。
    • subscription_inactive组织没有包含 API 的有效订阅。
    • account_inactive组织已被暂停使用,或其所有者的账户均未处于有效状态。
    • scope_missing密钥缺少此接口所需的权限范围。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 422Unprocessable entityvalidation_failed
    • validation_failed请求是格式正确的 JSON,但描述的任务无效。details[] 列出了所有问题。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 429Too many requestsrate_limited
    • rate_limited当前分钟、小时或天内的请求过多(按密钥或按组织计),或您的 IP 地址每分钟认证失败超过 60 次。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 500Internal server errorinternal_error
    • internal_error服务端发生内部错误。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 503Service unavailableapi_disabled
    • api_disabledAPI 暂时停用(维护中),或已对该组织关闭。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码