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

# Create account

> Creates a trading account. One account per plan or challenge. Requires the `READ_ONLY` (or higher) permission scope.



## OpenAPI

````yaml POST /accounts
openapi: 3.1.0
info:
  title: DojiFunded Trading API
  description: >-
    Public REST interface for algorithmic trading on DojiFunded. Place orders,
    manage positions, and pull account state programmatically.
  version: 1.0.0
  contact:
    email: business@dojifunded.com
servers:
  - url: https://engine.dojifunded.com/v1
    description: Production
security:
  - apiKey: []
    apiSecret: []
tags:
  - name: Accounts
    description: Account state, positions, history, risk, and analytics.
  - name: Orders
    description: Place, cancel, and close orders across all venues.
  - name: Market data
    description: Public price feeds and symbol catalog. No authentication required.
paths:
  /accounts:
    post:
      tags:
        - Accounts
      summary: Create account
      description: >-
        Creates a trading account. One account per plan or challenge. Requires
        the `READ_ONLY` (or higher) permission scope.
      operationId: createAccount
      responses:
        '200':
          description: The created account record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Account:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Account UUID.
        plan_id:
          type: string
          description: Plan or challenge this account belongs to.
        state:
          type: string
          description: Account state.
        balance:
          type: number
          description: Realised account balance.
        allowed_venues:
          type: array
          items:
            type: string
          description: Execution venues enabled for this account.
        risk_config:
          type: object
          description: Risk configuration applied to this account.
  responses:
    Unauthorized:
      description: Missing or invalid API credentials.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: unauthorized
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key generated at Dashboard, Settings, Developer. Format:
        `doji_ak_...`
    apiSecret:
      type: apiKey
      in: header
      name: X-API-Secret
      description: 'API secret returned once at key creation. Format: `doji_sk_...`'

````