> For the complete documentation index, see [llms.txt](https://docs.calypso.money/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.calypso.money/accounts/how-to-get-information-about-the-current-api-user.md).

# How to get Information About the Current API User

To retrieve complete information about the user on whose behalf the API request is being made, use the [**`POST /api/v1/user/current`**](https://api.calypso.money/api/v1/user/current) method.

This method returns detailed information about the user, their roles, access permissions for accounts, as well as a list of accounts available to them.

#### **Request**

**Body:**

```
{
    "timestamp": 1
}
```

* **`timestamp`** (integer, int64, required): Current Unix timestamp in milliseconds (UTC). The value must be within 3 minutes of the server's current time.

#### **Response&#x20;**<mark style="color:green;">**(200 OK)**</mark>

Upon a successful request, the server returns an object with three main sections.

```
{
  "userFullInfo": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "username": "123e4567-e89b-12d3-a456-426614174000",
    "companyId": "123e4567-e89b-12d3-a456-426614174000",
    "companyName": "text",
    "active": true,
    "blocked": true,
    "roles": ["SYSTEM"]
  },
  "permissions": [
    {
      "accountId": "text",
      "accountName": "text",
      "permissionGroups": [
        {
          "groupId": 1,
          "name": "text",
          "permissionData": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        }
      ]
    }
  ],
  "availableAccounts": [
    {
      "account": "text",
      "name": "text"
    }
  ]
}
```

**Response Field Descriptions:**

* **`userFullInfo`**: An object containing the core user information.
  * `id` (string): The unique identifier of the user.
  * `username` (string): The username (often matches the ID).
  * `companyId` (string): The identifier of the company the user belongs to.
  * `companyName` (string): The name of the company.
  * `active` (boolean): Account activity status (`true` = active, `false` = inactive).
  * `blocked` (boolean): Account block status (`true` = blocked, `false` = not blocked).
  * `roles` (array of strings): List of the user's roles in the system (e.g., `SYSTEM`, `ADMIN`).
* **`permissions`**: An array describing the user's access rights to specific accounts.
  * `accountId` (string): The account identifier.
  * `accountName` (string): The account name.
  * `permissionGroups` (array): Permission groups for this account.
    * `groupId` (integer): The permission group identifier.
    * `name` (string): The permission group name.
    * `permissionData` (object): A dictionary with specific permissions (e.g., `canViewBalance`, `canWithdraw`).
* **`availableAccounts`**: An array listing the accounts available to the user for operations (such as selecting in a widget or reports).
  * `account` (string): The available account identifier.
  * `name` (string): The available account name.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.calypso.money/accounts/how-to-get-information-about-the-current-api-user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
