> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brello.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the latest weekly report

Requires `reports:read`. A `404` means the project has no published snapshot yet.


## OpenAPI

````yaml sdk/openapi.json GET /reports/latest
openapi: 3.1.0
info:
  title: Brello Public API
  version: 1.0.0-beta.3
  description: >-
    Public SDK ingestion, scoped read endpoints, and outgoing signed webhooks.
    Read spend is SDK estimated cost; it is not a complete provider invoice. SDK
    content is not collected.
servers:
  - url: https://api.brello.app/v1
security: []
paths:
  /reports/latest:
    get:
      tags:
        - Reports
      summary: Get the latest completed report
      operationId: getLatestReport
      responses:
        '200':
          description: >-
            Latest report; requires reports:read. Returns 404 until a snapshot
            is generated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/WeeklyReport'
                required:
                  - data
        '400':
          description: Invalid parameters or JSON. Fix the request before retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '401':
          description: Invalid, expired, revoked, or suspended-issuer API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '403':
          description: The API key does not contain the required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '404':
          description: Resource not found in the authenticated project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '413':
          description: Request body exceeds 16,384 bytes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '429':
          description: Rate limit exceeded. Retry after the indicated number of seconds.
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '503':
          description: Temporarily unavailable. Retry with bounded backoff.
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
      security:
        - publicApiKey: []
components:
  schemas:
    WeeklyReport:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        period:
          type: object
          properties:
            from:
              type: string
              format: date
            to:
              type: string
              format: date
            timeZone:
              type: string
              enum:
                - UTC
            endExclusive:
              type: boolean
              enum:
                - true
          required:
            - from
            - to
            - timeZone
            - endExclusive
        createdAt:
          type: string
          format: date-time
        total:
          $ref: '#/components/schemas/PublicCostSummary'
        summary:
          type: string
        url:
          type: string
        pdfUrl:
          type: string
      required:
        - id
        - projectId
        - period
        - createdAt
        - total
        - summary
        - url
        - pdfUrl
    PublicApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
          required:
            - code
            - message
            - requestId
      required:
        - error
    PublicCostSummary:
      type: object
      properties:
        currency:
          type: string
          enum:
            - USD
        costSource:
          type: string
          enum:
            - sdk_estimate
        requestCount:
          type: string
          pattern: ^\d+$
        knownEstimatedCostMicros:
          type: string
          pattern: ^\d+$
        estimatedCostMicros:
          type:
            - string
            - 'null'
          pattern: ^\d+$
        unpricedRequestCount:
          type: string
          pattern: ^\d+$
      required:
        - currency
        - costSource
        - requestCount
        - knownEstimatedCostMicros
        - estimatedCostMicros
        - unpricedRequestCount
  securitySchemes:
    publicApiKey:
      type: http
      scheme: bearer
      bearerFormat: brl_read_<43 Base64URL characters>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.