# Create a bank account `POST /api/v1/bank_accounts` Creates a bank account. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Bank accounts → Write**. ## Body parameters - `name` (string, required) — Display name, up to 128 characters. - `currency` (string) — One of EUR, USD, or GBP. Defaults to EUR on creation. - `iban` (string or null) — Account IBAN, up to 34 characters. - `bic` (string or null) — Bank identifier code, up to 11 characters. - `provider` (string or null) — Provider name, up to 32 characters. - `external_ref` (string or null) — Reference in your provider, up to 64 characters. - `is_active` (integer) — Use 1 for active or 0 for inactive. Defaults to 1 on creation. - `selected` (boolean) — Set true to make this the selected account. This clears the flag on other accounts. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/bank_accounts" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Operating account"}' ``` ## Response **201 Created** The created bank account is returned in data. Example with fictional data and selected fields. ```json { "message_key": "entities.bank_account.messages.created", "data": { "id": 8, "name": "Operating account", "currency": "EUR", "is_active": 1, "selected": null } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation. - `500` — The change could not be saved.