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

# Get Account resources

> Read current Memory and Storage usage, entitlement status, expiry and retention deadline. When present, recommended_first_computer_ram_mib suggests a size for a first persistent Computer based on available Memory; creation still requires an explicit request. Check that status is active before starting new work, and check expires_at before a long task. network_entitlement is present only for active entitlement. Its class is the desired Plan class; running Machines may still use a different effective network policy. The next Start after all Account Machines stop can apply the new class. Use the returned bandwidth and Guest Internet RX+TX Fair Use limits. An unentitled Account with no assets has zero limits and usage. For a positive Storage limit, used >= storage_limit_bytes yields over_limit and cleanup_or_upgrade. Stop does not release Storage. Check reported usage after Delete or reclaim; retained data can keep it unchanged. A missing Memory or Storage observation returns UNKNOWN. network contains a recent verified network reading; its absence means Network usage and rate are unknown while other resource fields remain available. machine_counts reports retained, reserved, pending, occupied and observed resident Machines by kind. For active plans with a retained Computer limit, machine_count_constraints reports kind computer, scope retained and source entitlement. Its used value counts all retained Computers, including stopped and pending Computers. Sandboxes have separate eligibility and resource limits. Legacy Computer or Snapshot assets that cannot be included in current resource accounting also cause UNKNOWN. Upgrading alone does not resolve such an accounting limitation; access to the original assets, Start/Stop, Memory Resize and explicit deletion remain available, subject to their normal requirements.



## OpenAPI

````yaml /openapi.json get /v1/resources
openapi: 3.0.3
info:
  title: Deepest Core V1
  version: 0.4.0
  description: >-
    Deepest provides persistent Linux Computers and temporary Sandboxes that
    share Account resources. Create and Resize select Memory; CPU is shared
    across the Account, and Storage covers retained data and snapshots. A
    verified Human session and an Agent API Key access the same Account through
    this API. Signing in alone grants no compute entitlement. Only Human
    sessions can manage Agent API Keys, redeem Invites, or confirm human
    assistance. The operations below cover Machine lifecycle, commands, Tools,
    SSH, Private Preview, Share, Desktop, human assistance, resources and Vault
    Secrets.
servers:
  - url: https://console.deepest.dev
    description: >-
      Hosted Deepest Control API (use your configured control origin for custom
      deployments)
security:
  - accountKey: []
  - clerkSession: []
tags:
  - name: Account Resources
    x-displayName: Account & Resources
    description: >-
      Observe Account entitlement, Memory, shared CPU, Storage, Machine counts,
      and network policy.
  - name: Invitations
    description: Redeem human-session Beta invitations to activate Account entitlement.
  - name: Agent Keys
    description: Create, list, and revoke Account-wide Agent API Keys from a Human session.
  - name: Computers
    description: >-
      Create, observe, start, stop, resize, clone, run commands on, and delete
      persistent Linux Computers.
  - name: Snapshots and Storage
    x-displayName: Snapshots & Storage
    description: >-
      Create, inspect, restore, and delete disk-only Computer snapshots, and
      reclaim reusable storage.
  - name: SSH
    description: Manage per-Computer SSH public keys and retrieve the current SSH endpoint.
  - name: Preview and Share
    x-displayName: Preview & Share
    description: >-
      Expose Guest HTTP/WebSocket ports via Private Preview or 24-hour anonymous
      Share links.
  - name: Desktop and Assistance
    x-displayName: Desktop & Assistance
    description: >-
      Prepare and open a Computer Desktop Viewer and coordinate cooperative
      human assistance.
  - name: Agent Tools
    description: >-
      Read the tools catalog and inspect or install supported Coding Agents on a
      Computer.
  - name: Sandboxes
    description: >-
      Manage temporary 24-hour headless Sandboxes, command execution, and idle
      auto-stop policy.
  - name: Vault and Secrets
    x-displayName: Vault & Secrets
    description: >-
      Store encrypted Account Secrets and grant or revoke exact-host HTTPS
      substitution per Machine.
paths:
  /v1/resources:
    get:
      tags:
        - Account Resources
      summary: Get Account resources
      description: >-
        Read current Memory and Storage usage, entitlement status, expiry and
        retention deadline. When present, recommended_first_computer_ram_mib
        suggests a size for a first persistent Computer based on available
        Memory; creation still requires an explicit request. Check that status
        is active before starting new work, and check expires_at before a long
        task. network_entitlement is present only for active entitlement. Its
        class is the desired Plan class; running Machines may still use a
        different effective network policy. The next Start after all Account
        Machines stop can apply the new class. Use the returned bandwidth and
        Guest Internet RX+TX Fair Use limits. An unentitled Account with no
        assets has zero limits and usage. For a positive Storage limit, used >=
        storage_limit_bytes yields over_limit and cleanup_or_upgrade. Stop does
        not release Storage. Check reported usage after Delete or reclaim;
        retained data can keep it unchanged. A missing Memory or Storage
        observation returns UNKNOWN. network contains a recent verified network
        reading; its absence means Network usage and rate are unknown while
        other resource fields remain available. machine_counts reports retained,
        reserved, pending, occupied and observed resident Machines by kind. For
        active plans with a retained Computer limit, machine_count_constraints
        reports kind computer, scope retained and source entitlement. Its used
        value counts all retained Computers, including stopped and pending
        Computers. Sandboxes have separate eligibility and resource limits.
        Legacy Computer or Snapshot assets that cannot be included in current
        resource accounting also cause UNKNOWN. Upgrading alone does not resolve
        such an accounting limitation; access to the original assets,
        Start/Stop, Memory Resize and explicit deletion remain available,
        subject to their normal requirements.
      operationId: resourcesGet
      parameters: []
      responses:
        '200':
          description: A completed product action or observation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceViewResult'
        default:
          description: >-
            A machine-readable failure. Failure is never HTTP 200. UNKNOWN
            requires query-first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
components:
  schemas:
    ResourceViewResult:
      type: object
      additionalProperties: false
      required:
        - ok
        - resource_id
        - retry
        - result
      properties:
        ok:
          type: boolean
          enum:
            - true
        resource_id:
          type: string
        retry:
          type: string
          enum:
            - safe
        result:
          $ref: '#/components/schemas/ResourceView'
    Failure:
      type: object
      additionalProperties: false
      required:
        - ok
        - resource_id
        - retry
        - error
      properties:
        ok:
          type: boolean
          enum:
            - false
        resource_id:
          type: string
        retry:
          $ref: '#/components/schemas/Retry'
        error:
          $ref: '#/components/schemas/ErrorBody'
    ResourceView:
      type: object
      additionalProperties: false
      required:
        - account_id
        - entitlement
        - ram_limit_mib
        - ram_used_mib
        - shared_cpus
        - sandbox_enabled
        - storage_limit_bytes
        - storage_used_bytes
        - storage_status
        - storage_advice
      properties:
        account_id:
          type: string
        entitlement:
          $ref: '#/components/schemas/EntitlementView'
        ram_limit_mib:
          type: integer
          format: uint32
          minimum: 0
          maximum: 4294967295
        ram_used_mib:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        recommended_first_computer_ram_mib:
          type: integer
          format: uint32
          minimum: 256
          maximum: 4096
          multipleOf: 256
          description: >-
            Advisory Memory for the first persistent Computer. Present only with
            active entitlement, no existing Computers or in-progress Computer
            creation requests, and at least 256 MiB of available Memory. Uses
            half the Pool up to 4096 MiB, bounded by current available Memory
            and rounded down in 256 MiB units, with a 256 MiB minimum. Callers
            can explicitly use the full available Pool.
        shared_cpus:
          type: integer
          format: uint32
          minimum: 0
          maximum: 255
        sandbox_enabled:
          type: boolean
          description: >-
            Whether this Account entitlement permits Sandbox creation. Existing
            Sandbox state is still governed by expires_at and lifecycle rules.
        network_entitlement:
          $ref: '#/components/schemas/NetworkEntitlement'
          description: Present only while the Account has an active entitlement.
        network:
          $ref: '#/components/schemas/AccountNetworkView'
        machine_counts:
          $ref: '#/components/schemas/MachineCountView'
        machine_count_constraints:
          type: array
          items:
            $ref: '#/components/schemas/MachineCountConstraint'
          description: >-
            An active entitlement with a retained Computer limit supplies a
            computer constraint with retained scope and entitlement source. The
            used value counts stopped, reserved, and pending Computers until
            Delete removes their product rows. An empty array indicates no
            applicable numeric constraint is reported. Memory, Storage, Sandbox
            eligibility and available platform capacity still apply.
        storage_limit_bytes:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        storage_used_bytes:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        storage_status:
          $ref: '#/components/schemas/StorageStatus'
        storage_advice:
          $ref: '#/components/schemas/StorageAdvice'
      description: >-
        Account entitlements and current usage. A newly registered unentitled
        Account has zero shared_cpus, Memory and Storage limits, no Sandbox
        entitlement and no active network entitlement. Memory sums Starting,
        Running, Paused and not-yet-released Draining Computers and Sandboxes;
        Stopped Machines consume no running Memory and retain Storage. Storage
        includes owned writable data and snapshots, with shared data counted
        once. Only the returned Plan limits describe the Account's entitled
        capacity. At absolute expiry, limits and Sandbox eligibility immediately
        become zero or false in the public view, even if normal Stop still needs
        confirmation. Usage continues to reflect observed consumption.
    Retry:
      type: string
      enum:
        - safe
        - query-first
        - no-retry
      description: >-
        safe permits an explicit retry; query-first requires observation of the
        original resource before any new mutation; no-retry requires a changed
        request or corrected cause. The SDK never retries automatically.
    ErrorBody:
      type: object
      additionalProperties: false
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          $ref: '#/components/schemas/ToolOutcome'
        retry_after_seconds:
          type: integer
          minimum: 1
          description: >-
            Backoff in seconds, equal to the Retry-After header on HTTP 429
            errors such as EXEC_BUSY, LIFECYCLE_BUSY or RATE_LIMITED. No action
            was dispatched.
        limit:
          $ref: '#/components/schemas/LimitReason'
    EntitlementView:
      type: object
      additionalProperties: false
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/EntitlementStatus'
        expires_at:
          type: integer
          format: uint64
          minimum: 1
          maximum: 8640000000000000
          description: >-
            Absolute Unix epoch milliseconds. Omitted for a non-expiring
            entitlement or an Account with no grant history in retention.
        retention_deadline:
          type: integer
          format: uint64
          minimum: 1
          maximum: 8640000000000000
          description: >-
            Absolute Unix epoch milliseconds. Present during retention; the
            Account may regain access to the same Computers before this
            deadline.
    NetworkEntitlement:
      type: object
      additionalProperties: false
      required:
        - class
        - normal_mbps
        - stage1_after_bytes
        - stage1_mbps
        - stage2_after_bytes
        - stage2_mbps
      properties:
        class:
          $ref: '#/components/schemas/NetworkClass'
        normal_mbps:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        stage1_after_bytes:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        stage1_mbps:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        stage2_after_bytes:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
        stage2_mbps:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
      description: >-
        Guest Internet RX+TX Fair Use policy for the given class. Compare the
        desired plan policy with the current effective policy when they differ.
        Crossing a threshold reduces the configured rate without disconnecting
        the Account.
    AccountNetworkView:
      type: object
      additionalProperties: false
      required:
        - utc_month
        - status
        - account_rate_cap_bps
        - effective_policy
        - observed_at_ms
      properties:
        utc_month:
          type: string
          description: >-
            UTC calendar month in YYYY-MM form. Account Fair Use resets at the
            start of this month.
        status:
          $ref: '#/components/schemas/NetworkObservationStatus'
        egress_usage_bytes:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
          description: >-
            Observed Account Guest Internet RX+TX bytes in the current UTC
            month. Omitted if complete Account usage cannot be determined.
        account_rate_cap_bps:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
          description: >-
            Verified current Account bandwidth cap in bits per second. Shared
            capacity and platform traffic protection may reduce delivered
            throughput.
        effective_policy:
          $ref: '#/components/schemas/NetworkEntitlement'
        observed_at_ms:
          type: integer
          format: uint64
          minimum: 0
          maximum: 9007199254740991
          description: >-
            Unix milliseconds when network usage and rate were observed. The API
            returns only recent samples for the current UTC month.
      description: >-
        Recent verified Account network observations. Resources omits network
        when usage coverage or a verified rate reading is unavailable. Readings
        older than 30 seconds are not returned. The desired plan policy is
        available separately in network_entitlement.
    MachineCountView:
      type: object
      additionalProperties: false
      required:
        - computers
        - sandboxes
      properties:
        computers:
          $ref: '#/components/schemas/MachineCount'
        sandboxes:
          $ref: '#/components/schemas/MachineCount'
    MachineCountConstraint:
      type: object
      additionalProperties: false
      required:
        - kind
        - scope
        - source
        - limit
      properties:
        kind:
          $ref: '#/components/schemas/MachineCountKind'
        scope:
          $ref: '#/components/schemas/MachineCountScope'
        source:
          $ref: '#/components/schemas/MachineCountSource'
        limit:
          type: integer
          format: uint64
          minimum: 0
        used:
          type: integer
          format: uint64
          minimum: 0
          description: Usage in this constraint's scope when observable.
      description: >-
        An applicable numeric Machine count constraint from Account entitlement
        or platform safety.
    StorageStatus:
      type: string
      enum:
        - within_limit
        - over_limit
      description: >-
        Derived from a fresh Account storage observation: used >= Product limit
        means over_limit. Missing or failed observation is UNKNOWN, never a zero
        usage or an invented within_limit state.
    StorageAdvice:
      type: string
      enum:
        - none
        - cleanup_or_upgrade
      description: >-
        Machine-readable action guidance. cleanup_or_upgrade permits starting
        the original Computer to delete data or removing owned assets. Reclaim
        is effective only after the storage observation confirms it.
    ErrorCode:
      type: string
      enum:
        - UNAUTHORIZED
        - AUTH_UNAVAILABLE
        - NOT_FOUND
        - INVALID_REQUEST
        - LIMIT_EXCEEDED
        - ENTITLEMENT_REQUIRED
        - ENTITLEMENT_PENDING
        - INVITE_UNAVAILABLE
        - SANDBOX_NOT_ENABLED
        - IDEMPOTENCY_CONFLICT
        - NOT_RUNNING
        - EXEC_BUSY
        - LIFECYCLE_BUSY
        - RATE_LIMITED
        - EXEC_FAILED
        - UNKNOWN
        - RUNTIME_UNAVAILABLE
        - INTERNAL
        - TOOL_NOT_SUPPORTED
        - TOOL_FAILED
        - PREVIEW_UNAVAILABLE
        - DESKTOP_UNAVAILABLE
        - DESKTOP_UNSUPPORTED
        - STORAGE_LIMIT_EXCEEDED
        - STOPPED_REQUIRED
        - RESIZE_UNSUPPORTED
        - RESOURCE_CONFLICT
        - STORAGE_RECLAIM_UNSUPPORTED
        - STORAGE_RECLAIM_INSUFFICIENT_SPACE
        - STORAGE_RECLAIM_FAILED
        - VAULT_UNAVAILABLE
      description: >-
        Stable public errors. UNKNOWN (control API HTTP 502, query-first)
        requires checking the original resource or command effect before another
        mutation. EXEC_BUSY (HTTP 429, safe) means the Account command capacity
        was unavailable before dispatch. LIFECYCLE_BUSY (HTTP 429, safe) means
        the lifecycle action was rejected before dispatch. RATE_LIMITED (HTTP
        429, safe) means a bounded public/Human action was rejected before
        lookup or mutation; wait before another explicit attempt. Wait at least
        the Retry-After header or its equal JSON field error.retry_after_seconds
        before retrying any HTTP 429 error. If the original intent is still
        needed, retry explicitly with the same request and, when present, the
        original idempotency key. SANDBOX_NOT_ENABLED means the Account
        entitlement does not permit Sandbox creation and is not ordinary Memory
        pressure. AUTH_UNAVAILABLE (HTTP 503, safe) means a Clerk Human session
        could not be checked and no product action was dispatched.
        STORAGE_LIMIT_EXCEEDED rejects growth while Product used >= limit;
        original Start remains allowed subject to Account eligibility and
        available capacity. STOPPED_REQUIRED requires an explicit normal Stop.
        RESIZE_UNSUPPORTED means that Memory change is not supported for the
        Computer. RESOURCE_CONFLICT (HTTP 409, no-retry) means an observed
        dependency prevents completion; resolve the reported cause before
        another explicit attempt. It is distinct from an UNKNOWN physical
        outcome. ENTITLEMENT_REQUIRED (403, no-retry) means there is no active
        entitlement; read resources.get. ENTITLEMENT_PENDING (409, safe) means
        previous expiry or cleanup must settle before redemption.
        INVITE_UNAVAILABLE (404, no-retry) intentionally does not distinguish
        invalid, revoked, exhausted or already-used codes. VAULT_UNAVAILABLE
        (HTTP 503, no-retry) means Vault is unavailable; contact support before
        attempting further Secret changes.
    ToolOutcome:
      type: object
      additionalProperties: false
      required:
        - tool_id
        - status
        - reason
        - version
        - launch
      properties:
        tool_id:
          type: string
        status:
          $ref: '#/components/schemas/ToolStatus'
        reason:
          $ref: '#/components/schemas/ToolReason'
        version:
          type: string
        launch:
          type: string
    LimitReason:
      type: object
      additionalProperties: false
      required:
        - dimension
        - scope
      properties:
        dimension:
          $ref: '#/components/schemas/LimitDimension'
        scope:
          $ref: '#/components/schemas/LimitScope'
      description: >-
        The limit that rejected the action with LIMIT_EXCEEDED (HTTP 409,
        no-retry).
    EntitlementStatus:
      type: string
      enum:
        - active
        - none
        - retention
      description: >-
        Only active permits new Machine admission. Retention begins at absolute
        expiry even if physical Stop is pending. Past retention_deadline,
        retention indicates cleanup is still pending. None has no grant or
        retained Computers scheduled for cleanup.
    NetworkClass:
      type: string
      enum:
        - free
        - paid
      description: >-
        Shared-egress and Guest Internet Fair Use class. The desired plan class
        and the effective assignment class can differ until the next eligible
        Start.
    NetworkObservationStatus:
      type: string
      enum:
        - known
        - partial
      description: >-
        known includes an observed current-month counter and a verified Account
        rate cap. partial includes the verified cap while the current-month
        counter remains unavailable.
    MachineCount:
      type: object
      additionalProperties: false
      required:
        - total
        - reserved
        - pending
        - occupied
      properties:
        total:
          type: integer
          format: uint64
          minimum: 0
          description: >-
            Retained Machines, including stopped Machines and the reserved and
            pending subsets. Snapshots are excluded.
        reserved:
          type: integer
          format: uint64
          minimum: 0
          description: >-
            Accepted creation requests not yet started. Already included in
            total.
        pending:
          type: integer
          format: uint64
          minimum: 0
          description: >-
            Machines with an unconfirmed lifecycle transition, excluding
            reserved creation requests. Already included in total and may also
            count in occupied.
        occupied:
          type: integer
          format: uint64
          minimum: 0
          description: >-
            Machines currently charged to the running Memory pool, including
            pending and unknown states whose Memory is held conservatively.
        resident:
          type: integer
          format: uint64
          minimum: 0
          description: >-
            Machines observed Running, Starting, Paused or Draining in this
            group. Omitted when any Machine's residency cannot be determined.
    MachineCountKind:
      type: string
      enum:
        - all
        - computer
        - sandbox
    MachineCountScope:
      type: string
      enum:
        - retained
        - resident
    MachineCountSource:
      type: string
      enum:
        - entitlement
        - platform
    ToolStatus:
      type: string
      enum:
        - success
        - existing
        - absent
        - failed
        - unknown
      description: >-
        success means this install verified a command; existing means a command
        or protected installation path already exists and was not overwritten;
        absent is a successful inspection with nothing installed; failed and
        unknown use non-2xx error envelopes.
    ToolReason:
      type: string
      enum:
        - verified
        - command_exists
        - files_exist
        - unsupported_platform
        - prerequisites_missing
        - download_failed
        - installer_failed
        - verification_failed
        - in_progress
        - untrusted_result
      description: Machine-readable reason returned by the Tool installation or inspection.
    LimitDimension:
      type: string
      enum:
        - memory
        - persistent_computers
        - reserved_intents
        - share_records
        - secret_grants
      description: >-
        memory covers the Account's configured Memory and shared-pool admission.
        persistent_computers counts retained persistent Computer products for
        the Account, including stopped/reserved/pending Computers until Delete
        removes the product record; Sandboxes are separate. reserved_intents
        counts accepted Computer, Sandbox and Snapshot creation requests not yet
        started. share_records counts retained Account Share entries, including
        revoked and expired entries until removal. secret_grants counts saved
        grants on the target Machine.
    LimitScope:
      type: string
      enum:
        - account
        - machine
      description: The scope in which the limit was enforced.
  securitySchemes:
    accountKey:
      type: http
      scheme: bearer
      description: >-
        A Deepest Account-scoped Agent API Key issued by the signed-in owner.
        Never put the key in a URL or Guest environment.
    clerkSession:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Current Clerk browser session token issued for the configured control
        origin. Accepted only when Clerk is enabled; not interchangeable with a
        Deepest Agent API Key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.