Market Brew Usage Reports API

Configured usage reports and report history.

GitHub OpenAPI

Operations 4

GET /api/v1/reports List usage reports visible to the API key #
GET /api/v1/reports/{id} Get a usage report definition #
DELETE /api/v1/reports/{id} Delete a usage report #
GET /api/v1/reports/{id}/history Get usage report history #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/marketbrew-ai:marketbrew-ai-usage-reports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

marketbrew-ai-usage-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Market Brew API Documentation Usage Reports API
  description: REST API reference for Market Brew platform data, content intelligence, and customer workspace endpoints.
  version: '1.0'
servers:
- url: /
tags:
- name: Usage Reports
  description: Configured usage reports and report history.
paths:
  /api/v1/reports:
    get:
      tags:
      - Usage Reports
      summary: List usage reports visible to the API key
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageReportListResponse'
      security:
      - API-Key: []
      operationId: getApiV1Reports
      x-operation-id-source: derived
  /api/v1/reports/{id}:
    get:
      tags:
      - Usage Reports
      summary: Get a usage report definition
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageReportDefinition'
      security:
      - API-Key: []
      operationId: getApiV1ReportsById
      x-operation-id-source: derived
    delete:
      tags:
      - Usage Reports
      summary: Delete a usage report
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
      security:
      - API-Key: []
      operationId: deleteApiV1ReportsById
      x-operation-id-source: derived
  /api/v1/reports/{id}/history:
    get:
      tags:
      - Usage Reports
      summary: Get usage report history
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: crewIds
        in: query
        schema:
          type: string
      - name: endDate
        in: query
        schema:
          type: string
      - name: metricKeys
        in: query
        schema:
          type: string
      - name: scale
        in: query
        schema:
          type: string
      - name: sectionIds
        in: query
        schema:
          type: string
      - name: startDate
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageMetricHistoryResponse'
      security:
      - API-Key: []
      operationId: getApiV1ReportsByIdHistory
      x-operation-id-source: derived
components:
  schemas:
    UsageReportDefinition:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        scopeType:
          type: string
        ownerCustomerId:
          format: int32
          type: integer
        crewIds:
          type: array
          items:
            format: int32
            type: integer
        metricKeys:
          type: array
          items:
            type: string
        emailRecipients:
          type: array
          items:
            type: string
        emailSubject:
          type: string
        weeklyEmailDay:
          format: int32
          type: integer
        weeklyEmailHour:
          format: int32
          type: integer
        defaultReport:
          type: boolean
    UsageMetricHistoryResponse:
      type: object
      properties:
        scopeType:
          type: string
        scopeCustomerId:
          format: int32
          type: integer
        crewIds:
          type: array
          items:
            format: int32
            type: integer
        series:
          type: array
          items:
            $ref: '#/components/schemas/UsageMetricHistorySeries'
    UsageReportListResponse:
      type: object
      properties:
        reports:
          type: array
          items:
            $ref: '#/components/schemas/UsageReportDefinition'
    UsageMetricHistoryPoint:
      type: object
      properties:
        date:
          type: string
        value:
          type: number
    UsageMetricHistorySeries:
      type: object
      properties:
        metricKey:
          type: string
        metricLabel:
          type: string
        total:
          type: number
        daily:
          type: array
          items:
            $ref: '#/components/schemas/UsageMetricHistoryPoint'
        monthly:
          type: array
          items:
            $ref: '#/components/schemas/UsageMetricHistoryPoint'
  securitySchemes:
    API-Key:
      type: apiKey
      description: Market Brew API key. Send this value in the API-Key request header.
      name: API-Key
      in: header
    OAuth2-Bearer:
      type: http
      description: Short-lived Market Brew OAuth access token for the ChatGPT MCP resource.
      scheme: bearer
      bearerFormat: JWT