跳转到主要内容
GET
/
v2
/
enterprise
/
consumption
/
cycles
curl -X GET "https://api.devin.ai/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"
  }
]
返回一个列表,包含自企业创建以来至今的所有计费周期。

响应

返回一个计费周期对象数组,每个对象包含:
start
string
required
计费周期的开始日期和时间
end
string
required
计费周期的结束日期和时间
curl -X GET "https://api.devin.ai/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"
  }
]