Vai al contenuto principale
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
}

Autorizzazioni

Richiede un utente di servizio con l’autorizzazione ManageBilling a livello Enterprise.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Query Parameters

after
string | null
first
integer
default:100
Intervallo richiesto: 1 <= x <= 200

Response

Successful Response

items
ConsumptionCycle · object[]
required
end_cursor
string | null

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

has_next_page
boolean
default:false

Whether there are more items available after this page.

total
integer | null

Optional total count (can be omitted for performance).