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

# Upload Usage CSV

> Bulk usage upload across contracts: a CSV with Contract, PID, Date,
Quantity columns, where Contract is the contract number (CTR-…) and PID
references an obligation by its P1…PN position within that contract.
Validation runs synchronously — row errors come back immediately and
nothing is queued — then event creation happens in a background task
tracked by the returned batch job. The import is all-or-nothing.



## OpenAPI

````yaml https://api.meetcampfire.com/api/schema?format=json post /rev/api/v1/usage-events/upload
openapi: 3.0.3
info:
  title: Campfire Developer APIs
  version: 1.0.0
  description: >
    ## Introduction

    Campfire's developer APIs offer granular access to Campfire's core
    accounting,

    revenue recognition, and financial data features.


    These APIs are designed to be used by developers to build custom
    integrations,

    automate workflows, and perform any other programmatic operations.


    ## Rate limits

    API users can make up to **5 requests per second**. This limit is shared
    across

    all endpoints for the same API user. Requests that exceed the limit receive
    a

    `429 Too Many Requests` response. Wait for the number of seconds specified
    in

    the `Retry-After` response header before retrying.
servers:
  - url: https://api.meetcampfire.com
    description: Production server
security: []
tags:
  - name: Cash Management
    description: Operations related to accounts, transactions, and other bank-related data.
  - name: Core Accounting
    description: >-
      Operations related to core accounting data, such as the chart of accounts,
      entity management, and the general ledger.
  - name: Revenue Recognition
    description: >-
      Operations related to revenue recognition, contract management, and
      contract data aggregation.
  - name: Accounts Receivable
    description: Operations related to invoicing and the AR subledger
  - name: Accounts Payable
    description: Operations related to billing and the AP subledger.
  - name: Financial Statements
    description: Operations related to financial statement generation and data aggregation.
  - name: Settings
    description: Operations related to system and accounting settings configuration.
paths:
  /rev/api/v1/usage-events/upload:
    post:
      tags:
        - Revenue
      summary: Upload Usage CSV
      description: |-
        Bulk usage upload across contracts: a CSV with Contract, PID, Date,
        Quantity columns, where Contract is the contract number (CTR-…) and PID
        references an obligation by its P1…PN position within that contract.
        Validation runs synchronously — row errors come back immediately and
        nothing is queued — then event creation happens in a background task
        tracked by the returned batch job. The import is all-or-nothing.
      operationId: rev_api_v1_usage_events_upload_create
      responses:
        '200':
          description: No response body
      security:
        - knoxApiToken: []
components:
  securitySchemes:
    knoxApiToken:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````