> ## 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 an external account

> Create canonical external account details and map to provider accounts



## OpenAPI

````yaml https://grid.squads.xyz/api-docs/openapi.json post /api/grid/v1/accounts/{address}/external-accounts
openapi: 3.1.0
info:
  title: Grid v1 API
  description: Grid v1 REST API for Solana-based smart account system
  contact:
    name: Grid API Support
    url: https://squads.so
    email: support@squads.so
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://grid.squads.xyz
    description: Production server
security:
  - bearer_auth: []
tags:
  - name: accounts
    description: Smart account management operations
  - name: spending-limits
    description: Spending limit management
  - name: standing-orders
    description: Standing order operations
  - name: transactions
    description: Transaction management
  - name: trade
    description: Trade operations and management
  - name: payments
    description: Payment intent operations
  - name: passkeys
    description: Passkey management
  - name: kyc
    description: Know Your Customer operations
  - name: external-accounts
    description: External bank account management
  - name: virtual-accounts
    description: Virtual account management
  - name: auth
    description: Authentication operations
  - name: proposals
    description: Proposal management for multi-sig operations
  - name: compliance
    description: Compliance entity management and KYB/KYC operations
paths:
  /api/grid/v1/accounts/{address}/external-accounts:
    post:
      tags:
        - external-accounts
      summary: Create an external account
      description: Create canonical external account details and map to provider accounts
      operationId: handler
      parameters:
        - name: address
          in: path
          description: Smart account address
          required: true
          schema:
            type: string
        - name: x-grid-environment
          in: header
          description: Environment (sandbox, production)
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateExternalAccountRequestPayload'
        required: true
      responses:
        '201':
          description: External account created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateExternalAccountResponse'
        '400':
          description: Invalid request
        '404':
          description: Smart account not found
        '503':
          description: Encryption service unavailable
      security:
        - bearer_auth: []
components:
  schemas:
    CreateExternalAccountRequestPayload:
      type: object
      required:
        - beneficiary
        - account
        - idempotency_key
      properties:
        account:
          type: object
        beneficiary:
          type: object
        idempotency_key:
          type: string
        is_third_party:
          type:
            - boolean
            - 'null'
    CreateExternalAccountResponse:
      type: object
      required:
        - id
        - country_code
        - currency
        - beneficiary_kind
        - beneficiary_name
        - active
        - provider_accounts
        - created_at
      properties:
        active:
          type: boolean
        beneficiary_kind:
          type: string
        beneficiary_name:
          type: string
        country_code:
          type: string
        created_at:
          type: string
        currency:
          type: string
        id:
          type: string
        last_4:
          type:
            - string
            - 'null'
        provider_accounts:
          type: array
          items:
            $ref: '#/components/schemas/ProviderAccountEntry'
    ProviderAccountEntry:
      type: object
      required:
        - provider
        - provider_internal_id
        - rails
        - status
        - created_at
      properties:
        created_at:
          type: string
        last_error:
          type:
            - string
            - 'null'
        provider:
          type: string
        provider_internal_id:
          type: string
        rails:
          type: array
          items:
            type: string
        status:
          type: string
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: Your Grid API key from the Grid Dashboard

````