跳转到主要内容
GET
/
v3beta1
/
organizations
/
{org_id}
/
schedules
列出计划
curl --request GET \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/schedules \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "agent": "devin",
      "consecutive_failures": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "created_by": "<string>",
      "enabled": true,
      "frequency": "<string>",
      "last_error_at": "2023-11-07T05:31:56Z",
      "last_error_message": "<string>",
      "last_executed_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "notify_on": "always",
      "org_id": "<string>",
      "playbook": {
        "playbook_id": "<string>",
        "title": "<string>"
      },
      "prompt": "<string>",
      "scheduled_session_id": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

权限

需要一个在组织级别具有 ManageOrgSchedules 权限的服务用户。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

查询参数

limit
integer
默认值:50
必填范围: 1 <= x <= 100
offset
integer
默认值:0
必填范围: x >= 0

响应

成功响应

items
ScheduleResponse · object[]
必填
end_cursor
string | null

用于获取下一页结果的游标;如果是最后一页,则为 None。

has_next_page
boolean
默认值:false

当前页之后是否还有更多条目。

total
integer | null

可选的总记录数(可为提升性能而省略)。