メインコンテンツへスキップ
GET
/
v3beta1
/
enterprise
/
consumption
/
cycles
消費サイクルを一覧取得
curl --request GET \
  --url https://api.devin.ai/v3beta1/enterprise/consumption/cycles \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "after": 123,
      "before": 123
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

権限

Enterprise レベルで ManageBilling 権限を持つサービスユーザーが必要です。

承認

Authorization
string
header
必須

サービスユーザーの認証情報(接頭辞: cog_)

クエリパラメータ

after
string | null
first
integer
デフォルト:100
必須範囲: 1 <= x <= 200

レスポンス

成功レスポンス

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

次のページを取得するためのカーソル。最後のページの場合は None です。

has_next_page
boolean
デフォルト:false

このページ以降にさらに項目が存在するかどうか。

total
integer | null

任意の合計件数(パフォーマンス向上のため、省略可能)。