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

# Get account limits

> > ⚠️ This endpoint is in [public preview](/preview/roadmap#feature-states).

List the limits in effect for your account, with usage where tracked.



## OpenAPI

````yaml /preview/openapi.json get /preview/v2/limits
openapi: 3.1.0
info:
  title: sfc-api
  description: >-
    SF Compute API public-preview routes — subject to change. Prefer the stable
    /v2 routes where a resource has graduated.
  version: 0.1.0
servers:
  - url: https://api.sfcompute.com
security:
  - bearer_auth: []
tags:
  - name: Limits
    description: Account limits and current usage.
  - name: Account
    description: The authenticated account and logged-in user.
  - name: Pools
    description: A bucket of owned compute balance over time.
  - name: Orders
    description: >-
      Place orders targeting a capacity to increase your reserved compute
      balance during some time period.
  - name: Instance Templates
    description: Reusable instance configuration.
  - name: Images
    description: Custom machine images for instances.
  - name: Roles
    description: TOML-based permission role definitions.
  - name: Grants
    description: Bind principals (users or tokens) to roles on a workspace.
  - name: Tokens
    description: Workspace-scoped API tokens.
  - name: Instances
    description: Spin up instances in a capacity to use your available compute.
  - name: Instance SKU Catalog
    description: Browse available instance SKU property definitions.
  - name: VPCs
    description: Isolated networks with routed subnets within one availability zone.
  - name: Subnets
    description: Private networks for instance-to-instance communication within a zone.
  - name: Procurements
    description: Market automations that maintain capacity by placing buy/sell orders.
  - name: Users
    description: Read-only access to users within the caller's organization.
  - name: Workspaces
    description: Resource containers scoped to an account.
  - name: Permissions
    description: Inspect what the caller is allowed to do.
  - name: Billing
    description: Billing profile, contacts, and auto top-up settings.
  - name: Faults
    description: Report problems with your resources.
  - name: InfiniBand Partitions
    description: Isolated InfiniBand networks for groups of instances.
  - name: Orderbook
    description: >-
      Read-only orderbook visibility: bid/ask spread, depth, open and filled
      orders, and historical fills, keyed on hardware requirements + delivery
      window.
  - name: Orders
    description: >-
      Estimate an order before placing it: filled price, fee, and operational
      notices.
paths:
  /preview/v2/limits:
    get:
      tags:
        - Limits
      summary: Get account limits
      description: >-
        > ⚠️ This endpoint is in [public
        preview](/preview/roadmap#feature-states).


        List the limits in effect for your account, with usage where tracked.
      operationId: get_limits
      responses:
        '200':
          description: Successfully retrieved limits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2.GetLimitsResponse'
              example:
                object: list
                has_more: false
                data:
                  - object: limit
                    name: compute_max_total_node_hours
                    scope: {}
                    value: '512.000000'
                    usage: '128.500000'
                  - object: limit
                    name: compute_max_total_node_hours
                    scope:
                      sku: sku_9fK2mQvT
                    value: '64.000000'
                    usage: '8.000000'
                  - object: limit
                    name: max_instances
                    scope: {}
                    value: '64'
                    usage: '12'
                  - object: limit
                    name: credits_max_credit
                    scope: {}
                    value: '10000.000000'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '429':
          description: >-
            Rate limit exceeded. Retry after the interval indicated by the
            rate-limit response headers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitedError'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      security:
        - bearer_auth: []
components:
  schemas:
    v2.GetLimitsResponse:
      type: object
      required:
        - object
        - has_more
        - data
      properties:
        object:
          type: string
          const: list
          default: list
          readOnly: true
        has_more:
          type: boolean
        data:
          type: array
          items:
            $ref: '#/components/schemas/v2.Limit'
    UnauthorizedError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              const: authentication_error
              default: authentication_error
            message:
              type: string
              x-speakeasy-error-message: true
    ForbiddenError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              const: forbidden
              default: forbidden
            message:
              type: string
              x-speakeasy-error-message: true
    RateLimitedError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              const: rate_limited
              default: rate_limited
            message:
              type: string
              x-speakeasy-error-message: true
    InternalServerError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              const: api_error
              default: api_error
            message:
              type: string
              x-speakeasy-error-message: true
    v2.Limit:
      type: object
      description: >-
        A ceiling on what your account can commit to or hold. Limits with the
        same `name` apply together: an account-wide row caps the total, and a
        row narrowed to one SKU caps that SKU within the total. Limits named
        `max_*` cap how many of a resource you hold at once, such as
        `max_instances`, and are always account-wide.
      required:
        - object
        - name
        - scope
      properties:
        object:
          type: string
          const: limit
          default: limit
          readOnly: true
        name:
          type: string
          description: >-
            Which limit this is. The name determines the unit of `value` and
            `usage`.
          examples:
            - compute_max_total_node_hours
            - max_instances
            - credits_max_credit
        scope:
          $ref: '#/components/schemas/v2.LimitScope'
          description: >-
            Where this limit applies. `{}` means it applies account-wide;
            `{"sku": "sku_..."}` means orders on that one SKU.
        value:
          type:
            - string
            - 'null'
          description: >-
            The ceiling, as a decimal string in the unit `name` implies (node
            hours, seconds, dollars, or a count). `null` means unlimited.
        usage:
          type:
            - string
            - 'null'
          description: >-
            How much of `value` your account has used, as a decimal string in
            the unit `name` implies (node hours, seconds, dollars, or a count).
            Omitted when the limit doesn't track usage or usage hasn't been
            measured yet.
    v2.LimitScope:
      type: object
      description: >-
        Where a limit applies. Each key names one way to narrow the limit; its
        value is the one thing the limit is narrowed to. A key that is absent
        places no restriction, so `{}` applies account-wide. Keys not listed
        here may appear as additional string properties when new ways to narrow
        a limit are added.
      properties:
        sku:
          type: string
          description: >-
            The SKU this limit is narrowed to, as a `sku_...` id. Absent means
            the limit applies account-wide.
      additionalProperties:
        type: string
      examples:
        - {}
        - sku: sku_9fK2mQvT
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Create an API token using `sf tokens create` or at
        https://sfcompute.com/dashboard/tokens.

````