---
page_title: Retrieve an agent
product: LotusPay
platform: Web
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/retrieve-an-agent
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Flotuspay%2Fweb%2Fcore-resources%2Fretrieve-an-agent
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/lotuspay/llms.txt
---

## API Version: default

# **Retrieve an agent** 



Retrieves an existing agent object. Supply the unique agent identifier.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| agent REQUIRED	 | The identifier of the agent to be retrieved. |


**Returns**  Returns a agent object if a valid identifier was provided.

## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/agents/{ID}

- Production: https://api.lotuspay.com/v1/agents/{ID}

## Request Type: 
GET

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value: sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:

### Sample Request and Response:

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/agents/AG0011DD2211AA \
   -u sk_test_XjIHowXWSI23uvjepz2X82:

```

#### Response:
```json
{
    "id": "AG0011DD2211AA",
    "object": "agent",
    "created": 1530224170,
    "livemode": false,
    "code": "EMPLOYEE1",
    "email": "test+1@lotuspay.com",
    "identification": "EMPLOYEE1",
    "mobile": "9876543210",
    "name": "TEST AGENT1",
    "status": "active"
  }
  
```



---

## See Also

- [The agent object](https://juspay.io/in/docs/lotuspay/web/core-resources/the-agent-object)
- [List all agents](https://juspay.io/in/docs/lotuspay/web/core-resources/list-all-agents)
