# Get This Month's Usage per Day

`GET /v1/billing/usage/daily`

Every UTC day of this month through today: check hours, the storage
sample, GPU dollars and the day's cost at list price before allowances.

- Base URL: `https://api.qualia.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Responses

- `200` Successful Response: `application/json` `BillingUsageDaily`
- `401` Invalid or missing API key: `application/json` `ErrorResponse`
- `403` The key lacks credits:read or is restricted to workspaces: `application/json` `ErrorResponse`
- `404` Billing is off on this deployment: `application/json` `ErrorResponse`

## Schemas

```yaml
BillingUsageDaily:
  properties:
    account_id:
      type: string
    period_start:
      type: string
      format: date
    period_end:
      type: string
      format: date
    days:
      items:
        $ref: "#/components/schemas/DailyUsage"
      type: array
  type: object
  required:
    - account_id
    - period_start
    - period_end
    - days
  title: BillingUsageDaily
  description: This month's usage per UTC day, from the 1st through today.
DailyUsage:
  properties:
    day:
      type: string
      format: date
    meters:
      $ref: "#/components/schemas/DailyMeters"
    cost_usd:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
      description: At list price, before allowances
    costs:
      $ref: "#/components/schemas/DailyCosts"
  type: object
  required:
    - day
    - meters
    - cost_usd
    - costs
  title: DailyUsage
DailyMeters:
  properties:
    signal_check_hours:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
    deep_check_hours:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
    storage_gb:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
    gpu_usd:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
  type: object
  required:
    - signal_check_hours
    - deep_check_hours
    - storage_gb
    - gpu_usd
  title: DailyMeters
DailyCosts:
  properties:
    signal_check_usd:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
    deep_check_usd:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
    storage_usd:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
    gpu_usd:
      type: string
      pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
  type: object
  required:
    - signal_check_usd
    - deep_check_usd
    - storage_usd
    - gpu_usd
  title: DailyCosts
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
```
