> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api/cloudeka-backend/monthly-cost-history-by-weekly.md).

# Monthly Cost History by Weekly

This API is used to get the monthly costs history by weekly

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"Cloudeka Backend","description":"API endpoints for Cloudeka Backend (base: /core)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_backend__handler.SuccessRespond":{"type":"object","properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"}}},"ai_backend__billing.BillingHistoryDebitWeeklyResp":{"type":"object","properties":{"chart":{"$ref":"#/components/schemas/ai_backend__billing.ChartBar"}}},"ai_backend__billing.ChartBar":{"type":"object","properties":{"datasets":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__billing.Dataset"}},"labels":{"type":"array","items":{"type":"string"}}}},"ai_backend__billing.Dataset":{"type":"object","properties":{"data":{"type":"array","items":{"type":"integer"}}}},"ai_backend__requests.HistoryBillingParam":{"type":"object","properties":{"end":{"type":"string"},"project_id":{"type":"string"},"start":{"type":"string"}}}}},"paths":{"/core/billing/monthly-cost/weekly-history":{"post":{"description":"This API is used to get the monthly costs history by weekly","tags":["Cloudeka Backend","Billing"],"summary":"Monthly Cost History by Weekly","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"},{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ai_backend__billing.BillingHistoryDebitWeeklyResp"}}}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__requests.HistoryBillingParam"}}},"description":"Monthly Cost Weekly History Payload","required":true}}}}}
```
