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

# Run a usage count now

> Triggers an immediate count for every table of the base and returns the resulting totals. Reuses today's run slot, so the result lands where the scheduled count would have.



## OpenAPI

````yaml /openapi.json post /usage/bases/{id}/run
openapi: 3.0.4
info:
  title: Simplified Webhooks Backend
  version: '1.0'
  description: >-
    API for Airtable webhooks, usage (record & attachment-storage counting), and
    change-monitoring audit logs.
  contact:
    name: API Support
    url: https://www.simplified-webhooks.com/contact-us
    email: contact@simplified-webhooks.com
servers:
  - url: https://api.simplified-webhooks.com
    description: Main server
security: []
tags:
  - name: Webhooks
    description: Register, update, and delete delivery webhooks for Airtable changes.
  - name: Usage
    description: >-
      Track daily record counts and attachment storage per Airtable base, and
      read the snapshot time-series.
  - name: Audit Log
    description: >-
      Configure change monitoring that logs every record & schema change into a
      Changes table in your own Airtable base.
paths:
  /usage/bases/{id}/run:
    post:
      tags:
        - Usage
      summary: Run a usage count now
      description: >-
        Triggers an immediate count for every table of the base and returns the
        resulting totals. Reuses today's run slot, so the result lands where the
        scheduled count would have.
      operationId: runUsageBaseNow
      parameters:
        - $ref: '#/components/parameters/UsageBaseId'
      responses:
        '200':
          description: The count completed (fully or partially).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageRunResult'
        '401':
          description: Unauthorized, authentication token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Usage base not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: The count failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  parameters:
    UsageBaseId:
      name: id
      in: path
      required: true
      description: >-
        The usage base id (the row id returned by /usage/bases, not the Airtable
        base id).
      schema:
        type: string
        format: uuid
        example: 8f1d6b2c-3a4e-4c5d-9e6f-0a1b2c3d4e5f
  schemas:
    UsageRunResult:
      type: object
      title: Usage Run Result
      properties:
        status:
          type: string
          enum:
            - success
            - partial
            - failed
          example: success
        tablesProcessed:
          type: integer
          example: 3
        totalRecords:
          type: integer
          example: 4210
        totalAttachmentBytes:
          type: integer
          example: 12582912
        totalFileCount:
          type: integer
          example: 88
        snapshotDate:
          type: string
          format: date
          example: '2026-06-30'
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          example: 'Missing required fields: [tableId, event]'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: API key for authentication.

````