GET
/
api
/
v2
/
enterprise
/
consumption
/
cycles
curl -X GET "https://api.devin.ai/api/v2/enterprise/consumption/cycles" \
  -H "Authorization: Bearer YOUR_API_KEY"
[
  {
    "start": "2024-01-01T00:00:00Z",
    "end": "2024-01-31T23:59:59Z"
  },
  {
    "start": "2024-02-01T00:00:00Z",
    "end": "2024-02-29T23:59:59Z"
  },
  {
    "start": "2024-03-01T00:00:00Z",
    "end": "2024-03-31T23:59:59Z"
  }
]

Returns a list of all billing cycles for your enterprise from inception until today.

Response

Returns an array of billing cycle objects, each containing:

start
string
required

The start date and time of the billing cycle

end
string
required

The end date and time of the billing cycle

curl -X GET "https://api.devin.ai/api/v2/enterprise/consumption/cycles" \
  -H "Authorization: Bearer YOUR_API_KEY"
[
  {
    "start": "2024-01-01T00:00:00Z",
    "end": "2024-01-31T23:59:59Z"
  },
  {
    "start": "2024-02-01T00:00:00Z",
    "end": "2024-02-29T23:59:59Z"
  },
  {
    "start": "2024-03-01T00:00:00Z",
    "end": "2024-03-31T23:59:59Z"
  }
]