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

# Get a challenge account

> Returns account identity, realized balance, and a fresh risk snapshot marked from authoritative book mids.



## OpenAPI

````yaml /openapi.yaml get /v1/accounts/{account_id}
openapi: 3.1.0
info:
  title: MyFundedPerps API (Beta)
  version: 1.0.0
  description: >-
    The developer API is in beta. Breaking changes may be introduced at any
    time. Programmatic access to MyFundedPerps paper-trading challenge accounts.
    API trades use the same real order books and simulated execution engine as
    the web trading interface. Every response carries an `X-Request-Id` header
    for support and log correlation.
  contact:
    url: https://myfundedperpetuals.com/support
servers:
  - url: https://developers.myfundedperpetuals.com
    description: Live
  - url: https://sandbox.myfundedperpetuals.com
    description: Sandbox (test keys and sandbox accounts only)
security:
  - bearerAuth: []
tags:
  - name: General
  - name: Authentication
  - name: Accounts
  - name: Markets
  - name: Positions
  - name: Orders
  - name: Fills
  - name: Strategy Orders
paths:
  /v1/accounts/{account_id}:
    get:
      tags:
        - Accounts
      summary: Get a challenge account
      description: >-
        Returns account identity, realized balance, and a fresh risk snapshot
        marked from authoritative book mids.
      operationId: getAccount
      parameters:
        - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Challenge account detail.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/Account'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    AccountId:
      name: account_id
      in: path
      required: true
      schema:
        type: string
  schemas:
    Account:
      type: object
      required:
        - id
        - account_number
        - name
        - stage
        - status
        - starting_balance
        - balance
        - created_at
      properties:
        id:
          type: string
        account_number:
          type: string
        name:
          type: string
        stage:
          type: string
          enum:
            - evaluation
            - funded
        status:
          type: string
          enum:
            - active
            - passed
            - failed
            - closed
        starting_balance:
          type: number
        balance:
          type: number
        created_at:
          type: number
          description: Unix timestamp in milliseconds.
        risk:
          $ref: '#/components/schemas/AccountRisk'
    AccountRisk:
      type: object
      required:
        - observed_at
        - marks_complete
        - missing_markets
        - equity
        - unrealized_pnl
        - margin_used
        - available_balance
        - gross_exposure
        - daily_loss_floor
        - max_drawdown_floor
        - daily_loss_room
        - max_drawdown_room
        - remaining_profit
        - requirements
      properties:
        observed_at:
          type: number
          description: Server observation timestamp in milliseconds.
        marks_complete:
          type: boolean
          description: True only when every open position had a fresh authoritative mark.
        missing_markets:
          type: array
          items:
            type: string
        equity:
          type:
            - number
            - 'null'
          description: >-
            Realized balance plus unrealized P&L. Null when marks are
            incomplete.
        unrealized_pnl:
          type:
            - number
            - 'null'
        margin_used:
          type: number
          description: Entry-valued margin reserved by open positions.
        available_balance:
          type: number
          description: Realized balance less reserved margin, floored at zero.
        gross_exposure:
          type:
            - number
            - 'null'
          description: Mark-valued open notional. Null when marks are incomplete.
        daily_loss_floor:
          type:
            - number
            - 'null'
        max_drawdown_floor:
          type:
            - number
            - 'null'
        daily_loss_room:
          type:
            - number
            - 'null'
          description: Equity minus the daily loss floor.
        max_drawdown_room:
          type:
            - number
            - 'null'
          description: Equity minus the maximum drawdown floor.
        remaining_profit:
          type:
            - number
            - 'null'
          description: Realized profit still required to meet the evaluation target.
        requirements:
          type: object
          required:
            - daily_loss_pct
            - max_drawdown_pct
            - profit_target_pct
            - consistency_pct
            - minimum_trading_days
          properties:
            daily_loss_pct:
              type:
                - number
                - 'null'
            max_drawdown_pct:
              type:
                - number
                - 'null'
            profit_target_pct:
              type:
                - number
                - 'null'
            consistency_pct:
              type:
                - number
                - 'null'
            minimum_trading_days:
              type:
                - number
                - 'null'
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    Error:
      type: object
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
          format: uuid
        details:
          type: array
          description: >-
            Present on request-validation failures, with one entry per invalid
            field so a request can be fixed in one pass.
          items:
            $ref: '#/components/schemas/ValidationIssue'
    ValidationIssue:
      type: object
      required:
        - field
        - issue
      properties:
        field:
          type: string
          description: >-
            Wire name of the offending request field, such as `size` or
            `operations[2].price`. The value `body` refers to the whole payload.
        issue:
          type: string
  responses:
    Unauthorized:
      description: Missing, invalid, or revoked API key.
      headers:
        WWW-Authenticate:
          schema:
            type: string
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Resource not found or not owned by the authenticated user.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: A per-key, per-IP, or deployment request budget is exhausted.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  headers:
    RequestId:
      description: Stable identifier for support and log correlation.
      schema:
        type: string
        format: uuid
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: MyFundedPerps API key
      description: >-
        API key beginning with `fp_live_` (live keys, served at
        developers.myfundedperpetuals.com) or `fp_test_` (test keys, served at
        sandbox.myfundedperpetuals.com). A key presented on the other host is
        rejected with `401` and a message naming the correct host.

````