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

# Get the current profile budget and this agent's retained spend



## OpenAPI

````yaml /openapi/platform.v1.json get /v1/agents/{agentId}/budget
openapi: 3.0.3
info:
  description: Public platform API for catalog and proxied data-plane routes.
  title: Matrices Platform API
  version: v1
servers:
  - url: https://api.matrices.com
security: []
tags:
  - description: Authenticated bearer credential context.
    name: auth
    x-group: Auth
  - description: Write-only provider credentials with safe connection metadata.
    name: connections
    x-group: Connections
  - description: Materialized workspace principals and active agent counts.
    name: identities
    x-group: Identities
  - description: Remote MCP server registrations.
    name: toolsets
    x-group: Toolsets
  - description: Named allow-only agent tool permissions.
    name: roles
    x-group: Roles
  - description: Client-executed tool calls.
    name: tools
    x-group: Tools
  - description: Reusable agent behavior profiles.
    name: profiles
    x-group: Profiles
  - description: Workspace-owned agent identities.
    name: agents
    x-group: Agents
  - description: Durable inbound file uploads.
    name: files
    x-group: Files
  - description: Immutable private image inputs.
    name: images
    x-group: Images
  - description: Public model catalog.
    name: models
    x-group: Models
  - description: Running agent threads.
    name: threads
    x-group: Threads
  - description: Agent schedules.
    name: schedules
    x-group: Schedules
  - description: Workspace append-only feeds.
    name: feeds
    x-group: Feeds
  - description: Agent subscriptions over workspace feeds.
    name: subscriptions
    x-group: Subscriptions
  - description: Workspace and identity-scoped skill bundles.
    name: plugins
    x-group: Plugins
  - description: Agent-private and workspace-shared durable memory notes.
    name: memory
    x-group: Memory
  - description: Thread messages.
    name: messages
    x-group: Messages
  - description: Thread event log data.
    name: events
    x-group: Events
  - description: Runtime hook audit and wait resolution.
    name: hooks
    x-group: Hooks
paths:
  /v1/agents/{agentId}/budget:
    get:
      tags:
        - agents
      summary: Get the current profile budget and this agent's retained spend
      operationId: GetAgentBudget
      parameters:
        - in: path
          name: agentId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BudgetStatus'
          description: Current profile policy and matching usage
        '503':
          description: Runtime accounting is unavailable
      security:
        - APIKeyBearer: []
components:
  schemas:
    BudgetStatus:
      properties:
        baseline:
          allOf:
            - $ref: '#/components/schemas/BudgetScopeStatus'
          nullable: true
        generatedAt:
          format: date-time
          type: string
        profileId:
          type: string
        profileVersion:
          format: int64
          type: integer
      required:
        - generatedAt
        - profileId
        - profileVersion
        - baseline
      type: object
    BudgetScopeStatus:
      properties:
        budget:
          $ref: '#/components/schemas/Budget'
        remaining:
          minimum: 0
          type: number
        spent:
          minimum: 0
          type: number
      required:
        - budget
        - spent
        - remaining
      type: object
    Budget:
      additionalProperties: false
      properties:
        limit:
          format: double
          minimum: 0
          type: number
        window:
          description: >-
            24h and 7d are rolling windows; monthly starts on the first of the
            current calendar month at 00:00 UTC; total covers lifetime spend.
          enum:
            - 24h
            - 7d
            - monthly
            - total
          type: string
      required:
        - limit
        - window
      type: object
  securitySchemes:
    APIKeyBearer:
      scheme: bearer
      type: http

````

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