> For the complete documentation index, see [llms.txt](https://docs.cubu.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cubu.com/guides/s2s-api-guide/agent-impersonation-api.md).

# Agent Impersonation API

The Agents Impersonation API enables third-party server applications to act on behalf of agents, which can benefit organizations that want to integrate Cubu's functionality into their applications.&#x20;

This way, agents won't have to switch to Cubu each time they contact a new customer, making their job more efficient and streamlined.

The API enables agents to perform essential tasks, such as selecting a unit and workstation, calling the next case, resolving a case, etc.

To allow registered applications to impersonate users in your organization, add the "Agent impersonator" role to the application by checking the Agent Impersonator box.

<figure><img src="/files/RiFwAPqeI6LxTJ65c699" alt=""><figcaption><p>Registered Application</p></figcaption></figure>

The API method URLs contain the **user ID** of the user being impersonated by the API.

{% code overflow="wrap" %}

```
POST: https://[base-url]/{applicationId}/agents/{userId}/...
```

{% endcode %}

User IDs are available in the General tab of the user details page.

<figure><img src="/files/RVhUQSfCTAFhc0B0FtQd" alt=""><figcaption><p>User Details page</p></figcaption></figure>
