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

# Get Session

> Get an agent session or legacy chat with its message history.

Legacy chats have is_readonly=True.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/agent/sessions/{session_id}
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/sessions/{session_id}:
    get:
      tags:
        - agent-sessions
      summary: Get Session
      description: |-
        Get an agent session or legacy chat with its message history.

        Legacy chats have is_readonly=True.
      operationId: agent-sessions-get_session
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session Id
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/AgentSessionReadWithMessages'
                  - $ref: '#/components/schemas/ChatRead'
                title: Response Agent-Sessions-Get Session
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentSessionReadWithMessages:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
        title:
          type: string
          title: Title
        created_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By
        entity_type:
          $ref: '#/components/schemas/AgentSessionEntity'
        entity_id:
          type: string
          format: uuid
          title: Entity Id
        channel_context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Channel Context
        tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tools
        mcp_integrations:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mcp Integrations
        agent_preset_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Id
        agent_preset_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Version Id
        agents_binding:
          anyOf:
            - $ref: '#/components/schemas/ResolvedAgentsConfig'
            - type: 'null'
        harness_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Harness Type
        last_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error
        last_stream_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Stream Id
        artifacts:
          items:
            $ref: '#/components/schemas/Artifact'
          type: array
          title: Artifacts
        parent_session_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Session Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        messages:
          items: {}
          type: array
          title: Messages
          description: Session messages
      type: object
      required:
        - id
        - workspace_id
        - title
        - created_by
        - entity_type
        - entity_id
        - channel_context
        - tools
        - mcp_integrations
        - agent_preset_id
        - agent_preset_version_id
        - harness_type
        - created_at
        - updated_at
      title: AgentSessionReadWithMessages
      description: Response schema for agent session with message history.
    ChatRead:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
          description: Unique chat identifier
        title:
          type: string
          title: Title
          description: Human-readable title for the chat
        user_id:
          type: string
          format: uuid4
          title: User Id
          description: ID of the user who owns the chat
        entity_type:
          $ref: '#/components/schemas/AgentSessionEntity'
          description: Type of entity this chat is associated with
        entity_id:
          type: string
          format: uuid4
          title: Entity Id
          description: ID of the associated entity
        tools:
          items:
            type: string
          type: array
          title: Tools
          description: Tools available to the agent
        mcp_integrations:
          items:
            type: string
          type: array
          title: Mcp Integrations
          description: MCP integration IDs attached to this chat
        agent_preset_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Id
          description: Agent preset used for this chat, if any
        agent_preset_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Version Id
          description: Pinned preset version used for this chat, if any
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the chat was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the chat was last updated
        last_stream_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Stream Id
          description: Last processed Redis stream ID for this chat
        is_readonly:
          type: boolean
          title: Is Readonly
          description: Whether this chat is read-only (legacy chats cannot be modified)
          default: true
        messages:
          items:
            $ref: '#/components/schemas/ChatMessage'
          type: array
          title: Messages
          description: Chat messages from Redis stream
      type: object
      required:
        - id
        - title
        - user_id
        - entity_type
        - entity_id
        - tools
        - created_at
        - updated_at
      title: ChatRead
      description: Model for chat metadata with message history.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentSessionEntity:
      type: string
      enum:
        - case
        - agent_preset
        - agent_preset_builder
        - copilot
        - workflow
        - approval
        - external_channel
      title: AgentSessionEntity
      description: |-
        The type of entity associated with an agent session.

        Determines the context and behavior of the session:
        - CASE: Chat attached to a Case entity for investigation
        - AGENT_PRESET: Live chat testing a preset configuration
        - AGENT_PRESET_BUILDER: Builder chat for editing/configuring a preset
        - WORKSPACE_CHAT: Workspace-level chat assistant (wire value: copilot)
        - WORKFLOW: Workflow-initiated agent run (from action)
        - APPROVAL: Inbox approval continuation (hidden from main chat list)
        - EXTERNAL_CHANNEL: External channel session (e.g. Slack thread)
    ResolvedAgentsConfig:
      properties:
        enabled:
          type: boolean
          title: Enabled
          default: false
        subagents:
          items:
            $ref: '#/components/schemas/ResolvedAttachedSubagentRef'
          type: array
          title: Subagents
      additionalProperties: false
      type: object
      title: ResolvedAgentsConfig
      description: Persisted agents toggle with immutable resolved child refs.
    Artifact:
      oneOf:
        - $ref: '#/components/schemas/CaseArtifact'
        - $ref: '#/components/schemas/WorkflowArtifact'
        - $ref: '#/components/schemas/RunArtifact'
        - $ref: '#/components/schemas/TableArtifact'
        - $ref: '#/components/schemas/AgentArtifact'
        - $ref: '#/components/schemas/AlertArtifact'
        - $ref: '#/components/schemas/IntegrationArtifact'
        - $ref: '#/components/schemas/SecretArtifact'
        - $ref: '#/components/schemas/GenericArtifact'
      discriminator:
        propertyName: type
        mapping:
          agent:
            $ref: '#/components/schemas/AgentArtifact'
          alert:
            $ref: '#/components/schemas/AlertArtifact'
          case:
            $ref: '#/components/schemas/CaseArtifact'
          generic:
            $ref: '#/components/schemas/GenericArtifact'
          integration:
            $ref: '#/components/schemas/IntegrationArtifact'
          run:
            $ref: '#/components/schemas/RunArtifact'
          secret:
            $ref: '#/components/schemas/SecretArtifact'
          table:
            $ref: '#/components/schemas/TableArtifact'
          workflow:
            $ref: '#/components/schemas/WorkflowArtifact'
    ChatMessage:
      properties:
        id:
          type: string
          title: Id
          description: Unique message identifier
        kind:
          $ref: '#/components/schemas/MessageKind'
          description: Message kind for rendering
          default: chat-message
        message:
          anyOf:
            - {}
            - $ref: '#/components/schemas/UserMessage'
            - $ref: '#/components/schemas/AssistantMessage'
            - $ref: '#/components/schemas/SystemMessage'
            - $ref: '#/components/schemas/ResultMessage'
            - $ref: '#/components/schemas/StreamEvent'
            - $ref: '#/components/schemas/RateLimitEvent'
            - type: 'null'
          title: Message
          description: The deserialized message (for kind=CHAT_MESSAGE)
        approval:
          anyOf:
            - $ref: '#/components/schemas/ApprovalRead'
            - type: 'null'
          description: >-
            Approval data for approval bubble rendering (for
            kind=APPROVAL_REQUEST/APPROVAL_DECISION)
        compaction:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Compaction
          description: Compaction status data for badge rendering (for kind=COMPACTION)
        cancelled:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Cancelled
          description: Turn-cancelled marker data (for kind=CANCELLED)
      type: object
      required:
        - id
      title: ChatMessage
      description: >-
        Model for a chat message with typed message payload.


        This model supports multiple message kinds:

        - kind=CHAT_MESSAGE: Contains message field with user/assistant content

        - kind=APPROVAL_REQUEST/APPROVAL_DECISION: Contains approval field with
        approval data

        - kind=COMPACTION: Contains compaction field with compaction status data

        - kind=CANCELLED: Contains cancelled field with turn-cancelled marker
        data
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ResolvedAttachedSubagentRef:
      properties:
        preset:
          type: string
          maxLength: 160
          minLength: 1
          title: Preset
        preset_version:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Preset Version
        name:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
              pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Description
        max_turns:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Max Turns
        preset_id:
          type: string
          format: uuid
          title: Preset Id
        preset_version_id:
          type: string
          format: uuid
          title: Preset Version Id
      additionalProperties: false
      type: object
      required:
        - preset
        - preset_id
        - preset_version_id
      title: ResolvedAttachedSubagentRef
      description: Persisted subagent ref with immutable preset/version identifiers.
    CaseArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: case
          title: Type
          default: case
        severity:
          $ref: '#/components/schemas/CaseSeverity'
        status:
          $ref: '#/components/schemas/CaseStatus'
      additionalProperties: false
      type: object
      required:
        - id
        - title
        - severity
        - status
      title: CaseArtifact
      description: Case artifact shown in artifact-capable chat surfaces.
    WorkflowArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: workflow
          title: Type
          default: workflow
        color:
          type: string
          title: Color
        isPublished:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ispublished
      additionalProperties: false
      type: object
      required:
        - id
        - title
        - color
      title: WorkflowArtifact
      description: Workflow artifact shown in artifact-capable chat surfaces.
    RunArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: run
          title: Type
          default: run
        workflowId:
          type: string
          title: Workflowid
        status:
          type: string
          enum:
            - running
            - success
            - failed
            - cancelled
          title: Status
        startedAt:
          type: string
          format: date-time
          title: Startedat
      additionalProperties: false
      type: object
      required:
        - id
        - title
        - workflowId
        - status
        - startedAt
      title: RunArtifact
      description: Workflow run artifact shown in artifact-capable chat surfaces.
    TableArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: table
          title: Type
          default: table
        rowCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rowcount
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: TableArtifact
      description: Table artifact shown in artifact-capable chat surfaces.
    AgentArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: agent
          title: Type
          default: agent
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: AgentArtifact
      description: Agent preset artifact shown in artifact-capable chat surfaces.
    AlertArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: alert
          title: Type
          default: alert
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: AlertArtifact
      description: Alert artifact stub. Extend when alert surfaces are wired.
    IntegrationArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: integration
          title: Type
          default: integration
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: IntegrationArtifact
      description: Integration artifact stub. Extend when integration surfaces are wired.
    SecretArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: secret
          title: Type
          default: secret
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: SecretArtifact
      description: Secret artifact stub. Extend when secret surfaces are wired.
    GenericArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: generic
          title: Type
          default: generic
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: GenericArtifact
      description: Escape hatch for surfaced objects without a dedicated panel view.
    MessageKind:
      type: string
      enum:
        - chat-message
        - approval-request
        - approval-decision
        - internal
        - compaction
        - cancelled
      title: MessageKind
      description: The type/kind of message stored in the chat.
    UserMessage:
      properties:
        content:
          anyOf:
            - type: string
            - items:
                anyOf:
                  - $ref: '#/components/schemas/TextBlock'
                  - $ref: '#/components/schemas/ThinkingBlock'
                  - $ref: '#/components/schemas/ToolUseBlock'
                  - $ref: '#/components/schemas/ToolResultBlock'
              type: array
          title: Content
        uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Uuid
        parent_tool_use_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Tool Use Id
        tool_use_result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Tool Use Result
      type: object
      required:
        - content
      title: UserMessage
    AssistantMessage:
      properties:
        content:
          items:
            anyOf:
              - $ref: '#/components/schemas/TextBlock'
              - $ref: '#/components/schemas/ThinkingBlock'
              - $ref: '#/components/schemas/ToolUseBlock'
              - $ref: '#/components/schemas/ToolResultBlock'
          type: array
          title: Content
        model:
          type: string
          title: Model
        parent_tool_use_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Tool Use Id
        error:
          anyOf:
            - type: string
              enum:
                - authentication_failed
                - billing_error
                - rate_limit
                - invalid_request
                - server_error
                - unknown
            - type: 'null'
          title: Error
        usage:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Usage
        message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Message Id
        stop_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Stop Reason
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Uuid
      type: object
      required:
        - content
        - model
      title: AssistantMessage
    SystemMessage:
      properties:
        subtype:
          type: string
          title: Subtype
        data:
          additionalProperties: true
          type: object
          title: Data
      type: object
      required:
        - subtype
        - data
      title: SystemMessage
    ResultMessage:
      properties:
        subtype:
          type: string
          title: Subtype
        duration_ms:
          type: integer
          title: Duration Ms
        duration_api_ms:
          type: integer
          title: Duration Api Ms
        is_error:
          type: boolean
          title: Is Error
        num_turns:
          type: integer
          title: Num Turns
        session_id:
          type: string
          title: Session Id
        stop_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Stop Reason
        total_cost_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Cost Usd
        usage:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Usage
        result:
          anyOf:
            - type: string
            - type: 'null'
          title: Result
        structured_output:
          title: Structured Output
        model_usage:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model Usage
        permission_denials:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Permission Denials
        errors:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Errors
        uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Uuid
      type: object
      required:
        - subtype
        - duration_ms
        - duration_api_ms
        - is_error
        - num_turns
        - session_id
      title: ResultMessage
    StreamEvent:
      properties:
        uuid:
          type: string
          title: Uuid
        session_id:
          type: string
          title: Session Id
        event:
          additionalProperties: true
          type: object
          title: Event
        parent_tool_use_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Tool Use Id
      type: object
      required:
        - uuid
        - session_id
        - event
      title: StreamEvent
    RateLimitEvent:
      properties:
        rate_limit_info:
          $ref: '#/components/schemas/RateLimitInfo'
        uuid:
          type: string
          title: Uuid
        session_id:
          type: string
          title: Session Id
      type: object
      required:
        - rate_limit_info
        - uuid
        - session_id
      title: RateLimitEvent
    ApprovalRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        tool_call_id:
          type: string
          title: Tool Call Id
        tool_name:
          type: string
          title: Tool Name
        tool_call_args:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Tool Call Args
        status:
          $ref: '#/components/schemas/ApprovalStatus'
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        decision:
          anyOf:
            - type: boolean
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Decision
        approved_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Approved By
        approved_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Approved At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - tool_call_id
        - tool_name
        - status
        - created_at
      title: ApprovalRead
      description: Response schema for approval data in chat timeline.
    ArtifactScope:
      properties:
        agentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Agentid
        agentType:
          anyOf:
            - type: string
            - type: 'null'
          title: Agenttype
        parentToolCallId:
          anyOf:
            - type: string
            - type: 'null'
          title: Parenttoolcallid
      additionalProperties: false
      type: object
      title: ArtifactScope
      description: Attribution scope for artifact data parts.
    CaseSeverity:
      type: string
      enum:
        - unknown
        - informational
        - low
        - medium
        - high
        - critical
        - fatal
        - other
      title: CaseSeverity
      description: |-
        Case severity values aligned with OCSF severity values.

        Values:
            UNKNOWN (0): The event/finding severity is unknown
            INFORMATIONAL (1): Informational message. No action required
            LOW (2): The user decides if action is needed
            MEDIUM (3): Action is required but the situation is not serious at this time
            HIGH (4): Action is required immediately
            CRITICAL (5): Action is required immediately and the scope is broad
            FATAL (6): An error occurred but it is too late to take remedial action
            OTHER (99): The event/finding severity is not mapped
    CaseStatus:
      type: string
      enum:
        - unknown
        - new
        - in_progress
        - on_hold
        - resolved
        - closed
        - other
      title: CaseStatus
      description: Case status values aligned with OCSF Incident Finding status.
    TextBlock:
      properties:
        text:
          type: string
          title: Text
      type: object
      required:
        - text
      title: TextBlock
    ThinkingBlock:
      properties:
        thinking:
          type: string
          title: Thinking
        signature:
          type: string
          title: Signature
      type: object
      required:
        - thinking
        - signature
      title: ThinkingBlock
    ToolUseBlock:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        input:
          additionalProperties: true
          type: object
          title: Input
      type: object
      required:
        - id
        - name
        - input
      title: ToolUseBlock
    ToolResultBlock:
      properties:
        tool_use_id:
          type: string
          title: Tool Use Id
        content:
          anyOf:
            - type: string
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Content
        is_error:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Error
      type: object
      required:
        - tool_use_id
      title: ToolResultBlock
    RateLimitInfo:
      properties:
        status:
          type: string
          enum:
            - allowed
            - allowed_warning
            - rejected
          title: Status
        resets_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Resets At
        rate_limit_type:
          anyOf:
            - type: string
              enum:
                - five_hour
                - seven_day
                - seven_day_opus
                - seven_day_sonnet
                - overage
            - type: 'null'
          title: Rate Limit Type
        utilization:
          anyOf:
            - type: number
            - type: 'null'
          title: Utilization
        overage_status:
          anyOf:
            - type: string
              enum:
                - allowed
                - allowed_warning
                - rejected
            - type: 'null'
          title: Overage Status
        overage_resets_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Overage Resets At
        overage_disabled_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Overage Disabled Reason
        raw:
          additionalProperties: true
          type: object
          title: Raw
      type: object
      required:
        - status
      title: RateLimitInfo
    ApprovalStatus:
      type: string
      enum:
        - pending
        - approved
        - rejected
      title: ApprovalStatus
      description: Possible states for a deferred tool approval.
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````