Zum Hauptinhalt springen
GET
/
v3beta1
/
enterprise
/
consumption
/
cycles
List 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
}

Berechtigungen

Erfordert einen Servicebenutzer mit der Berechtigung ManageBilling auf Enterprise-Ebene.

Autorisierungen

Authorization
string
header
erforderlich

Service User credential (prefix: cog_)

Abfrageparameter

after
string | null
first
integer
Standard:100
Erforderlicher Bereich: 1 <= x <= 200

Antwort

Successful Response

items
ConsumptionCycle · object[]
erforderlich
end_cursor
string | null

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

has_next_page
boolean
Standard:false

Whether there are more items available after this page.

total
integer | null

Optional total count (can be omitted for performance).