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

# Get API Key Usage

> No scope check required — any valid API key can introspect its own usage.
This is intentional: usage/quota info is a property of the key itself.



## OpenAPI

````yaml GET /api/v2/account/usage
openapi: 3.0.3
info:
  description: Multi-chain DEX trading API for developers
  license:
    name: ''
  title: Shuriken API v2
  version: 2.0.0
servers:
  - url: https://api.shuriken.trade
security: []
tags:
  - description: SplitNOW cross-chain split plan + execute
    name: V2 Splits
  - description: Wallet archive lifecycle (archive / unarchive / bulk-archive)
    name: Wallets
  - description: Token discovery, metadata, and pricing
    name: V2 Tokens
  - description: Quote and execute swaps
    name: V2 Swap
  - description: Limit orders and stop-loss
    name: V2 Trigger
  - description: Managed-agent invocation
    name: V2 Agents
  - description: Portfolio positions and PnL
    name: V2 Portfolio
  - description: User account management
    name: V2 Account
  - description: WebSocket stream discovery, session bootstrap, and channel authorization
    name: V2 WebSocket
  - description: Perpetual trading on Hyperliquid
    name: V2 Perps
  - description: Agent-proposed trade suggestions
    name: V2 Suggestions
paths:
  /api/v2/account/usage:
    get:
      tags:
        - V2 Account
      summary: GET /api/v2/account/usage — API key usage stats (AgentKey only)
      description: >-
        No scope check required — any valid API key can introspect its own
        usage.

        This is intentional: usage/quota info is a property of the key itself.
      operationId: get_account_usage
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_ApiKeyUsageResponse'
          description: API key usage and constraints
        '403':
          description: AgentKey authentication required
      security:
        - bearer_auth: []
components:
  schemas:
    ApiResponse_ApiKeyUsageResponse:
      description: V2 success response envelope
      properties:
        data:
          properties:
            constraints:
              $ref: '#/components/schemas/AgentKeyConstraintsResponse'
              nullable: true
            keyId:
              type: string
            scopes:
              items:
                type: string
              type: array
          required:
            - keyId
            - scopes
          type: object
        pagination:
          $ref: '#/components/schemas/PaginationInfo'
          nullable: true
        requestId:
          type: string
      required:
        - data
        - requestId
      type: object
    AgentKeyConstraintsResponse:
      properties:
        allowBribes:
          type: boolean
        allowCustomGas:
          type: boolean
        allowedNetworks:
          items:
            format: int32
            type: integer
          type: array
        allowedWalletIds:
          items:
            type: string
          type: array
        buysEnabled:
          type: boolean
        maxBuyUsdPerDay:
          format: double
          nullable: true
          type: number
        maxBuyUsdPerTrade:
          format: double
          nullable: true
          type: number
        maxConcurrentExecutions:
          format: int32
          minimum: 0
          type: integer
        maxExecutionsPerDay:
          format: int32
          minimum: 0
          type: integer
        maxExecutionsPerHour:
          format: int32
          minimum: 0
          type: integer
        maxLimitOrderUsdPerOrder:
          format: double
          nullable: true
          type: number
        maxLimitOrdersPerDay:
          format: int32
          minimum: 0
          type: integer
        maxPriceImpactPct:
          format: int32
          minimum: 0
          nullable: true
          type: integer
        maxSellPositionPct:
          format: int32
          minimum: 0
          nullable: true
          type: integer
        maxSellUsdPerDay:
          format: double
          nullable: true
          type: number
        maxSellUsdPerTrade:
          format: double
          nullable: true
          type: number
        maxSlippageBps:
          format: int32
          minimum: 0
          nullable: true
          type: integer
        sellsEnabled:
          type: boolean
      required:
        - buysEnabled
        - sellsEnabled
        - maxExecutionsPerHour
        - maxExecutionsPerDay
        - maxConcurrentExecutions
        - allowCustomGas
        - allowBribes
        - maxLimitOrdersPerDay
      type: object
    PaginationInfo:
      description: Page-based pagination info (per RFC)
      properties:
        hasMore:
          type: boolean
        limit:
          format: int32
          minimum: 0
          type: integer
        page:
          format: int32
          minimum: 0
          type: integer
        total:
          format: int32
          minimum: 0
          nullable: true
          type: integer
      required:
        - page
        - limit
        - hasMore
      type: object
  securitySchemes:
    bearer_auth:
      bearerFormat: JWT or sk_{keyId}_{secret}
      description: >-
        Use `Authorization: Bearer <jwt>` for user auth or `Authorization:
        Bearer sk_{keyId}_{secret}` for API key auth.
      scheme: bearer
      type: http

````