# Show

## Get User by ID

<mark style="color:blue;">`GET`</mark> `https://biometridon.polygon.pt/api/users/:id`

This endpoint allows you to get a user information by id.

#### Path Parameters

| Name | Type   | Description           |
| ---- | ------ | --------------------- |
| id   | string | ID of the user to get |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | Authentication user token |

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

```bash
{
  "data": {
    "firstName": "Master",
    "lastName": "Polygon",
    "email": "master@polygon.pt",
    "clientId": "5f06dd360d2a954da80c098f",
    "roles": [
      "5f06dd360d2a954da80c0990"
    ],
    "isMaster": true,
    "active": true,
    "created_at": "2020-07-09T09:02:46.215Z",
    "updated_at": "2020-07-09T09:02:46.215Z",
    "id": "5f06dd360d2a954da80c0992",
    "name": "Master Polygon"
  },
  "meta": {
    "message": "Success."
  },
  "status": true
}
```

{% endtab %}

{% tab title="404 " %}

```bash
{
  "data": {},
  "meta": {
    "message": "User not found",
    "code": "4013"
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}

## Get my User

<mark style="color:blue;">`GET`</mark> `https://biometridon.polygon.pt/api/users/me`

This endpoint allow you to get the authenticated user information

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | Authentication user token |

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

```bash
{
  "data": {
    "firstName": "Master",
    "lastName": "Polygon",
    "email": "master@polygon.pt",
    "clientId": "5f06dd360d2a954da80c098f",
    "roles": [
      "5f06dd360d2a954da80c0990"
    ],
    "isMaster": true,
    "active": true,
    "created_at": "2020-07-09T09:02:46.215Z",
    "updated_at": "2020-07-09T09:02:46.215Z",
    "id": "5f06dd360d2a954da80c0992",
    "name": "Master Polygon"
  },
  "meta": {
    "message": "Success."
  },
  "status": true
}
```

{% endtab %}
{% endtabs %}
