openapi: 3.2.0 info: title: Temp.md Embedded Preview Platform Usage API version: 0.1.0 description: Versioned partner API for creating and governing previews on behalf of opaque end customers. Application keys are server credentials; browser publishers must use short-lived publish grants. servers: - url: https://api.temp.md tags: - name: Usage paths: /v1/usage: get: operationId: getPlatformUsage summary: Get Application usage rollups description: Publish and storage counters are exact. View and egress fields are reserved for the edge analytics rollup. security: - applicationBearer: [] parameters: - name: from in: query schema: type: string format: date - name: to in: query schema: type: string format: date responses: '200': description: Daily and total usage counters '400': $ref: '#/components/responses/Error' '401': $ref: '#/components/responses/Error' tags: - Usage components: responses: Error: description: Structured error content: application/json: schema: $ref: '#/components/schemas/Error' schemas: Error: type: object required: - error - code properties: error: type: string code: type: string message: type: string request_id: type: string securitySchemes: dashboardBearer: type: http scheme: bearer description: A Temp.md dashboard session or personal account API key. applicationBearer: type: http scheme: bearer bearerFormat: tempmd_app__ description: Server-only Application key with explicit scopes. publishGrantBearer: type: http scheme: bearer bearerFormat: tempmd_grant__ description: Short-lived, one-session delegated publishing authority. reviewBearer: type: http scheme: bearer bearerFormat: tempmd_view__ description: Short-lived viewer capability bound to one frozen review request.