---
page_title: Retrieve an agent
product: lotuspay
platform: web
page_source: https://docs.juspay.io/lotuspay/web/core-resources/retrieve-an-agent
openapi: https://docs.juspay.io/api/swagger?document=https%3A%2F%2Fdocs.juspay.io%2Flotuspay%2Fweb%2Fcore-resources%2Fretrieve-an-agent
llms_txt: https://docs.juspay.io/llms.txt
product_llms_txt: https://docs.juspay.io/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"
  }
  
```

## API Responses:
