# Show

## Get Role by ID

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

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

#### Path Parameters

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

#### Headers

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

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

```bash
{
  "data": {
    "name": "Agent",
    "permissions": [
      {
        "resource": "users",
        "read": false,
        "write": false,
        "delete": false
      },
      {
        "resource": "processes",
        "read": true,
        "write": true,
        "delete": false
      },
      {
        "resource": "client_settings",
        "read": true,
        "write": false,
        "delete": false
      },
      {
        "resource": "queues",
        "read": true,
        "write": true,
        "delete": false
      },
      {
        "resource": "clients",
        "read": false,
        "write": false,
        "delete": false
      },
      {
        "resource": "roles",
        "read": false,
        "write": false,
        "delete": false
      },
      {
        "resource": "steps",
        "read": true,
        "write": false,
        "delete": false
      },
      {
        "resource": "flows",
        "read": true,
        "write": false,
        "delete": false
      }
    ],
    "clientId": "5f06dd360d2a954da80c098f",
    "forAllClients": true,
    "active": true,
    "created_at": "2020-07-09T09:02:46.118Z",
    "updated_at": "2020-07-09T09:02:46.118Z",
    "id": "5f06dd360d2a954da80c0991"
  },
  "meta": {
    "message": "Success."
  },
  "status": true
}
```

{% endtab %}

{% tab title="404 " %}

```bash
{
  "data": {},
  "meta": {
    "message": "Role not found",
    "code": "4003"
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}
