メインコンテンツへスキップ
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

総件数(任意。パフォーマンス上の理由から省略される場合があります)。