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

# Create Account

> Creates a new Account under an existing Entity. The Account is automatically provisioned on your Platform's default chain. If auto-earn is enabled in your Platform Settings, the Account will be configured to earn yield on idle balances.



## OpenAPI

````yaml POST /accounts
openapi: 3.1.0
info:
  title: Otim Platform API
  version: v0
  description: >-
    API for managing accounts, entities, transfers, counterparties, and IBANs on
    the Otim platform.
servers:
  - url: https://api.otim.com/v0
security:
  - bearerAuth: []
paths:
  /accounts:
    post:
      tags: []
      summary: Create Account
      description: >-
        Creates a new Account under an existing Entity. The Account is
        automatically provisioned on your Platform's default chain. If auto-earn
        is enabled in your Platform Settings, the Account will be configured to
        earn yield on idle balances.
      operationId: createAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccountRequest'
      responses:
        '201':
          description: Account created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAccountResponse'
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateAccountRequest:
      type: object
      required:
        - entityId
      properties:
        entityId:
          type: string
          description: The ID of the Entity to create the Account for.
        name:
          type: string
          description: A display name for the Account.
        metadata:
          type: object
          nullable: true
          description: Arbitrary key-value pairs to attach to the Account.
    CreateAccountResponse:
      type: object
      properties:
        id:
          type: string
          example: acc_01JA1B2C3D4E5F6G7H8J9K0L
        entityId:
          type: string
        name:
          type: string
          nullable: true
        type:
          type: string
          example: wallet
        chain:
          type: string
          example: base
        status:
          type: string
          example: active
        autoEarn:
          type: boolean
          description: Automatically set based on your Platform Settings.
          example: true
        availableBalance:
          type: string
          example: '0'
        currency:
          type: string
          example: USDC
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: A machine-readable error code.
        details:
          type: object
          nullable: true
          description: Additional context about the error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key prefixed with `sk_`.

````