メインコンテンツへスキップ
GET
/
v3beta1
/
organizations
/
{org_id}
/
sessions
List Sessions
curl --request GET \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/sessions \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "acus_consumed": 123,
      "created_at": 123,
      "org_id": "<string>",
      "pull_requests": [
        {
          "pr_state": "<string>",
          "pr_url": "<string>"
        }
      ],
      "session_id": "<string>",
      "status": "new",
      "tags": [
        "<string>"
      ],
      "updated_at": 123,
      "url": "<string>",
      "child_session_ids": [
        "<string>"
      ],
      "is_advanced": false,
      "is_archived": false,
      "parent_session_id": "<string>",
      "title": "<string>",
      "user_id": "<string>"
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

権限

組織レベルで ViewOrgSessions 権限が付与されたサービスユーザーが必要です。

承認

Authorization
string
header
必須

Service User credential (prefix: cog_)

クエリパラメータ

after
string | null
first
integer
デフォルト:100
必須範囲: 1 <= x <= 200
session_ids
string[] | null
created_after
integer | null
created_before
integer | null
updated_after
integer | null
updated_before
integer | null
tags
string[] | null

レスポンス

Successful Response

items
SessionResponse · object[]
必須
end_cursor
string | null

Cursor to fetch the next page, or None if this is the last page.

has_next_page
boolean
デフォルト:false

Whether there are more items available after this page.

total
integer | null

Optional total count (can be omitted for performance).