Authorization: ********************
{
"wfm_agent_sids": [
0
],
"start_datetime": "1s",
"end_datetime": "1s",
"include_violations": true
}
curl --location --request POST 'https://api.cbf.tcn.com/api/v1alpha1/wfm/listadherenceagentstates' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"wfm_agent_sids": [
0
],
"start_datetime": "1s",
"end_datetime": "1s",
"include_violations": true
}'
{
"agent_states": {
"property1": {
"agent_states": [
{
"wfm_agent_sid": 0,
"start_datetime": "1s",
"adm_states": [
"UNSPECIFIED"
],
"pause_code": "string"
}
]
},
"property2": {
"agent_states": [
{
"wfm_agent_sid": 0,
"start_datetime": "1s",
"adm_states": [
"UNSPECIFIED"
],
"pause_code": "string"
}
]
}
},
"latest_agent_state_datetime": "1s",
"agent_state_violations": {
"property1": {
"violations": [
{
"wfm_agent_sid": 0,
"start_datetime": "1s",
"expected_rtm_states": [
"UNSPECIFIED"
],
"expected_pause_code": "string",
"actual_rtm_states": [
"UNSPECIFIED"
],
"actual_pause_code": "string",
"violation_duration_seconds": 0,
"expected_pause_codes": [
"string"
],
"adherence_agent_state_violation_id": 0,
"expected_scheduling_activity_sid": 0,
"expected_reason_code_id": 0,
"actual_scheduling_activity_sid": 0,
"actual_reason_code_id": 0,
"resolved_activity_sid": 0,
"resolved_reason_code_id": 0,
"resolution_comment": "string",
"resolved_by_user_id": "string"
}
]
},
"property2": {
"violations": [
{
"wfm_agent_sid": 0,
"start_datetime": "1s",
"expected_rtm_states": [
"UNSPECIFIED"
],
"expected_pause_code": "string",
"actual_rtm_states": [
"UNSPECIFIED"
],
"actual_pause_code": "string",
"violation_duration_seconds": 0,
"expected_pause_codes": [
"string"
],
"adherence_agent_state_violation_id": 0,
"expected_scheduling_activity_sid": 0,
"expected_reason_code_id": 0,
"actual_scheduling_activity_sid": 0,
"actual_reason_code_id": 0,
"resolved_activity_sid": 0,
"resolved_reason_code_id": 0,
"resolution_comment": "string",
"resolved_by_user_id": "string"
}
]
}
},
"diagnostics": [
{
"level": "INFORMATION",
"code": "GENERAL",
"message": "string",
"source_entity": {
"parent_sid": 0,
"parent_type": "CALL_CENTER_NODE"
}
}
]
}