Skip to content
Navigation

getOrgUsage

Read the org's usage this month against what its plan includes: the compute runs started since the 1st, UTC, each a sandbox start for a tool call, a workflow run, a webhook's or mailbox's handler, or a custom CI check, and when the count resets. A run past the plan's runs is refused with ComputeLimitReached. Also the AI and browser use, in millionths of a US dollar: each System One answer's input tokens and each browser's running time, at twice what they cost Forge. Once it reaches what the plan includes, System One requests and new browsers are refused with AiBrowserLimitReached. And the bytes the org's repos store, their attachments and databases, as each repo last reported them a few minutes after it changed; storage never resets, and an attachment upload that would pass the plan's storage is refused with StorageLimitReached. Takes readBilling on the org.

GET
/orgs/{org_id}/usage

Path parameters

  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Returns

200

OrgUsage

JSON
  • plan
    free
    or
    pro
    or
    team
    required
  • unlimited
    boolean
    required
  • resets_at
    string
    required
  • compute_runs
    object
    required
    • used
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • included
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • ai_browser_microdollars
    object
    required
    • used
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • included
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • storage_bytes
    object
    required
    • used
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • included
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

400

InvalidRequest
JSON
  • _tag
    InvalidRequest
    required
  • part
    path
    or
    query
    or
    headers
    or
    body
    required
  • issues
    array of
    object
    required
    • path
      array of
      required

      One of the following:

      • string
      • integer
    • message
      string
      required

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenEncoded
    • _tag
      Forbidden
      required
    • message
      string
      required
  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

OrgNotFound
JSON
  • _tag
    OrgNotFound
    required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure
JSON
  • _tag
    OrgFailure
    required
  • reason
    string
    required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close