URL: v3/api/admin/agent/{agent_id}

Method: GET

Description : Fetches existing agent/admin data based on agent id

Parameters:

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

Success Response :

{

 "success": true,

 "data": {

"agent": [

  {

    "id": 99,

    "first_name": "Krishna",

    "last_name": "Vishwakarma",

    "user_name": "krishna",

    "location": "bangalore",

    "role": "agent",

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

    "ext": "080",

    "country_code": 91,

    "mobile": "9853453453",

    "phone_number": "41536699",

    "active": 1,

    "agent_tzone": "1",

    "agent_sign": "Krishna V.",

    "permission": {

      "id": 21,

      "user_id": 99,

      "permision": {

        "create_ticket": "1"

      },

    },

    "type": [

      {

        "id": 1,

        "name": "Question"

      }

    ],

    "departments": [

      {

        "id": 1,

        "name": "Support"

      },

      {

        "id": 2,

        "name": "Sales"

      }

    ],

    "teams": [

      {

        "id": 1,

        "name": "Level 1 Support”

      },

      {

        "id": 2,

        "name": "Level 2 Support”

      }

          ]

            }

      ]

  }

}

 

Error Response :

{

"success":false,

"Message":"Not found"

}

 

Tagged: