Saltar al contenido principal
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
}

Permisos

Requiere un usuario de servicio con el permiso ManageBilling a nivel de Enterprise.

Autorizaciones

Authorization
string
header
requerido

Service User credential (prefix: cog_)

Parámetros de consulta

after
string | null
first
integer
predeterminado:100
Rango requerido: 1 <= x <= 200

Respuesta

Successful Response

items
ConsumptionCycle · object[]
requerido
end_cursor
string | null

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

has_next_page
boolean
predeterminado:false

Whether there are more items available after this page.

total
integer | null

Optional total count (can be omitted for performance).