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

# Create a bank account



## OpenAPI

````yaml /openapi.json post /bank_accounts
openapi: 3.1.0
info:
  title: End Close API
  description: REST API is used to interact with the End Close platform.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.endclose.com/v1
security:
  - ApiKeyAuth: []
paths:
  /bank_accounts:
    post:
      summary: Create a bank account
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Human readable name for the bank account
                currency:
                  type: string
                  description: >-
                    Three-letter ISO 4217 currency code (e.g. USD, EUR). Must be
                    uppercase. Optional.
                  pattern: ^[A-Z]{3}$
                mask:
                  type: string
                  description: >-
                    Last four digits of the account number, as it appears on
                    statements. Set automatically for Plaid-linked accounts.
      responses:
        '201':
          description: Bank account created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankAccount'
        '401':
          description: Unauthorized
        '422':
          description: Validation error
components:
  schemas:
    BankAccount:
      type: object
      required:
        - name
      properties:
        id:
          type: integer
          description: Unique numeric identifier
        name:
          type: string
          description: Human readable name for the bank account
        mask:
          type: string
          nullable: true
          description: >-
            Last four digits of the account number, as it appears on statements.
            Populated for Plaid-linked accounts.
        display_name:
          type: string
          description: >-
            Human label for the account: "Name (mask)" when a mask is known,
            otherwise just the name.
        currency:
          type: string
          description: >-
            Three-letter ISO 4217 currency code (e.g. USD, EUR). Must be
            uppercase. Optional — bank accounts may be created without a
            currency.
          pattern: ^[A-Z]{3}$
          nullable: true
        role:
          type: string
          description: >-
            Canonical account role within a program. Null when the account has
            no declared role.
          enum:
            - fbo
            - ach_suspense
            - network_settlement
            - secondary_network
            - revenue
            - cardholder_adjustment
            - cash_load
            - unload_settlement
            - reserve
            - escheat
            - gl
            - operating
          nullable: true
          readOnly: true
        program:
          type: object
          description: The program this account belongs to, if any.
          nullable: true
          readOnly: true
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.