---
agentTools:
  projectIndex: https://docs.agilite.io/llms.txt
---

# Test Your Roles Profile

Go to the [Agilit-e API Reference](https://docs.agilite.io/reference) page.

1. Navigate to the Roles Execution APIs category under the Agilit-e Roles section, followed by clicking on the `/getRole` menu item.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/556cf9f-Roles-GetRole.png",
        "Roles-GetRole.png",
        490,
        468,
        "#f2e5e4"
      ]
    }
  ]
}
[/block]

2. Click on the user icon on the top right of the API logic and populate the generated Agilit-e token into the api-key field.

[block:callout]
{
  "type": "warning",
  "title": "Regarding API Keys",
  "body": "**Note:** You will need to create an API Key, as mentioned earlier in the [API Keys Module](https://docs.agilite.io/docs/api-keys-overview) section of the documentation. Once the API Key is provided for one API, it will exist for the rest of the APIs."
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/1344e56-api-key-authentication.png",
        "api-key-authentication.png",
        700,
        463,
        "#69696e"
      ]
    }
  ]
}
[/block]

3. In the Headers section provide the `Role Name` and the `Conditional Levels`: (i.e Manager of IT)

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/018955d-Roles-Headers.png",
        "Roles-Headers.png",
        2036,
        506,
        "#fcfaf9"
      ]
    }
  ]
}
[/block]

4. Click on the Try It button to execute the API.

* The Response Object will contain the Role ID and the Responsible User for that Role

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"roleIds\": [\n  \t\"5bc03021d0c7f200770eb2ae\"\n  ],\n  \"responsibleUsers\": [\n  \t\"John Doe\"\n  ]\n}",
      "language": "json",
      "name": "200 OK"
    }
  ]
}
[/block]