> For the complete documentation index, see [llms.txt](https://docs.cloudnode.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudnode.pro/api-v4/reference/api-reference/account.md).

# Account

## Endpoints

## Account details

<mark style="color:blue;">`GET`</mark> `https://api.cloudnode.pro/v4/account`

Get user account details.

Requires authentication. See [how to authenticate your request](/api-v4/quick-start.md#authenticate-request). Requires permission node `account`.

{% tabs %}
{% tab title="200: OK User with identity" %}

```javascript
{
    "created": "2022-07-02T08:33:12.000Z", // {string} ISO timestamp of account creation time
    "id": "user_HiSOG53KzE1cc01rDZ4", // {string} Unique user ID
    "identity": { // identity object
        "country": "NO",
        "email": "john@doe.com",
        "name": "John Doe",
        "username": "john.doe"
    }
}
```

{% endtab %}

{% tab title="200: OK User without identity or no `account.identity` permission to see identity" %}

```javascript
{
    "created": "2022-07-02T08:33:12.000Z", // {string} ISO timestamp of account creation time
    "id": "user_HiSOG53KzE1cc01rDZ4", // {string} Unique user ID
    "identity": null
}
```

{% endtab %}
{% endtabs %}

## Account identity

<mark style="color:blue;">`GET`</mark> `https://api.cloudnode.pro/v4/account/identity`

Get user account identity

Requires authentication. See [how to authenticate your request](/api-v4/quick-start.md#authenticate-request). Requires permission node `account.identity`.

{% tabs %}
{% tab title="200: OK User has identity" %}

```javascript
{
    "country": "NO", // {string} alpha2 country code from when you registered
    "email": "john@doe.com", // {string} current primary e-mail address
    "name": "John Doe", // {string} full name
    "username": "john.doe" // {string} unique username
}
```

{% endtab %}

{% tab title="404: Not Found User has no identity" %}

```javascript
{
    "code": "err_not_found",
    "title": "The requested resource was not found",
    "message": "The account does not have an identity"
}
```

{% endtab %}
{% endtabs %}
