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

# Create Smart Account

> Creates a new Smart Account with specified configuration including signers, threshold, and optional settings like config authority.




## OpenAPI

````yaml POST /api/v0/smart_account/transaction/create
openapi: 3.0.3
info:
  title: Squads Smart Account API
  version: 0.1.0
  description: >
    The Squads Smart Account API enables creation and management of Smart
    Accounts on Solana. It provides endpoints for creating smart accounts,
    managing signers, thresholds, and spending limits.
servers:
  - url: https://developer-api.squads.so
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Smart Account
    description: Endpoints for Smart Account management
paths:
  /api/v0/smart_account/transaction/create:
    parameters:
      - $ref: '#/components/parameters/NetworkParam'
    post:
      tags:
        - Smart Account
      summary: Create Smart Account
      description: >
        Creates a new Smart Account with specified configuration including
        signers, threshold, and optional settings like config authority.
      operationId: createSmartAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSmartAccountRequest'
      responses:
        '200':
          description: Smart Account successfully created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSmartAccountResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    NetworkParam:
      name: x-squads-network
      in: header
      schema:
        type: string
        enum:
          - devnet
          - mainnet
        default: mainnet
      required: false
      description: >
        Specifies which Solana network to use. Defaults to 'mainnet' if not
        provided.

        Valid values are 'devnet' or 'mainnet'.
  schemas:
    CreateSmartAccountRequest:
      type: object
      required:
        - smart_account_signers
        - threshold
      properties:
        smart_account_signers:
          type: array
          description: >
            List of authorized keys that define the permanent configuration of
            your smart account. Each signer is assigned specific permissions
            that determine their role:

            - CAN_INITIATE: Allows creating new transactions

            - CAN_VOTE: Allows approving pending transactions

            - CAN_EXECUTE: Allows executing approved transactions
          items:
            $ref: '#/components/schemas/Signer'
        threshold:
          type: integer
          minimum: 1
          description: The minimum number of required signatures to execute any action
        rent_collector:
          type: string
          pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: >-
            Optional address where rent for executed, rejected, or cancelled
            transaction accounts can be reclaimed
        config_authority:
          type: string
          pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: Optional authority that can change the smart account configuration
        memo:
          type: string
          description: Optional memo to include with the transaction
    CreateSmartAccountResponse:
      type: object
      required:
        - smart_account_address
      properties:
        smart_account_address:
          type: string
          pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: The wallet address of the newly created Smart Account
    Signer:
      type: object
      required:
        - address
        - permissions
      properties:
        address:
          type: string
          pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: The address of the signer
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
          description: List of permissions granted to this signer
    Permission:
      type: string
      enum:
        - CAN_INITIATE
        - CAN_VOTE
        - CAN_EXECUTE
      description: |
        Defines the permissions a signer has:
        - CAN_INITIATE: Allows creating new transactions
        - CAN_VOTE: Allows approving pending transactions
        - CAN_EXECUTE: Allows executing approved transactions
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Authorization header using the Bearer scheme.
        Example: "Authorization: Bearer {token}"

````