---
agentTools:
  projectIndex: https://mk-bank.readme.io/llms.txt
---

# Get account info

This endpoint retrieves account information. It provides details about the user's account, such as balance, and personal details.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "MK Bank Account API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://core-h.mkbank.com.br/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/account": {
      "get": {
        "summary": "Get account info",
        "description": "This endpoint retrieves account information. It provides details about the user's account, such as balance, and personal details.",
        "operationId": "get-account-info",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": 1060,\n    \"plan_id\": 1,\n    \"owner_type\": \"App\\\\Models\\\\LegalPerson\",\n    \"owner_id\": 16,\n    \"branch\": \"3000\",\n    \"number\": \"10286\",\n    \"status\": \"ACTIVE\",\n    \"type\": \"TRAN\",\n    \"created_at\": \"2023-03-14T19:29:13.000000Z\",\n    \"updated_at\": \"2023-03-14T19:29:13.000000Z\",\n    \"label\": null,\n    \"bank_name\": \"MK Digital Bank S.A.\",\n    \"bank_ispb\": \"35624319\",\n    \"is_personal\": false,\n    \"is_legal\": true,\n    \"display_number\": \"1028-6\",\n    \"available_balance\": 4950.23\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 1060,
                      "default": 0
                    },
                    "plan_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "owner_type": {
                      "type": "string",
                      "example": "App\\Models\\LegalPerson"
                    },
                    "owner_id": {
                      "type": "integer",
                      "example": 16,
                      "default": 0
                    },
                    "branch": {
                      "type": "string",
                      "example": "3000"
                    },
                    "number": {
                      "type": "string",
                      "example": "10286"
                    },
                    "status": {
                      "type": "string",
                      "example": "ACTIVE"
                    },
                    "type": {
                      "type": "string",
                      "example": "TRAN"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2023-03-14T19:29:13.000000Z"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2023-03-14T19:29:13.000000Z"
                    },
                    "label": {},
                    "bank_name": {
                      "type": "string",
                      "example": "MK Digital Bank S.A."
                    },
                    "bank_ispb": {
                      "type": "string",
                      "example": "35624319"
                    },
                    "is_personal": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_legal": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "display_number": {
                      "type": "string",
                      "example": "1028-6"
                    },
                    "available_balance": {
                      "type": "number",
                      "example": 4950.23,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Resource not found\",\n    \"code\": 0,\n    \"data\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Resource not found"
                    },
                    "code": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Sua sessão expirou\",\n    \"code\": \"UNAUTHENTICATED\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Sua sessão expirou"
                    },
                    "code": {
                      "type": "string",
                      "example": "UNAUTHENTICATED"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6297b52a229a9b00142bff3c:6297b708c028370045bdbb4a"
}
```