Agent API¶
-
apirest.agent_serializers.
AgentSerializer
¶ Agent API is read only, you cannot create Agents using this API at the moment.
status: Status could have the following values [1: ‘Logged Out’, 2: ‘Available’, 3: ‘On Standby’ & 4: ‘On Break’]
Read:
CURL Usage:
curl -u username:password -H 'Accept: application/json' http://127.0.0.1:8000/rest-api/agent/
Response:
{ "count": 2, "next": null, "previous": null, "results": [ { "url": "http://127.0.0.1:8000/rest-api/agents/19/", "user": "http://127.0.0.1:8000/rest-api/users/1/", "last_login": null, "internal_name": "tenant-1@testn04", "username": "testn04", "email": "", "first_name": "", "last_name": "", "date_joined": "2020-01-15T11:55:56.239231+01:00", "phone_login": "agent-04229", "phone_password": "560844398338", "enable_webrtc": false, "enable_webrtc_autoanswer": false, "caller_id_name": "", "caller_id_number": "", "call_timeout": 45, "status": 1, "max_no_answer": 3, "wrap_up_time": 15, "reject_delay_time": 15, "busy_delay_time": 60, "no_answer_delay_time": 15 }, { "url": "http://127.0.0.1:8000/rest-api/agents/20/", "user": "http://127.0.0.1:8000/rest-api/users/1/", "last_login": null, "internal_name": "tenant-1@testn05", "username": "testn05", "email": "", "first_name": "", "last_name": "", "date_joined": "2020-01-15T11:58:26.000844+01:00", "phone_login": "agent-02812", "phone_password": "075595325783", "enable_webrtc": false, "enable_webrtc_autoanswer": false, "caller_id_name": "", "caller_id_number": "", "call_timeout": 45, "status": 1, "max_no_answer": 3, "wrap_up_time": 15, "reject_delay_time": 15, "busy_delay_time": 60, "no_answer_delay_time": 15 } ] }