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

> ## Agent Instructions
> Authenticate every request with `Authorization: ApiKey {jwt}`: an ES256 JWT signed with the user's private API key, whose header carries `kid` (the API key ID) and whose payload carries `iat` (Unix time in seconds) and `message`, the hex SHA-256 of `{iat}\n{METHOD}\n{PATH}\n{BODY}`. METHOD is uppercase, PATH includes the query string, BODY is the exact JSON sent or an empty string. Full steps: https://developer.bron.org/api-reference/authentication
> Prefer the official SDKs or the CLI, which sign every request: TypeScript `npm install @bronlabs/bron-sdk`, Go `go get github.com/bronlabs/bron-sdk-go`, Python `pip install git+https://github.com/bronlabs/bron-sdk-python.git`, CLI `brew install bronlabs/apps/bron`. Hand-write JWT signing only for a language without an SDK.
> The base URL is https://api.bron.org. Workspace data lives under `/workspaces/{workspaceId}/...`, and `/dictionary/...` serves reference data such as assets, networks and prices. Timestamps are milliseconds since the Unix epoch. Numeric values, amounts included, are strings: never parse them as floats.
> Never ask the user to paste their API key (the private JWK) into a chat and never hard-code it: read it from an environment variable or a secret store.

# Get Stakes

> <sup>API Key permissions: View only, Transaction Operator, Full Access</sup>



## OpenAPI

````yaml /bron-open-api-public.json get /workspaces/{workspaceId}/stakes
openapi: 3.1.1
info:
  description: >-
    Bron API is based on the RESTish interface provided for data exchange
    between a client and a server with the use of HTTPS requests and responses.
  title: Bron API
  version: latest
  x-bron-formats:
    bigint: Arbitrary-precision integer encoded as a JSON string.
    date-time-millis: >-
      Epoch milliseconds (UTC) encoded as a JSON string. Convert with `new
      Date(parseInt(value))` or equivalent.
    decimal: Arbitrary-precision decimal encoded as a JSON string.
    int32: 32-bit integer encoded as a JSON string.
    int64: >-
      Long integer encoded as a JSON string to preserve precision (e.g. account
      IDs).
servers:
  - description: app.bron.org
    url: https://api.bron.org
security: []
tags:
  - name: intents
  - name: addresses
  - name: transactions
  - name: stake
  - name: balances
  - name: assets
  - name: transaction-limits
  - name: canton
  - name: address-book
  - name: workspaces
  - name: accounts
  - name: hyperliquid
paths:
  /workspaces/{workspaceId}/stakes:
    get:
      tags:
        - stake
      summary: Get Stakes
      description: >-
        <sup>API Key permissions: View only, Transaction Operator, Full
        Access</sup>
      parameters:
        - description: Return stakes only for specific account
          in: query
          name: accountId
          required: false
          schema:
            type: string
        - description: Return stakes only for specific assetId
          in: query
          name: assetId
          required: false
          schema:
            type: string
        - description: Reward period
          example:
            - 30d
          in: query
          name: rewardPeriod
          required: false
          schema:
            type: string
        - in: path
          name: workspaceId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Stakes'
          description: OK
        '400':
          content:
            application/json:
              schema:
                properties:
                  error:
                    description: The machine-readable error code
                    examples:
                      - bad-request
                    type: string
                  message:
                    description: >-
                      A human-readable message providing more details about the
                      error
                    type: string
                type: object
          description: Bad Request
        '403':
          content:
            application/json:
              schema:
                properties:
                  error:
                    description: The machine-readable error code
                    examples:
                      - forbidden
                    type: string
                  message:
                    description: >-
                      A human-readable message providing more details about the
                      error
                    type: string
                type: object
          description: Forbidden
        '409':
          content:
            application/json:
              schema:
                properties:
                  error:
                    description: The machine-readable error code
                    examples:
                      - conflict
                    type: string
                  message:
                    description: >-
                      A human-readable message providing more details about the
                      error
                    type: string
                type: object
          description: Conflict
components:
  schemas:
    Stakes:
      properties:
        _embedded:
          $ref: '#/components/schemas/StakesEmbedded'
          description: Reward totals per asset
        stakes:
          description: List of stakes
          items:
            $ref: '#/components/schemas/Stake'
          type: array
      type: object
    StakesEmbedded:
      properties:
        resourceRentalRewardsAmounts:
          description: Accrued resource-rental rewards per asset
          items:
            $ref: '#/components/schemas/RewardsAmount'
          type: array
        rewardsAmounts:
          description: Accrued staking rewards per asset
          items:
            $ref: '#/components/schemas/RewardsAmount'
          type: array
      type: object
    Stake:
      properties:
        accountId:
          description: Unique identifier of the account, for which the stake was created
          type: string
        amount:
          description: Stake amount
          format: decimal
          type: string
        assetId:
          description: Staked asset Id
          type: string
        networkId:
          description: NetworkId
          type: string
        poolId:
          description: Pool that this stake connected to
          type: string
        stakeId:
          description: Unique identifier of the stake
          type: string
        stakeInfo:
          $ref: '#/components/schemas/StakeInfo'
          description: Stake additional information
        status:
          $ref: '#/components/schemas/StakeStatus'
          description: The status of a stake. [See details](/enums/StakeStatus)
        updatedAt:
          description: Timestamp of the latest stake update
          format: date-time-millis
          type: string
        warning:
          $ref: '#/components/schemas/Warning'
          description: >-
            Warning message that describe that there is a problem with this
            stake (e.g. you don't get rewards because of some problem)
        workspaceId:
          description: Unique ID of the organisation
          type: string
      type: object
    RewardsAmount:
      properties:
        amount:
          description: Amount of rewards
          format: decimal
          type: string
        assetId:
          description: By current assetId
          type: string
      type: object
    StakeInfo:
      properties:
        bondingAmount:
          description: >-
            The bonding amount for the case when there is an opportunity to
            increase the stake
          format: decimal
          type: string
        bondingEndAt:
          description: Bonding end date
          format: date-time-millis
          type: string
        claimableRewardsAmount:
          description: >-
            Amount of rewards, that can still be claimed from this active stake
            using TAKE_REWARD transaction
          format: decimal
          type: string
        originPool:
          $ref: '#/components/schemas/Pool'
          description: >-
            In case if CHANGING_VALIDATOR here we specify pools from which stake
            was moved
        readyToClaimStakeAt:
          description: If unbonding stake is not ready to claim, when it will be ready
          format: date-time-millis
          type: string
        readyToIncrement:
          description: Can this stake be increased or not
          type: boolean
        readyToRedelegate:
          description: >-
            In some cases your active stake can't be redelegated (e.g. you just
            redelegated stake from one pool to other in cosmos based stakes)
          type: boolean
        readyToUnstake:
          description: Can this stake be unstaked or not
          type: boolean
        readyToUnstakeAt:
          description: If stake is not ready to unstake, when it will be ready
          format: date-time-millis
          type: string
        rewardsRequireClaim:
          description: If rewards require TAKE_REWARD transaction to do claim
          type: boolean
        unbondingAmount:
          description: >-
            The unbonding amount for the case when there is an opportunity to
            partial withdrawal
          format: decimal
          type: string
        unbondingEndAt:
          description: Bonding end date
          format: date-time-millis
          type: string
        warning:
          $ref: '#/components/schemas/Warning'
          description: >-
            Warning message that describe that there is a problem with this
            stake (e.g. you don't get rewards because of some problem)
      type: object
    StakeStatus:
      enum:
        - bonding
        - active
        - unbonding
        - require-claim
        - exited
      type: string
    Warning:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - message
      type: object
    Pool:
      properties:
        poolId:
          description: Pool identifier
          type: string
        poolName:
          description: Pool name
          type: string
        totalBonded:
          description: Amount of current all stakes for pool
          format: decimal
          type: string
      type: object

````

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