> For the complete documentation index, see [llms.txt](https://docs.omnileads.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnileads.net/english/omnileads-restful-api/agent-session-api-in-asterisk.md).

# Agent Session API in Asterisk

### Agent Session API in Asterisk

Endpoints to control the agent session in Asterisk for the use of Webphone

### Asterisk Agent Login

Sets the Agent (Users) session status in Asterisk to logged in. The credentials must belong to the Agent, and no extra parameters need to be sent.

**URL**: POST [https:/](https://documentacion-omnileads.readthedocs.io/)/\<omnileads\_addr>/api/v1/asterisk\_login/

### Agent Logout in Asterisk

Sets the Agent (Users) session status in Asterisk to finished. The credentials must belong to the Agent, and no extra parameters need to be sent.

**URL**: POST [https:/](https://documentacion-omnileads.readthedocs.io/)/\<omnileads\_addr>/api/v1/asterisk\_logout/

### Agent pause entry

Sets the Agent (Users) session state in Asterisk to Paused (Pauses). Credentials must belong to the Agent.

**URL**: POST [https:/](https://documentacion-omnileads.readthedocs.io/)/\<omnileads\_addr>/api/v1/asterisk\_pause/

| field name | type   | description                       |
| ---------- | ------ | --------------------------------- |
| pause\_id  | string | ID of the pause the Agent enters. |

### Agent pause exit

Sets the Agent (Users) session status in Asterisk to "Available" and indicates the end of a Pause (Pauses). Credentials must belong to the Agent.

**URL**: POST [https:/](https://documentacion-omnileads.readthedocs.io/)/\<omnileads\_addr>/api/v1/asterisk\_unpause/

| field name | type   | description                      |
| ---------- | ------ | -------------------------------- |
| pause\_id  | string | ID of the pause the Agent exits. |
