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

# User

## Get user

<mark style="color:blue;">`GET`</mark> `https://public-api.timesafe.io/user`

Questo servizio permette di ottenere i dati dell'utente in uso.

#### Headers

| Name  | Type   | Description                             |
| ----- | ------ | --------------------------------------- |
| token | string | Token JWT ottenuto da endpoint di login |

{% tabs %}
{% tab title="200 Utente trovato" %}

```
{
    "status": "OK",
    "data": [
        {
            "id": 374862,
            "cf": MRARSS70A01F205K,
            "email": "mario.rossi@timesafe.io",
            "status": "USER_LOGGED",
            "credits": 99,
            "creation_date": "2020-01-01 01:01:01",
            "created_by": "Timesafe Admin",
            "can_create_users": true,
            "sandbox": true
        }
    ]
}
```

{% endtab %}

{% tab title="501 In caso il token non sia valido" %}

```
{
    "error": {
        "code": "5_topi_invalidi",
        "details": "This token is not valid."
    }
}
```

{% endtab %}
{% endtabs %}
