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

# Create Smart Account



## OpenAPI

````yaml /api-reference/openapi.yaml post /wallet/smart-account
openapi: 3.1.0
info:
  title: Onbeam API
  version: 1.0.0
servers:
  - url: https://api.onbeam.io
  - url: http://localhost:3004
security: []
paths:
  /wallet/smart-account:
    post:
      summary: Create Smart Account
      operationId: createSmartAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SmartAccountRequest'
      responses:
        '200':
          description: Smart account created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmartAccountResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    SmartAccountRequest:
      type: object
      properties:
        ownerAddress:
          type: string
          examples:
            - '0x1234567890abcdef1234567890abcdef12345678'
        chainId:
          type: integer
          examples:
            - 80002
      required:
        - ownerAddress
        - chainId
    SmartAccountResponse:
      type: object
      properties:
        address:
          type: string
        chainId:
          type: integer
      required:
        - address
        - chainId
    Error:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````