---
updatedAt: 2026-07-21T14:55:00.000Z
agentTools:
  projectIndex: https://docs.sikoia.com/llms.txt
---

# List all accounts

### Returns a list of all bank accounts for an entity.

Provides a comprehensive list of all bank accounts associated with an entity. This includes accounts connected through open banking or for which bank statements have been uploaded.

This list includes the account_connection_id for each account, which can be used to retrieve more detailed data from the following endpoints:
*`GET /v2/bankaccounts/{account_connection_id}`
*`GET /v2/bankaccounts/{account_connection_id}/balances`
*`GET /v2/bankaccounts/{account_connection_id}/transactions`


Provides a comprehensive list of all bank accounts associated with an entity. This includes accounts connected through open banking or for which bank statements have been uploaded. This list includes the `account_connection_id` for each account, which can be used to retrieve more detailed data from the following endpoints:

* GET `/v2/bankaccounts/{account_connection_id}`
* GET `/v2/bankaccounts/{account_connection_id}/balances`
* GET `/v2/bankaccounts/{account_connection_id}/transactions`

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Sikoia API",
    "termsOfService": "https://sikoia.com/About/Terms",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.sikoia.com",
      "description": "API (Production)"
    },
    {
      "url": "https://oauth2.sikoia.com",
      "description": "Authorization Server (Production)"
    },
    {
      "url": "https://api-staging.sikoia.com",
      "description": "API (Staging)"
    },
    {
      "url": "https://oauth2-staging.sikoia.com",
      "description": "Authorization Server (Staging)"
    }
  ],
  "paths": {
    "/v2/{entity_type}/{entity_id}/bankaccounts": {
      "get": {
        "tags": [
          "Banking"
        ],
        "summary": "List all accounts",
        "description": "### Returns a list of all bank accounts for an entity.\r\n\r\nProvides a comprehensive list of all bank accounts associated with an entity. This includes accounts connected through open banking or for which bank statements have been uploaded.\r\n\r\nThis list includes the account_connection_id for each account, which can be used to retrieve more detailed data from the following endpoints:\r\n*`GET /v2/bankaccounts/{account_connection_id}`\r\n*`GET /v2/bankaccounts/{account_connection_id}/balances`\r\n*`GET /v2/bankaccounts/{account_connection_id}/transactions`\r\n",
        "operationId": "GET_v2-entity_type-entity_id-bankaccounts",
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "description": "Entity Type",
            "required": true,
            "schema": {
              "enum": [
                "Companies",
                "Persons",
                "Cases"
              ],
              "type": "string"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "description": "Entity ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of Accounts Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SikoiaSharedModels.OpenBanking.OpenBanking.GetAccountDetailsResponse"
                  }
                },
                "example": [
                  {
                    "account_connection_id": "132d3353-ad29-46e0-b66a-caed8b572e93",
                    "account_type": "CREDIT_CARD",
                    "status": "Connected",
                    "currency": "GBP",
                    "owners_name": "[\"Acme Inc\"]",
                    "identifications": [
                      {
                        "type": "SORT_CODE",
                        "value": "100001"
                      }
                    ],
                    "bank_connection_id": "e81154bd-f85f-4223-8b4f-36643843fa99",
                    "datetime_last_refreshed": "2024-02-12T04:28:00.0000000+00:00",
                    "datetime_connected": "2024-02-12T04:24:50.0000000+00:00",
                    "datetime_expiry": "2024-05-12T04:24:34.0000000+00:00",
                    "country_code": "GB",
                    "institution_logo": "https://logolink.com",
                    "institution_name": "Sandbox",
                    "source": "Document",
                    "document_id": "r51154bd-f85f-4223-8b4f-36643843fa33",
                    "data_source_id": "01951375-a680-77ce-b196-44d1feedc47c",
                    "full_address": "Flat 23, 49 Sample Street, London"
                  }
                ]
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "InvalidToken",
                  "status": 401,
                  "title": "Invalid Token",
                  "detail": "Invalid token",
                  "correlation_id": "560b1943-109d-44b9-a94d-cf8ea487da30"
                }
              }
            }
          },
          "404": {
            "description": "Entity ID or Entity Type Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "ResourceNotFound",
                  "status": 404,
                  "title": "Resource Not Found",
                  "detail": "No resources found with id e5cf8119-0fe0-4b59-af7e-6da0be350238.",
                  "correlation_id": "2082423e-bb88-46dd-94a4-22373613abfd"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "RateLimit",
                  "status": 429,
                  "title": "Too Many Requests",
                  "detail": "You've exceeded the maximum API request limit per minute. Please try again later.",
                  "correlation_id": "abe75bcb-e6ef-40b9-b697-e1e10c780ade"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "ServerError",
                  "status": 500,
                  "title": "Internal Server Error",
                  "detail": "Something has gone wrong, please try again",
                  "correlation_id": "e75c2dea-cc15-44d9-a771-d194b71fc966"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SikoiaCore.Common.SikoiaErrorResponse": {
        "title": "Error Response",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The error type",
            "readOnly": true
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code of the error",
            "format": "HttpCode",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "A short description of the error",
            "readOnly": true
          },
          "detail": {
            "type": "string",
            "description": "More details about what went wrong",
            "readOnly": true
          },
          "correlation_id": {
            "type": "string",
            "description": "Correlation ID, please include this in any support tickets raised",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "See the [Response Guide](https://docs.sikoia.com/docs/api-behaviour#responses) for more detail "
      },
      "SikoiaSharedModels.OpenBanking.OpenBanking.GetAccountDetailsResponse": {
        "title": "Account Details",
        "type": "object",
        "properties": {
          "account_connection_id": {
            "type": "string",
            "description": "The Account Connection ID of the bank",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "example": "132d3353-ad29-46e0-b66a-caed8b572e93"
          },
          "account_type": {
            "type": "string",
            "description": "The type of account",
            "nullable": true,
            "example": "CREDIT_CARD"
          },
          "status": {
            "type": "string",
            "description": "The account status(`Created` `SelectingInstitutions` `Rejected` `Authorising` `Connected` `Deleted`)",
            "nullable": true,
            "example": "Connected"
          },
          "currency": {
            "type": "string",
            "description": "The currency of the account",
            "nullable": true,
            "example": "GBP"
          },
          "owners_name": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of the owners' name",
            "nullable": true,
            "example": "[\"Acme Inc\"]"
          },
          "identifications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SikoiaSharedModels.OpenBanking.OpenBanking.Models.IdentificationModel"
            },
            "description": "List of Account Identifiers",
            "nullable": true
          },
          "bank_connection_id": {
            "type": "string",
            "description": "The open banking Connection ID",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "example": "e81154bd-f85f-4223-8b4f-36643843fa99"
          },
          "datetime_last_refreshed": {
            "type": "string",
            "description": "The time the account was last refreshed",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "example": "2024-02-12T04:28:00.0000000+00:00"
          },
          "datetime_connected": {
            "type": "string",
            "description": "The time the account was connected",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "example": "2024-02-12T04:24:50.0000000+00:00"
          },
          "datetime_expiry": {
            "type": "string",
            "description": "The access expiry date of the account",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "example": "2024-05-12T04:24:34.0000000+00:00"
          },
          "country_code": {
            "type": "string",
            "description": "The country code of the institution",
            "nullable": true,
            "example": "GB"
          },
          "institution_logo": {
            "type": "string",
            "description": "The logo of the institution",
            "nullable": true,
            "example": "https://logolink.com"
          },
          "institution_name": {
            "type": "string",
            "description": "The name of the institution",
            "nullable": true,
            "example": "Sandbox"
          },
          "source": {
            "type": "string",
            "description": "The banking source(`Document` `OpenBanking`)",
            "example": "Document"
          },
          "document_id": {
            "type": "string",
            "description": "The Document ID",
            "example": "r51154bd-f85f-4223-8b4f-36643843fa33"
          },
          "data_source_id": {
            "type": "string",
            "description": "A unique identifier for a specific data source within a document, such as an individual bank statement in a multi-statement document.",
            "readOnly": true,
            "example": "01951375-a680-77ce-b196-44d1feedc47c"
          },
          "full_address": {
            "type": "string",
            "description": "Full Address",
            "nullable": true,
            "example": "Flat 23, 49 Sample Street, London"
          }
        },
        "additionalProperties": false
      },
      "SikoiaSharedModels.OpenBanking.OpenBanking.Models.IdentificationModel": {
        "title": "Account Identifiers",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of a Account Identifier",
            "nullable": true,
            "example": "SORT_CODE"
          },
          "value": {
            "type": "string",
            "description": "The value of the Account Identifier",
            "nullable": true,
            "example": "100001"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "authorizationHeader": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "name": "apikey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "authorizationHeader": []
    },
    {
      "apiKeyHeader": []
    }
  ]
}
```