---
type: api
title: Fetch current account information
description: Fetch current account information.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-get-current-account
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-get-current-account
products:
  - Elastic Cloud Enterprise
---

# Fetch current account information

Authentication: required

## Paths

- `GET` `/account`

## Description

Fetch current account information.

## Responses

#### `200`

Account fetched successfully

`application/json`

- `id` (string)
  The account's identifier
- `trust` (object)
  Settings related to the level of trust of the clusters in this account
  - `trust_all` (boolean)
    If true, all clusters in this account will by default trust all other clusters in the same account
#### `404`

Account not found. (code: `accounts.not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X GET "${API_URL}/account" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "id": "string",
  "trust": {
    "trust_all": false
  }
}
```

#### 404

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
```

