URL: v3/api/admin/get-agent/{agentId}

Method: GET

Description : Fetches existing Agent/Admin data

Parameters:

Parameter Type Optional/Required Description
agentId integer Required Agent/Admin id

Success Response :

{

 "success": true,

 "data": {

"agent": [

  {

    "id": 101,

    "user_name": "krishna",

    "role": "agent",

    "email": "krishna@faveo.com",

    "profile_pic": "https://secure.gravatar.com/avatar/d15e173f92f94fd80a5ef7773a19b25e?s=80&r=g&d=identicon",

    "ext": "080",

    "country_code": 91,

    "mobile": "9853453453",

    "phone_number": "41536699",

    "mobile_otp_verify": "1",

    "email_verify": "1",

    "ban": 0,

    "active": 1,

    "is_delete": 0,

    "agent_tzone": "1",

    "departments": [

      {

        "id": 1,

        "name": "Support"

      },

      {

        "id": 2,

        "name": "Sales"

      }

    ],

    "teams": [

      {

        "id": 1,

        "name": "Level 1 Support"

      },

      {

        "id": 2,

        "name": "Level 2 Support"

      }

    ],

    "name": "Krishna Vishwakarma"

  }

]

 }

}

 

Error Response :

{

"success":false,

"Message":"Not found"

}

 

Tagged: